/* ============================================================
   智惠云咖 · 野鸭塘河谷  H5
   深绿调 · 移动端优先 · 投屏稳定
   ============================================================ */

:root {
  --c-primary:        #1F4D32;
  --c-primary-2:      #2E6B47;
  --c-primary-3:      #3D7A4F;
  --c-primary-dark:   #0E2D1A;
  --c-mint:           #A8C7A1;
  --c-mint-soft:      #D6E5CD;
  --c-cream:          #F5F1E8;
  --c-paper:          #FAF6EC;
  --c-paper-2:        #FFFFFF;
  --c-gold:           #C9A96E;
  --c-gold-deep:      #A6884B;
  --c-cherry:         #C44536;
  --c-cherry-deep:    #8E2A1E;
  --c-text:           #243027;
  --c-text-2:         #4D5A52;
  --c-text-3:         #8B978F;
  --c-line:           #E5E0D2;
  --c-line-2:         #EFEBDD;
  --c-bg:             #F5F1E8;

  --c-screen-bg:      #04130D;
  --c-screen-bg2:     #0A2418;
  --c-screen-card:    rgba(15, 56, 38, 0.55);
  --c-screen-line:    rgba(168, 199, 161, 0.18);
  --c-screen-glow:    #4FCDA0;
  --c-screen-glow2:   #66E3B5;
  --c-screen-text:    #DCEDE2;
  --c-screen-text-2:  #8FB29E;

  --shadow-card:      0 6px 22px rgba(20, 50, 32, 0.10);
  --shadow-soft:      0 2px 10px rgba(20, 50, 32, 0.06);
  --shadow-deep:      0 12px 36px rgba(8, 30, 18, 0.18);

  --r-card:           14px;
  --r-pill:           999px;
  --r-chip:           8px;

  --topbar-h:         48px;
  --tabbar-h:         62px;

  --safe-top:         env(safe-area-inset-top, 0px);
  --safe-bottom:      env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ============ 整体容器：手机居中 ============ */
.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--c-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
  padding-top: calc(var(--topbar-h) + var(--safe-top));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  overflow-x: hidden;
}

