/* ==========================================================================
   智愈道 · 慈善赠药项目中心
   设计变量与组件样式，取自 zhiyudao.cn 官网 design tokens
   ========================================================================== */

:root {
  /* 品牌紫（浅色系） */
  --lav: #E4D4FF;
  --lav-soft: #F1E7FF;
  --lav-deep: #A884EC;
  --lav-deeper: #8F63DE;
  --plum-900: #3A2160;
  --plum-700: #5B3E8F;
  --violet-700: #6D28D9;
  --violet-300: #C9A4FF;
  --violet-100: #EFE3FF;
  --violet-50: #F6F0FF;

  /* 中性（紫调灰） */
  --ink: #3A2160;
  --body: #55506B;
  --dim: #8B84A0;
  --line: #E6DDF2;
  --line-soft: #F1ECF9;
  --white: #fff;
  --bg-page: #FBF9FF;
  --bg-soft: #F6F0FF;

  /* 暖色强调 */
  --coral: #FC593D;
  --orange: #F97316;
  --amber: #F59E0B;
  --amber-deep: #EA580C;
  --amber-ink: #9A3412;
  --amber-bg: #FFF7ED;

  /* 渐变（浅紫） */
  --grad-violet: linear-gradient(120deg, #F7F0FF, #EDE0FF 55%, #F3E9FF);
  --grad-violet-soft: linear-gradient(135deg, #E9DBFF, #DCC8FA);
  --grad-warm: linear-gradient(135deg, #FC593D, #F97316);
  --grad-page: linear-gradient(180deg, #F6F1FC, #FDFCFF);
  --grad-cta: linear-gradient(120deg, #C9AEF5, #B08EEC);

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(58, 33, 96, .06), 0 1px 2px rgba(58, 33, 96, .03);
  --shadow-md: 0 4px 14px rgba(58, 33, 96, .07), 0 2px 4px rgba(58, 33, 96, .04);
  --shadow-lg: 0 12px 32px rgba(58, 33, 96, .10), 0 4px 8px rgba(58, 33, 96, .05);
  --shadow-accent: 0 8px 24px rgba(168, 132, 236, .25);

  /* 字体（官网字族） */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --w: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

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

/* ---------- 顶部工具栏 ---------- */
.utility {
  background: var(--lav-soft);
  color: #6B5A85;
  font-size: 12.5px;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.utility a { color: #6B5A85; }
.utility a:hover { color: var(--plum-900); }
.utility .dot { color: #C9BCE0; margin: 0 8px; }
.utility .u-right { display: flex; align-items: center; gap: 14px; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad-cta);
  box-shadow: var(--shadow-accent);
  display: grid; place-items: center; color: #3A2160; font-size: 15px; font-weight: 700;
}
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-pill);
  font-size: 14px; color: var(--body); font-weight: 500;
}
.nav a:hover { background: var(--violet-50); color: var(--violet-700); }
.nav a.active { background: var(--lav-soft); color: var(--violet-700); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hotline { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--body); }
.hotline b { color: var(--ink); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; font-size: 14px; font-weight: 600;
  transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-cta); color: #3A2160; font-weight: 700; box-shadow: var(--shadow-accent); }
.btn-primary:hover { filter: saturate(1.15) brightness(1.03); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lav-deep); color: var(--violet-700); }
.btn-warm { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 24px rgba(249, 115, 22, .28); }
.btn-warm:hover { filter: brightness(1.05); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-violet);
  color: var(--plum-900);
  padding: 52px 0 60px;
}
.hero::after {
  content: ''; position: absolute; inset: auto -10% -60% 55%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,132,236,.18), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 396px;
  gap: 56px; align-items: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em;
  color: #C2410C; text-transform: uppercase;
}
.hero .eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #FC593D, #F97316);
}
.hero h1 { color: var(--plum-900); font-size: 44px; margin: 16px 0 14px; letter-spacing: -.02em; }
.hero p.lead { max-width: 560px; font-size: 15px; color: #5B4A78; }
.hero-stats { display: flex; gap: 44px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 30px; color: var(--plum-900); letter-spacing: 0; line-height: 1.15; }
.hero-stat span { font-size: 12.5px; color: #7C6C93; }

/* Hero 右侧匹配卡 */
.hero-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 22px; }
.hero-card .hc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.hero-card h3 { font-size: 16px; }
.hero-card .hc-count { font-size: 12px; color: var(--dim); }
.hero-card .field { margin-bottom: 12px; }
.hero-card .btn { width: 100%; margin-top: 4px; }
.hero-card .match-note { margin-top: 12px; font-size: 12px; color: var(--dim); text-align: center; }
.match-note b { color: var(--violet-700); }
.field label { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 6px; font-weight: 500; }
.field select, .field input, .field textarea {
  width: 100%; height: 44px; padding: 0 13px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; font-family: inherit;
  transition: .16s;
}
.field textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 88px; line-height: 1.6; }
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--lav-deep); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
}
.match-note { margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.match-note b { color: var(--violet-700); }

/* ---------- 主体 ---------- */
main { padding: 40px 0 72px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; }
.section-head .sub { font-size: 13px; color: var(--dim); margin-top: 4px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; color: var(--body);
  font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  transition: .16s;
}
.chip:hover { border-color: var(--lav-deep); color: var(--violet-700); }
.chip.on { background: var(--lav-soft); border-color: var(--lav); color: var(--violet-700); }
.chip .n { font-size: 11.5px; color: var(--dim); }
.chip.on .n { color: var(--violet-700); }

/* 项目卡 */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: .2s ease; position: relative;
}
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--lav); }
.pcard-top { display: flex; align-items: flex-start; gap: 12px; }
.pcard-top h3 { font-size: 16px; line-height: 1.4; flex: 1; }
.pcard .drug { font-size: 13px; color: var(--dim); }
.pcard .drug b { color: var(--body); font-weight: 500; }
.pcard .inds {
  font-size: 13px; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard .meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); flex-wrap: wrap; }
