/* ==========================================================================
   微信数字员工 · 05 场景库版
   学自秒哒「摸鱼助手」（app-4tc3pfv16fb6）
   设计语言：浅蓝底 #f0f7ff · 紫色主色 #7c3aed · 六色渐变大卡 ·
             淡黄说明块 · 左对齐区块标题 · 白卡网格（淡色图标 + 百分比 + 大写英文）
   ========================================================================== */

:root {
  --bg:          #f0f7ff;   /* 页面底：极浅蓝 */
  --card:        #ffffff;
  --ink:         #0f1729;   /* 正文字色：slate-900 */
  --ink-2:       #475569;   /* 次要字：slate-600 */
  --muted:       #94a3b8;   /* slate-400 */
  --line:        #e4eefc;   /* 浅蓝分隔线 */
  --purple:      #7c3aed;
  --purple-deep: #6d28d9;
  --purple-soft: #ede9fe;
  --amber-bg:    #fef3c8;   /* 说明块底 */
  --amber-ink:   #6b4a12;
  --amber-no:    #c2740b;

  --c-green:  #21c45d;
  --c-blue:   #3c83f6;
  --c-ink:    #0f1729;
  --c-red:    #ef4343;
  --c-orange: #f97415;

  --radius:    20px;
  --radius-sm: 14px;
  --wrap:      1160px;
  --shadow:    0 20px 44px -34px rgba(15, 23, 41, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id], article[id], div[id] { scroll-margin-top: 98px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol { margin: 0; }
svg { display: block; }

/* 内联 SVG 雪碧图：不占位、不可见，但可被 <use> 引用 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 68px 0 0; }

/* ===================== 顶栏 ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(240, 247, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-ico { width: 40px; height: 40px; border-radius: 50%; }
.brand-txt { font-size: 16.5px; font-weight: 800; letter-spacing: .2px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: #fff; color: var(--ink); }
.nav a.active { background: #fff; color: var(--purple); font-weight: 700; }

.topbar-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; flex: none; }

.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s ease, color .2s ease;
}
.contact-btn svg { width: 15px; height: 15px; }
.contact-btn:hover { border-color: #cbb8f7; color: var(--purple); }

.dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 13.5px; font-weight: 700;
  transition: background .2s ease, translate .2s ease;
}
.dl-btn svg { width: 15px; height: 15px; }
.dl-btn:hover { background: var(--purple-deep); translate: 0 -1px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

/* ===================== 首屏 ===================== */
.hero { position: relative; padding: 40px 0 0; }

.hero-mark { display: flex; align-items: center; gap: 10px; }
.hero-mark img { border-radius: 13px; }
.hero-mark span { display: flex; flex-direction: column; }
.hero-mark b { font-size: 15.5px; font-weight: 800; letter-spacing: .2px; }
.hero-mark i { font-style: normal; font-size: 12.5px; color: var(--muted); }

.hero-title {
  margin-top: 30px;
  text-align: center;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--purple);
}

.hero-desc {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 640px;
  margin: 30px auto 0;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 34px -26px rgba(15, 23, 41, .45);
}
.search > svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
.search input::placeholder { color: #a8b6c8; }
#sceneClear {
  flex: none;
  border: 0; cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font: inherit; font-size: 12.5px; font-weight: 600;
}

.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ===================== 区块标题（左对齐，和 04 的居中区分开） ===================== */
.sec-head { margin-bottom: 26px; }
.sec-head h2 {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  letter-spacing: -.4px;
}
.sec-head h2 > svg { width: 25px; height: 25px; color: var(--purple); }
.sec-head p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

.hot-badge {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-red);
  color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
}

