/* ============================================================
   孕安食 · 小程序 UI 设计稿
   配色：蜜桃珊瑚主色 + 鼠尾草绿 / 雾霾蓝辅色 + 奶油米白底
   ============================================================ */

:root {
  /* —— 品牌色 —— */
  --peach:      #FF9B87;
  --peach-deep: #F0745C;
  --peach-soft: #FFD8CE;
  --peach-mist: #FFF0EB;
  --sage:       #8FBF9F;
  --sage-soft:  #E3F0E7;
  --mist:       #A8C8DC;
  --mist-soft:  #E7F1F7;
  --lilac:      #C9B8DE;

  /* —— 中性色 —— */
  --cream:   #FFF9F5;
  --cream-2: #FDF2EC;
  --card:    #FFFFFF;
  --ink:     #3B3230;
  --ink-2:   #6D5F5B;
  --ink-3:   #A2938E;
  --ink-4:   #C8BAB5;
  --line:    #F2E7E1;
  --line-2:  #EADDD6;

  /* —— 四档结论语义色 —— */
  --l1: #3E9E70;  --l1-bg: #E9F6EF;  --l1-line: #C3E5D4;
  --l2: #C98A10;  --l2-bg: #FDF3DF;  --l2-line: #F0DCA9;
  --l3: #DB6B33;  --l3-bg: #FCEDE3;  --l3-line: #F4D2BC;
  --l4: #D8504E;  --l4-bg: #FCEAEA;  --l4-line: #F3C6C5;

  /* —— 阴影：柔和、多层，母婴产品忌硬阴影 —— */
  --sh-1: 0 1px 2px rgba(157,116,102,.04), 0 2px 8px rgba(157,116,102,.05);
  --sh-2: 0 2px 6px rgba(157,116,102,.05), 0 8px 24px rgba(157,116,102,.07);
  --sh-3: 0 4px 12px rgba(157,116,102,.07), 0 16px 40px rgba(157,116,102,.10);
  --sh-peach: 0 4px 14px rgba(240,116,92,.24), 0 2px 5px rgba(240,116,92,.16);

  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 26px;
  --ff: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 背景装饰：柔和光斑，营造温柔氛围 */
body::before, body::after {
  content: ''; position: fixed; border-radius: 50%; z-index: 0;
  filter: blur(80px); pointer-events: none;
}
body::before {
  width: 620px; height: 620px; top: -240px; left: -180px;
  background: radial-gradient(circle, rgba(255,155,135,.28), transparent 68%);
}
body::after {
  width: 700px; height: 700px; bottom: -300px; right: -220px;
  background: radial-gradient(circle, rgba(168,200,220,.30), transparent 68%);
}

/* ==========================================================
   页面布局
   ========================================================== */
.stage {
  position: relative; z-index: 1;
  max-width: 1360px; margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: start;
}

/* ---------- 左侧：设计说明 ---------- */
.brief { padding-top: 8px; }

.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  background: linear-gradient(140deg, #FFB9A6, var(--peach-deep));
  box-shadow: var(--sh-peach);
  display: grid; place-items: center; font-size: 26px;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.42), transparent 52%);
}
.logo-txt b { display: block; font-size: 21px; letter-spacing: .5px; }
.logo-txt span { font-size: 12.5px; color: var(--ink-3); letter-spacing: 2.2px; }

.brief h1 {
  font-size: 46px; line-height: 1.28; letter-spacing: -.5px;
  font-weight: 800; margin-bottom: 20px;
}
.brief h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--peach-deep), #E88A6E 55%, var(--peach));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brief h1 .u {
  position: relative; white-space: nowrap;
}
.brief h1 .u::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 11px;
  background: linear-gradient(90deg, var(--peach-soft), rgba(255,216,206,.25));
  border-radius: 6px; z-index: -1;
}
.brief .lead {
  font-size: 15.5px; color: var(--ink-2); max-width: 560px; margin-bottom: 34px;
}

/* 配色说明 */
.sec-t {
  font-size: 12px; letter-spacing: 2.4px; color: var(--ink-3);
  font-weight: 700; margin-bottom: 14px; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
}
.sec-t::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--peach); }

.palette { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.sw {
  width: 88px; border-radius: var(--r-m); overflow: hidden;
  background: var(--card); box-shadow: var(--sh-1); border: 1px solid var(--line);
}
.sw i { display: block; height: 50px; }
.sw p { font-size: 10.5px; padding: 7px 8px 8px; line-height: 1.35; color: var(--ink-2); }
.sw p b { display: block; font-size: 11.5px; color: var(--ink); }

/* 功能清单 */
.f-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 640px; margin-bottom: 34px; }
.f-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 12px 14px; display: flex; gap: 11px; align-items: flex-start;
  box-shadow: var(--sh-1); transition: .22s cubic-bezier(.34,1.56,.64,1);
}
.f-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--peach-soft); }
.f-item i {
  flex: none; width: 24px; height: 24px; border-radius: 8px; font-style: normal;
  background: var(--peach-mist); color: var(--peach-deep);
  font-size: 11.5px; font-weight: 800; display: grid; place-items: center; margin-top: 1px;
}
.f-item b { display: block; font-size: 13.5px; font-weight: 650; }
.f-item span { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }

.note {
  background: linear-gradient(135deg, #FFF6F2, #FFFCFA);
  border: 1px solid var(--peach-soft); border-left: 3px solid var(--peach);
  border-radius: var(--r-m); padding: 15px 18px; max-width: 640px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
}
.note b { color: var(--peach-deep); }

/* ---------- 右侧：手机 ---------- */
.device-wrap { position: sticky; top: 44px; }
.device {
  width: 400px; height: 812px; margin: 0 auto;
  background: linear-gradient(160deg, #4A403D, #2C2523);
  border-radius: 50px; padding: 11px;
  box-shadow: 0 4px 12px rgba(90,60,50,.14), 0 30px 70px rgba(90,60,50,.26),
              inset 0 0 0 1.5px rgba(255,255,255,.10);
  position: relative;
}
.device::after { /* 侧键 */
  content: ''; position: absolute; right: -2.5px; top: 200px; width: 3px; height: 74px;
  background: linear-gradient(180deg, #5A4E4A, #352D2B); border-radius: 3px;
}
.screen {
  width: 100%; height: 100%; background: var(--cream);
  border-radius: 40px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}

/* 状态栏 */
.statusbar {
  height: 46px; flex: none; padding: 0 26px 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 650; color: var(--ink); position: relative; z-index: 30;
}
.statusbar .icons { display: flex; align-items: center; gap: 5px; }
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #1C1615; border-radius: 14px; z-index: 40;
}

/* 微信胶囊 */
.capsule {
  position: absolute; top: 52px; right: 14px; z-index: 35;
  height: 30px; width: 84px; border-radius: 16px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(12px);
  border: .5px solid rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: space-around;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.capsule .dots { display: flex; gap: 3.5px; }
.capsule .dots i { width: 4px; height: 4px; border-radius: 50%; background: #4A4240; }
.capsule .sp { width: .5px; height: 15px; background: rgba(0,0,0,.11); }
.capsule .tgt { width: 12px; height: 12px; border: 1.4px solid #4A4240; border-radius: 50%; position: relative; }
.capsule .tgt::after { content: ''; position: absolute; inset: 3.2px; border-radius: 50%; background: #4A4240; }

/* 导航栏标题（子页面） */
.navbar {
  height: 42px; flex: none; display: none; align-items: center; z-index: 34;
  padding: 0 108px 0 14px; position: relative; background: transparent;
}
.page.sub .navbar { display: flex; }
.navbar .back {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px); cursor: pointer;
  border: .5px solid rgba(0,0,0,.05); flex: none; transition: .18s;
}
.navbar .back:active { transform: scale(.9); }
.navbar .ttl { font-size: 16px; font-weight: 700; margin-left: 12px; }

/* 页面容器 */
.pages { flex: 1; position: relative; overflow: hidden; }
.page {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .3s ease, transform .32s cubic-bezier(.32,.72,0,1), visibility .3s;
}
.page.on { opacity: 1; visibility: visible; transform: none; }
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.pad { padding: 0 15px; }
.pb { padding-bottom: 24px; }

/* TabBar */
.tabbar {
  flex: none; height: 60px; display: flex; padding-bottom: 4px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px) saturate(1.6);
  border-top: .5px solid var(--line); position: relative; z-index: 20;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; color: var(--ink-4); transition: .2s; position: relative;
}
.tab span { font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.tab svg { width: 22px; height: 22px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.tab.on { color: var(--peach-deep); }
.tab.on svg { transform: translateY(-1px) scale(1.06); }
.tab.on::before {
  content: ''; position: absolute; top: 5px; width: 18px; height: 3px; border-radius: 2px;
  background: var(--peach); opacity: .9;
}

/* ==========================================================
   通用组件
   ========================================================== */
.card {
  background: var(--card); border-radius: var(--r-l); padding: 15px;
  box-shadow: var(--sh-1); border: .5px solid var(--line); margin-bottom: 12px;
}
.blk-t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.blk-t h3 { font-size: 15.5px; font-weight: 750; letter-spacing: .2px; display: flex; align-items: center; gap: 7px; }
.blk-t h3 .ic { font-size: 15px; }
.blk-t .more { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 2px; cursor: pointer; }
.blk-t .more:active { color: var(--peach-deep); }

/* 四档结论标签 */
.lv-tag {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 750;
  border: 1px solid; letter-spacing: .2px;
}
.lv-tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lv1 { color: var(--l1); background: var(--l1-bg); border-color: var(--l1-line); }
.lv2 { color: var(--l2); background: var(--l2-bg); border-color: var(--l2-line); }
.lv3 { color: var(--l3); background: var(--l3-bg); border-color: var(--l3-line); }
.lv4 { color: var(--l4); background: var(--l4-bg); border-color: var(--l4-line); }

/* 免责声明条 */
.disclaim {
  margin: 4px 0 16px; padding: 11px 13px; border-radius: var(--r-m);
  background: #FBF7F4; border: 1px dashed var(--line-2);
  font-size: 10.5px; line-height: 1.65; color: var(--ink-3); display: flex; gap: 8px;
}
.disclaim b { color: var(--ink-2); font-weight: 700; }
.disclaim .i { flex: none; font-size: 12px; }

/* 空态 */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty .e-ic { font-size: 46px; margin-bottom: 12px; opacity: .55; }
.empty p { font-size: 13px; }
.empty .e-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 5px; }

/* 按钮 */
.btn {
  height: 44px; border-radius: 22px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: var(--ff);
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  transition: .2s cubic-bezier(.34,1.56,.64,1);
}
.btn:active { transform: scale(.97); }
.btn-p { background: linear-gradient(135deg, #FFAC96, var(--peach-deep)); color: #fff; box-shadow: var(--sh-peach); }
.btn-g { background: var(--peach-mist); color: var(--peach-deep); }

/* ==========================================================
   首页
   ========================================================== */
.home-hero {
  padding: 8px 15px 20px; position: relative;
  background: linear-gradient(170deg, #FFE9E1 0%, #FFF3EC 44%, var(--cream) 100%);
}
.home-hero::before { /* 装饰圆 */
  content: ''; position: absolute; top: -46px; right: -34px; width: 168px; height: 168px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,155,135,.20), transparent 70%);
}
.greet { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 14px; position: relative; }
.greet b { font-size: 21px; font-weight: 800; letter-spacing: -.2px; }
.greet span { font-size: 11.5px; color: var(--ink-3); }

/* 孕周档案卡（功能 10） */
.week-card {
  background: linear-gradient(140deg, #FFFFFF 0%, #FFFAF7 100%);
  border-radius: var(--r-xl); padding: 16px 17px; position: relative; overflow: hidden;
  box-shadow: var(--sh-2); border: .5px solid rgba(255,216,206,.9); cursor: pointer;
  transition: .25s cubic-bezier(.34,1.56,.64,1);
}
.week-card:active { transform: scale(.985); }
.week-card::after {
  content: ''; position: absolute; right: -30px; bottom: -42px; width: 130px; height: 130px;
  border-radius: 50%; background: linear-gradient(135deg, rgba(255,216,206,.5), rgba(255,240,235,.2));
}
.wc-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 2; }
.wc-w { display: flex; align-items: baseline; gap: 3px; }
.wc-w b { font-size: 34px; font-weight: 850; letter-spacing: -1.4px; line-height: 1; color: var(--peach-deep); }
.wc-w em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--peach-deep); }
.wc-w s { text-decoration: none; font-size: 12.5px; color: var(--ink-3); margin-left: 4px; }
.wc-l { font-size: 11px; color: var(--ink-3); margin-top: 3px; letter-spacing: .3px; }
.wc-baby {
  width: 54px; height: 54px; border-radius: 18px; flex: none;
  background: linear-gradient(140deg, #FFF0E9, #FFE2D6);
  display: grid; place-items: center; font-size: 27px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.wc-size {
  position: relative; z-index: 2; margin-top: 12px; font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.wc-size b { color: var(--peach-deep); font-weight: 750; }
.wc-bar {
  position: relative; z-index: 2; margin-top: 12px;
  height: 7px; border-radius: 4px; background: #F7E9E3; overflow: hidden;
}
.wc-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FFC2AF, var(--peach-deep)); }
.wc-meta {
  position: relative; z-index: 2; display: flex; justify-content: space-between;
  margin-top: 7px; font-size: 10.5px; color: var(--ink-3);
}
.wc-meta b { color: var(--peach-deep); font-weight: 700; }

/* 搜索框（功能 1） */
.search-bar {
  margin: 15px 0 0; height: 48px; border-radius: 24px; background: var(--card);
  box-shadow: var(--sh-2); border: .5px solid rgba(255,216,206,.8);
  display: flex; align-items: center; padding: 0 6px 0 16px; gap: 9px; cursor: pointer;
  position: relative; z-index: 2; transition: .2s;
}
.search-bar:active { transform: scale(.99); }
.search-bar .ph { flex: 1; font-size: 14px; color: var(--ink-4); }
.search-bar .sp { width: .5px; height: 20px; background: var(--line-2); }
.search-bar .qi {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--peach-deep); background: var(--peach-mist); transition: .2s;
}
.search-bar .qi:active { transform: scale(.88); }

/* 四档图例（功能 2） */
.legend {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 14px 0 4px;
  position: relative; z-index: 2;
}
.lg {
  border-radius: var(--r-m); padding: 8px 4px; text-align: center; border: 1px solid;
  transition: .22s cubic-bezier(.34,1.56,.64,1); cursor: pointer;
}
.lg:active { transform: translateY(-2px) scale(.97); }
.lg .d { font-size: 13px; line-height: 1; }
.lg b { display: block; font-size: 11.5px; font-weight: 750; margin-top: 4px; }
.lg span { display: block; font-size: 9px; opacity: .78; margin-top: 1px; }

/* 快捷入口（功能 6/7/8/5） */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.qk {
  background: var(--card); border-radius: var(--r-m); padding: 12px 4px 10px; text-align: center;
  box-shadow: var(--sh-1); border: .5px solid var(--line); cursor: pointer;
  transition: .24s cubic-bezier(.34,1.56,.64,1);
}
.qk:active { transform: translateY(-3px); box-shadow: var(--sh-2); }
.qk .qi2 {
  width: 38px; height: 38px; border-radius: 13px; margin: 0 auto 7px;
  display: grid; place-items: center; font-size: 19px;
}
.qk b { font-size: 11.5px; font-weight: 650; display: block; }

/* 热搜榜（功能 17） */
.hot-card { background: var(--card); border-radius: var(--r-l); padding: 15px 15px 8px; box-shadow: var(--sh-1); border: .5px solid var(--line); }
.hot-i {
  display: flex; align-items: center; gap: 10px; padding: 8.5px 0; cursor: pointer;
  border-bottom: .5px solid #FAF3EF;
}
.hot-i:last-child { border-bottom: none; }
.hot-i:active { opacity: .55; }
.hot-i .rk {
  width: 19px; height: 19px; border-radius: 6px; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--ink-4); background: #F8F2EE;
}
.hot-i.top1 .rk { background: linear-gradient(135deg, #FF9B87, #F0745C); color: #fff; }
.hot-i.top2 .rk { background: linear-gradient(135deg, #FFBDA8, #FF9B87); color: #fff; }
.hot-i.top3 .rk { background: linear-gradient(135deg, #FFD9C9, #FFB9A3); color: #fff; }
.hot-i .kw { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-i .hn { font-size: 10.5px; color: var(--ink-4); flex: none; }
.tr { font-size: 8.5px; padding: 1px 4px; border-radius: 4px; font-weight: 800; flex: none; letter-spacing: .3px; }
.tr.up  { color: #E0704F; background: #FDECE6; }
.tr.hot { color: #D8504E; background: #FCEAEA; }
.tr.new { color: #3E9E70; background: #E9F6EF; }

/* 分类九宫格（功能 5） */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.cg {
  background: var(--card); border-radius: var(--r-m); padding: 12px 3px 9px; text-align: center;
  box-shadow: var(--sh-1); border: .5px solid var(--line); cursor: pointer;
  transition: .24s cubic-bezier(.34,1.56,.64,1);
}
.cg:active { transform: translateY(-3px); box-shadow: var(--sh-2); }
.cg .ci { width: 36px; height: 36px; border-radius: 12px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 18px; }
.cg b { font-size: 10.5px; font-weight: 650; display: block; letter-spacing: -.2px; }

/* ==========================================================
   搜索页
   ========================================================== */
.sp-head { padding: 6px 15px 12px; }
.sp-input {
  height: 42px; border-radius: 21px; background: var(--card); box-shadow: var(--sh-1);
  border: 1.2px solid var(--peach-soft); display: flex; align-items: center;
  padding: 0 12px; gap: 8px;
}
.sp-input input {
  flex: 1; border: none; outline: none; font-size: 14px; font-family: var(--ff);
  background: transparent; color: var(--ink); min-width: 0;
}
.sp-input input::placeholder { color: var(--ink-4); }
.sp-input .clr { width: 17px; height: 17px; border-radius: 50%; background: var(--ink-4); color: #fff;
  display: grid; place-items: center; font-size: 11px; cursor: pointer; flex: none; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  padding: 5.5px 12px; border-radius: 16px; background: var(--card); border: .5px solid var(--line);
  font-size: 12px; color: var(--ink-2); cursor: pointer; transition: .2s; box-shadow: var(--sh-1);
}
.chip:active, .chip.on { background: var(--peach-mist); color: var(--peach-deep); border-color: var(--peach-soft); }

/* 结果条目 */
.res {
  background: var(--card); border-radius: var(--r-l); padding: 13px 14px; margin-bottom: 10px;
  box-shadow: var(--sh-1); border: .5px solid var(--line); cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start; transition: .22s;
  position: relative; overflow: hidden;
}
.res::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.res.b1::before { background: var(--l1); } .res.b2::before { background: var(--l2); }
.res.b3::before { background: var(--l3); } .res.b4::before { background: var(--l4); }
.res:active { transform: scale(.985); box-shadow: var(--sh-2); }
.res .ri {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-size: 23px; background: var(--cream-2);
}
.res .rb { flex: 1; min-width: 0; }
.res .rt { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.res .rt b { font-size: 15px; font-weight: 700; }
.res .rs { font-size: 11.5px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res .rm { font-size: 10px; color: var(--ink-4); margin-top: 5px; display: flex; gap: 9px; align-items: center; }
.res mark { background: transparent; color: var(--peach-deep); font-weight: 750; }

/* ==========================================================
   详情页（功能 3 / 4 / 21 / 22）
   ========================================================== */
.d-hero { padding: 4px 15px 16px; text-align: center; position: relative; }
.d-ic {
  width: 78px; height: 78px; border-radius: 28px; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 40px; box-shadow: var(--sh-2);
  border: .5px solid rgba(255,255,255,.9);
}
.d-name { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.d-alias { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* 大结论块 */
.verdict {
  border-radius: var(--r-xl); padding: 18px 17px; margin: 0 0 12px;
  border: 1.2px solid; text-align: center; position: relative; overflow: hidden;
}
.verdict::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px;
  border-radius: 50%; background: rgba(255,255,255,.42);
}
.verdict .vd { font-size: 30px; line-height: 1; margin-bottom: 8px; position: relative; }
.verdict .vt { font-size: 25px; font-weight: 850; letter-spacing: -.5px; position: relative; }
.verdict .vs { font-size: 12.5px; margin-top: 8px; line-height: 1.6; position: relative; opacity: .92; }
.verdict .vph {
  position: relative; margin-top: 12px; padding-top: 11px; border-top: 1px dashed currentColor;
  font-size: 11px; opacity: .8; letter-spacing: .3px;
}

/* 分期切换（功能 4） */
.phase-sw {
  display: flex; background: var(--card); border-radius: 15px; padding: 4px; gap: 2px;
  margin-bottom: 12px; box-shadow: var(--sh-1); border: .5px solid var(--line);
}
.ph {
  flex: 1; text-align: center; padding: 7px 2px; border-radius: 11px; cursor: pointer;
  transition: .25s cubic-bezier(.34,1.56,.64,1); position: relative;
}
.ph em { font-style: normal; font-size: 13px; display: block; line-height: 1.1; }
.ph b { font-size: 9.5px; font-weight: 650; color: var(--ink-3); display: block; margin-top: 3px; letter-spacing: -.2px; }
.ph i {
  position: absolute; top: 4px; right: 6px; width: 5px; height: 5px; border-radius: 50%;
}
.ph.on { background: linear-gradient(135deg, #FFF1EC, #FFE6DD); box-shadow: inset 0 0 0 1px rgba(255,216,206,.9); }
.ph.on b { color: var(--peach-deep); font-weight: 750; }

/* 详情信息块 */
.info-b { margin-bottom: 12px; }
.info-h { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.info-h .bar { width: 3px; height: 14px; border-radius: 2px; background: var(--peach); }
.info-h b { font-size: 14.5px; font-weight: 750; }
.info-h .cnt { font-size: 10.5px; color: var(--ink-4); margin-left: auto; }
.para { font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.para p { margin-bottom: 9px; }
.para p:last-child { margin-bottom: 0; }
.para strong { color: var(--ink); font-weight: 700; }

.amount-box {
  background: linear-gradient(135deg, #FFF6F2, #FFFBF9); border: 1px solid var(--peach-soft);
  border-radius: var(--r-m); padding: 13px 14px; display: flex; gap: 11px; align-items: center;
}
.amount-box .ab-i { font-size: 21px; flex: none; }
.amount-box .ab-t { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 2px; }
.amount-box .ab-v { font-size: 13.5px; font-weight: 700; color: var(--peach-deep); line-height: 1.45; }

.tip-l { list-style: none; }
.tip-l li {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6; padding: 7px 0 7px 22px;
  position: relative; border-bottom: .5px solid #FAF3EF;
}
.tip-l li:last-child { border-bottom: none; }
.tip-l li::before {
  content: '✓'; position: absolute; left: 2px; top: 7px; color: var(--sage);
  font-size: 12px; font-weight: 800;
}

.alt-row { display: flex; gap: 9px; }
.alt {
  flex: 1; background: var(--sage-soft); border-radius: var(--r-m); padding: 11px 5px;
  text-align: center; border: .5px solid #CFE6D7; cursor: pointer; transition: .2s;
}
.alt:active { transform: scale(.95); }
.alt .ai { font-size: 22px; display: block; margin-bottom: 4px; }
.alt b { font-size: 11px; font-weight: 650; color: #2F7B58; }

/* 来源标注（功能 21）—— 信任的核心 */
.src-card {
  background: linear-gradient(160deg, #F6FAFC, #FCFDFE); border: 1px solid #DDEBF3;
  border-radius: var(--r-l); padding: 14px 15px;
}
.src-i {
  display: flex; gap: 9px; align-items: flex-start; padding: 8px 0;
  border-bottom: .5px dashed #DDEBF3;
}
.src-i:last-of-type { border-bottom: none; }
.src-i .sn {
  width: 17px; height: 17px; border-radius: 5px; background: #E1EFF7; color: #4C7E9B;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; flex: none; margin-top: 2px;
}
.src-i .st { flex: 1; font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.src-i .sg {
  font-size: 8.5px; padding: 1.5px 5px; border-radius: 4px; background: #E1EFF7; color: #4C7E9B;
  flex: none; font-weight: 700; margin-top: 2px;
}
.reviewer {
  margin-top: 11px; padding-top: 11px; border-top: 1px solid #E4F0F6;
  display: flex; align-items: center; gap: 9px;
}
.reviewer .rv-a {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #A8C8DC, #7FA8C4);
  color: #fff; display: grid; place-items: center; font-size: 13px; flex: none;
}
.reviewer .rv-t b { font-size: 12px; display: block; font-weight: 700; }
.reviewer .rv-t span { font-size: 10px; color: var(--ink-3); }
.reviewer .rv-d { margin-left: auto; font-size: 9.5px; color: var(--ink-4); text-align: right; }

/* 警示条 */
.warn-bar {
  background: #FFF6E9; border: 1px solid #F5DFB4; border-radius: var(--r-m);
  padding: 11px 13px; display: flex; gap: 9px; font-size: 11.5px; color: #8A6420;
  line-height: 1.6; margin-bottom: 12px;
}
.warn-bar .wi { flex: none; font-size: 14px; }

/* 详情底部操作条 */
.d-actions {
  flex: none; padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(20px);
  border-top: .5px solid var(--line); display: flex; gap: 9px; align-items: center;
}
.act-ic {
  width: 44px; height: 44px; border-radius: 15px; flex: none; background: var(--cream-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: pointer; transition: .22s cubic-bezier(.34,1.56,.64,1); border: .5px solid var(--line);
}
.act-ic:active { transform: scale(.9); }
.act-ic span { font-size: 8.5px; color: var(--ink-3); font-weight: 600; }
.act-ic.on { background: var(--peach-mist); border-color: var(--peach-soft); }
.act-ic.on span { color: var(--peach-deep); }

/* ==========================================================
   分类页（功能 5）
   ========================================================== */
.cat-body { flex: 1; display: flex; overflow: hidden; }
.cat-side {
  width: 92px; flex: none; overflow-y: auto; background: #FBF5F1; scrollbar-width: none;
  border-right: .5px solid var(--line);
}
.cat-side::-webkit-scrollbar { display: none; }
.cs {
  padding: 14px 6px; text-align: center; cursor: pointer; font-size: 12px; color: var(--ink-2);
  position: relative; transition: .2s; line-height: 1.3;
}
.cs .csi { display: block; font-size: 17px; margin-bottom: 3px; }
.cs.on { background: var(--card); color: var(--peach-deep); font-weight: 750; }
.cs.on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 2px 2px 0; background: var(--peach-deep);
}
.cat-main { flex: 1; overflow-y: auto; padding: 12px; scrollbar-width: none; }
.cat-main::-webkit-scrollbar { display: none; }
.filter-row { display: flex; gap: 5px; margin-bottom: 11px; }
.fc {
  flex: 1; text-align: center; padding: 5px 2px; border-radius: 9px; font-size: 10.5px;
  font-weight: 700; cursor: pointer; border: 1px solid transparent; background: #F8F2EE;
  color: var(--ink-3); transition: .2s;
}
.fc.on { border-color: currentColor; }
.fc.on.f1 { color: var(--l1); background: var(--l1-bg); }
.fc.on.f2 { color: var(--l2); background: var(--l2-bg); }
.fc.on.f3 { color: var(--l3); background: var(--l3-bg); }
.fc.on.f4 { color: var(--l4); background: var(--l4-bg); }
.fc.on.fa { color: var(--peach-deep); background: var(--peach-mist); }

.cat-i {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--card);
  border-radius: var(--r-m); margin-bottom: 8px; box-shadow: var(--sh-1);
  border: .5px solid var(--line); cursor: pointer; transition: .2s;
}
.cat-i:active { transform: scale(.98); }
.cat-i .cii { font-size: 21px; flex: none; }
.cat-i .cib { flex: 1; min-width: 0; }
.cat-i .cib b { font-size: 13.5px; font-weight: 700; display: block; }
.cat-i .cib span { font-size: 10.5px; color: var(--ink-3); display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }

/* ==========================================================
   拍照识别（功能 6）
   ========================================================== */
.cam-view {
  flex: 1; background: linear-gradient(165deg, #35302E, #1E1A19); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
}
.cam-plate { font-size: 96px; filter: drop-shadow(0 10px 26px rgba(0,0,0,.5)); transition: .5s; }
.cam-frame {
  position: absolute; width: 216px; height: 216px; border-radius: 26px;
  box-shadow: 0 0 0 2000px rgba(0,0,0,.28);
}
.cam-frame i { position: absolute; width: 26px; height: 26px; border: 2.5px solid var(--peach); }
.cam-frame i:nth-child(1) { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.cam-frame i:nth-child(2) { top: -1px; right: -1px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.cam-frame i:nth-child(3) { bottom: -1px; left: -1px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.cam-frame i:nth-child(4) { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }
.cam-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--peach), transparent);
  box-shadow: 0 0 14px var(--peach); animation: scanline 2.1s ease-in-out infinite;
}
@keyframes scanline { 0%,100% { top: 4%; } 50% { top: 96%; } }
.cam-hint {
  position: absolute; bottom: 122px; color: rgba(255,255,255,.86); font-size: 12.5px;
  letter-spacing: .5px; text-align: center; width: 100%;
}
.cam-hint b { display: block; font-size: 14px; color: #fff; margin-bottom: 3px; font-weight: 650; }
.cam-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 106px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
  display: flex; align-items: center; justify-content: space-around; padding-bottom: 12px;
}
.shutter {
  width: 64px; height: 64px; border-radius: 50%; border: 3.5px solid rgba(255,255,255,.9);
  padding: 4px; cursor: pointer; transition: .18s;
}
.shutter i { display: block; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #FFB9A6, var(--peach-deep)); }
.shutter:active { transform: scale(.9); }
.cam-side-b {
  width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 17px; cursor: pointer;
}

/* 识别结果 */
.cam-result {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--card);
  border-radius: 26px 26px 0 0; padding: 8px 15px 18px; max-height: 74%; overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,.2); transform: translateY(102%); transition: .45s cubic-bezier(.32,.72,0,1);
  scrollbar-width: none;
}
.cam-result::-webkit-scrollbar { display: none; }
.cam-result.on { transform: none; }
.sheet-h { width: 34px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 0 auto 12px; }
.conf-i { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: .5px solid #FAF3EF; cursor: pointer; }
.conf-i:last-child { border-bottom: none; }
.conf-i .cf-ic { font-size: 24px; flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: var(--cream-2); display: grid; place-items: center; }
.conf-i .cf-b { flex: 1; min-width: 0; }
.conf-i .cf-b b { font-size: 13.5px; display: block; }
.conf-bar { height: 4px; border-radius: 3px; background: #F3EAE5; margin-top: 5px; overflow: hidden; }
.conf-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FFC2AF, var(--peach-deep)); }
.conf-i .cf-p { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* 识别中的 loading */
.cam-load {
  position: absolute; inset: 0; background: rgba(20,16,15,.66); backdrop-filter: blur(4px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 5;
}
.cam-load.on { display: flex; }
.spin {
  width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--peach); border-radius: 50%; animation: sp .8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
.cam-load p { color: #fff; font-size: 12.5px; letter-spacing: .5px; }

/* ==========================================================
   扫码页（功能 7）
   ========================================================== */
.scan-code {
  position: absolute; bottom: 128px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: 2px; font-family: ui-monospace, monospace;
}
.scan-frame { width: 250px; height: 156px; }
.prod-head { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; }
.prod-head .ph-i { width: 50px; height: 50px; border-radius: 15px; background: var(--cream-2);
  display: grid; place-items: center; font-size: 26px; flex: none; }
.prod-head .ph-b b { font-size: 14.5px; font-weight: 700; display: block; line-height: 1.35; }
.prod-head .ph-b span { font-size: 10.5px; color: var(--ink-4); font-family: ui-monospace, monospace; }

.score-row { display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: var(--r-m);
  background: var(--l2-bg); border: 1px solid var(--l2-line); margin-bottom: 13px; }
.score-ring {
  width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--l2) 0 62%, #F5E7C8 62% 100%); position: relative;
}
.score-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--l2-bg); }
.score-ring b { position: relative; font-size: 17px; font-weight: 850; color: var(--l2); }
.score-txt b { font-size: 13.5px; color: var(--l2); display: block; }
.score-txt span { font-size: 11px; color: #9A7521; line-height: 1.5; display: block; margin-top: 2px; }

.ing-i {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: .5px solid #FAF3EF;
}
.ing-i:last-child { border-bottom: none; }
.ing-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 6px; }
.ing-dot.r0 { background: #D6E8DC; } .ing-dot.r1 { background: #F0DCA9; } .ing-dot.r2 { background: #F2A98A; }
.ing-b { flex: 1; }
.ing-b b { font-size: 13px; font-weight: 650; }
.ing-b .iw { font-size: 11px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.ing-lb { font-size: 9px; padding: 1.5px 5px; border-radius: 4px; font-weight: 750; flex: none; margin-top: 2px; }
.ing-lb.r0 { color: var(--l1); background: var(--l1-bg); }
.ing-lb.r1 { color: var(--l2); background: var(--l2-bg); }
.ing-lb.r2 { color: var(--l3); background: var(--l3-bg); }

.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.nu { background: var(--cream-2); border-radius: var(--r-s); padding: 9px 3px; text-align: center; }
.nu b { display: block; font-size: 12.5px; font-weight: 750; }
.nu span { font-size: 9.5px; color: var(--ink-3); }
.nu em { font-style: normal; display: block; font-size: 9px; color: var(--ink-4); margin-top: 1px; }

/* ==========================================================
   AI 问答（功能 8）
   ========================================================== */
.ai-head {
  padding: 10px 15px 14px; text-align: center;
  background: linear-gradient(175deg, #F3F8FB, var(--cream));
}
.ai-av {
  width: 58px; height: 58px; border-radius: 20px; margin: 0 auto 9px;
  background: linear-gradient(140deg, #BDD8E8, #8FB6D0); display: grid; place-items: center;
  font-size: 28px; box-shadow: 0 6px 18px rgba(143,182,208,.36);
}
.ai-head b { font-size: 16.5px; font-weight: 750; display: block; }
.ai-head span { font-size: 11px; color: var(--ink-3); }
.ai-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 7px;
  font-size: 9.5px; padding: 3px 9px; border-radius: 12px;
  background: #E4F0F7; color: #4C7E9B; font-weight: 700;
}

.msgs { padding: 4px 15px 12px; }
.msg { display: flex; gap: 8px; margin-bottom: 14px; }
.msg.u { flex-direction: row-reverse; }
.msg .av {
  width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 15px;
}
.msg.a .av { background: linear-gradient(140deg, #BDD8E8, #8FB6D0); }
.msg.u .av { background: linear-gradient(140deg, #FFC9B8, #FF9B87); }
.bub {
  max-width: 78%; padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.75;
  box-shadow: var(--sh-1);
}
.msg.a .bub { background: var(--card); border: .5px solid var(--line); border-top-left-radius: 5px; }
.msg.u .bub { background: linear-gradient(135deg, #FFAC96, var(--peach-deep)); color: #fff;
  border-top-right-radius: 5px; box-shadow: var(--sh-peach); }
.bub strong { font-weight: 750; color: var(--ink); }
.bub .ln { margin-bottom: 6px; }
.bub .ln:last-child { margin-bottom: 0; }

/* AI 回答里的知识库引用（体现 RAG 约束） */
.ai-ref {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-2);
}
.ai-ref .rl { font-size: 9.5px; color: var(--ink-4); margin-bottom: 6px; letter-spacing: .3px; }
.ai-ref .rc { display: flex; gap: 6px; flex-wrap: wrap; }
.ref-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 11px;
  background: var(--mist-soft); border: .5px solid #D3E5EF; font-size: 10.5px; color: #4C7E9B;
  cursor: pointer; font-weight: 600;
}
.ref-chip:active { opacity: .6; }

.typing { display: flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: tp 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tp { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-sug { padding: 0 15px 10px; display: flex; flex-direction: column; gap: 7px; }
.sug {
  padding: 9px 12px; background: var(--card); border: .5px solid var(--line); border-radius: 13px;
  font-size: 12px; color: var(--ink-2); cursor: pointer; box-shadow: var(--sh-1);
  display: flex; align-items: center; gap: 7px; transition: .2s;
}
.sug:active { background: var(--peach-mist); }
.sug .sq { color: var(--peach); font-size: 12px; flex: none; }

.ai-input-bar {
  flex: none; padding: 9px 13px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(20px);
  border-top: .5px solid var(--line); display: flex; gap: 8px; align-items: center;
}
.ai-input {
  flex: 1; height: 38px; border-radius: 19px; background: var(--cream-2); border: .5px solid var(--line);
  padding: 0 14px; display: flex; align-items: center;
}
.ai-input input { flex: 1; border: none; background: transparent; outline: none; font-size: 13px;
  font-family: var(--ff); color: var(--ink); min-width: 0; }
.ai-input input::placeholder { color: var(--ink-4); }
.send-b {
  width: 38px; height: 38px; border-radius: 50%; flex: none; cursor: pointer;
  background: linear-gradient(135deg, #FFAC96, var(--peach-deep)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-peach); transition: .2s;
}
.send-b:active { transform: scale(.88); }

/* ==========================================================
   孕周档案页（功能 10）
   ========================================================== */
.wk-hero {
  padding: 14px 15px 22px; text-align: center;
  background: linear-gradient(170deg, #FFE9E1, #FFF4EE 60%, var(--cream));
  position: relative;
}
.wk-ring {
  width: 158px; height: 158px; margin: 6px auto 14px; border-radius: 50%; position: relative;
  display: grid; place-items: center;
}
.wk-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.wk-ring .in { text-align: center; }
.wk-ring .in b { font-size: 42px; font-weight: 850; color: var(--peach-deep); line-height: 1; letter-spacing: -2px; }
.wk-ring .in em { font-style: normal; font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 5px; }
.wk-baby-big { font-size: 46px; margin-bottom: 8px; }
.wk-cmp { font-size: 14px; color: var(--ink-2); }
.wk-cmp b { color: var(--peach-deep); font-weight: 750; }

.wk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.ws { background: var(--card); border-radius: var(--r-m); padding: 12px 4px; text-align: center;
  box-shadow: var(--sh-1); border: .5px solid var(--line); }
.ws b { display: block; font-size: 18px; font-weight: 800; color: var(--peach-deep); letter-spacing: -.5px; }
.ws span { font-size: 10px; color: var(--ink-3); }

.today-i {
  display: flex; gap: 11px; padding: 11px 0; border-bottom: .5px solid #FAF3EF; align-items: flex-start;
}
.today-i:last-child { border-bottom: none; }
.today-i .ti {
  width: 32px; height: 32px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 16px;
}
.today-i .tb b { font-size: 13px; font-weight: 700; display: block; }
.today-i .tb span { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; display: block; margin-top: 1px; }

.form-i {
  display: flex; align-items: center; padding: 13px 0; border-bottom: .5px solid #FAF3EF; cursor: pointer;
}
.form-i:last-child { border-bottom: none; }
.form-i .fl { font-size: 13.5px; flex: 1; }
.form-i .fv { font-size: 13px; color: var(--ink-3); margin-right: 6px; }
.form-i .fv.hi { color: var(--peach-deep); font-weight: 650; }

/* ==========================================================
   收藏页（功能 15）
   ========================================================== */
.seg {
  display: flex; background: #F3EBE6; border-radius: 12px; padding: 3px; margin: 6px 0 14px;
}
.sg-i {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; font-size: 13px;
  font-weight: 650; color: var(--ink-3); cursor: pointer; transition: .25s;
}
.sg-i.on { background: var(--card); color: var(--peach-deep); font-weight: 750; box-shadow: var(--sh-1); }

.fav-group { margin-bottom: 6px; }
.fg-t { font-size: 11px; color: var(--ink-3); margin: 4px 0 8px; display: flex; align-items: center; gap: 6px; }
.fg-t .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--peach-soft); }
.fg-t .n { margin-left: auto; color: var(--ink-4); }

.his-i {
  display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: .5px solid #FAF3EF; cursor: pointer;
}
.his-i:last-child { border-bottom: none; }
.his-i .hi-t { font-size: 11px; color: var(--ink-4); flex: none; width: 38px; font-family: ui-monospace, monospace; }
.his-i .hi-n { flex: 1; font-size: 13.5px; }

/* ==========================================================
   我的
   ========================================================== */
.me-head {
  padding: 12px 15px 20px; display: flex; align-items: center; gap: 13px;
  background: linear-gradient(170deg, #FFE9E1, var(--cream));
}
.me-av {
  width: 58px; height: 58px; border-radius: 20px; flex: none; font-size: 28px;
  background: linear-gradient(140deg, #FFD5C6, #FFB09A); display: grid; place-items: center;
  box-shadow: var(--sh-2); border: 2px solid rgba(255,255,255,.85);
}
.me-b b { font-size: 17px; font-weight: 750; display: block; }
.me-b span { font-size: 11.5px; color: var(--ink-3); }
.me-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10px;
  padding: 3px 9px; border-radius: 11px; background: rgba(255,255,255,.8);
  border: .5px solid var(--peach-soft); color: var(--peach-deep); font-weight: 700;
}
.me-num { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.mn b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.mn span { font-size: 10px; color: var(--ink-3); }

.list-i {
  display: flex; align-items: center; gap: 11px; padding: 13px 0;
  border-bottom: .5px solid #FAF3EF; cursor: pointer;
}
.list-i:last-child { border-bottom: none; }
.list-i:active { opacity: .55; }
.list-i .li-ic {
  width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 15px;
}
.list-i .li-n { flex: 1; font-size: 13.5px; }
.list-i .li-x { font-size: 11px; color: var(--ink-4); }
.list-i .arw { color: var(--ink-4); font-size: 13px; }

/* ==========================================================
   后台管理系统（功能 26）
   ========================================================== */
.adm { background: #F7F8FA; }
.adm-head {
  padding: 12px 15px 16px; background: linear-gradient(140deg, #454C5C, #2E3440); color: #fff;
}
.adm-head .at { font-size: 17px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.adm-head .as { font-size: 11px; opacity: .6; margin-top: 2px; }
.adm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.ast { background: rgba(255,255,255,.09); border: .5px solid rgba(255,255,255,.14);
  border-radius: var(--r-m); padding: 10px 12px; }
.ast .k { font-size: 10px; opacity: .62; }
.ast .v { font-size: 20px; font-weight: 800; letter-spacing: -.5px; margin-top: 1px; }
.ast .d { font-size: 9.5px; margin-top: 1px; }
.ast .d.up { color: #7FD9A8; } .ast .d.dn { color: #FFAFA0; }

.adm-card {
  background: #fff; border-radius: var(--r-m); padding: 13px 14px; margin-bottom: 10px;
  border: 1px solid #E9ECF1; box-shadow: 0 1px 3px rgba(46,52,64,.05);
}
.adm-t { font-size: 13.5px; font-weight: 750; margin-bottom: 11px; display: flex; align-items: center; gap: 6px; }
.adm-t .bd { font-size: 9px; padding: 1.5px 6px; border-radius: 4px; background: #FCEAEA; color: #D8504E;
  font-weight: 700; margin-left: auto; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin-bottom: 6px; }
.chart i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8FB6D0, #C6DCEA); transition: .3s;
}
.chart i:last-child { background: linear-gradient(180deg, var(--peach), #FFC2AF); }
.chart-x { display: flex; justify-content: space-between; font-size: 8.5px; color: #9AA3B0; }

.nr-i { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: .5px solid #F1F3F6; }
.nr-i:last-child { border-bottom: none; }
.nr-i .nk { flex: 1; font-size: 12.5px; }
.nr-i .nc { font-size: 11px; color: #D8504E; font-weight: 700; }
.nr-i .ncat { font-size: 9px; color: #7C8698; background: #F1F3F6; padding: 1.5px 6px; border-radius: 4px; }
.nr-i .nadd {
  font-size: 10px; color: #fff; background: #5B6478; padding: 3px 9px; border-radius: 11px;
  cursor: pointer; font-weight: 600; flex: none;
}
.nr-i .nadd:active { opacity: .7; }

.au-i { padding: 9px 0; border-bottom: .5px solid #F1F3F6; }
.au-i:last-child { border-bottom: none; }
.au-h { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.au-h b { font-size: 12.5px; font-weight: 700; }
.au-h .au-u { font-size: 10px; color: #7C8698; }
.au-h .au-tm { font-size: 9.5px; color: #A8B0BC; margin-left: auto; }
.au-c { font-size: 11.5px; color: #5B6478; line-height: 1.55; }
.au-s { font-size: 9px; padding: 1.5px 6px; border-radius: 4px; font-weight: 750; }
.au-s.wait { background: #FDF3DF; color: #C98A10; }
.au-s.pass { background: #E9F6EF; color: #3E9E70; }
.au-s.reject { background: #F1F3F6; color: #7C8698; }
.au-btns { display: flex; gap: 6px; margin-top: 7px; }
.au-btns span {
  font-size: 10.5px; padding: 4px 12px; border-radius: 9px; cursor: pointer; font-weight: 650;
}
.au-btns .ok { background: #E9F6EF; color: #3E9E70; }
.au-btns .no { background: #F1F3F6; color: #7C8698; }

/* ==========================================================
   Toast / 弹层
   ========================================================== */
.toast {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(.88);
  background: rgba(48,40,38,.9); backdrop-filter: blur(10px); color: #fff;
  padding: 13px 22px; border-radius: 15px; font-size: 13px; z-index: 200;
  opacity: 0; pointer-events: none; transition: .28s cubic-bezier(.34,1.56,.64,1);
  text-align: center; max-width: 78%; line-height: 1.5;
}
.toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast .ti2 { font-size: 24px; display: block; margin-bottom: 5px; }

/* 首次查询药品的确认弹窗（功能 22） */
.modal-mask {
  position: absolute; inset: 0; background: rgba(40,32,30,.42); backdrop-filter: blur(3px);
  z-index: 150; display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; pointer-events: none; transition: .28s;
}
.modal-mask.on { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border-radius: 22px; padding: 22px 20px 18px; width: 100%;
  transform: scale(.9); transition: .3s cubic-bezier(.34,1.56,.64,1); text-align: center;
}
.modal-mask.on .modal { transform: none; }
.modal .mi { font-size: 34px; margin-bottom: 9px; }
.modal h4 { font-size: 16.5px; font-weight: 750; margin-bottom: 8px; }
.modal p { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; text-align: left;
  background: var(--cream-2); padding: 12px; border-radius: var(--r-m); margin-bottom: 15px; }
.modal .mb { display: flex; gap: 9px; }
.modal .mb .btn { height: 40px; font-size: 14px; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1180px) {
  .stage { grid-template-columns: 1fr; gap: 46px; padding: 40px 26px 60px; }
  .device-wrap { position: static; }
  .brief h1 { font-size: 38px; }
  .f-grid, .note, .brief .lead { max-width: none; }
}
@media (max-width: 720px) {
  .stage { padding: 26px 16px 44px; gap: 34px; }
  .brief h1 { font-size: 29px; }
  .brief .lead { font-size: 14px; }
  .f-grid { grid-template-columns: 1fr; }
  .device {
    width: 100%; max-width: 400px; height: 760px; padding: 8px; border-radius: 42px;
  }
  .screen { border-radius: 34px; }
  .sw { width: calc(33.33% - 7px); }
}