/* ============ 顶部状态栏 ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--c-primary);
  color: #FFF;
  display: flex;
  align-items: center;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(8,30,18,0.18);
}
.topbar-back, .topbar-more {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #FFF;
  flex: 0 0 44px;
}
.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.topbar.translucent {
  background: linear-gradient(180deg, rgba(8,30,18,0.55), rgba(8,30,18,0));
  box-shadow: none;
}

/* ============ 底部 Tab ============ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--c-paper-2);
  border-top: 1px solid var(--c-line-2);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--c-text-3);
  position: relative;
}
.tab .tab-icon { width: 22px; height: 22px; color: currentColor; }
.tab.active { color: var(--c-primary); font-weight: 600; }
.tab-center {
  margin-top: -16px;
  font-size: 11px;
}
.tab-center-bubble {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-primary));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(31, 77, 50, 0.45);
  margin-bottom: 2px;
  border: 3px solid var(--c-paper-2);
}

/* ============ 抽屉 ============ */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer.open { pointer-events: auto; }
.drawer-mask {
  position: absolute; inset: 0;
  background: rgba(8, 30, 18, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer.open .drawer-mask { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: 80%; max-width: 320px;
  height: 100%;
  background: var(--c-paper);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { padding: 22px 20px 14px; border-bottom: 1px solid var(--c-line); }
.logo-mark { display: flex; align-items: center; gap: 12px; }
.brand-zh { font-size: 17px; font-weight: 700; color: var(--c-primary); letter-spacing: 2px; }
.brand-en { font-size: 10px; color: var(--c-text-3); letter-spacing: 3px; margin-top: 2px; }
.drawer-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-item {
  display: block;
  padding: 13px 22px;
  font-size: 14px;
  color: var(--c-text);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.drawer-item:hover { background: var(--c-mint-soft); }
.drawer-item.active {
  border-left-color: var(--c-primary);
  background: var(--c-mint-soft);
  color: var(--c-primary);
  font-weight: 600;
}
.drawer-foot {
  padding: 14px 20px;
  font-size: 11px;
  color: var(--c-text-3);
  border-top: 1px solid var(--c-line);
  text-align: center;
  letter-spacing: 1px;
}

/* ============ 页面切换 ============ */
.pages { width: 100%; }
.page {
  display: none;
  width: 100%;
  min-height: calc(100vh - var(--topbar-h) - var(--tabbar-h) - var(--safe-top) - var(--safe-bottom));
  animation: pageFadeIn .25s ease;
}
.page.active { display: block; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* 全屏数据大屏：覆盖底部Tab */
.app.is-screen { padding-bottom: 0; }
.app.is-screen .tabbar { display: none; }

/* ============ 通用组件 ============ */

/* 区块标题 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
}
.section-title .st-l {
  display: flex; align-items: baseline; gap: 8px;
}
.section-title h3 {
  font-size: 16px;
  color: var(--c-text);
  font-weight: 700;
  letter-spacing: 1px;
}
.section-title .st-en {
  font-size: 10px;
  color: var(--c-text-3);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-title .st-more {
  font-size: 12px;
  color: var(--c-primary);
}

/* 卡片 */
.card {
  background: var(--c-paper-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-pad { padding: 14px 14px 16px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--c-primary); color: #FFF; }
.btn-primary:active { background: var(--c-primary-dark); }
.btn-gold { background: var(--c-gold); color: #FFF; }
.btn-outline { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-cherry { background: var(--c-cherry); color: #FFF; }
.btn-block { display: flex; width: 100%; height: 46px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; }

/* 标签 */
.chip {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--r-chip);
  background: var(--c-mint-soft);
  color: var(--c-primary);
  font-weight: 500;
  letter-spacing: 1px;
}
.chip-gold { background: rgba(201,169,110,0.18); color: var(--c-gold-deep); }
.chip-cherry { background: rgba(196,69,54,0.12); color: var(--c-cherry); }
.chip-line { background: transparent; border: 1px solid var(--c-mint); color: var(--c-primary-2); }

/* ============ 1. 首页 ============ */
.home-hero {
  position: relative;
  height: 320px;
  margin: -48px 0 0;
  padding-top: 48px;
  overflow: hidden;
  isolation: isolate;
}
.home-hero-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 70%;
  object-fit: cover;
  z-index: 0;
}
.home-hero-overlay {
  position: absolute; top:0; left:0; right:0; bottom:30%;
  background: linear-gradient(180deg, rgba(8,30,18,0.55) 0%, rgba(8,30,18,0.15) 60%, rgba(245,241,232,1));
  z-index: 1;
}
.home-hero-content {
  padding: 28px 18px 0;
  color: #FFF;
  position: relative;
  z-index: 2;
}
.home-hero-eyebrow {
  font-size: 11px; letter-spacing: 4px;
  opacity: 0.92;
}
.home-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  margin: 8px 0 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.home-hero p {
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.home-hero-meta {
  display: flex; gap: 14px;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.92;
}
.home-hero-meta b {
  display: block; font-size: 16px; font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* 演示水印（首页 hero 右下） */
.demo-banner {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 3;
  font-size: 9px;
  letter-spacing: 1px;
  background: rgba(196, 69, 54, 0.78);
  color: #FFF;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* 首页钩子卡：1% vs 93% 反差金句 */
.hook-card {
  margin: 12px;
  padding: 16px 14px;
  background: linear-gradient(120deg, var(--c-paper-2), #FBF5E2);
  border-radius: 14px;
  border-left: 3px solid var(--c-cherry);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.hook-num {
  text-align: center;
}
.hook-num b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  font-feature-settings: "tnum";
}
.hook-num b small {
  font-size: 16px;
  color: var(--c-text-3);
  font-weight: 600;
  margin-left: 1px;
}
.hook-num span {
  display: block;
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 1px;
  margin-top: 2px;
}
.hook-num:first-child b { color: var(--c-mint); }
.hook-num:nth-child(3) b { color: var(--c-cherry); }
.hook-vs {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--c-gold-deep);
  font-weight: 700;
  background: var(--c-paper);
  padding: 4px 7px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
}
.hook-text {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.65;
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  font-weight: 500;
}

/* 大屏右上角 DEMO 标识 */
.screen-head .se-demo {
  position: absolute;
  right: 14px;
  bottom: 4px;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--c-cherry);
  background: rgba(196, 69, 54, 0.18);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(196, 69, 54, 0.40);
}

/* 首页快捷宫格 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 12px 12px;
}
.qg-item {
  background: var(--c-paper-2);
  border-radius: 12px;
  padding: 14px 6px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--c-text);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.qg-icon {
  width: 38px; height: 38px;
  margin: 0 auto 6px;
  border-radius: 10px;
  background: var(--c-mint-soft);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.qg-item.featured .qg-icon {
  background: linear-gradient(135deg, var(--c-primary-3), var(--c-primary));
  color: #FFF;
}
.qg-item .badge {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--c-cherry);
  color: #FFF;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.5;
}

/* 首页主推 banner */
.feature-banner {
  margin: 4px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  color: #FFF;
  background: var(--c-primary);
}
.feature-banner img {
  width: 100%; height: 160px;
  object-fit: cover;
  opacity: 0.9;
}
.feature-banner .fb-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,30,18,0.7) 0%, rgba(8,30,18,0.3) 60%, rgba(8,30,18,0) 100%);
}
.feature-banner .fb-content {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  max-width: 60%;
}
.feature-banner h4 {
  font-size: 17px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px;
}
.feature-banner p {
  font-size: 11px; opacity: 0.9; margin-bottom: 10px;
}

/* 首页数据条 */
.live-strip {
  margin: 14px 12px 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #FFF;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.live-strip::before {
  content: "";
  position: absolute;
  top: 12px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-screen-glow);
  box-shadow: 0 0 8px var(--c-screen-glow);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.live-strip .ls-item { text-align: center; flex: 1; }
.live-strip .ls-num {
  font-size: 17px; font-weight: 700;
  font-feature-settings: "tnum";
  letter-spacing: 1px;
}
.live-strip .ls-label {
  font-size: 10px; opacity: 0.75; letter-spacing: 1px; margin-top: 2px;
}

/* 首页新闻列表 */
.news-list { padding: 0 12px; }
.news-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.news-item:last-child { border-bottom: 0; }
.news-thumb {
  width: 88px; height: 66px;
  border-radius: 10px;
  flex: 0 0 88px;
  object-fit: cover;
}
.news-meta { flex: 1; min-width: 0; }
.news-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.news-sub { font-size: 11px; color: var(--c-text-3); }

/* ============ 1.5  AI 四段式架构图 ============ */
.arch-hero {
  padding: 18px 18px 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--c-paper-2), var(--c-paper) 60%, var(--c-mint-soft));
  position: relative;
}
.arch-hero h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: 4px;
  margin: 6px 0 6px;
}
.arch-hero p {
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.arch-canvas {
  margin: 0 4px;
  padding: 8px 0;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-block { cursor: pointer; transition: opacity 0.2s; }
.arch-block:hover { opacity: 0.88; }

.arch-detail {
  padding: 4px 12px 0;
}
.arch-card {
  display: flex;
  background: var(--c-paper-2);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.arch-bar {
  width: 4px;
  flex: 0 0 4px;
}
.arch-body {
  flex: 1;
  padding: 12px 14px;
}
.arch-body h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.arch-body p {
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.arch-link {
  font-size: 11px;
  color: var(--c-gold-deep);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============ 2. AI 认养 ============ */
.adopt-hero {
  height: 200px;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.adopt-hero img { width: 100%; height: 100%; object-fit: cover; }
.adopt-hero .ah-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,18,0.2), rgba(8,30,18,0.8));
}
.adopt-hero .ah-text {
  position: absolute; left: 18px; bottom: 16px;
  color: #FFF;
}
.adopt-hero .ah-text h2 { font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.adopt-hero .ah-text p { font-size: 12px; opacity: 0.9; margin-top: 4px; letter-spacing: 1px; }

.adopt-step {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 6px;
  font-size: 11px;
  color: var(--c-text-3);
  position: relative;
}
.adopt-step::before {
  content: "";
  position: absolute;
  left: 28px; right: 28px; top: 22px;
  height: 1px; background: var(--c-line);
  z-index: 0;
}
.adopt-step .as-i {
  flex: 1;
  text-align: center;
  position: relative; z-index: 1;
  letter-spacing: 1px;
}
.adopt-step .as-i .as-num {
  display: block;
  width: 22px; height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: var(--c-paper-2);
  border: 1px solid var(--c-line);
  font-size: 11px; font-weight: 600;
  margin: 0 auto 4px;
}
.adopt-step .as-i.done .as-num { background: var(--c-primary); color: #FFF; border-color: var(--c-primary); }
.adopt-step .as-i.cur { color: var(--c-primary); font-weight: 600; }
.adopt-step .as-i.cur .as-num { background: var(--c-gold); color: #FFF; border-color: var(--c-gold); }

.tree-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 12px 16px;
}
.tree-card {
  background: var(--c-paper-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.tree-card.selected {
  outline: 2px solid var(--c-gold);
  outline-offset: -2px;
  box-shadow: 0 0 0 4px rgba(201,169,110,0.18), var(--shadow-card);
}
.tree-card .tc-img { height: 100px; object-fit: cover; width: 100%; }
.tree-card .tc-body { padding: 10px 10px 12px; }
.tree-card .tc-name { font-size: 13px; font-weight: 600; }
.tree-card .tc-meta { font-size: 11px; color: var(--c-text-3); margin: 2px 0 6px; }
.tree-card .tc-price {
  font-size: 14px; font-weight: 700; color: var(--c-cherry);
}
.tree-card .tc-price small { font-size: 10px; font-weight: 400; color: var(--c-text-3); margin-left: 2px; }
.tree-card .tc-status {
  position: absolute; top: 8px; right: 8px;
  background: rgba(31,77,50,0.85); color: #FFF;
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  letter-spacing: 1px;
}
.tree-card .tc-status.few { background: rgba(196,69,54,0.85); }

/* 认养底部行动栏 */
.action-bar {
  position: sticky;
  bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--c-paper-2);
  border-top: 1px solid var(--c-line);
}
.action-bar .ab-meta { flex: 1; font-size: 12px; color: var(--c-text-2); }
.action-bar .ab-meta b { color: var(--c-cherry); font-size: 16px; }

/* 订阅 -- 形态说明 */
.sub-note {
  font-size: 11px;
  color: var(--c-text-3);
  background: var(--c-paper);
  padding: 8px 10px;
  border-radius: 6px;
  margin: 0 0 10px;
  line-height: 1.6;
  border-left: 2px solid var(--c-gold);
}

/* 认养权益清单 */
.adopt-rights {
  margin: 4px 0 12px;
  padding: 4px 0 0;
}
.adopt-rights li {
  display: flex;
  flex-direction: column;
  padding: 8px 0 8px 18px;
  border-bottom: 1px dashed var(--c-line);
  position: relative;
  font-size: 12px;
}
.adopt-rights li:last-child { border-bottom: 0; }
.adopt-rights li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}
.adopt-rights li b {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
}
.adopt-rights li span {
  font-size: 11px;
  color: var(--c-text-3);
  line-height: 1.55;
}

/* AI 认养结算弹层 */
.adopt-confirm {
  margin: 12px;
  background: var(--c-paper-2);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.adopt-confirm h4 { font-size: 15px; margin-bottom: 10px; letter-spacing: 1px; }
.adopt-confirm .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--c-line);
}
.adopt-confirm .row:last-of-type { border-bottom: 0; }
.adopt-confirm .row b { color: var(--c-cherry); font-weight: 700; }
.adopt-confirm .total {
  display: flex; justify-content: space-between;
  padding-top: 10px;
  font-size: 14px;
}
.adopt-confirm .total b { font-size: 20px; color: var(--c-cherry); }

/* ============ 3. 我的认养 / 成长日记 ============ */
.mytree-card {
  margin: 12px;
  background: linear-gradient(135deg, #1F4D32 0%, #2E6B47 60%, #3D7A4F 100%);
  border-radius: 16px;
  color: #FFF;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 30px rgba(20, 50, 32, 0.25);
  position: relative;
  overflow: hidden;
}
.mytree-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(168,199,161,0.35), transparent 70%);
  border-radius: 50%;
}
.mytree-head { display: flex; align-items: center; justify-content: space-between; }
.mytree-head .id-tag {
  background: rgba(255,255,255,0.18);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px; letter-spacing: 1px;
}
.mytree-name { font-size: 18px; font-weight: 800; letter-spacing: 2px; margin: 8px 0 2px; }
.mytree-loc { font-size: 11px; opacity: 0.85; letter-spacing: 1px; }

.tree-canvas {
  height: 220px;
  margin: 12px -4px 6px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tree-canvas svg { max-height: 100%; }
.tree-stage-info {
  display: flex; justify-content: space-between;
  padding: 10px 4px 4px;
  font-size: 11px;
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}
.tree-stage-info .si-it { text-align: center; flex: 1; }
.tree-stage-info b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tree-stage-info span { opacity: 0.8; font-size: 10px; letter-spacing: 1px; }

.growth-bar {
  margin-top: 10px;
}
.growth-bar .gb-label {
  display: flex; justify-content: space-between;
  font-size: 11px; opacity: 0.85;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.growth-bar .gb-track {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.growth-bar .gb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-mint), var(--c-gold));
  border-radius: 3px;
  transition: width .8s ease;
}
.growth-bar .gb-stages {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* 成长日记 */
.diary-list { padding: 0 12px 16px; }
.diary-item {
  background: var(--c-paper-2);
  border-radius: 12px;
  padding: 12px 14px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.diary-date {
  font-size: 11px;
  color: var(--c-gold-deep);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.diary-item h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-text);
}
.diary-item p { font-size: 12px; color: var(--c-text-2); line-height: 1.65; }
.diary-item .diary-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  background: var(--c-mint-soft);
  color: var(--c-primary);
  padding: 2px 6px;
  border-radius: 4px;
}
.diary-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.diary-photos img { aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; }

.timeline-mark {
  position: absolute;
  left: -6px; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-bg);
}

/* ============ 4. 精品豆商城 ============ */
.shop-banner {
  margin: 0;
  position: relative;
  height: 160px;
  overflow: hidden;
}
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-banner .sb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,18,0.0) 50%, rgba(8,30,18,0.85));
}
.shop-banner .sb-text {
  position: absolute; left: 16px; bottom: 14px;
  color: #FFF;
}
.shop-banner h2 { font-size: 20px; font-weight: 800; letter-spacing: 3px; }
.shop-banner p { font-size: 11px; opacity: 0.9; letter-spacing: 1px; margin-top: 2px; }

.shop-cats {
  display: flex;
  gap: 18px;
  padding: 12px 16px 6px;
  font-size: 13px;
  overflow-x: auto;
}
.shop-cat {
  white-space: nowrap;
  color: var(--c-text-2);
  padding-bottom: 6px;
  position: relative;
}
.shop-cat.active {
  color: var(--c-primary);
  font-weight: 700;
}
.shop-cat.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
}

.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 12px 16px;
}
.prod-card {
  background: var(--c-paper-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.prod-card .pc-img { height: 140px; width: 100%; object-fit: cover; }
.prod-card .pc-body { padding: 8px 10px 12px; }
.prod-card .pc-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.prod-card .pc-tag { font-size: 10px; color: var(--c-gold-deep); letter-spacing: 1px; margin-top: 2px; }
.prod-card .pc-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 8px;
}
.prod-card .pc-price { font-size: 16px; font-weight: 700; color: var(--c-cherry); }
.prod-card .pc-price small { font-size: 10px; color: var(--c-text-3); margin-left: 2px; font-weight: 400; }
.prod-card .pc-cart {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.prod-card .pc-corner {
  position: absolute; top: 8px; left: 8px;
  background: var(--c-cherry);
  color: #FFF;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* 订阅卡 */
.subscribe-card {
  margin: 8px 12px 16px;
  background: linear-gradient(120deg, var(--c-paper-2), #FFFCF1);
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid var(--c-gold);
  position: relative;
  overflow: hidden;
}
.subscribe-card::before {
  content: "月订阅";
  position: absolute;
  top: 0; right: 0;
  background: var(--c-gold);
  color: #FFF;
  font-size: 10px; letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 0 0 0 8px;
}
.subscribe-card h4 { font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.subscribe-card p { font-size: 12px; color: var(--c-text-2); margin-bottom: 12px; }
.subscribe-options {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.subscribe-options .so {
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  position: relative;
}
.subscribe-options .so.active {
  border-color: var(--c-gold);
  background: rgba(201,169,110,0.10);
  color: var(--c-gold-deep);
}
.subscribe-options .so .so-price {
  font-size: 16px; font-weight: 700; color: var(--c-text);
  margin: 4px 0;
}
.subscribe-options .so.active .so-price { color: var(--c-cherry); }
.subscribe-options .so .so-tip {
  font-size: 9px; color: var(--c-text-3); letter-spacing: 1px;
}

/* ============ 5. 研学预约 ============ */
.study-hero {
  position: relative;
  height: 180px;
  margin: 0;
  overflow: hidden;
}
.study-hero img { width: 100%; height: 100%; object-fit: cover; }
.study-hero .so {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,18,0.1), rgba(8,30,18,0.8));
}
.study-hero .stx {
  position: absolute; left: 16px; bottom: 14px;
  color: #FFF;
}
.study-hero h2 { font-size: 20px; font-weight: 800; letter-spacing: 3px; }
.study-hero p { font-size: 11px; opacity: 0.9; letter-spacing: 1px; margin-top: 2px; }

.course-card {
  margin: 12px;
  background: var(--c-paper-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.course-card .cc-cover { height: 140px; width: 100%; object-fit: cover; }
.course-card .cc-body { padding: 14px; }
.course-card .cc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.course-card .cc-head h4 { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.course-card .cc-head .cc-level {
  font-size: 10px;
  background: var(--c-mint-soft);
  color: var(--c-primary);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.course-card .cc-head .cc-level.lv2 { background: rgba(201,169,110,0.18); color: var(--c-gold-deep); }
.course-card .cc-head .cc-level.lv3 { background: rgba(196,69,54,0.12); color: var(--c-cherry); }
.course-card .cc-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 11px; color: var(--c-text-3);
  margin-bottom: 8px;
}
.course-card .cc-meta span { display: inline-flex; align-items: center; gap: 3px; }
.course-card .cc-desc { font-size: 12px; color: var(--c-text-2); line-height: 1.65; margin-bottom: 10px; }
.course-card .cc-foot {
  display: flex; align-items: center; justify-content: space-between;
}
.course-card .cc-price { font-size: 18px; font-weight: 700; color: var(--c-cherry); }
.course-card .cc-price small { font-size: 11px; color: var(--c-text-3); font-weight: 400; }

/* 预约日历 */
.calendar {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 6px 12px;
  font-size: 11px;
  text-align: center;
}
.calendar .cd-h { color: var(--c-text-3); padding: 6px 0; font-size: 10px; letter-spacing: 1px; }
.calendar .cd-d {
  padding: 8px 0;
  border-radius: 6px;
  background: var(--c-paper-2);
  position: relative;
}
.calendar .cd-d.dim { color: var(--c-text-3); background: transparent; }
.calendar .cd-d.full { background: rgba(196,69,54,0.10); color: var(--c-cherry); }
.calendar .cd-d.has::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
}
.calendar .cd-d.sel { background: var(--c-primary); color: #FFF; font-weight: 700; }

/* ============ 6. 民宿 / 营地 ============ */
.stay-tabs {
  display: flex;
  border-bottom: 1px solid var(--c-line);
  margin: 0 12px;
  padding-top: 6px;
}
.stay-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--c-text-3);
  position: relative;
  letter-spacing: 1px;
}
.stay-tab.active {
  color: var(--c-primary);
  font-weight: 700;
}
.stay-tab.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 26px; height: 2px;
  background: var(--c-gold);
}

.stay-card {
  margin: 12px;
  background: var(--c-paper-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stay-card img { width: 100%; height: 180px; object-fit: cover; }
.stay-card .scb { padding: 14px; }
.stay-card .scb h4 { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.stay-card .scb .sub { font-size: 11px; color: var(--c-text-3); margin: 3px 0 8px; letter-spacing: 1px; }
.stay-card .scb p { font-size: 12px; color: var(--c-text-2); line-height: 1.65; margin-bottom: 10px; }
.stay-card .scb .feats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.stay-card .scb .foot {
  display: flex; align-items: baseline; justify-content: space-between;
}
.stay-card .scb .price { font-size: 20px; font-weight: 700; color: var(--c-cherry); }
.stay-card .scb .price small { font-size: 11px; color: var(--c-text-3); font-weight: 400; margin-left: 2px; }

/* ============ 7. AI 导览 / 8. AI 客服 ============ */
.chat-screen {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h) - var(--tabbar-h) - var(--safe-top) - var(--safe-bottom));
  background: var(--c-bg);
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--c-paper-2);
  border-bottom: 1px solid var(--c-line);
}
.chat-head .ch-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-3), var(--c-primary));
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  position: relative;
  font-size: 11px;
  letter-spacing: 1px;
}
.chat-head .ch-avatar::after {
  content: "";
  position: absolute;
  right: 1px; bottom: 1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-screen-glow);
  border: 2px solid var(--c-paper-2);
}
.chat-head .ch-meta { flex: 1; }
.chat-head .ch-name { font-size: 14px; font-weight: 700; }
.chat-head .ch-desc {
  font-size: 11px; color: var(--c-screen-glow);
  display: flex; align-items: center; gap: 4px;
  letter-spacing: 1px;
  margin-top: 1px;
}
.chat-head .ch-desc::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-screen-glow);
  animation: livePulse 1.6s infinite;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg { display: flex; gap: 8px; max-width: 90%; }
