:root {
  --primary:#176b61; --primary-dark:#174c45; --primary-soft:#e2f5ec;
  --ink:#243b38; --muted:#657773; --line:#e3ede7; --paper:#fff; --page:#f2f8f5;
  --pink:#b93e61; --pink-soft:#fff0f3; --blue:#386bb0; --blue-soft:#edf4ff; --peach:#a55e2b; --peach-soft:#fff2e4;
}
@supports(color:oklch(43% 0.078 188.216)) { :root { --primary:var(--color-primary-content); } }
* { box-sizing:border-box; }
html,body { margin:0; min-width:0; color:var(--ink); background:var(--page); font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
button,input,select { font:inherit; }
button,a { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid #ea8ca5; outline-offset:4px; }
.guide-shell { width:100%; max-width:1000px; margin:auto; min-height:100dvh; background:var(--paper); }
.guide-header { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:86px; padding:18px 20px; }
.guide-brand { display:flex; align-items:center; gap:11px; min-width:0; }
.guide-brand>div { min-width:0; }
.guide-header img { width:48px; height:48px; flex:0 0 48px; object-fit:contain; border:1px solid #f3e3da; border-radius:16px; background:#fff9f3; }
.guide-header h1 { margin:0; color:var(--ink); font-size:20px; line-height:1.4; font-weight:700; letter-spacing:-.02em; }
.guide-header p { margin:4px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
.guide-label { display:inline-flex; flex:0 0 auto; align-items:center; min-height:32px; padding:5px 10px; border-radius:20px; color:var(--primary); background:var(--primary-soft); font-size:13px; line-height:1.4; }
#health-class-stage { padding:6px 18px 12px; }
.hc-step-head { margin:12px 0 22px; }
.hc-step-head .eyebrow { display:inline-flex; align-items:center; margin:0 0 8px; color:var(--primary); font-size:14px; line-height:1.5; font-weight:600; }
.hc-step-head h2 { position:relative; max-width:100%; margin:0; color:var(--ink); font-size:27px; line-height:1.45; font-weight:750; letter-spacing:-.025em; outline:0; }
.hc-step-lead { margin:9px 0 0; color:var(--muted); font-size:16px; line-height:1.7; }
.flow-cover { position:relative; isolation:isolate; min-height:212px; margin:4px 0 24px; padding:24px 20px; border-radius:26px; background:#e4f5eb; overflow:hidden; }
.flow-cover::after { content:""; position:absolute; z-index:-1; right:-27px; bottom:-53px; width:200px; height:200px; border-radius:50%; background:#d4efdf; }
.flow-cover .flow-heading-copy { position:relative; z-index:2; width:55%; }
.flow-cover .eyebrow { padding:4px 9px; border-radius:20px; background:#fff9; margin-bottom:10px; }
.flow-cover h2 { font-size:29px; line-height:1.4; color:var(--primary-dark); }
.cover-title-line { display:block; }
.flow-cover .hc-step-lead { font-size:15px; line-height:1.7; margin-top:11px; color:#4d6b62; }
.flow-cover-art { position:absolute; z-index:1; width:43%; height:auto; right:7px; bottom:10px; pointer-events:none; }
.hc-option-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; margin:14px 0; }
.hc-option-card { --card-accent:#176b61; --card-soft:#e5f6ed; position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:13px; width:100%; min-width:0; min-height:143px; padding:18px 15px 17px; color:var(--ink); border:1px solid #e5ece8; border-radius:22px; background:white; box-shadow:0 4px 14px #203b3606; text-align:left; cursor:pointer; transition:transform .15s,border-color .15s,box-shadow .15s; }
.hc-option-card:hover { transform:translateY(-3px); border-color:#a7cfc0; box-shadow:0 8px 22px #203b360d; }
.hc-option-card:active { transform:translateY(0); background:#fcfefd; }
.hc-option-card[data-art="heart"],.hc-option-card[data-art="leave"] { --card-accent:#b43e61; --card-soft:#ffedf2; }
.hc-option-card[data-art="award"],.hc-option-card[data-art="book"] { --card-accent:#9e642d; --card-soft:#fff2df; }
.hc-option-card[data-art="hospital"],.hc-option-card[data-art="pin"] { --card-accent:#386bb0; --card-soft:#eaf2ff; }
.hc-option-card[data-art="info"] { --card-accent:#8b5d96; --card-soft:#f7edf9; }
.hc-option-icon { width:43px; height:43px; flex:0 0 43px; display:grid; place-items:center; border-radius:15px; color:var(--card-accent); background:var(--card-soft); }
.hc-option-icon svg { width:24px; height:24px; }
.hc-opt-copy { display:block; min-width:0; }
.hc-opt-copy strong { display:block; font-size:16px; line-height:1.5; font-weight:700; overflow-wrap:anywhere; }
.hc-opt-copy small { display:block; margin-top:5px; color:var(--muted); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.hc-entry-card { min-height:152px; }
.flow-entry-list { margin-top:18px; }
.flow-entry-list>.hc-option-card:first-child { background:#f9fefb; border-color:#cbe8d7; }
.flow-entry-list>.hc-option-card:nth-child(2) { background:#fffafc; border-color:#f3e0e8; }
.flow-menu-section { margin:26px 0; }
.flow-menu-section h3 { display:flex; align-items:center; gap:10px; margin:0 0 14px; color:var(--ink); font-size:17px; line-height:1.5; font-weight:700; }
.flow-menu-section h3::before { content:""; flex:0 0 6px; height:18px; border-radius:9px; background:#7cc7a4; }
.flow-menu-section h3::after { content:""; flex:1; height:1px; background:var(--line); }
.primary-button,.secondary-button { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:11px 17px; border-radius:var(--radius-field,2rem); font-size:16px; font-weight:600; line-height:1.6; cursor:pointer; }
.primary-button { border:1px solid var(--primary); color:#fff; background:var(--primary); }
.primary-button:hover { filter:brightness(.96); }
.secondary-button { margin-top:12px; color:var(--primary); border:1px solid #bddbd0; background:white; }
.flow-context { display:flex; margin:12px 0 15px; }
.flow-context span { padding:5px 10px; border-radius:20px; color:var(--primary); background:var(--primary-soft); font-size:14px; line-height:1.5; }
.flow-card { position:relative; margin:18px 0; padding:20px 18px; border:1px solid var(--line); border-radius:20px; background:#fbfdfb; }
.flow-card h4 { margin:0 0 12px; color:var(--primary-dark); font-size:16px; line-height:1.5; font-weight:700; }
.flow-card p { margin:0; color:var(--ink); font-size:16px; line-height:1.85; overflow-wrap:anywhere; }
.flow-card p+p { margin-top:13px; }
.flow-list { margin:20px 0; padding-left:24px; }
.flow-list li { margin:12px 0; padding-left:2px; font-size:16px; line-height:1.8; }
.flow-list li::marker { color:#429e7c; }
.flow-links { display:flex; flex-wrap:wrap; gap:9px; margin:18px 0; }
.flow-link { display:inline-flex; align-items:center; min-height:48px; padding:10px 14px; border:1px solid #cfe5d9; border-radius:16px; color:var(--primary); background:#f2faf5; text-decoration:none; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.flow-link:hover { border-color:#99c6af; }
.flow-next { margin-top:25px; }
.flow-navigation { display:flex; justify-content:flex-start; margin-top:27px; padding-top:18px; border-top:1px solid var(--line); }
.flow-navigation>.secondary-button { width:auto; min-width:122px; margin-top:0; padding-left:24px; padding-right:24px; }
.flow-qr { margin:20px 0; padding:16px; border:1px solid var(--line); border-radius:22px; background:white; }
.flow-qr img { display:block; width:min(100%,320px); height:auto; margin:auto; }
.flow-qr p,.flow-footnote { margin:12px 0; color:var(--muted); font-size:14px; line-height:1.7; }
.flow-feedback { margin-top:13px; color:var(--primary-dark); font-size:15px; line-height:1.7; }
.flow-feedback:empty { display:none; }
.flow-selected { margin:18px 0; padding:0 14px; border:1px solid #d0e8d9; border-radius:18px; background:#f1faf4; font-size:15px; }
.flow-selected summary { min-height:48px; padding:13px 0; color:var(--primary); cursor:pointer; }
.flow-selected p { margin:0 0 13px; line-height:1.7; overflow-wrap:anywhere; }
.form-stack { display:grid; gap:18px; }
.form-stack label { display:grid; gap:8px; min-width:0; font-size:16px; }
.form-stack input,.form-stack select { width:100%; min-height:48px; padding:12px; color:var(--ink); border:1px solid #cde2d7; border-radius:14px; background:white; font-size:16px; }
.guide-footer { margin-top:22px; padding:13px 18px calc(20px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); text-align:center; }
.guide-footer a { display:inline-flex; align-items:center; min-height:48px; color:var(--primary); font-size:14px; line-height:1.5; text-decoration:none; }
.guide-footer a:hover { text-decoration:underline; text-underline-offset:5px; }
@media(min-width:640px) {
  body { padding:24px; }
  .guide-shell { min-height:calc(100dvh - 48px); border:1px solid #e1eae4; border-radius:30px; overflow:hidden; box-shadow:0 15px 50px #1d49310a; }
  .guide-header { padding:24px 32px 20px; }
  .guide-header h1 { font-size:23px; }
  .guide-label { padding:7px 14px; font-size:14px; }
  #health-class-stage { padding:6px 30px 16px; }
  .hc-step-head h2 { font-size:30px; }
  .flow-cover { min-height:236px; padding:29px 30px; border-radius:28px; }
  .flow-cover::after { width:260px; height:260px; right:13px; bottom:-73px; }
  .flow-cover .flow-heading-copy { width:61%; }
  .flow-cover h2 { font-size:35px; }
  .flow-cover-art { width:42%; max-width:330px; right:24px; bottom:0; }
  .hc-option-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
  .hc-option-card { min-height:155px; padding:20px; }
  .hc-entry-card { min-height:165px; }
  .guide-footer { padding:14px 30px 22px; }
}
@media(min-width:900px) { .flow-menu-section .hc-option-list { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:400px) { .guide-label { display:none; } }
@media(max-width:350px) {
  .guide-header { padding:16px 12px; gap:8px; }
  .guide-brand { gap:9px; }
  .guide-header h1 { font-size:18px; }
  .guide-header img { width:42px; height:44px; flex-basis:42px; border-radius:14px; }
  #health-class-stage { padding:5px 12px 12px; }
  .flow-cover { padding:21px 15px; min-height:212px; }
  .flow-cover h2 { font-size:27px; }
  .flow-cover .flow-heading-copy { width:58%; }
  .flow-cover-art { width:39%; right:5px; bottom:12px; }
  .hc-option-list { gap:10px; }
  .hc-option-card { padding:16px 12px; }
}
@media(prefers-reduced-motion:reduce) { .hc-option-card { transition:none; } }
.flow-attachment { display:grid; grid-template-columns:42px minmax(0,1fr); gap:12px; margin:18px 0; padding:17px 15px; border:1px solid #c5e3d2; border-radius:20px; color:var(--ink); background:var(--primary-soft); }
.flow-attachment-icon { display:grid; place-items:center; width:42px; height:46px; border-radius:13px; color:var(--primary); background:#fff; }
.flow-attachment-icon svg { width:24px; height:24px; }
.flow-attachment-copy { min-width:0; }
.flow-attachment-copy h4 { margin:0; color:var(--primary-dark); font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
.flow-attachment-copy p { margin:5px 0 0; color:var(--muted); font-size:14px; line-height:1.6; }
.flow-attachment>.flow-link { grid-column:1 / -1; width:100%; min-height:48px; margin:0; justify-content:center; border:1px solid var(--primary); color:#fff; background:var(--primary); }
