/* ==========================================================================
   CareMate · 康伴陪诊 — 样式表
   Design language: clinical calm (deep teal) + human warmth (amber)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand-950: #062d2b;
  --brand-900: #0a3f3c;
  --brand-800: #0c544e;
  --brand-700: #0f6b62;
  --brand-600: #14877c;
  --brand-500: #1aa294;
  --brand-200: #b7e6de;
  --brand-100: #d9f2ec;
  --brand-50: #eefaf7;

  --amber-600: #c47a12;
  --amber-500: #e2941f;
  --amber-300: #f6c877;
  --amber-100: #fdf1dc;
  --amber-50: #fef8ec;

  --ink: #0c2023;
  --ink-2: #22454a;
  --muted: #647f84;
  --muted-2: #8ba3a7;
  --line: #e2ecea;
  --line-strong: #cfdedb;
  --bg: #f5faf8;
  --card: #ffffff;

  --ok: #17805e;
  --ok-bg: #e8f7f0;
  --warn: #b4690e;
  --warn-bg: #fdf1dc;
  --danger: #b3352f;
  --danger-bg: #fdeceb;
  --info: #1d5f9e;
  --info-bg: #eaf3fb;
  --violet: #6b4bb5;
  --violet-bg: #f1edfc;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(12, 32, 35, .05);
  --shadow-sm: 0 2px 8px rgba(12, 32, 35, .06);
  --shadow-md: 0 10px 30px -12px rgba(12, 32, 35, .18);
  --shadow-lg: 0 28px 60px -28px rgba(10, 63, 60, .35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;

  --nav-h: 70px;
  --max: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.22; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand-200); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--amber-500); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.035em; }
.section-desc { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; transition: all .18s ease; border: 1px solid transparent;
}
.btn.primary { background: var(--brand-800); color: #fff; box-shadow: 0 6px 16px -8px rgba(12, 84, 78, .7); }
.btn.primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(12, 84, 78, .75); }
.btn.primary:active { transform: translateY(0); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink-2); background: #fff; }
.btn.ghost:hover { border-color: var(--brand-600); color: var(--brand-800); background: var(--brand-50); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #143236; }
.btn.light { background: #fff; color: var(--brand-900); }
.btn.light:hover { background: var(--brand-50); }
.btn.wide { width: 100%; }
.btn.sm { --h: 38px; padding: 0 16px; font-size: 13.5px; }
.btn.xs { --h: 32px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link { color: var(--brand-700); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { color: var(--brand-600); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; position: relative;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-900));
  display: grid; place-items: center; box-shadow: 0 6px 14px -8px rgba(10, 63, 60, .9);
}
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.logo-mark::before { width: 16px; height: 4px; }
.logo-mark::after { width: 4px; height: 16px; }
.logo-mark i { position: absolute; width: 2px; height: 2px; background: var(--amber-300); border-radius: 50%; right: 7px; top: 7px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 16.5px; letter-spacing: -.02em; }
.logo-text i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.nav-links a { font-size: 14px; color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand-600); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--brand-800); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.role-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  background: #eef3f2; border-radius: 999px; border: 1px solid var(--line);
}
.role-switch button {
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .16s ease;
  display: inline-flex; align-items: center; gap: 5px;
}
.role-switch button.active { background: #fff; color: var(--brand-900); box-shadow: var(--shadow-xs); }
.role-switch button:hover:not(.active) { color: var(--ink-2); }
.role-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.role-switch button.active .role-dot { background: var(--brand-500); }

.lang-btn {
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em; color: var(--ink-2); background: #fff;
  transition: all .16s ease; white-space: nowrap; min-width: 52px; flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--brand-600); color: var(--brand-800); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 59;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 18px 16px;
  box-shadow: 0 24px 40px -24px rgba(12, 32, 35, .35);
}
.mobile-menu.open { display: block; animation: pageIn .2s ease; }
.mobile-menu a { display: block; padding: 12px 2px; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mm-roles { display: flex; gap: 8px; margin-top: 14px; }
.mm-roles button {
  flex: 1; height: 38px; border-radius: 9px; background: #f2f7f6; color: var(--ink-2);
  font-size: 13px; font-weight: 600;
}
.mm-roles button:active { background: var(--brand-50); color: var(--brand-800); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 480px at 88% -12%, #d3f0e9 0%, rgba(211, 240, 233, 0) 62%),
    radial-gradient(680px 420px at 2% 4%, #fdf1dc 0%, rgba(253, 241, 220, 0) 58%),
    linear-gradient(180deg, #fbfefd 0%, #f2f9f7 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 107, 98, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 107, 98, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(700px 420px at 55% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(700px 420px at 55% 30%, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 550; color: var(--ink-2); box-shadow: var(--shadow-xs);
}
.hero-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(26, 162, 148, .16); }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -.045em; font-weight: 680; line-height: 1.16; }
.hero h1 em { font-style: normal; color: var(--brand-700); position: relative; white-space: nowrap; z-index: 0; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 13px;
  background: linear-gradient(90deg, rgba(246, 200, 119, .45), rgba(246, 200, 119, .14));
  border-radius: 3px; z-index: -1;
}
.hero-desc { margin-top: 22px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); max-width: 520px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.check-ico {
  width: 17px; height: 17px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center; font-size: 10px; font-weight: 800; flex-shrink: 0;
}

/* Hero live card */
.hero-visual { position: relative; }
.live-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow-lg);
}
.live-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(183, 230, 222, .6), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-head h4 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.live-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); padding: 4px 9px; border-radius: 999px;
}
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.comp-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-weight: 650; font-size: 16px; letter-spacing: .02em;
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, .12);
}
.avatar.lg { width: 58px; height: 58px; font-size: 19px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.comp-name { font-size: 14.5px; font-weight: 650; }
.comp-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.star { color: var(--amber-500); font-size: 11px; }

.eta-box {
  margin-top: 18px; background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-md); padding: 13px 14px;
}
.eta-top { display: flex; justify-content: space-between; align-items: baseline; }
.eta-top span { font-size: 12px; color: var(--brand-800); font-weight: 600; }
.eta-top b { font-size: 15px; color: var(--brand-900); letter-spacing: -.02em; }
.track { margin-top: 12px; height: 4px; background: #fff; border-radius: 4px; overflow: hidden; }
.track i { display: block; height: 100%; width: 62%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.track-steps { margin-top: 8px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.track-steps b { color: var(--brand-700); font-weight: 650; }

.hosp-line { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }
.hosp-line .pin-dot { width: 22px; height: 22px; border-radius: 7px; background: #f3f7f6; display: grid; place-items: center; font-size: 11px; }

.escrow-bar {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.escrow-left { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lock-ico { width: 24px; height: 24px; border-radius: 7px; background: var(--amber-50); color: var(--amber-600); display: grid; place-items: center; font-size: 11px; }
.escrow-amt { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

.floaty {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 13px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); animation: float 5s ease-in-out infinite;
  z-index: 5; white-space: nowrap;
}
.floaty.one { left: -18px; bottom: -26px; }
.floaty.two { right: -16px; top: 20%; animation-delay: 1.6s; }
.floaty .dot-ok { width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 11px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Quick bar ---------- */
.quick-wrap { position: relative; z-index: 2; margin-top: -36px; }
.quick-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 18px; display: grid;
  grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fbfdfc; font-size: 14px; color: var(--ink); transition: all .16s ease; width: 100%;
}
.field textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(26, 162, 148, .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.quick-bar .btn { height: 44px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--card); padding: 26px 24px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.04em; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--brand-900); }
.stat b small { font-size: 15px; font-weight: 600; color: var(--brand-600); margin-left: 2px; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; transition: all .22s ease; overflow: hidden; display: flex; flex-direction: column;
}
.svc-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card.featured { grid-column: span 2; background: linear-gradient(135deg, #0c544e 0%, #0a3f3c 62%, #0d4b45 100%); border-color: transparent; color: #fff; }
.svc-card.featured::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 200, 119, .22), transparent 62%);
}
.svc-card.wide { grid-column: span 3; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.svc-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); font-size: 18px; border: 1px solid var(--brand-100);
}
.svc-card.featured .svc-ico { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); color: #fff; }
.svc-flag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--amber-100); color: var(--amber-600);
}
.svc-card h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.025em; }
.svc-card p { font-size: 13.8px; line-height: 1.68; color: var(--muted); }
.svc-card.featured p { color: rgba(255, 255, 255, .74); max-width: 420px; }
.svc-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.svc-price { font-size: 13px; color: var(--muted); }
.svc-price b { font-size: 20px; color: var(--brand-800); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.svc-card.featured .svc-price { color: rgba(255, 255, 255, .7); }
.svc-card.featured .svc-price b { color: #fff; }
.svc-card.featured .text-link { color: var(--amber-300); }

/* ---------- Steps ---------- */
.how-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.step-item { position: relative; padding: 0 22px 0 0; }
.step-item:not(:last-child)::after {
  content: ""; position: absolute; top: 25px; left: 56px; right: 6px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step-num {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong); color: var(--brand-800);
  font-weight: 680; font-size: 17px; margin-bottom: 18px; position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}
.step-item:first-child .step-num { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.step-item h3 { font-size: 16.5px; margin-bottom: 7px; }
.step-item p { font-size: 13.5px; color: var(--muted); line-height: 1.65; padding-right: 8px; }

/* ---------- Hospitals ---------- */
.city-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.city-tab {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 550; color: var(--muted); transition: all .16s ease;
}
.city-tab:hover { border-color: var(--brand-200); color: var(--brand-800); }
.city-tab.active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.hosp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hosp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  transition: all .2s ease; display: flex; flex-direction: column; gap: 12px;
}
.hosp-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.hosp-head { display: flex; gap: 12px; align-items: flex-start; }
.hosp-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-800); font-weight: 700; font-size: 17px;
  border: 1px solid var(--brand-100);
}
.hosp-name { font-size: 14.5px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.hosp-sub { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tier-badge { display: inline-block; font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 5px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); white-space: nowrap; line-height: 1.6; }
.intl-badge { display: inline-block; font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 5px; background: var(--amber-50); color: var(--amber-600); border: 1px solid #f5e2c2; white-space: nowrap; line-height: 1.6; }
.hosp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hosp-tag { font-size: 11.5px; color: var(--muted); background: #f4f8f7; padding: 3px 9px; border-radius: 6px; }
.hosp-addr { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.hosp-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }

/* ---------- Companions ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  text-align: center; transition: all .2s ease;
}
.comp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand-200); }
.comp-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.online-dot {
  position: absolute; right: 1px; bottom: 3px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--brand-500); border: 2.5px solid #fff;
}
.comp-card h4 { font-size: 15.5px; font-weight: 650; }
.comp-role { font-size: 12px; color: var(--muted); margin-top: 3px; }
.comp-stars { margin: 10px 0 4px; font-size: 12px; color: var(--amber-500); letter-spacing: 1px; }
.comp-stars b { color: var(--ink); font-weight: 650; margin-left: 5px; letter-spacing: 0; }
.comp-stats { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.comp-stats b { color: var(--ink-2); font-weight: 650; }
.comp-tags { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 12px 0 14px; }
.comp-tag { font-size: 11px; padding: 3px 8px; border-radius: 5px; background: var(--brand-50); color: var(--brand-700); }

/* ---------- Trust (dark) ---------- */
.trust-section { background: var(--brand-950); color: #fff; position: relative; overflow: hidden; }
.trust-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 80% 0%, rgba(26, 162, 148, .22), transparent 65%),
              radial-gradient(500px 300px at 10% 100%, rgba(226, 148, 31, .12), transparent 60%);
}
.trust-inner { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.trust-left .eyebrow { color: var(--amber-300); }
.trust-left .eyebrow::before { background: var(--amber-300); }
.trust-left h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.035em; }
.trust-left p { margin-top: 16px; color: rgba(255, 255, 255, .62); font-size: 15px; line-height: 1.7; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); overflow: hidden; }
.trust-cell { background: rgba(255, 255, 255, .03); padding: 26px 24px; }
.trust-cell:hover { background: rgba(255, 255, 255, .06); }
.trust-cell .svc-ico { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: var(--amber-300); margin-bottom: 14px; }
.trust-cell h4 { font-size: 15.5px; margin-bottom: 7px; }
.trust-cell p { font-size: 13px; color: rgba(255, 255, 255, .58); line-height: 1.65; }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.rev-quote { font-size: 34px; line-height: 1; color: var(--brand-200); font-family: Georgia, serif; margin-bottom: 8px; }
.rev-card p { font-size: 13.8px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.rev-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 11px; }
.rev-who { flex: 1; min-width: 0; }
.rev-who b { display: block; font-size: 13px; }
.rev-who span { font-size: 11.5px; color: var(--muted); }
.rev-stars { color: var(--amber-500); font-size: 12px; letter-spacing: 1px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .18s ease; }
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-xs); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--brand-600); font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 20px; font-size: 13.8px; color: var(--muted); line-height: 1.78; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(120deg, #0c544e 0%, #0a3f3c 55%, #0e5f56 100%);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff;
}
.cta-box::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 200, 119, .2), transparent 60%);
}
.cta-box h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; max-width: 480px; }
.cta-box p { margin-top: 12px; color: rgba(255, 255, 255, .68); font-size: 14.5px; max-width: 460px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: #08211f; color: rgba(255, 255, 255, .62); padding: 60px 0 32px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer .logo-text b { color: #fff; }
.footer .logo-text i { color: rgba(255, 255, 255, .45); }
.footer-desc { margin-top: 16px; line-height: 1.7; max-width: 320px; color: rgba(255, 255, 255, .5); }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .85); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .38);
}
.footer-disclaimer { font-size: 11.5px; color: rgba(255, 255, 255, .3); margin-top: 12px; max-width: 760px; line-height: 1.6; }