.msg.bot { align-self: flex-start; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .ms-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex: 0 0 30px;
  background: var(--c-mint-soft);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.msg.me .ms-av { background: var(--c-gold); color: #FFF; }
.msg .ms-bubble {
  background: var(--c-paper-2);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: var(--shadow-soft);
  border-top-left-radius: 4px;
}
.msg.me .ms-bubble {
  background: var(--c-primary);
  color: #FFF;
  border-top-left-radius: 12px;
  border-top-right-radius: 4px;
}
.msg .ms-bubble .ms-card {
  margin-top: 8px;
  padding: 10px;
  background: var(--c-paper);
  border-radius: 8px;
  border: 1px solid var(--c-line);
}
.msg .ms-bubble .ms-card h6 { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--c-primary); }
.msg .ms-bubble .ms-card p { font-size: 11px; color: var(--c-text-2); }
.chat-quickbar {
  padding: 8px 12px 4px;
  background: var(--c-paper-2);
  border-top: 1px solid var(--c-line);
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 8px;
}
.chat-q {
  flex: 0 0 auto;
  font-size: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  background: var(--c-paper);
  color: var(--c-text-2);
  cursor: pointer;
}
.chat-q:active { background: var(--c-mint-soft); border-color: var(--c-mint); color: var(--c-primary); }
.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 12px;
  background: var(--c-paper-2);
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  font-size: 13px;
  background: var(--c-paper);
  color: var(--c-text);
  outline: none;
}
.chat-input button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
}