/* ===================== 使用说明（淡黄便签） ===================== */
.notice {
  position: relative;
  padding: 26px 30px 26px;
  background: var(--amber-bg);
  border-radius: 18px;
  overflow: hidden;
}
.notice-ribbon {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.notice-title { position: relative; font-size: 17px; font-weight: 800; color: var(--amber-ink); }

.notice-list {
  counter-reset: nn;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 34px;
}
.notice-list li {
  counter-increment: nn;
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #6f5320;
}
.notice-list li::before {
  content: counter(nn);
  position: absolute; left: 0; top: 0;
  font-weight: 800;
  color: var(--amber-no);
}
.notice-list b { color: #8a5a06; }

/* ===================== 热门场景：六色渐变大卡 ===================== */
.hot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.hot-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 186px;
  padding: 24px 24px 20px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  transition: translate .25s ease, box-shadow .25s ease;
}
.hot-card::after {
  content: "";
  position: absolute; right: -40px; top: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.hot-card:hover { translate: 0 -4px; box-shadow: 0 26px 48px -26px rgba(15, 23, 41, .5); }

.c-green  { background: linear-gradient(150deg, #2fd46f 0%, #17a94c 100%); }
.c-blue   { background: linear-gradient(150deg, #4f92ff 0%, #2f6fe4 100%); }
.c-purple { background: linear-gradient(150deg, #8b5cf6 0%, #6d28d9 100%); }
.c-ink    { background: linear-gradient(150deg, #223046 0%, #0b1220 100%); }
.c-red    { background: linear-gradient(150deg, #f65c5c 0%, #dc2626 100%); }
.c-orange { background: linear-gradient(150deg, #fb923c 0%, #e2650a 100%); }

.hot-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hot-top h3 { font-size: 20.5px; font-weight: 800; letter-spacing: -.2px; }
.hot-pct {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  font-size: 12px; font-weight: 800;
}
.hot-card > p { position: relative; margin-top: 9px; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .84); }

.hot-foot { position: relative; margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; }
.hot-ico {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .2);
}
.hot-ico svg { width: 23px; height: 23px; }
.hot-go { font-size: 13.5px; font-weight: 700; }

/* ===================== 分类标签 ===================== */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.cat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cat svg { width: 15px; height: 15px; }
.cat:hover { border-color: #cbb8f7; color: var(--purple); }
.cat.is-on { background: var(--purple); border-color: var(--purple); color: #fff; }
.cat.is-on:hover { color: #fff; }

/* ===================== 白卡网格 ===================== */
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.sc-card {
  display: flex; flex-direction: column;
  min-height: 196px;
  padding: 20px 20px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: translate .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sc-card:hover { translate: 0 -4px; border-color: #cfdffa; box-shadow: var(--shadow); }
.sc-card.is-hide { display: none; }

.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sc-ico {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 13px;
}
.sc-ico svg { width: 21px; height: 21px; }

.i-green  { background: #dcfce7; color: #16a34a; }
.i-blue   { background: #dbeafe; color: #2563eb; }
.i-purple { background: #ede9fe; color: #7c3aed; }
.i-teal   { background: #ccfbf1; color: #0d9488; }
.i-violet { background: #f3e8ff; color: #9333ea; }

.sc-pct { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sc-card h3 { margin-top: 15px; font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.sc-card > p { flex: 1; margin-top: 6px; font-size: 13px; line-height: 1.72; color: var(--ink-2); }

.sc-foot {
  margin-top: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted);
}
.sc-foot i { font-style: normal; font-size: 15px; color: var(--purple); }

.sc-empty { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-2); }
.sc-empty a { color: var(--purple); font-weight: 700; }

/* ===================== 怎么挑（症状 → 处方 对照单） ===================== */
.rx-card {
  margin-top: 30px;
  padding: 0 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rx-head,
.rx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.08fr);
  align-items: center;
  gap: 16px;
}
.rx-head {
  padding: 19px 14px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}
.rx-head-r { grid-column: 3; color: var(--purple); }
.rx-row { padding: 18px 14px; border-bottom: 1px solid var(--line); }
.rx-pain { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.rx-arrow { text-align: center; font-size: 16px; font-weight: 800; color: var(--purple); }
.rx-fix { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.rx-pill:first-child { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; }
.rx-note {
  padding: 18px 14px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.rx-note a { color: var(--purple-deep); font-weight: 700; text-decoration: none; }
.rx-note a:hover { text-decoration: underline; }

/* ===================== 大 CTA ===================== */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 62px 48px;
  border-radius: 26px;
  background: linear-gradient(140deg, #8b5cf6 0%, #7c3aed 45%, #5b21b6 100%);
  text-align: center;
}
.cta-inner { position: relative; z-index: 2; }
.cta-card h2 { font-size: clamp(24px, 3.4vw, 35px); font-weight: 800; color: #fff; letter-spacing: -.3px; }
.cta-card p { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .86); }

.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }

.btn-white {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 31px;
  border-radius: 999px;
  background: #fff;
  color: var(--purple-deep);
  font-size: 15px; font-weight: 800;
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, .5);
  transition: translate .2s ease;
}
.btn-white svg { width: 17px; height: 17px; }
.btn-white:hover { translate: 0 -2px; }

.cta-link { color: #fff; font-size: 14.5px; font-weight: 700; opacity: .92; }
.cta-link:hover { opacity: 1; }

.cta-orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta-orb-a { width: 260px; height: 260px; left: -70px; bottom: -110px; }
.cta-orb-b { width: 200px; height: 200px; right: -54px; top: -76px; }

/* ===================== 页脚 ===================== */
.footer { margin-top: 76px; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { padding: 46px 24px 38px; }

.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; }
.footer-brand img { border-radius: 50%; }

.footer-qr { display: flex; align-items: center; gap: 14px; }
.footer-qr img { border-radius: 14px; border: 1px solid var(--line); }
.footer-qr-cap { display: flex; flex-direction: column; }
.footer-qr-cap b { font-size: 14.5px; font-weight: 800; }
.footer-qr-cap span { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }

.footer-line { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.9; color: var(--ink-2); }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.footer-links a { font-size: 13.5px; font-weight: 600; color: var(--purple); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); min-height: 20px; }
.legal-item { font-size: 12.5px; color: var(--muted); }

.footer-copy { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ===================== 悬浮按钮 / 弹窗 ===================== */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 19px;
  border: 0; border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 18px 34px -18px rgba(124, 58, 237, .95);
}
.fab svg { flex: none; }

.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 41, .5); backdrop-filter: blur(3px); }
.modal-panel {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(340px, calc(100vw - 40px));
  padding: 30px 26px 24px;
  background: #fff;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 41, .6);
}
.modal-close {
  position: absolute; right: 14px; top: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 0; border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
}
.modal-title { font-size: 16px; font-weight: 800; }
.modal-qr { width: 190px; height: 190px; margin: 18px auto 0; border-radius: 14px; border: 1px solid var(--line); }
.modal-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.modal-open { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--purple); }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
  .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    position: absolute; left: 24px; right: 24px; top: 66px;
    display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; border-radius: 11px; }
  .nav-toggle { display: flex; }
  .contact-btn { display: none; }
  .rx-card { padding: 0 15px 18px; }
  .rx-head { display: none; }
  .rx-row { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 16px 8px; }
  .rx-arrow { display: none; }
  .rx-note { padding: 16px 8px 0; }
}

@media (max-width: 720px) {
  .section { padding: 52px 0 0; }
  .hot-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-grid { grid-template-columns: minmax(0, 1fr); }
  .notice { padding: 22px 20px; }
  .notice-list { grid-template-columns: minmax(0, 1fr); }
  .hero-title { letter-spacing: -.8px; margin-top: 24px; }
  .hero-desc { font-size: 14.5px; }
  .cta-card { padding: 46px 24px; border-radius: 22px; }
  .brand-txt { font-size: 15px; }
  .dl-btn { padding: 9px 15px; font-size: 13px; }
  .fab { right: 16px; bottom: 16px; padding: 12px; }
  .fab span { display: none; }
  .footer-inner { padding: 38px 22px 32px; }
}
