/* ====== 相续书院 H5 公共样式(按 730px 截图 1:1 还原) ====== */
:root {
  --pink: #cb436a;
  --pink-deep: #c22e63;
  --pink-light: #ffd6e4;
  --red: #ff4544;
  --orange: #f98702;
  --orange-pill: #d6500a;
  --orange-bonus: #f9752b;
  --blue: #2380ff;
  --blue-light: #22a3ff;
  --green: #08c303;
  --green-box: #8bbe80;
  --gray-btn: #c0c0c0;
  --text: #1a1a1a;
  --text-mid: #666;
  --text-gray: #999;
  --bg: #f6f7f9;
  --bg-pink-page: #fdf7fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

body {
  background: #e8e8e8;
  color: var(--text);
  font-size: 28px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; display: block; }
img { display: block; }
input, textarea { border: none; outline: none; background: transparent; font-family: inherit; }

.page {
  max-width: 730px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page.white { background: #fff; }

/* ====== 顶部导航栏(带微信胶囊) ====== */
.nav {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 20;
}
.nav.transparent { background: transparent; position: absolute; left: 0; right: 0; top: 0; }
.nav .nav-title { font-size: 32px; font-weight: 600; color: #111; }
.nav .nav-back {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.nav .nav-back svg { width: 26px; height: 26px; }
.nav .nav-back.circle {
  left: 20px; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0, 0, 0, .35);
}
.nav .nav-back.circle svg { width: 32px; height: 32px; }
.nav .nav-logo { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; }
.nav .nav-logo img { width: 52px; height: 52px; border-radius: 50%; }
.nav .nav-logo span { font-size: 32px; font-weight: 600; color: #111; }
.capsule {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 174px; height: 64px; border: 1px solid rgba(0,0,0,.08); border-radius: 32px;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center;
}
.capsule .cap-dots { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; }
.capsule .cap-dots i { width: 8px; height: 8px; border-radius: 50%; background: #111; }
.capsule .cap-divider { width: 1px; height: 36px; background: rgba(0,0,0,.1); }
.capsule .cap-target { flex: 1; display: flex; align-items: center; justify-content: center; }
.capsule .cap-target svg { width: 34px; height: 34px; }

/* ====== 底部 TabBar ====== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: 730px; margin: 0 auto;
  height: 110px; background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 22px; color: #333;
}
.tabbar .tab svg { width: 48px; height: 48px; }
.tabbar .tab img { width: 48px; height: 44px; object-fit: contain; }
.tabbar .tab.active { color: var(--pink); }

/* ====== 搜索栏 ====== */
.search-bar {
  margin: 16px 15px;
  height: 72px; border-radius: 36px;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #9a9a9a; font-size: 26px;
}
.search-bar svg { width: 30px; height: 30px; }

/* ====== 筛选 Tabs ====== */
.tabs {
  display: flex; align-items: center;
  background: #fff;
  height: 100px;
  padding: 0 20px;
}
.tabs .tab-item {
  flex: 1; text-align: center; font-size: 28px; color: #333;
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.tabs .tab-item.active { color: var(--pink); font-weight: 500; }
.tabs .tab-item.active::after {
  content: ""; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 5px; border-radius: 3px; background: var(--pink);
}
.tabs.red .tab-item.active { color: var(--red); }
.tabs.red .tab-item.active::after { background: var(--red); }

/* ====== 空状态 ====== */
.empty { display: flex; flex-direction: column; align-items: center; padding: 130px 0 60px; }
.empty img { object-fit: contain; }
.empty .empty-text { margin-top: 30px; color: #b9bec5; font-size: 28px; }
.empty.plain { padding: 200px 0; }
.empty.plain .empty-text { margin-top: 0; }

/* ====== 按钮 ====== */
.btn-red {
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 32px; font-weight: 500;
}
.btn-pink { background: var(--pink); color: #fff; }

/* ====== 白色面板 ====== */
.panel {
  background: #fff; border-radius: 16px;
  margin: 15px;
}

/* ====== 表单行 ====== */
.cell {
  display: flex; align-items: center;
  min-height: 110px;
  padding: 0 30px;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
  font-size: 28px;
}
.cell:last-child { border-bottom: none; }
.cell .cell-label { width: 170px; color: #333; flex-shrink: 0; }
.cell .cell-label .req { color: var(--red); margin-right: 6px; }
.cell .cell-value { flex: 1; color: #333; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cell .cell-value.left { justify-content: flex-start; }
.cell .cell-value input { flex: 1; font-size: 28px; color: #333; }
.cell .cell-value input::placeholder { color: #b3b3b3; }
.cell .placeholder { color: #b3b3b3; }
.cell .arrow { width: 24px; height: 24px; flex-shrink: 0; }

/* ====== 详情页底部操作栏 ====== */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: 730px; margin: 0 auto;
  height: 120px; background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: center;
  padding: 0 20px;
}
.bottom-bar .bb-icons { display: flex; align-items: center; gap: 34px; padding: 0 20px; }
.bottom-bar .bb-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 20px; color: #333; }
.bottom-bar .bb-icon svg { width: 44px; height: 44px; }

/* ====== 悬浮按钮 ====== */
.fab {
  position: fixed; z-index: 40;
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
}
.fab svg { width: 44px; height: 44px; }

/* ====== 页面滚动容器 ====== */
.scroll { padding-bottom: 140px; }

/* ====== 分割线标题(图文详情) ====== */
.divider-title {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 45px 0; color: #333; font-size: 30px;
}
.divider-title::before, .divider-title::after {
  content: ""; width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, #ddd);
}
.divider-title::after { background: linear-gradient(90deg, #ddd, transparent); }

/* Detail headers use the same back control outside the navigation container. */
.detail-header > .nav-back.circle {
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 21;
}
.detail-header > .nav-back.circle svg { width: 32px; height: 32px; }
.bottom-bar .bb-icons { flex-shrink: 0; }
.bottom-bar .bb-actions, .bottom-bar .btn-disabled { min-width: 0; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
@media (min-width: 731px) {
  .page .fab { right: calc((100vw - 730px) / 2 + 24px); }
}