/* AI 导览特殊：场景切换tab */
.guide-scene {
  display: flex; gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--c-paper-2);
  border-bottom: 1px solid var(--c-line);
}
.scene-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 12px;
  white-space: nowrap;
  color: var(--c-text-2);
  background: var(--c-paper);
}
.scene-chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFF;
  font-weight: 600;
}

/* ============ 9 / 10. 数据大屏 ============ */
.screen {
  background: linear-gradient(135deg, var(--c-screen-bg) 0%, var(--c-screen-bg2) 100%);
  color: var(--c-screen-text);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,199,161,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,199,161,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.screen-head {
  padding: 16px 18px 6px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.screen-head h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 6px;
  background: linear-gradient(90deg, var(--c-screen-glow), var(--c-mint), var(--c-screen-glow2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.screen-head .se-en {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--c-screen-text-2);
  margin-top: 4px;
  text-transform: uppercase;
}
.screen-head .se-time {
  position: absolute; right: 14px; top: 16px;
  font-size: 10px; color: var(--c-screen-text-2);
  letter-spacing: 1px;
  font-feature-settings: "tnum";
}
.screen-head .se-status {
  position: absolute; left: 14px; top: 16px;
  font-size: 10px; color: var(--c-screen-glow);
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 4px;
}
.screen-head .se-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-screen-glow);
  box-shadow: 0 0 6px var(--c-screen-glow);
  animation: livePulse 1.6s infinite;
}
.screen-section {
  padding: 8px 12px 0;
  position: relative;
  z-index: 1;
}
.s-card {
  background: var(--c-screen-card);
  border: 1px solid var(--c-screen-line);
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.s-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 14px; height: 1px;
  background: var(--c-screen-glow);
  box-shadow: 0 0 6px var(--c-screen-glow);
}
.s-card::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 1px; height: 14px;
  background: var(--c-screen-glow);
  box-shadow: 0 0 6px var(--c-screen-glow);
}
.s-card .s-corner-tr,
.s-card .s-corner-br,
.s-card .s-corner-bl {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--c-screen-glow);
  box-shadow: 0 0 6px rgba(79,205,160,0.4);
}
.s-card .s-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.s-card .s-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.s-card .s-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.s-card .s-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--c-screen-text);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.s-card .s-title::before {
  content: "";
  width: 3px; height: 11px;
  background: var(--c-screen-glow);
  border-radius: 2px;
}
.s-card .s-en {
  font-size: 8px;
  color: var(--c-screen-text-2);
  letter-spacing: 1.5px;
  margin-left: auto;
  text-transform: uppercase;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.kpi-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.kpi {
  background: linear-gradient(135deg, rgba(15,56,38,0.6), rgba(15,56,38,0.2));
  border: 1px solid var(--c-screen-line);
  border-radius: 6px;
  padding: 9px 10px;
  text-align: center;
}
.kpi .k-num {
  font-size: 18px;
  font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--c-screen-glow);
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(79,205,160,0.4);
  line-height: 1.1;
}
.kpi .k-num small {
  font-size: 10px; color: var(--c-screen-text-2);
  font-weight: 400; margin-left: 2px;
}
.kpi .k-label {
  font-size: 9px;
  color: var(--c-screen-text-2);
  margin-top: 4px;
  letter-spacing: 1px;
}
.kpi.warm .k-num { color: var(--c-gold); text-shadow: 0 0 8px rgba(201,169,110,0.4); }
.kpi.cherry .k-num { color: #FF7A66; text-shadow: 0 0 8px rgba(255,122,102,0.4); }

/* 进度条（大屏） */
.s-bar { margin-top: 8px; }
.s-bar .sb-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}
.s-bar .sb-row .sb-name { width: 60px; color: var(--c-screen-text-2); }
.s-bar .sb-row .sb-track {
  flex: 1;
  height: 6px;
  background: rgba(168,199,161,0.10);
  border-radius: 3px;
  overflow: hidden;
}
.s-bar .sb-row .sb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-screen-glow), var(--c-screen-glow2));
  box-shadow: 0 0 6px rgba(79,205,160,0.5);
  border-radius: 3px;
  transition: width .8s ease;
}
.s-bar .sb-row .sb-val {
  width: 44px; text-align: right;
  font-feature-settings: "tnum";
  color: var(--c-screen-glow);
  font-weight: 700;
}