.pcard-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line-soft); margin-top: auto;
}
.pcard-foot .plan { font-size: 13px; color: var(--ink); font-weight: 600; }
.pcard-foot .go { font-size: 13px; color: var(--violet-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* 状态胶囊 */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-open { background: var(--violet-50); color: var(--violet-700); }
.pill-tight { background: var(--amber-bg); color: var(--amber-ink); }
.pill-soon { background: #FFF1ED; color: #C2410C; }
.pill-closed { background: var(--line-soft); color: var(--dim); }
.pill-ok { background: var(--violet-50); color: var(--violet-700); }
.pill-due { background: var(--amber-bg); color: var(--amber-ink); }

/* 列表尾部 */
.list-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.list-foot .hint { font-size: 12.5px; color: var(--dim); }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; position: relative;
}
.step .no {
  width: 26px; height: 26px; border-radius: 8px; background: var(--lav-soft);
  color: var(--violet-700); font-size: 13px; font-weight: 700;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--body); }
.step .t { margin-top: 10px; font-size: 12px; color: var(--dim); }

/* 合规提示 */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--amber-bg); border: 1px solid #FED7AA;
}
.notice .ic { flex: none; width: 22px; height: 22px; color: var(--amber-deep); }
.notice h4 { font-size: 14px; color: var(--amber-ink); margin-bottom: 4px; }
.notice p { font-size: 13px; color: #7C2D12; }

/* ---------- 详情页 ---------- */
.detail-hero { background: var(--grad-violet); color: var(--plum-900); padding: 34px 0 40px; }
.crumb { font-size: 12.5px; color: #7C6C93; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--plum-900); }
.detail-hero h1 { color: var(--plum-900); font-size: 32px; margin: 16px 0 10px; }
.detail-hero .sub { font-size: 14px; color: #5B4A78; }
.detail-hero .sub b { color: var(--plum-900); font-weight: 600; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.detail-stat { padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.62); border: 1px solid rgba(124,77,207,.16); }
.detail-stat b { display: block; font-size: 22px; color: var(--plum-900); }
.detail-stat span { font-size: 12px; color: #7C6C93; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.layout > * { min-width: 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card > h2 { font-size: 18px; margin-bottom: 6px; }
.card > h2 .idx { color: var(--lav-deep); margin-right: 8px; }
.card .card-sub { font-size: 13px; color: var(--dim); margin-bottom: 18px; }

.plan-card {
  border: 1px solid var(--lav); background: var(--lav-soft);
  border-radius: var(--r-md); padding: 18px; margin-bottom: 12px;
}
.plan-card:last-child { margin-bottom: 0; }
.plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.plan-top .who { font-size: 15px; font-weight: 700; color: var(--ink); }
.plan-top .tag {
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: #fff; color: var(--violet-700); border: 1px solid var(--lav);
}
.plan-card p { font-size: 13.5px; color: var(--body); }
.plan-card .cyc { margin-top: 8px; font-size: 12.5px; color: var(--dim); }

.cond { display: flex; flex-direction: column; gap: 12px; }
.cond li { display: flex; gap: 10px; font-size: 14px; color: var(--body); list-style: none; }
.cond .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lav-soft); color: var(--violet-700);
  display: grid; place-items: center; margin-top: 2px;
}
.cond ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cond .docs { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.cond .doc { font-size: 11.5px; color: var(--violet-700); background: var(--violet-50); padding: 2px 8px; border-radius: 6px; }

.faq-item { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-q { display: flex; justify-content: space-between; gap: 16px; align-items: center; width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.faq-q h4 { font-size: 14.5px; font-weight: 600; }
.faq-q .chev { color: var(--dim); transition: .2s; flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; margin-top: 8px; font-size: 13.5px; color: var(--body); }
.faq-item.open .faq-a { display: block; }
.faq-more { margin-top: 14px; font-size: 13px; color: var(--violet-700); font-weight: 600; }

/* 侧栏 */
.aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.cta-card { background: var(--lav-soft); color: var(--plum-900); border: 1px solid var(--lav); border-radius: var(--r-lg); padding: 22px; }
.cta-card h3 { color: var(--plum-900); font-size: 17px; margin-bottom: 8px; }
.cta-card p { font-size: 13px; color: #5B4A78; margin-bottom: 16px; }
.cta-card .btn { width: 100%; }
.cta-card .btn-ghost { background: #fff; border-color: var(--lav); color: var(--violet-700); }
.cta-card .btn-ghost:hover { background: var(--violet-50); color: var(--violet-700); }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.info-card h4 { font-size: 14px; margin-bottom: 12px; }
.info-card dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 9px 10px; font-size: 13px; }
.info-card dt { color: var(--dim); }
.info-card dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- 表单 ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.steps-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.steps-bar .s { display: flex; align-items: center; gap: 8px; }
.steps-bar .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  background: var(--line-soft); color: var(--dim);
}
.steps-bar .s.on .dot { background: var(--grad-cta); color: #3A2160; }
.steps-bar .s.done .dot { background: var(--lav-soft); color: var(--violet-700); }
.steps-bar .lbl { font-size: 13px; color: var(--dim); font-weight: 500; }
.steps-bar .s.on .lbl { color: var(--ink); font-weight: 600; }
.steps-bar .line { flex: 1; height: 1px; background: var(--line); min-width: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field .req { color: var(--coral); margin-left: 2px; }
.field .help { font-size: 12px; color: var(--dim); margin-top: 6px; }
.field .err { font-size: 12px; color: #DC2626; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FCA5A5; box-shadow: 0 0 0 3px rgba(252, 165, 165, .18); }
.field.invalid .err { display: block; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; color: var(--body); cursor: pointer; background: #fff;
}
.radio-row input { accent-color: var(--violet-700); }
.radio-row label:has(input:checked) { border-color: var(--lav-deep); background: var(--violet-50); color: var(--violet-700); }

.upload {
  border: 1.5px dashed var(--lav); background: var(--lav-soft);
  border-radius: var(--r-md); padding: 20px; text-align: center;
}
.upload p { font-size: 13px; color: var(--body); }
.upload .sub { font-size: 12px; color: var(--dim); margin-top: 4px; }

.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--body); }
.checkline input { margin-top: 3px; accent-color: var(--violet-700); }

.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 84px; }
.summary-card h4 { font-size: 14px; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row span { color: var(--dim); }
.summary-row b { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- 我的申请 ---------- */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stat-box b { display: block; font-size: 24px; color: var(--ink); }
.stat-box span { font-size: 12.5px; color: var(--dim); }
.stat-box.hl { background: var(--lav-soft); border-color: var(--lav); }
.stat-box.hl b, .stat-box.hl span { color: var(--plum-900); }
.stat-box.hl span { color: #6B5A85; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { height: 34px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--body); font-weight: 500; }
.tab.on { background: var(--lav-soft); border-color: var(--lav); color: var(--violet-700); }

.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 14px; }
.app-card.due { border-color: #FED7AA; background: linear-gradient(180deg, #FFF7ED, #fff 40%); }
.app-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.app-head h3 { font-size: 16px; margin-bottom: 4px; }
.app-head .meta { font-size: 12.5px; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; }
.app-head .meta b { color: var(--body); font-weight: 500; }

.progress { display: flex; align-items: center; gap: 0; margin: 18px 0 6px; }
.pnode { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; width: 74px; }
.pnode .pdot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--line-soft); color: var(--dim); }
.pnode.done .pdot { background: var(--lav-soft); color: var(--violet-700); }
.pnode.cur .pdot { background: var(--grad-cta); color: #3A2160; box-shadow: 0 0 0 4px rgba(168, 132, 236, .18); }
.pnode .plabel { font-size: 11.5px; color: var(--dim); text-align: center; line-height: 1.3; }
.pnode.done .plabel, .pnode.cur .plabel { color: var(--body); }
.pbar { flex: 1; height: 2px; background: var(--line); margin-bottom: 26px; }
.pbar.done { background: var(--lav-deep); }

.app-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.app-foot .tip { font-size: 12.5px; color: var(--body); display: flex; align-items: center; gap: 7px; }
.app-foot .tip.warn { color: var(--amber-ink); }
.app-actions { display: flex; gap: 10px; }

.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--dim); margin-bottom: 18px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--lav-soft); color: #6B5A85; padding: 48px 0 26px; font-size: 13px; }
.site-footer h5 { color: var(--plum-900); font-size: 14px; margin: 0 0 14px; }
.site-footer a:hover { color: var(--plum-900); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid #E0D3F5; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #8B84A0; flex-wrap: wrap; }

/* ---------- 顶部搜索 ---------- */
.hsearch { position: relative; }
.hsearch input {
  width: 210px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #F8F5FD;
  padding: 0 14px 0 34px; font-size: 13px; color: var(--ink); font-family: inherit;
  transition: .16s;
}
.hsearch input::placeholder { color: var(--dim); }
.hsearch input:focus { outline: none; border-color: var(--lav-deep); background: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.hsearch .si { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); display: flex; }

/* ---------- 面包屑条 ---------- */
.crumb-bar { background: #fff; border-bottom: 1px solid var(--line); }
.crumb-bar .wrap { display: flex; gap: 8px; align-items: center; height: 44px; font-size: 12.5px; color: var(--dim); }
.crumb-bar a:hover { color: var(--violet-700); }
.crumb-bar .sep { color: var(--line); }

/* ---------- 筛选区 ---------- */
.filter-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px 12px; box-shadow: var(--shadow-sm);
}
.filter-row {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--line-soft); flex-wrap: wrap;
}
.fselect {
  height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--body); font-size: 12.5px; padding: 0 8px; font-family: inherit;
}
.fselect:focus { outline: none; border-color: var(--lav-deep); }
.filter-meta { margin-left: auto; font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 10px; }

/* ---------- 项目表格 ---------- */
.ptable-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-top: 14px;
}
.ptable-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th {
  text-align: left; font-size: 12.5px; font-weight: 600; color: var(--dim);
  background: #FCFBFE; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ptable td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ptable tbody tr:hover td { background: #FBF9FE; }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable .pname { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.ptable .pname:hover { color: var(--violet-700); }
.ptable .psub { font-size: 12px; color: var(--dim); margin-top: 4px; }
.ptable .pind { color: var(--body); }
.ptable .pform { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ptable .porg { color: var(--body); white-space: nowrap; }
.ptable .pstat { white-space: nowrap; }
.ptable .pstat .dd { display: block; font-size: 11.5px; color: var(--dim); margin-top: 5px; }
.ptable .pop a { font-size: 13px; color: var(--violet-700); font-weight: 600; white-space: nowrap; }

.alink { font-size: 13px; color: var(--violet-700); font-weight: 600; }
.alink:hover { text-decoration: underline; }

/* ---------- 页面头（我的申请 / 在线申请） ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 26px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head .ph-sub { font-size: 13px; color: var(--dim); margin-top: 6px; }
.page-head .ph-actions { display: flex; gap: 10px; }
.draft-note { font-size: 12.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.draft-note b { color: var(--violet-700); font-weight: 600; }

/* ---------- 我的申请 ---------- */
.tabs-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.tabs-bar .sort { margin-left: auto; font-size: 12.5px; color: var(--dim); }
.stat-box .note { font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.stat-box.hl .note { color: #6B5A85; }
.app-card.due { border-color: #FED7AA; background: linear-gradient(180deg, #FFF7ED, #fff 40%); }
.app-card .pbar { margin-bottom: 42px; }
.pnode .pdate { font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.pnode.cur .pdate { color: var(--violet-700); font-weight: 600; }
.app-head .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.app-stage { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 13px; color: var(--dim); margin-top: 16px; flex-wrap: wrap; }
.app-stage b { color: var(--ink); font-weight: 600; }
.warnline {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--amber-bg); border: 1px solid #FED7AA;
  font-size: 12.5px; color: var(--amber-ink); flex-wrap: wrap;
}
.warnline .btn { flex: none; }

/* 待办提醒卡 */
.todo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.todo-card h4 { font-size: 14px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.todo-card h4 .cnt { font-size: 11.5px; color: var(--amber-ink); background: var(--amber-bg); border: 1px solid #FED7AA; border-radius: 6px; padding: 1px 7px; }
.todo-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.todo-item:last-of-type { border-bottom: 0; }
.todo-item .ti-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 6px; }
.todo-item h5 { font-size: 13.5px; color: var(--ink); margin: 0 0 3px; font-weight: 600; }
.todo-item p { font-size: 12px; color: var(--dim); }
.todo-item p b { color: var(--amber-ink); font-weight: 600; }
.todo-more { display: block; margin-top: 10px; font-size: 12.5px; }

/* ---------- 详情页补充 ---------- */
.detail-hero .eyebrow-pill {
  display: inline-flex; gap: 7px; align-items: center;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.65); border: 1px solid rgba(124,77,207,.22);
  font-size: 12.5px; font-weight: 600; color: var(--violet-700);
}
.detail-hero .drugline { margin-top: 16px; font-size: 14.5px; color: #4B3A6B; }
.detail-hero .drugline b { color: var(--plum-900); font-weight: 700; }
.detail-hero .orgline { margin-top: 5px; font-size: 13px; color: #6B5A85; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.plan-grid .plan-card { margin-bottom: 0; }
.qa { display: flex; flex-direction: column; gap: 16px; }
.qa h4 { font-size: 14.5px; }
.qa p { font-size: 13.5px; color: var(--body); margin-top: 5px; }

.entry-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.entry-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.entry-card h3 { font-size: 16px; }
.entry-card dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 13px; }
.entry-card dt { color: var(--dim); }
.entry-card dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.entry-card .btn { width: 100%; }
.entry-card .btn + .btn { margin-top: 10px; }
.entry-card .office { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-soft); font-size: 13px; }
.entry-card .office b { color: var(--ink); }
.entry-card .office .sub { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.warn-box {
  margin-top: 14px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--amber-bg); border: 1px solid #FED7AA;
  font-size: 12.5px; color: var(--amber-ink); line-height: 1.7;
}

/* ---------- 表单页补充 ---------- */
.form-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.form-card-head h2 { font-size: 17px; }
.form-card-head span { font-size: 12.5px; color: var(--dim); }
.material-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.material-list .checkline { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.mini-progress { height: 4px; border-radius: 4px; background: var(--line-soft); margin-top: 10px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--grad-cta); border-radius: 4px; transition: width .3s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 60;
  transform: translateX(-50%) translateY(8px);
  background: var(--plum-900); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .layout, .form-layout { grid-template-columns: 1fr; }
  .aside, .summary-card { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav, .hotline { display: none; }
  .hero { padding: 34px 0 46px; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
  .hero-stat b { font-size: 21px; }
  .match-card { margin: -24px 12px 0; padding: 16px; border-radius: var(--r-lg); }
  .match-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .detail-hero h1 { font-size: 23px; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pnode { width: 58px; }
  .app-head { flex-direction: column; }
  .btn { width: auto; }
  .form-actions .btn { flex: 1; }
}

/* 移动端底部固定操作条（详情页/申请页） */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { flex: 1; height: 46px; }
  .mobile-bar .call {
    flex: none; width: 46px; height: 46px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: var(--lav-soft); color: var(--violet-700);
    display: grid; place-items: center;
  }
  body.has-mobile-bar { padding-bottom: 78px; }
}

/* ---------- 响应式补充（Hero 双栏 / 表格 / 页面头） ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 560px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; margin-top: 26px; }
  .hero-stat b { font-size: 22px; }
  .hsearch input { width: 150px; }
  .ptable { min-width: 860px; }
  .filter-row .fselect { flex: 1; min-width: calc(50% - 10px); }
  .filter-meta { width: 100%; margin-left: 0; }
  .page-head .wrap { padding-top: 20px; padding-bottom: 16px; }
  .page-head h1 { font-size: 21px; }
  .stat-bar { gap: 10px; }
  .app-stage { flex-direction: column; gap: 4px; }
  .app-foot { flex-direction: column; align-items: flex-start; }
  .app-head .right { flex-direction: row; align-items: center; }
  .tabs-bar .sort { width: 100%; margin-left: 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Brand sublabel ---------- */
.brand-sub {
  font-size: 11.5px; font-weight: 600; color: var(--violet-700);
  background: var(--lav-soft); border: 1px solid var(--lav);
  padding: 2px 9px; border-radius: var(--r-pill); margin-left: 2px;
}

/* ---------- 首页匹配门控 ---------- */
.match-gate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 40px 36px; text-align: center; box-shadow: var(--shadow-sm);
}
.gate-icon {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--lav-soft); color: var(--violet-700);
  display: grid; place-items: center; font-size: 22px;
}
.match-gate h3 { font-size: 20px; margin-bottom: 8px; }
.match-gate > p { font-size: 14px; color: var(--body); max-width: 620px; margin: 0 auto; }
.gate-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 22px 0 16px;
}
.gate-chips .chip { height: 38px; padding: 0 16px; }
.match-gate .gate-tip { font-size: 12.5px; color: var(--dim); }
@media (max-width: 760px) {
  .match-gate { padding: 28px 18px; }
  .match-gate h3 { font-size: 17px; }
  .gate-chips { gap: 6px; }
  .gate-chips .chip { height: 34px; padding: 0 12px; font-size: 12.5px; }
}

/* ---------- 合规相关组件 ---------- */
.hero-stat span .demo { font-size: 11px; color: #9A8FB8; }
.ptable .psub.src { color: #A69BBE; font-size: 11.5px; margin-top: 3px; }

.kv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; min-width: 0; }
.kv {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px;
  min-width: 0;
}
.kv span { color: var(--dim); flex: none; }
.kv b { color: var(--ink); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.material-box { display: flex; flex-direction: column; gap: 10px; }
.mat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff;
  font-size: 13.5px; color: var(--body);
}
.mat-item .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lav-soft); color: var(--violet-700);
  display: grid; place-items: center;
}

.bullet-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.bullet-list li { font-size: 13.5px; color: var(--body); line-height: 1.75; }
.bullet-list li b { color: var(--ink); }

.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.link-list a { font-size: 13.5px; color: var(--violet-700); }

/* 免责信息：单行紧凑声明条（替代原四张大卡，省纵向空间） */
.disclaim-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 5px 20px; margin-top: 14px;
  padding: 11px 15px; border-radius: var(--r-md);
  background: var(--violet-50); border: 1px solid var(--lav);
  font-size: 12px; color: var(--body); line-height: 1.7;
}
.disclaim-bar .db-item { display: inline-flex; align-items: baseline; gap: 6px; }
.disclaim-bar b {
  color: var(--ink); font-weight: 600; font-size: 12px;
  padding: 1px 7px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--lav);
  white-space: nowrap;
}
.disclaim-bar .alink { font-size: 12px; }

@media (max-width: 1080px) {
  .disclaim-bar { gap: 6px 16px; }
}
@media (max-width: 760px) {
  .kv-grid { grid-template-columns: 1fr; }
  .disclaim-grid { grid-template-columns: 1fr; }
}

/* 侧栏键值列表（覆盖 .entry-card dl 的 grid 规则影响） */
.kv-list { display: flex; flex-direction: column; }
.kv-list .kv { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.kv-list .kv:last-child { border-bottom: 0; }
.kv-list .kv span { color: var(--dim); flex: none; }
.kv-list .kv b { color: var(--ink); font-weight: 600; text-align: right; }


/* ---------- 患者行动指引 / 状态提示 ---------- */
.action-card {
  background: #fff; border: 1px solid var(--lav); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.action-card h3 { font-size: 16px; margin-bottom: 6px; }
.action-card > p { font-size: 13px; color: var(--body); margin-bottom: 14px; }
.action-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: act; }
.action-steps li {
  list-style: none; display: flex; gap: 12px; font-size: 13.5px; color: var(--body);
  line-height: 1.7; counter-increment: act;
}
.action-steps li::before {
  content: counter(act); flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lav-soft); color: var(--violet-700); font-size: 12px; font-weight: 700;
  display: grid; place-items: center; margin-top: 3px;
}
.action-steps li b { color: var(--ink); }
.action-foot {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--lav-soft); border: 1px solid var(--lav);
  font-size: 12.5px; color: var(--plum-700); line-height: 1.7;
}
.status-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r-md); margin-top: 16px;
  background: var(--amber-bg); border: 1px solid #FED7AA; font-size: 13px; color: var(--amber-ink);
}
.status-note b { color: var(--amber-ink); }
.status-note .ic { flex: none; margin-top: 1px; }
.minor-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--violet-50); border: 1px solid var(--lav);
  font-size: 12.5px; color: var(--plum-700); line-height: 1.7;
}