/* ---------- Page system ---------- */
.page { display: none; }
.page.active { display: block; animation: pageIn .3s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Booking ---------- */
.book-head { padding: 44px 0 24px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.book-head h1 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.035em; }
.book-head p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; padding: 30px 0 80px; }

.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
.stepper-item { flex: 1; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: var(--muted-2); font-weight: 550; transition: all .18s ease; }
.stepper-item .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: #f1f5f4; color: var(--muted); font-size: 11.5px; font-weight: 700;
}
.stepper-item.active { background: var(--brand-50); color: var(--brand-900); font-weight: 650; }
.stepper-item.active .n { background: var(--brand-800); color: #fff; }
.stepper-item.done { color: var(--brand-700); }
.stepper-item.done .n { background: var(--brand-100); color: var(--brand-700); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 16px; font-weight: 650; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.panel-title .opt { font-size: 11px; font-weight: 600; color: var(--muted); background: #f2f6f5; padding: 2px 7px; border-radius: 5px; }
.panel-sub { font-size: 12.8px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.option {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 14px 15px;
  cursor: pointer; transition: all .16s ease; background: #fff; text-align: left;
  display: flex; flex-direction: column; gap: 3px;
}
.option:hover { border-color: var(--brand-200); background: var(--brand-50); }
.option.selected { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 2px rgba(26, 162, 148, .12); }
.option.selected::after {
  content: "✓"; position: absolute; top: 10px; right: 11px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-700); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 700;
}
.option b { font-size: 13.8px; font-weight: 600; letter-spacing: -.01em; }
.option span { font-size: 11.8px; color: var(--muted); line-height: 1.5; }
.option .opt-price { font-size: 12px; color: var(--brand-700); font-weight: 600; margin-top: 3px; }
.option.hosp-opt { padding: 13px 14px; }
.option .tier-line { display: flex; align-items: center; gap: 5px; margin-top: 3px; }

.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.dept-chip {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 10px; text-align: center;
  font-size: 12.8px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: all .15s ease;
  background: #fff; line-height: 1.35; min-height: 46px; display: grid; place-items: center;
}
.dept-chip:hover { border-color: var(--brand-200); color: var(--brand-800); background: var(--brand-50); }
.dept-chip.selected { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

.check-group + .check-group { margin-top: 20px; }
.check-group h5 { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 9px; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; font-size: 13px; transition: all .15s ease; background: #fff;
}
.check-item:hover { border-color: var(--brand-200); background: var(--brand-50); }
.check-item.on { border-color: var(--brand-600); background: var(--brand-50); }
.cbox {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; flex-shrink: 0; font-size: 10px; color: transparent; transition: all .15s ease;
}
.check-item.on .cbox { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.check-item .ci-meta { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.needs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.need-item {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px; border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; transition: all .15s ease; background: #fff;
}
.need-item:hover { border-color: var(--brand-200); background: var(--brand-50); }
.need-item.on { border-color: var(--brand-600); background: var(--brand-50); }
.need-item.on .cbox { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.need-item .cbox { margin-top: 1px; }
.need-item b { font-size: 13px; font-weight: 600; display: block; }
.need-item span { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row + .form-row { margin-top: 14px; }
.form-row.three { grid-template-columns: 1.2fr 1fr 1fr; }

.book-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Summary */
.summary { position: sticky; top: calc(var(--nav-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.summary-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.summary-head h3 { font-size: 15px; font-weight: 650; }
.summary-body { padding: 18px 22px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; color: var(--muted); }
.sum-row b { color: var(--ink-2); font-weight: 550; text-align: right; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 14px; font-size: 14px; color: var(--ink); align-items: baseline; }
.sum-row.total b { font-size: 24px; font-weight: 680; letter-spacing: -.04em; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.sum-hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; margin-top: 8px; }
.summary-foot { padding: 18px 22px 22px; background: #fbfdfc; border-top: 1px solid var(--line); }
.sum-empty { padding: 26px 22px; text-align: center; color: var(--muted-2); font-size: 13px; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.pay-m { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 12.5px; font-weight: 550; cursor: pointer; transition: all .15s ease; }
.pay-m.on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
.agree { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; cursor: pointer; }
.agree a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Order page ---------- */
.order-wrap { padding: 34px 0 80px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.order-top h1 { font-size: 26px; letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-no { font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 11px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.order-no:hover { border-color: var(--brand-300, var(--brand-600)); color: var(--brand-800); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 650;
}
.status-pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-amber { background: var(--warn-bg); color: var(--warn); }
.st-blue { background: var(--info-bg); color: var(--info); }
.st-teal { background: var(--brand-50); color: var(--brand-700); }
.st-violet { background: var(--violet-bg); color: var(--violet); }
.st-green { background: var(--ok-bg); color: var(--ok); }
.st-gray { background: #eef2f2; color: var(--muted); }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card + .card { margin-top: 16px; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 14.5px; font-weight: 650; }
.card-body { padding: 22px; }

.banner {
  border-radius: var(--r-lg); padding: 22px; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(115deg, #eefaf7, #f7fdfb); border: 1px solid var(--brand-100); margin-bottom: 16px;
}
.banner.amber { background: linear-gradient(115deg, #fef8ec, #fffdf8); border-color: #f7e8cd; }
.banner-icon { width: 44px; height: 44px; border-radius: 13px; background: #fff; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.banner b { font-size: 15px; display: block; letter-spacing: -.01em; }
.banner span { font-size: 12.8px; color: var(--muted); }
.banner .loader { width: 18px; height: 18px; border: 2px solid var(--brand-100); border-top-color: var(--brand-600); border-radius: 50%; animation: spin 1s linear infinite; margin-left: auto; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong); display: grid; place-items: center;
}
.tl-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.tl-item.done .tl-dot { border-color: var(--brand-600); background: var(--brand-600); }
.tl-item.done .tl-dot::after { background: #fff; }
.tl-item.now .tl-dot { border-color: var(--amber-500); background: #fff; box-shadow: 0 0 0 4px var(--amber-50); }
.tl-item.now .tl-dot::after { background: var(--amber-500); animation: blink 1.4s infinite; }
.tl-item b { font-size: 13.5px; font-weight: 600; display: block; }
.tl-item.done b, .tl-item.now b { color: var(--ink); }
.tl-item span { font-size: 12px; color: var(--muted); }
.tl-item .t { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; margin-left: 8px; }

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.dl { display: flex; flex-direction: column; gap: 3px; }
.dl dt { font-size: 11.5px; color: var(--muted); }
.dl dd { margin: 0; font-size: 13.5px; font-weight: 550; color: var(--ink); line-height: 1.5; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.chip.gray { background: #f4f7f6; color: var(--muted); border-color: var(--line); }

.comp-panel { padding: 22px; }
.comp-panel .comp-row { align-items: center; }
.comp-panel-info { flex: 1; min-width: 0; }
.comp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.escrow-card { padding: 22px; }
.escrow-amount { font-size: 34px; font-weight: 680; letter-spacing: -.045em; color: var(--brand-900); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.escrow-state { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ok); font-weight: 550; }
.escrow-state.pending { color: var(--warn); }
.escrow-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.escrow-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.escrow-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.escrow-line b { color: var(--ink-2); font-weight: 550; }

.milestones { display: flex; flex-direction: column; gap: 0; }
.ms { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.ms-ico {
  width: 22px; height: 22px; border-radius: 50%; background: #f1f5f4; color: var(--muted-2);
  display: grid; place-items: center; font-size: 10px; flex-shrink: 0; margin-top: 1px;
}
.ms.done .ms-ico { background: var(--ok-bg); color: var(--ok); }
.ms b { font-size: 13px; font-weight: 550; color: var(--muted-2); }
.ms.done b { color: var(--ink); font-weight: 600; }
.ms span { font-size: 11px; color: var(--muted-2); display: block; }

.empty-state { text-align: center; padding: 80px 24px; max-width: 460px; margin: 0 auto; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-50); border: 1px solid var(--brand-100); display: grid; place-items: center; font-size: 26px; margin: 0 auto 18px; }
.empty-state h3 { font-size: 19px; margin-bottom: 8px; }
.empty-state p { font-size: 13.8px; color: var(--muted); margin-bottom: 22px; }

/* ---------- Workspace (companion) ---------- */
.ws-head { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); padding: 34px 0 0; }
.ws-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.ws-top h1 { font-size: 28px; letter-spacing: -.035em; }
.ws-top p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.ws-toggle {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 6px 5px 15px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-xs);
}
.switch { width: 40px; height: 23px; border-radius: 999px; background: var(--brand-600); position: relative; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 19.5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.off { background: #cfdcda; }
.switch.off::after { left: 2.5px; }

.ws-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.ws-tab { padding: 12px 16px; font-size: 14px; font-weight: 550; color: var(--muted); position: relative; }
.ws-tab.active { color: var(--brand-900); font-weight: 650; }
.ws-tab.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--brand-700); border-radius: 2px; }

.ws-body { padding: 28px 0 80px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 25px; font-weight: 680; letter-spacing: -.04em; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi b small { font-size: 12px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi.accent { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.kpi.accent span { color: rgba(255, 255, 255, .6); }
.kpi.accent b { color: #fff; }

.hall-list { display: flex; flex-direction: column; gap: 12px; }
.hall-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; transition: all .18s ease;
}
.hall-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.hall-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.hall-top b { font-size: 15px; letter-spacing: -.01em; }
.hall-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hall-meta i { font-style: normal; color: var(--ink-2); font-weight: 550; }
.hall-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hall-price { font-size: 20px; font-weight: 680; color: var(--brand-900); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hall-price small { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* ---------- Ops ---------- */
.ops-body { padding: 30px 0 80px; }
.ops-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.8px; }
table.data th {
  text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbfdfc; white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid #f0f5f4; vertical-align: middle; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #fbfdfc; }
table.data .oid { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
table.data .sub { font-size: 11px; color: var(--muted-2); }
.risk-tag { font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.risk-tag.normal { background: var(--ok-bg); color: var(--ok); }
.risk-tag.watch { background: var(--warn-bg); color: var(--warn); }
.risk-tag.alert { background: var(--danger-bg); color: var(--danger); }

.ledger { padding: 6px 0; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.ledger-row:last-child { border-bottom: none; }
.ledger-left { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ledger-dot { width: 8px; height: 8px; border-radius: 3px; }
.ledger-amt { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink); }

.alert-item { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.alert-item:last-child { border-bottom: none; }
.alert-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.alert-ico.warn { background: var(--warn-bg); color: var(--warn); }
.alert-item b { font-size: 13px; font-weight: 600; display: block; }
.alert-item span { font-size: 11.5px; color: var(--muted); }
.alert-item .t { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.chart { padding: 8px 4px 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.bar-label { font-size: 9.5px; fill: var(--muted-2); }
.bar-val { font-size: 9.5px; fill: var(--ink-2); font-weight: 600; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 33, 31, .42);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 460px;
  box-shadow: 0 40px 80px -30px rgba(8, 33, 31, .5); overflow: hidden;
  animation: modalIn .26s cubic-bezier(.2, .8, .3, 1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 24px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h3 { font-size: 19px; letter-spacing: -.025em; }
.modal-head p { font-size: 12.8px; color: var(--muted); margin-top: 5px; line-height: 1.55; }
.modal-close { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 17px; flex-shrink: 0; }
.modal-close:hover { background: #f2f6f5; color: var(--ink); }
.modal-body { padding: 22px 26px 26px; }
.modal-foot { padding: 0 26px 26px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }

.stars-input { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.star-btn { font-size: 34px; line-height: 1; color: #dbe6e4; transition: all .14s ease; }
.star-btn.on { color: var(--amber-500); transform: scale(1.04); }
.rating-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; height: 18px; }
.review-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 6px; }
.rtag { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); transition: all .14s ease; }
.rtag:hover { border-color: var(--brand-200); color: var(--brand-700); }
.rtag.on { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-800); font-weight: 550; }
.review-field { margin-top: 16px; }
.review-field label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.review-field textarea { width: 100%; min-height: 90px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 13px; font-size: 13.5px; resize: vertical; background: #fbfdfc; }
.review-field textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(26, 162, 148, .12); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 14px 30px -12px rgba(8, 33, 31, .6); display: flex; align-items: center; gap: 9px;
  animation: toastIn .3s cubic-bezier(.2, .8, .3, 1); max-width: 90vw;
}
.toast .ico { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-500); display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .25s forwards; opacity: 0; transform: translateY(8px); transition: all .25s ease; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.nowrap { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 13.2px; }
  .role-switch button { padding: 0 9px; font-size: 12px; }
}
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-desc { max-width: 600px; }
  .live-card { max-width: 460px; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .book-layout, .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .ops-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .role-switch { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc-card.featured, .svc-card.wide { grid-column: span 2; }
  .svc-card.wide { display: flex; flex-direction: column; align-items: flex-start; }
  .hosp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .step-item:nth-child(2)::after { display: none; }
  .quick-bar { grid-template-columns: 1fr 1fr; }
  .quick-bar .btn { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .floaty { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .section { padding: 62px 0; }
  .container { padding: 0 18px; }
  .nav-inner { padding: 0 18px; gap: 12px; }
  .nav-actions .btn.ghost { display: none; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 36px; }
  .hero-cta .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .services-grid, .hosp-grid, .comp-grid { grid-template-columns: 1fr; }
  .svc-card.featured, .svc-card.wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .step-item::after { display: none; }
  .quick-bar { grid-template-columns: 1fr; }
  .quick-bar .btn { grid-column: span 1; }
  .opt-grid, .opt-grid.cols-3, .opt-grid.cols-4, .needs-grid, .check-list, .form-row, .form-row.three { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-box { padding: 32px 22px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .stepper-item { padding: 8px; font-size: 11.5px; }
  .stepper-item .label-txt { display: none; }
  .stepper-item .n { margin: 0 auto; }
  .hall-card { grid-template-columns: 1fr; }
  .hall-right { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .order-top h1 { font-size: 21px; }
  .panel { padding: 20px 18px; }
  .toast-wrap { bottom: 20px; width: 92%; }
  .toast { width: 100%; justify-content: center; border-radius: 14px; }
}

/* ==========================================================================
   三端门户：登录注册 / 会员中心 / 管理后台
   ========================================================================== */

/* ---------- 顶栏用户区 ---------- */
.app-mode .nav-links { display: none; }
.app-mode .nav { border-bottom-color: var(--line); }

.user-slot { position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.user-chip:hover { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(26, 162, 148, .1); }
.user-chip[hidden], #loginBtn[hidden], .uc-badge[hidden] { display: none; }
.uc-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0;
}
.uc-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger);
  color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.user-drop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 218px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 6px; display: none; z-index: 60;
}
.user-drop.open { display: block; animation: fadeUp .16s ease; }
.ud-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.ud-head b { display: block; font-size: 13.5px; }
.ud-head span { font-size: 11.5px; color: var(--muted); }
.user-drop button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
}
.user-drop button:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---------- 通用小件 ---------- */
.tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; background: var(--brand-50);
  color: var(--brand-700); border: 1px solid var(--brand-100);
}
.tag.plain { background: #f4f7f7; color: var(--muted); border-color: var(--line); }
.tag.teal { background: var(--ok-bg); color: var(--ok); border-color: #cdeadd; }
.tag.amber { background: var(--amber-50); color: var(--amber-600); border-color: #f5e2c2; }
.link-sm { font-size: 12.5px; font-weight: 600; color: var(--brand-700); }
.link-sm:hover { text-decoration: underline; }
.mini {
  font-size: 12px; font-weight: 600; color: var(--brand-700); padding: 4px 8px;
  border-radius: 6px; border: 1px solid transparent; transition: background .14s ease;
}
.mini:hover { background: var(--brand-50); }
.mini.danger { color: var(--danger); }
.mini.danger:hover { background: var(--danger-bg); }
.row-acts { text-align: right; white-space: nowrap; }
.cell-main { font-weight: 600; color: var(--ink); }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500);
  display: inline-block; animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 登录注册 ---------- */
.page-app { min-height: calc(100vh - var(--nav-h)); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); min-height: calc(100vh - var(--nav-h)); }
.auth-side {
  background: radial-gradient(120% 100% at 0% 0%, #0d5b53 0%, #0a3f3c 45%, #062d2b 100%);
  color: #e8f7f4; padding: 46px 58px 34px; display: flex; flex-direction: column;
  gap: 34px; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.auth-side::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -180px; bottom: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(246, 200, 119, .16), transparent 65%);
}
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.auth-brand .logo-text b { color: #fff; }
.auth-brand .logo-text i { color: rgba(232, 247, 244, .6); }
.as-copy { position: relative; z-index: 1; max-width: 430px; }
.as-copy h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.2; color: #fff; }
.as-copy p { margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: rgba(226, 247, 244, .72); }
.as-points { margin-top: 26px; display: flex; flex-direction: column; gap: 11px; }
.as-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(235, 250, 247, .9); }
.as-points span {
  width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .12);
  color: var(--amber-300); display: grid; place-items: center; font-size: 10px; flex-shrink: 0;
}
.demo-box { position: relative; z-index: 1; margin-top: auto; }
.demo-title {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650;
  color: rgba(226, 247, 244, .55); margin-bottom: 10px; display: flex; justify-content: space-between;
}
.demo-title span { text-transform: none; letter-spacing: 0; color: rgba(226, 247, 244, .4); }
.demo-list { display: grid; gap: 8px; }
.demo-acc {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .05); color: #e8f7f4; text-align: left;
  transition: background .16s ease, border-color .16s ease;
}
.demo-acc:hover { background: rgba(255, 255, 255, .1); border-color: rgba(246, 200, 119, .45); }
.da-role { font-size: 10.5px; font-weight: 650; color: var(--amber-300); }
.da-info { min-width: 0; }
.da-info b { display: block; font-size: 12.5px; font-weight: 600; }
.da-phone { display: block; font-size: 10.5px; color: rgba(226, 247, 244, .5); font-family: var(--mono); letter-spacing: -.02em; }
.da-go { font-size: 11px; color: rgba(255, 255, 255, .55); white-space: nowrap; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 34px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; }
.auth-head .seg {
  display: inline-flex; padding: 3px; background: #e8f1ef; border-radius: 10px; margin-bottom: 22px;
}
.seg button {
  padding: 7px 18px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: all .16s ease;
}
.seg button.on { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-xs); }
.auth-head h2 { font-size: 26px; letter-spacing: -.035em; }
.auth-head > p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.auth-body { margin-top: 24px; }
.auth-body .field { margin-bottom: 14px; }
.auth-body .field input, .auth-body .field select { height: 44px; background: #fff; }
.auth-body .field textarea { background: #fff; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.link-muted { font-size: 12px; color: var(--muted); }
.auth-tip { margin-top: 14px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; text-align: center; }
.auth-foot {
  display: flex; justify-content: space-between; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2);
}
.auth-foot a:hover { color: var(--brand-700); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 58px; }
.pw-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; font-weight: 600; color: var(--brand-700); padding: 4px 6px;
}

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-pick button {
  text-align: left; padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--line-strong);
  background: #fff; transition: all .16s ease;
}
.role-pick button.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(26, 162, 148, .08); }
.role-pick b { display: block; font-size: 13.5px; }
.role-pick span { font-size: 11.5px; color: var(--muted); }
.form-sec { margin: 8px 0 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.form-sec h4 { font-size: 13px; }
.form-sec p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.chk input { width: 15px; height: 15px; accent-color: var(--brand-600); flex-shrink: 0; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.chk-row.scroll { max-height: 108px; overflow-y: auto; }
.chk.agree { margin-top: 6px; align-items: flex-start; line-height: 1.5; }
.chk.agree span { font-size: 11.5px; color: var(--muted); }

/* ---------- 控制台外壳 ---------- */
.console {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h)); background: #f3f8f7;
}
.cside {
  background: #fff; border-right: 1px solid var(--line); padding: 20px 14px 16px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
}
.cs-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 0; }
.cs-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--brand-800);
  display: grid; place-items: center; position: relative;
}
.cs-mark i, .cs-mark i::after {
  content: ""; position: absolute; background: #fff; border-radius: 2px;
}
.cs-mark i { width: 14px; height: 2.4px; }
.cs-mark i::after { width: 2.4px; height: 14px; left: 5.8px; top: -5.8px; }
.cs-brand b { display: block; font-size: 13.5px; letter-spacing: -.02em; }
.cs-brand span { font-size: 10.5px; color: var(--muted); }
.cs-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.cnav {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; width: 100%;
  transition: background .14s ease, color .14s ease;
}
.cnav:hover { background: #f2f8f6; }
.cnav.on { background: var(--brand-50); color: var(--brand-700); font-weight: 650; }
.cnav-ico { flex-shrink: 0; opacity: .82; }
.cnav em {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700;
  background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 6px;
}
.cs-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.cs-me { display: flex; align-items: center; gap: 9px; padding: 0 4px 10px; }
.cs-ava {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.cs-ava.lg { width: 52px; height: 52px; font-size: 18px; }
.cs-me b { display: block; font-size: 12.5px; }
.cs-me span { font-size: 11px; color: var(--muted); }
.cs-acts { display: flex; gap: 6px; }
.cs-acts a, .cs-acts button {
  flex: 1; text-align: center; font-size: 11.5px; padding: 6px 0; border-radius: 7px;
  color: var(--muted); border: 1px solid var(--line);
}
.cs-acts a:hover, .cs-acts button:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }

/* 管理员深色侧栏 */
.console.is-admin .cside { background: var(--brand-950); border-right: none; }
.console.is-admin .cs-brand b { color: #fff; }
.console.is-admin .cs-brand span { color: rgba(226, 247, 244, .5); }
.console.is-admin .cs-mark { background: rgba(255, 255, 255, .12); }
.console.is-admin .cnav { color: rgba(226, 247, 244, .68); }
.console.is-admin .cnav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.console.is-admin .cnav.on { background: rgba(255, 255, 255, .13); color: #fff; }
.console.is-admin .cs-foot { border-top-color: rgba(255, 255, 255, .1); }
.console.is-admin .cs-me b { color: #fff; }
.console.is-admin .cs-me span { color: rgba(226, 247, 244, .55); }
.console.is-admin .cs-acts a, .console.is-admin .cs-acts button {
  color: rgba(226, 247, 244, .65); border-color: rgba(255, 255, 255, .14);
}
.console.is-admin .cs-acts a:hover, .console.is-admin .cs-acts button:hover {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22);
}

.cmain { padding: 28px 32px 0; min-width: 0; display: flex; flex-direction: column; }
.cmain-foot {
  margin-top: auto; padding: 26px 0 18px; font-size: 11px; color: var(--muted-2);
  border-top: 1px solid var(--line); margin-top: 28px;
}
.cmain-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.cmain-head h1 { font-size: 23px; letter-spacing: -.035em; }
.cmain-head p { font-size: 12.8px; color: var(--muted); margin-top: 5px; }
.cmain-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 数据工具条 ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-row button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 12.5px; font-weight: 550; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease;
}
.filter-row button:hover { border-color: var(--brand-500); color: var(--brand-700); }
.filter-row button.on { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.filter-row button em {
  font-style: normal; font-size: 10px; font-weight: 700; background: var(--danger);
  color: #fff; border-radius: 999px; padding: 0 5px; min-width: 15px; text-align: center;
}
.inline-select {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 10px;
  font-size: 12.5px; background: #fff; max-width: 260px; color: var(--ink-2);
}
.table-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.search {
  height: 36px; width: 260px; max-width: 60vw; border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 0 12px; font-size: 12.8px; background: #fff;
}
.search:focus { border-color: var(--brand-500); outline: none; box-shadow: 0 0 0 3px rgba(26, 162, 148, .1); }
table.data td .row-acts { padding-right: 4px; }

/* ---------- 客户端 ---------- */
.acc-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.acc-side { display: flex; flex-direction: column; gap: 16px; }
.acc-side .card + .card { margin-top: 0; }
.live-card2 { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.live-card2.empty { padding: 0; }
.lc-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.lc-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); font-weight: 650; }
.lc-top h3 { font-size: 17px; margin-top: 4px; letter-spacing: -.03em; }
.lc-top p { font-size: 11.8px; color: var(--muted); margin-top: 5px; }
.lc-comp { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--brand-50); border-radius: 11px; }
.lc-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.lc-comp b { display: block; font-size: 12.8px; }
.lc-comp span { font-size: 11px; color: var(--muted); }
.lc-comp .tag { margin-left: auto; }
.lc-wait { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--amber-600); background: var(--amber-50); padding: 11px 13px; border-radius: 10px; }
.lc-foot { display: flex; gap: 8px; }
.lc-foot .btn { flex: 1; }

.help-card { padding: 20px 20px 18px; text-align: left; background: linear-gradient(150deg, #0c544e, #0a3f3c); color: #fff; border: none; }
.hc-ico { font-size: 20px; margin-bottom: 8px; }
.help-card h3 { font-size: 14.5px; color: #fff; }
.help-card p { font-size: 11.8px; color: rgba(232, 247, 244, .7); margin: 6px 0 14px; line-height: 1.6; }
.help-card .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.help-card .btn:hover { background: rgba(255, 255, 255, .2); }
.hc-line { margin-top: 10px; font-size: 10.5px; color: rgba(232, 247, 244, .55); font-family: var(--mono); }
.promise-card { padding: 18px 20px; }
.promise-card h4 { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.promise-card ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.promise-card li { font-size: 12px; color: var(--ink-2); padding-left: 16px; position: relative; }
.promise-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-size: 10px; }

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; transition: box-shadow .16s ease, border-color .16s ease;
}
.order-row:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.or-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.or-top b { font-size: 14px; }
.or-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.8px; color: var(--muted); margin-top: 6px; }
.or-id { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-top: 5px; }
.or-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.or-amt { font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.or-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.prog-list { display: flex; flex-direction: column; gap: 14px; }
.prog-card { padding: 20px 22px; }
.pc-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.pc-head h3 { font-size: 15.5px; }
.pc-head p { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.stepper { display: flex; align-items: flex-start; margin: 22px 0 18px; }
.stp { flex: 1; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stp-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 650; background: #eef3f2; color: var(--muted-2);
  border: 2px solid transparent;
}
.stp.done .stp-dot { background: var(--brand-600); color: #fff; }
.stp.now .stp-dot { background: #fff; color: var(--brand-700); border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(26, 162, 148, .12); }
.stp b { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stp.done b, .stp.now b { color: var(--ink); }
.stp i { font-style: normal; font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); min-height: 14px; }
.stp-line { flex: 0 0 3.5%; height: 2px; background: var(--line-strong); margin-top: 13px; border-radius: 2px; }
.stp.done + .stp-line { background: var(--brand-600); }
.pc-comp { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--brand-50); border-radius: 10px; }
.pc-comp b { display: block; font-size: 12.5px; }
.pc-comp span { font-size: 11px; color: var(--muted); }
.pc-comp .btn { margin-left: auto; }
.pc-miles { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.pc-miles-t { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .05em; }
.milestones.inline { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.mile {
  font-size: 11px; padding: 4px 9px; border-radius: 999px; background: #f3f7f6;
  color: var(--muted); border: 1px solid var(--line);
}
.mile.on { background: var(--ok-bg); color: var(--ok); border-color: #cdeadd; }
.pc-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ---------- 工单 ---------- */
.ticket-stats { display: flex; gap: 22px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.ticket-stats b { color: var(--ink); font-size: 15px; margin-left: 5px; }
.ticket-list { display: flex; flex-direction: column; gap: 9px; }
.ticket-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px; transition: all .16s ease;
}
.ticket-row:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.tk-cat {
  font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 5px; white-space: nowrap;
  background: var(--brand-50); color: var(--brand-700);
}
.tk-cat.c-complaint { background: var(--danger-bg); color: var(--danger); }
.tk-cat.c-refund { background: var(--amber-50); color: var(--amber-600); }
.tk-cat.c-other { background: #f4f6f6; color: var(--muted); }
.tk-main { flex: 1; min-width: 0; }
.tk-main b { display: block; font-size: 13.5px; font-weight: 600; }
.tk-main span { display: block; font-size: 11.8px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tk-meta i { font-style: normal; font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }

.ticket-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.tt-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tt-subject { flex: 1; }
.tt-subject h2 { font-size: 17px; letter-spacing: -.025em; }
.tt-subject p { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.tt-order {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 14px; width: 100%;
  background: var(--brand-50); border-radius: 10px; font-size: 12px; color: var(--ink-2); text-align: left;
}
.tt-order b { font-family: var(--mono); font-size: 11.5px; color: var(--brand-700); }
.tt-order i { font-style: normal; margin-left: auto; font-weight: 650; }
.tt-msgs { padding: 20px 0 6px; display: flex; flex-direction: column; gap: 16px; }
.tt-msg { display: flex; gap: 10px; align-items: flex-start; }
.tt-msg.agent { flex-direction: row-reverse; }
.tt-ava {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 10.5px; font-weight: 650; background: var(--brand-50); color: var(--brand-700);
}
.tt-msg.agent .tt-ava { background: var(--brand-800); color: #fff; }
.tt-bubble { max-width: 76%; background: #f6f9f8; border-radius: 12px; padding: 11px 14px; }
.tt-msg.agent .tt-bubble { background: var(--brand-50); }
.tt-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.tt-meta b { font-size: 11.5px; }
.tt-meta span { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }
.tt-bubble p { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.tt-reply { border-top: 1px solid var(--line); padding-top: 16px; }
.tt-reply textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; background: #fff; resize: vertical; min-height: 74px;
}
.tt-reply textarea:focus { border-color: var(--brand-500); outline: none; box-shadow: 0 0 0 3px rgba(26, 162, 148, .1); }
.tt-reply-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tt-closed { padding: 14px; text-align: center; font-size: 12px; color: var(--muted); background: #f6f9f8; border-radius: 9px; }

/* ---------- 平台后台 ---------- */
.kpi-grid.four { margin-bottom: 20px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-grid .card + .card { margin-top: 0; }
.todo-list { padding: 6px 0; }
.todo-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 12px 20px; transition: background .14s ease;
}
.todo-item:hover { background: #fafcfb; }
.ti-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 12px; font-weight: 700; background: var(--brand-50); color: var(--brand-700);
}
.ti-ico.amber { background: var(--amber-50); color: var(--amber-600); }
.ti-ico.red { background: var(--danger-bg); color: var(--danger); }
.todo-item div { flex: 1; min-width: 0; }
.todo-item b { display: block; font-size: 12.8px; font-weight: 600; }
.todo-item span { display: block; font-size: 11.2px; color: var(--muted); margin-top: 2px; }
.todo-item i { font-style: normal; color: var(--muted-2); font-size: 12px; }
.todo-empty { padding: 22px; text-align: center; font-size: 12.5px; color: var(--muted-2); }
.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.asset {
  background: #fff; padding: 16px 12px; text-align: center; transition: background .14s ease;
}
.asset:hover { background: var(--brand-50); }
.asset b { display: block; font-size: 21px; font-weight: 680; letter-spacing: -.04em; color: var(--brand-800); }
.asset span { font-size: 11px; color: var(--muted); }
.asset-grid + .card-body { border-top: 1px solid var(--line); }
.log-list { padding: 4px 0 8px; }
.log-row { display: flex; align-items: center; gap: 11px; padding: 11px 22px; }
.log-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400, #4fb3a5); flex-shrink: 0; }
.log-row div { flex: 1; }
.log-row b { display: block; font-size: 12.5px; font-weight: 550; }
.log-row span { font-size: 11px; color: var(--muted-2); }
.log-row i { font-style: normal; font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }

.review-banner {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 16px;
  background: var(--amber-50); border: 1px solid #f5e2c2; border-radius: var(--r-md);
}
.rb-ico {
  width: 26px; height: 26px; border-radius: 50%; background: var(--amber-500); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.review-banner b { display: block; font-size: 12.8px; color: var(--amber-600); }
.review-banner span { font-size: 11.5px; color: var(--muted); }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.comp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.cc-head { display: flex; align-items: center; gap: 10px; }
.cc-head div { flex: 1; min-width: 0; }
.cc-head b { display: block; font-size: 14px; }
.cc-head span { font-size: 11.2px; color: var(--muted); }
.cc-meta { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.cc-meta i { font-style: normal; color: var(--ink-2); }
.cc-bio { font-size: 12px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.cc-foot .btn { padding: 6px 12px; font-size: 12px; }
.cc-foot .small { margin-left: auto; }
.check-groups { display: flex; flex-direction: column; gap: 14px; }
.check-groups .card + .card { margin-top: 0; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid .field { margin: 0; }
.form-row-break { grid-column: 1 / -1; height: 1px; background: var(--line); margin: 2px 0; }
.field label .req { color: var(--danger); font-style: normal; margin-left: 3px; }
.field label .opt { font-size: 10px; color: var(--muted-2); margin-left: 5px; font-weight: 400; }
.field.invalid input, .field.invalid select { border-color: var(--danger); background: #fff8f8; }
.field .hint { font-size: 11px; color: var(--muted-2); }
.switch-row { display: flex; align-items: center; gap: 8px; height: 40px; font-size: 12.5px; color: var(--ink-2); }
.switch-row input { width: 16px; height: 16px; accent-color: var(--brand-600); }
.modal.wide { max-width: 720px; }
.review-detail { display: flex; flex-direction: column; gap: 14px; }
.rd-head { display: flex; align-items: center; gap: 12px; }
.rd-head div { flex: 1; }
.rd-head h3 { font-size: 17px; }
.rd-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rd-grid span, .rd-block > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.rd-grid b { font-size: 12.8px; font-weight: 600; }
.rd-block p { font-size: 12.8px; color: var(--ink-2); line-height: 1.65; }

/* ---------- 陪诊师待审核 ---------- */
.review-gate {
  max-width: 720px; margin: 10px auto 40px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 40px 42px 34px; text-align: center;
}
.rg-ico { font-size: 34px; margin-bottom: 10px; }
.review-gate h2 { font-size: 22px; letter-spacing: -.03em; }
.review-gate > p { font-size: 13.5px; color: var(--muted); margin: 10px auto 22px; max-width: 480px; line-height: 1.7; }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; padding: 18px 20px; background: var(--brand-50); border-radius: 14px; }
.rg-grid span, .rg-block > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.rg-grid b { font-size: 13px; }
.rg-block { text-align: left; margin-top: 16px; }
.rg-block p { font-size: 12.8px; color: var(--ink-2); line-height: 1.65; margin-top: 4px; }
.rg-tip { margin-top: 22px; padding: 12px 16px; background: var(--amber-50); border-radius: 10px; font-size: 11.8px; color: var(--amber-600); text-align: left; }
.chip.chip-ok { background: var(--ok-bg); color: var(--ok); border-color: #cdeadd; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .auth-side { padding: 40px 38px 28px; }
  .acc-top { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { padding: 30px 26px; gap: 22px; position: static; height: auto; }
  .as-copy h1 { font-size: 26px; }
  .as-points { display: none; }
  .demo-list { grid-template-columns: 1fr; }
  .auth-main { padding: 28px 20px 40px; }
  .console { grid-template-columns: 1fr; }
  .cside {
    position: static; height: auto; flex-direction: column; gap: 12px;
    border-right: none; border-bottom: 1px solid var(--line); padding: 14px 16px;
  }
  .cs-brand, .cs-foot { display: none; }
  .cs-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .console.is-admin .cs-nav { padding-bottom: 2px; }
  .cnav { white-space: nowrap; width: auto; padding: 8px 13px; }
  .cnav span { font-size: 12.5px; }
  .cmain { padding: 20px 16px 0; }
  .comp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cmain-head h1 { font-size: 20px; }
  .kpi-grid, .kpi-grid.four { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .stepper { overflow-x: auto; padding-bottom: 4px; }
  .stp { min-width: 66px; }
  .order-row { flex-direction: column; align-items: flex-start; }
  .or-right { align-items: flex-start; text-align: left; width: 100%; }
  .or-acts { justify-content: flex-start; }
  .ticket-thread { padding: 18px; }
  .tt-bubble { max-width: 84%; }
  .review-gate { padding: 28px 20px; }
  .rg-grid { grid-template-columns: 1fr; }
  .acc-side .card + .card { margin-top: 0; }
  .ticket-row { flex-wrap: wrap; gap: 10px; }
  .tk-main { flex: 1 0 100%; order: 3; }
  .search { width: 100%; max-width: none; }
  .table-tools { flex-direction: column; align-items: stretch; }
  .user-drop { right: -40px; }
}

/* ---------- 个人资料 ---------- */
.prof-ava { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.prof-ava b { display: block; font-size: 16px; letter-spacing: -.02em; }
.prof-ava span { font-size: 12px; color: var(--muted); }
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.prof-grid > div:last-child .card + .card { margin-top: 16px; }
.prof-grid .card { margin-top: 0; }
.prof-grid .card + .card { margin-top: 0; }
.dl-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid #f2f7f6; }
.dl-row:last-of-type { border-bottom: none; }
.dl-row span { color: var(--muted); }
.dl-row b { font-weight: 600; }
@media (max-width: 1080px) { .prof-grid { grid-template-columns: 1fr; } }

/* 窄屏：顶栏只保留身份与入口 */
@media (max-width: 640px) {
  .app-mode .nav-actions > .btn.primary { display: none; }
  .app-mode .uc-name { display: none; }
  .app-mode .user-chip { padding: 0 4px; gap: 4px; }
  .nav-actions { gap: 8px; }
  .auth-side { padding: 24px 20px; }
  .as-copy p { font-size: 13px; }
  .demo-title span { display: none; }
  .auth-main { padding: 22px 16px 36px; }
  .auth-card { max-width: 100%; }
  .role-pick { grid-template-columns: 1fr; }
  .kpi b { font-size: 21px; }
  .cside { padding: 12px 12px; }
  .cmain { padding: 16px 14px 0; }
  .cmain-head { margin-bottom: 16px; }
  .ticket-thread { padding: 14px; }
  .tt-subject h2 { font-size: 15px; }
  .tt-msg .tt-bubble { max-width: 78%; }
  .order-row { padding: 14px; }
  .pc-foot { flex-wrap: wrap; }
  .comp-grid { grid-template-columns: 1fr; }
}

/* 控制台窄屏：避免网格轨道被横向导航撑宽 */
@media (max-width: 980px) {
  .console { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .cside { min-width: 0; width: 100%; }
  .cs-nav { min-width: 0; width: 100%; max-width: 100%; }
  .cmain { width: 100%; max-width: 100%; }
  .page-app { overflow-x: hidden; }
}

.status-pill { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 720px) {
  .ticket-row {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    row-gap: 8px; column-gap: 10px;
  }
  .tk-cat { grid-column: 1; grid-row: 1; justify-self: start; }
  .tk-meta { grid-column: 2; grid-row: 1; }
  .tk-main { grid-column: 1 / -1; grid-row: 2; order: 0; }
  .ticket-stats { flex-wrap: wrap; gap: 12px 18px; }
}

/* 移动端登录：表单优先，演示账号在后 */
@media (max-width: 980px) {
  .auth-shell { display: flex; flex-direction: column; }
  .auth-main { order: 1; }
  .auth-side { order: 2; }
  .as-copy { display: none; }
  .demo-box { margin-top: 12px; }
}
@media (max-width: 640px) {
  .app-mode .user-chip { position: relative; }
  .app-mode .uc-badge { position: absolute; top: -3px; right: -4px; }
}