/* 大屏图表容器 */
.s-chart {
  height: 140px;
  position: relative;
}
.s-chart canvas { max-width: 100%; }
.s-chart-tall { height: 180px; }

/* 滚动表 */
.s-table { font-size: 10px; }
.s-table-head, .s-table-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr 0.6fr;
  padding: 6px 4px;
  gap: 4px;
}
.s-table-head { color: var(--c-screen-text-2); border-bottom: 1px solid var(--c-screen-line); }
.s-table-row { border-bottom: 1px dashed rgba(168,199,161,0.10); }
.s-table-row:last-child { border-bottom: 0; }
.s-table-row span { letter-spacing: 0.5px; }
.s-table-row .pos { color: var(--c-screen-glow); font-feature-settings: "tnum"; }
.s-table-row .neg { color: #FF7A66; font-feature-settings: "tnum"; }

/* 大屏底部签名 */
.screen-foot {
  text-align: center;
  font-size: 9px;
  color: var(--c-screen-text-2);
  letter-spacing: 2px;
  padding: 12px 0 16px;
  position: relative;
  z-index: 1;
}

/* 大屏切换 chip */
.screen-switch {
  display: flex; gap: 6px;
  padding: 4px 12px 0;
  position: relative;
  z-index: 1;
}
.screen-switch .ssw {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 8px 0;
  border: 1px solid var(--c-screen-line);
  border-radius: 6px;
  color: var(--c-screen-text-2);
  letter-spacing: 1px;
}
.screen-switch .ssw.active {
  background: rgba(79,205,160,0.12);
  border-color: var(--c-screen-glow);
  color: var(--c-screen-glow);
  font-weight: 700;
}

/* 大屏退出按钮 */
.screen-exit {
  position: fixed;
  top: 12px; right: 12px;
  z-index: 200;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(168,199,161,0.20);
  color: var(--c-screen-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ============ 11. 庄园主管理后台 ============ */
.admin {
  background: #1A2B22;
  color: #E5EFE7;
  min-height: 100vh;
  padding: 0;
}
.admin-head {
  padding: 16px;
  background: linear-gradient(135deg, #0E2D1A, #1F4D32);
  display: flex; align-items: center; gap: 12px;
}
.admin-head .ah-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-gold);
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.admin-head .ah-meta { flex: 1; }
.admin-head .ah-name { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.admin-head .ah-role { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; letter-spacing: 1px; }
.admin-head .ah-bell {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #FFF;
  position: relative;
}
.admin-head .ah-bell .dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-cherry);
}
.admin-overview {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}
.admin-card {
  background: linear-gradient(135deg, #243E32, #1F352B);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.admin-card .ac-label { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.admin-card .ac-val {
  font-size: 22px; font-weight: 700;
  margin: 4px 0 4px;
  color: var(--c-screen-glow);
  font-feature-settings: "tnum";
}
.admin-card .ac-trend { font-size: 11px; color: var(--c-mint); }
.admin-card .ac-trend.down { color: #FF8E78; }

.admin-section { padding: 4px 12px 12px; }
.admin-section h4 {
  font-size: 13px;
  letter-spacing: 2px;
  margin: 8px 0 8px;
  color: #E5EFE7;
  display: flex; align-items: center; gap: 8px;
}
.admin-section h4::before {
  content: "";
  width: 3px; height: 12px;
  background: var(--c-screen-glow);
  border-radius: 2px;
}

.admin-action-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.admin-act {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px 4px 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
}
.admin-act .aa-icon {
  width: 32px; height: 32px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: rgba(168,199,161,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-mint);
}
.admin-act .aa-icon.cherry { color: #FF8E78; background: rgba(255,142,120,0.10); }
.admin-act .aa-icon.gold { color: var(--c-gold); background: rgba(201,169,110,0.10); }

.admin-list {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 0 12px;
}
.admin-list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}
.admin-list-row:last-child { border-bottom: 0; }
.admin-list-row .alr-i { flex: 1; }
.admin-list-row .alr-i b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.admin-list-row .alr-i span { font-size: 11px; color: rgba(255,255,255,0.55); }
.admin-list-row .alr-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168,199,161,0.18);
  color: var(--c-mint);
  letter-spacing: 1px;
}
.admin-list-row .alr-tag.warn { background: rgba(255,142,120,0.18); color: #FFAE9B; }
.admin-list-row .alr-tag.gold { background: rgba(201,169,110,0.18); color: var(--c-gold); }

/* ============ 12. 个人中心 ============ */
.me-head {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary-2));
  padding: 22px 18px 50px;
  color: #FFF;
  position: relative;
}
.me-user {
  display: flex; align-items: center; gap: 14px;
}
.me-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-gold);
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.4);
}
.me-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.me-id { font-size: 11px; opacity: 0.75; letter-spacing: 1px; margin-top: 4px; }
.me-vip {
  display: inline-block;
  margin-top: 6px;
  background: var(--c-gold);
  color: #FFF;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 1px;
}