/* ---------- 援助力度（自付占比） ---------- */
.psub.burden { font-weight: 600; color: var(--violet-700); margin-top: 4px; }
.psub.burden.good { color: #0D9488; }
.psub.burden.mid  { color: #B45309; }
.psub.burden.wait { color: var(--dim); font-weight: 400; }

.burden-box {
  margin-top: 18px; padding: 16px 18px;
  border-radius: var(--r-md); background: var(--lav-soft); border: 1px solid var(--lav);
}
.bb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bb-label { font-size: 13px; color: var(--plum-700); font-weight: 600; }
.bb-val { font-size: 26px; font-weight: 700; color: var(--plum-900); letter-spacing: -.02em; }
.bb-val.wait { font-size: 15px; color: var(--dim); font-weight: 600; }
.bb-bar {
  position: relative; height: 8px; margin: 12px 0 10px;
  background: #fff; border-radius: 99px; overflow: hidden;
}
.bb-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #A78BFA, #7C3AED);
}
.bb-bar em {
  position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: #fff; border: 3px solid #7C3AED;
}
.bb-foot { font-size: 12px; color: var(--body); line-height: 1.7; }
.bb-foot b { color: var(--plum-900); }
.burden-box.wait { background: #F8FAFC; border-color: var(--line); }
.burden-box.wait .bb-label { color: var(--body); }

/* ---------- 材料明细 ---------- */
.mat-item { align-items: flex-start; }
.mat-item .mi-body { flex: 1; min-width: 0; }
.mi-name { font-size: 13.5px; color: var(--ink); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mi-src { font-size: 12px; color: var(--dim); margin-top: 3px; }
.mi-mode {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-pill);
  background: #F1F5F9; color: var(--body); border: 1px solid var(--line);
}
.mi-mode.orig { background: var(--amber-bg); color: var(--amber-ink); border-color: #FED7AA; }
.mi-mode.form { background: var(--lav-soft); color: var(--violet-700); border-color: var(--lav); }
.mi-mode.online { background: #ECFDF5; color: #0D9488; border-color: #A7F3D0; }

.docs .doc { display: inline-flex; align-items: center; gap: 5px; }
.docs .doc em { font-style: normal; font-size: 10.5px; color: var(--dim); }
.docs .doc.online { border-color: #A7F3D0; background: #ECFDF5; color: #0D9488; }

.mat-note { margin-top: 12px; font-size: 12.5px; color: var(--body); line-height: 1.7; }
.mat-note b { color: var(--ink); }
.mat-note .dim { color: var(--dim); }

/* ---------- 反馈文本生成器 ---------- */
.feedback-gen {
  margin-top: 18px; padding: 20px 22px;
  border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--lav); box-shadow: var(--shadow-sm);
}
.fg-head h3 { font-size: 15px; margin-bottom: 6px; }
.fg-head p { font-size: 12.5px; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.fg-head p b { color: var(--ink); }
.fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feedback-gen .field { margin-bottom: 14px; }
.feedback-gen .field label { display: block; font-size: 12.5px; color: var(--body); margin-bottom: 6px; font-weight: 500; }
.feedback-gen .field select,
.feedback-gen .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; font-family: inherit; color: var(--ink);
  background: #fff; resize: vertical;
}
.feedback-gen .field select:focus,
.feedback-gen .field textarea:focus { outline: none; border-color: #C4A6F2; box-shadow: 0 0 0 3px rgba(168,132,236,.14); }
.fg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fg-actions .hint { font-size: 11.5px; color: var(--dim); }
.fg-out {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 10px;
  background: var(--violet-50); border: 1px solid var(--lav);
  font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  font-size: 12px; line-height: 1.75; color: var(--plum-900);
  white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto;
}
@media (max-width: 760px) {
  .fg-grid { grid-template-columns: 1fr; gap: 0; }
  .feedback-gen { padding: 16px; }
}

/* 详情页「信息有误」快捷反馈 */
.err-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--dim); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
}
.err-link:hover { color: var(--violet-700); text-decoration-color: currentColor; }
.filter-meta b { color: var(--ink); font-weight: 600; }
.filter-meta .meta-src { color: var(--dim); }

/* ---------- 核实状态：未查得在册公示 ---------- */
.pill-unlisted { background: #F1F5F9; color: #64748B; border-color: #CBD5E1; }
.status-note.warn { background: #FFF7ED; border-color: #FDBA74; color: var(--amber-ink); }
.status-note.warn b { color: var(--amber-ink); }
.status-note.warn .dim { color: #9A3412; opacity: .8; }

/* ---------- 可拨打的官方热线 ---------- */
.tel-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--violet-700);
  text-decoration: none; letter-spacing: .01em;
}
.tel-link::before {
  content: ''; width: 15px; height: 15px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tel-link:hover { color: var(--lav-deeper); text-decoration: underline; text-underline-offset: 3px; }
.tel-sub { display: block; font-size: 11.5px; color: var(--dim); margin-top: 4px; font-weight: 400; }

/* ---------- 受理限制 ---------- */
.status-note.limit { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.status-note.limit b { color: #991B1B; }
.status-note.limit .dim { color: #B91C1C; opacity: .85; }
.dd.limit { color: #991B1B; font-weight: 600; }
.limit-txt { color: #991B1B; font-weight: 600; }

/* ---------- 精简版页脚 ---------- */
.site-footer { padding: 20px 0 16px; }
.footer-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.footer-top .brand { flex: none; }
.footer-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.footer-nav a {
  font-size: 13px; color: var(--body); text-decoration: none;
  white-space: nowrap; transition: color .15s;
}
.footer-nav a:hover { color: var(--violet-700); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 10px; font-size: 11.5px; color: var(--dim);
}
.footer-bottom a { color: var(--dim); }
.footer-bottom a:hover { color: var(--violet-700); }

@media (max-width: 760px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-nav { gap: 12px 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- 项目官方名（患者常按项目名搜索） ---------- */
.psub.proj { color: var(--violet-700); font-weight: 500; }
.detail-hero .projname {
  margin-top: 8px; font-size: 13px; color: #6B5A85;
}
.detail-hero .projname b { color: var(--plum-900); font-weight: 600; }

/* ---------- 四步流程 · 卡片网格 + 配图 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.step:hover {
  border-color: #C4A6F2;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* 配图区 */
.step-art-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--lav-soft) 0%, #FCFAFE 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px 4px;
  display: flex; align-items: center; justify-content: center;
  min-height: 132px;
}
.step-art {
  display: block; width: 100%; max-width: 260px; height: auto;
  --art-bg: transparent;
  --art-stroke: #A78BFA;
  --art-fill: #C4B5FD;
  --art-accent: #7C3AED;
}
/* 角标压在配图右上角 */
.step .no {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 9px;
  background: #fff; color: var(--violet-700);
  font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
  border: 1px solid var(--lav);
  box-shadow: var(--shadow-sm);
}
.step-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.step h4 { font-size: 15.5px; margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--body); line-height: 1.75; }
.step .t {
  margin-top: auto; padding-top: 12px;
  font-size: 12px; color: var(--dim);
  display: inline-flex; align-items: center; gap: 6px;
}
.step .t::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet-300, #C4A6F2);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .step-body { padding: 14px 15px 16px; }
  .step h4 { font-size: 14.5px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step-art-wrap { padding: 12px 12px 0; }
}

/* ============================================================================
   卡片风格参考「患者健康陪伴手册」
   —— 白底 + 极细描边 + 大圆角 + 几乎无阴影 + 左侧语义色条 + 彩色图标
   ========================================================================== */

/* 语义色（与手册一致：绿=已完成 / 橙=进行中 / 红=警示 / 青蓝=信息） */
:root {
  --ok-green: #15803D;
  --ok-bg: #EAF7EE;
  --warn-orange: #C2410C;
  --warn-bg: #FFF4EA;
  --alert-red: #C0392B;
  --alert-bg: #FDEFEE;
  --info-teal: #0F766E;
  --info-bg: #E8F6F4;
  --paper: #FCFAF7;          /* 纸感暖白 */
  --card-line: #E8E2D9;      /* 极细暖灰描边 */
  --card-radius: 18px;
  --card-shadow: 0 1px 2px rgba(58, 33, 96, .03);
}

/* 四步卡片：按手册的卡片语言重做 */
.steps { gap: 20px; }

.step {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.step::before {
  /* 左侧语义色条 */
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--step-accent, var(--violet-300));
}
.step:hover {
  border-color: var(--step-accent, #C4A6F2);
  box-shadow: 0 8px 24px rgba(58, 33, 96, .07);
  transform: translateY(-2px);
}

/* 每步的语义色 */
.step:nth-child(1) { --step-accent: var(--info-teal); --step-icon-bg: var(--info-bg); }
.step:nth-child(2) { --step-accent: var(--warn-orange); --step-icon-bg: var(--warn-bg); }
.step:nth-child(3) { --step-accent: var(--violet-700); --step-icon-bg: var(--violet-50); }
.step:nth-child(4) { --step-accent: var(--ok-green); --step-icon-bg: var(--ok-bg); }

/* 配图区：去掉渐变底，改纸感底 */
.step-art-wrap {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--card-line);
  padding: 14px 16px 2px;
  display: flex; align-items: center; justify-content: center;
  min-height: 128px;
}

/* 卡片主体 */
.step-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }

/* 标题行：彩色图标 + 标题 */
.step-title-row {
  display: flex; align-items: center; gap: 9px; margin-bottom: 7px;
}
.step-icon {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px;
  background: var(--step-icon-bg, var(--violet-50));
}
.step h4 { font-size: 15.5px; margin: 0; letter-spacing: .01em; }
.step p { font-size: 13px; color: var(--body); line-height: 1.85; }

/* 大号数字（衬线） */
.step .t {
  margin-top: auto; padding-top: 14px;
  font-size: 12px; color: var(--dim);
  display: flex; align-items: baseline; gap: 7px;
}
.step .t b {
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 20px; font-weight: 400; color: var(--step-accent, var(--violet-700));
  line-height: 1;
}

/* 角标：右上角，小圆点样式 */
.step .no {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); color: var(--step-accent, var(--violet-700));
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  border: 1px solid var(--card-line);
  font-family: Georgia, 'Times New Roman', serif;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .step-body { padding: 14px 16px 16px; }
  .step h4 { font-size: 14.5px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step-art-wrap { padding: 12px 14px 2px; }
}

/* Keep the supplied design usable at intermediate and mobile widths. */
.official-notices summary,.preparation-more summary{cursor:pointer;color:var(--violet-700);font-weight:600;padding:12px 0}
.official-notices p{margin:8px 0;font-size:13px;line-height:1.7}
.preparation-more{margin:16px 0}
.material-download{white-space:nowrap;align-self:center;font-size:13px;font-weight:600;margin-left:auto}
.detail-hero .orgline{line-height:1.8}
.brand,.brand-name,.brand-sub{white-space:nowrap;flex-shrink:0}
@media(max-width:1100px){.site-header .nav{display:none}.header-actions{margin-left:auto}.utility .u-right{display:none}}
@media(max-width:600px){.header-actions .hsearch{display:none}.brand{gap:8px}.brand-sub{font-size:14px}.site-header .wrap{gap:10px}.header-actions .btn{white-space:nowrap}.detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-stat{min-width:0}.detail-stat b{overflow-wrap:anywhere}.ptable-wrap{max-width:100%;overflow:auto}.kv b{overflow-wrap:anywhere}.card,.entry-card,.hero-card{min-width:0}}