.me-stats {
  margin: -38px 12px 12px;
  background: var(--c-paper-2);
  border-radius: 14px;
  padding: 14px 4px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.me-stat { text-align: center; }
.me-stat b {
  display: block;
  font-size: 18px; font-weight: 700;
  color: var(--c-primary);
  font-feature-settings: "tnum";
}
.me-stat span { font-size: 11px; color: var(--c-text-3); letter-spacing: 1px; margin-top: 2px; }

.me-block {
  margin: 12px;
  background: var(--c-paper-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.me-block-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  cursor: pointer;
}
.me-block-row:last-child { border-bottom: 0; }
.me-block-row .mbr-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-mint-soft);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.me-block-row .mbr-name { flex: 1; }
.me-block-row .mbr-arrow { color: var(--c-text-3); font-size: 16px; }
.me-block-row .mbr-tag {
  font-size: 10px; color: var(--c-cherry);
  background: rgba(196,69,54,0.10);
  padding: 2px 6px; border-radius: 4px;
}

/* 横向滚动列表（订单/认养） */
.me-orders {
  overflow-x: auto;
  display: flex;
  gap: 10px;
  padding: 0 12px 4px;
}
.me-orders .mo {
  flex: 0 0 220px;
  background: var(--c-paper-2);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 8px;
}
.me-orders .mo img {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
}
.me-orders .mo .mo-i { flex: 1; min-width: 0; font-size: 11px; }
.me-orders .mo .mo-i b { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden;}
.me-orders .mo .mo-i .price { color: var(--c-cherry); font-weight: 700; font-size: 13px; margin-top: 4px; }
.me-orders .mo .mo-i .stat { color: var(--c-primary); font-size: 10px; }

/* 答辩演示模式：右下浮动按钮 */
.demo-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--tabbar-h) + 14px + var(--safe-bottom));
  z-index: 250;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-3), var(--c-primary));
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(20, 50, 32, 0.35), 0 0 0 3px var(--c-paper-2);
  border: 1px solid var(--c-gold);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.demo-fab:hover { transform: scale(1.06); }
.demo-fab.active {
  background: linear-gradient(135deg, var(--c-cherry), var(--c-cherry-deep));
  border-color: var(--c-gold);
}
.demo-fab.active span::before {
  content: "退出";
}
.demo-fab.active span {
  color: transparent;
  font-size: 0;
}
/* 大屏页面时浮动按钮放屏幕内（无 tabbar） */
.app.is-screen ~ .demo-fab {
  bottom: 14px;
}

/* 演示模式浮卡 */
.demo-coach {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  bottom: calc(var(--tabbar-h) + 80px + var(--safe-bottom));
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 240;
  background: linear-gradient(135deg, #0E2D1A 0%, #1F4D32 100%);
  color: #FFF;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 36px rgba(8, 30, 18, 0.45);
  border: 1px solid var(--c-gold);
  transition: transform 0.32s ease, opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.demo-coach.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(168, 199, 161, 0.30);
}
.dc-step {
  background: var(--c-gold);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 1px;
  font-feature-settings: "tnum";
  flex: 0 0 auto;
}
.dc-title {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.dc-close {
  width: 22px; height: 22px;
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  line-height: 1;
}
.dc-close:hover { color: #FFF; }
.dc-body {
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #E5EFE7;
}
.dc-foot {
  display: flex;
  gap: 10px;
  padding-top: 6px;
}
.dc-prev, .dc-next {
  flex: 1;
  height: 36px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.dc-prev {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(168, 199, 161, 0.30);
}
.dc-prev:disabled { opacity: 0.35; cursor: not-allowed; }
.dc-next {
  background: var(--c-gold);
  color: #FFF;
}
.dc-next:active { background: var(--c-gold-deep); }

/* 演示版 toast */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(8, 30, 18, 0.92);
  color: #FFF;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: 1px;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 1px solid var(--c-gold);
}
.demo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Util ============ */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.text-c { text-align: center; }
.muted { color: var(--c-text-3); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.bold { font-weight: 700; }

/* 投屏适配：当宽度足够时居中显示更大手机外框 */
@media (min-width: 540px) {
  body {
    background: #2C2C2C;
    background-image: radial-gradient(circle at 50% 30%, #3A3A3A, #1A1A1A);
    min-height: 100vh;
    padding: 16px 0;
  }
  .app {
    border-radius: 24px;
    overflow: hidden;
    height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 0 48px rgba(0,0,0,0.5);
  }
  .topbar { border-radius: 24px 24px 0 0; max-width: 480px; }
  .tabbar { border-radius: 0 0 24px 24px; max-width: 480px; }

  /* 数据大屏 / 庄园主后台：投屏时全屏铺满，不再居中收窄 */
  .app.is-screen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
  }
  .app.is-screen .topbar { display: none; }
  .app.is-screen .pages { width: 100%; }
  .app.is-screen .screen,
  .app.is-screen .admin {
    min-height: 100vh;
    width: 100%;
  }
  /* 大屏在宽屏下采用横向布局：KPI + 双图表并排 */
  .app.is-screen .screen-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 24px 0;
  }
  .app.is-screen .kpi-grid.c4 { grid-template-columns: repeat(4, 1fr); }
  .app.is-screen .kpi .k-num { font-size: 28px; }
  .app.is-screen .kpi .k-label { font-size: 11px; }
  .app.is-screen .s-chart { height: 200px; }
  .app.is-screen .s-card .s-title { font-size: 13px; }
}

/* 投屏宽屏下：数据大屏分两栏 */
@media (min-width: 1024px) {
  .app.is-screen .screen-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .app.is-screen .screen-section > .kpi-grid.c4 { grid-column: 1 / -1; }
  .app.is-screen .s-chart { height: 220px; }
  .app.is-screen .admin-overview { grid-template-columns: repeat(4, 1fr); }
  .app.is-screen .admin-action-grid { grid-template-columns: repeat(8, 1fr); }
}
