:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --ink: #14202b;
  --muted: #5d6d7e;
  --line: #e2e8f0;
  --brand: #0e6b5d;
  --brand-dark: #0a4f46;
  --brand-soft: #e6f3ef;
  --blue: #14508c;
  --blue-soft: #e8f0fa;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --warn: #a15c00;
  --warn-soft: #fff4e5;
  --ok: #1f7a4d;
  --ok-soft: #e8f5ee;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(20, 32, 43, 0.08);
  --elev-1: 0 2px 10px rgba(20, 32, 43, 0.05);
  --elev-2: 0 14px 30px rgba(20, 32, 43, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-link:hover { background: #eef2f6; color: var(--ink); text-decoration: none; }
.nav-link.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

.topbar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.lang-switch { position: relative; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lang-btn:hover { background: var(--brand-dark); }
.lang-btn.busy { opacity: 0.72; cursor: progress; }
.lang-globe { width: 16px; height: 16px; flex: none; }
.lang-caret { font-size: 9px; opacity: 0.82; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 246px;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lang-item:hover { background: #eef2f6; }
.lang-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.lang-item strong { font-size: 13px; font-weight: 600; }
.lang-item small { color: var(--muted); font-size: 11px; }

.i18n-alt { margin-left: 0.3em; color: var(--muted); font-weight: 400; font-size: 0.86em; }
.i18n-alt.block { display: block; margin: 0.3em 0 0; font-size: 0.6em; font-weight: 500; letter-spacing: 0; line-height: 1.4; opacity: 0.78; }
.hero .i18n-alt { color: rgba(255, 255, 255, 0.8); }
.hero h1 .i18n-alt.block { color: rgba(255, 255, 255, 0.76); opacity: 1; }
.hero-lang .i18n-alt { color: var(--muted); }
.hero-lang-chip.active .i18n-alt { color: rgba(255, 255, 255, 0.84); }

main { padding: 28px 0 56px; }

.view { display: none; animation: fade 0.25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 26px;
  padding: 40px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(900px 320px at 88% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(20, 80, 140, 0.55), transparent 70%),
    linear-gradient(135deg, #0a4f46, #0e6b5d 45%, #14508c);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/hero-relief.jpg") center / cover no-repeat;
  opacity: 0.17;
  filter: saturate(0.5) contrast(1.05);
  pointer-events: none;
}

.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); margin-bottom: 12px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.18; letter-spacing: -0.02em; }
.hero-copy p { margin: 0 0 24px; max-width: 560px; color: rgba(255, 255, 255, 0.86); font-size: 15.5px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hero-actions .btn.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fff;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(4, 30, 27, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-actions .btn.hero-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(4, 30, 27, 0.3); }
.hero-cta-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hero-actions .btn.hero-link {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}
.hero-actions .btn.hero-link:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-panel { display: flex; flex-direction: column; gap: 12px; justify-content: center; }

.alert-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.alert-tag {
  display: inline-block;
  flex: none;
  margin-top: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #c2410c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.alert-bar p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #7c2d12; }
.alert-bar .i18n-alt { color: #9a3412; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #f1f5f7;
  border: 1px solid #e3eaef;
  color: var(--muted);
  font-size: 12.5px;
}
.trust-bar strong { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: 0.5; }

.hero-lang {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 44px rgba(4, 30, 27, 0.24);
  color: var(--ink);
}
.hero-lang-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hero-lang-title { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); }
.hero-lang-sub { font-size: 11px; color: var(--muted); }
.hero-lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hero-lang-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 10px;
  border: 1px solid #e4ebf0;
  border-radius: 9px;
  background: #f4f7f9;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.hero-lang-chip:hover { background: var(--brand-soft); border-color: #cfe4dd; transform: translateY(-1px); }
.hero-lang-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(14, 107, 93, 0.28); }
.hero-lang-chip span { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.hero-lang-chip small { font-size: 10.5px; color: var(--muted); }
.hero-lang-chip.active small { color: rgba(255, 255, 255, 0.84); }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #f3f6f9; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.icon-btn { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: #eef2f6; color: var(--ink); }

.link-btn { border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 18px 0 34px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 2px 10px rgba(20, 32, 43, 0.03); }
.stat span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.stat strong { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }

/* ---------- sections ---------- */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 13.5px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--elev-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:nth-child(-n+2) {
  grid-column: span 2;
  padding: 26px;
  background: linear-gradient(160deg, #f1f9f6 0%, #ffffff 64%);
  border-color: #d9ebe4;
}
.service-card:nth-child(-n+2) h3 { font-size: 18px; }
.service-card:nth-child(-n+2) p { font-size: 14px; max-width: 46ch; }
.service-card:nth-child(-n+2) .service-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 21px; }
.service-card:hover { border-color: #cbd6e2; box-shadow: var(--elev-2); transform: translateY(-3px); }
.service-card.muted { background: #fbfcfd; }
.service-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; transition: transform 0.18s ease; }
.service-card:hover .service-icon { transform: translateY(-2px) scale(1.04); }
.service-card.muted .service-icon { background: #eef2f6; color: var(--muted); }
.service-card h3 { margin: 0; font-size: 16px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; }
.pill.live { background: var(--ok-soft); color: var(--ok); }
.pill.soon { background: #eef2f6; color: var(--muted); }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step span { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- audience & goals ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.audience-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.audience-icon {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px;
  border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 700;
}
.audience-card h3 { margin: 0 0 6px; font-size: 15px; }
.audience-card p { margin: 0; color: var(--muted); font-size: 13px; }

.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.goal { background: linear-gradient(180deg, #fff, #f7fafc); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.goal span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--brand); }
.goal h3 { margin: 6px 0; font-size: 15px; }
.goal p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- notices ---------- */
.notice-card {
  padding: 16px 18px; border-radius: 14px; margin-bottom: 18px;
  background: var(--warn-soft); border: 1px solid #f3d9ae;
}
.notice-card strong { display: block; color: var(--warn); font-size: 14px; margin-bottom: 4px; }
.notice-card p { margin: 0; color: #6b4a12; font-size: 13.5px; }
.notice-card.danger { background: var(--danger-soft); border-color: #f5c2bd; }
.notice-card.danger strong { color: var(--danger); }
.notice-card.danger p { color: #7a221b; }

/* ---------- counselors ---------- */
.counselor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.counselor-card {
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
}
.counselor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.counselor-card h3 { margin: 0; font-size: 16px; }
.counselor-org { color: var(--muted); font-size: 12.5px; }
.counselor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: #eef2f6; color: #4a5b6c; }
.tag.lang { background: var(--blue-soft); color: var(--blue); }
.counselor-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.counselor-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- alerts ---------- */
.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item {
  display: flex; gap: 16px; padding: 16px 20px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid #c9a400; border-radius: var(--radius);
}
.alert-item.red { border-left-color: #b3261e; }
.alert-item.orange { border-left-color: #d98300; }
.alert-item.yellow { border-left-color: #c9a400; }
.alert-item.blue { border-left-color: #2563a8; }
.alert-body { flex: 1; min-width: 0; }
.alert-item h3 { margin: 0 0 4px; font-size: 15.5px; }
.alert-item p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.alert-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.sev-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.sev-pill.red { background: var(--danger-soft); color: var(--danger); }
.sev-pill.orange { background: var(--warn-soft); color: var(--warn); }
.sev-pill.yellow { background: #fbf3d5; color: #7a6400; }
.sev-pill.blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.guide-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.guide-card .guide-body { margin: 0; white-space: pre-line; color: #3d4b59; font-size: 13.5px; }
.guide-tag { display: inline-block; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 8px; }

/* ---------- subscribe ---------- */
.subscribe-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.subscribe-form .form-grid { max-height: none; }
.field-label { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- view head ---------- */
.view-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.view-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; }
.view-head p { margin: 0; color: var(--muted); font-size: 14px; }
.view-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-picker { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lang-picker select { min-width: 180px; }

/* ---------- tabs / filters ---------- */
.pane-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pane-tab { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.pane-tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.pane-tab span { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: #eef2f6; color: var(--muted); font-size: 11px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select { font: inherit; font-size: 13.5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.filters input:focus, .filters select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.filters input[type="search"] { flex: 1 1 240px; min-width: 180px; }

/* ---------- need / offer cards ---------- */
.need-list, .offer-list { display: flex; flex-direction: column; gap: 12px; }
.need-card, .offer-card {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(20, 32, 43, 0.03);
}
.need-card.urgent { border-left-color: var(--danger); }
.need-card.high { border-left-color: #d98300; }
.need-card.done { border-left-color: #9aa7b4; opacity: 0.82; }
.need-main { flex: 1; min-width: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge.cat { background: var(--blue-soft); color: var(--blue); }
.badge.critical { background: var(--danger-soft); color: var(--danger); }
.badge.high { background: var(--warn-soft); color: var(--warn); }
.badge.normal { background: #eef2f6; color: var(--muted); }
.badge.open { background: var(--warn-soft); color: var(--warn); }
.badge.matched { background: var(--blue-soft); color: var(--blue); }
.badge.fulfilled { background: var(--ok-soft); color: var(--ok); }
.badge.closed { background: #eef2f6; color: var(--muted); }
.badge.demo { background: #f1e9fb; color: #6b3fa0; }
.need-card h3, .offer-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.need-card p, .offer-card p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12.5px; }
.meta-row b { color: var(--ink); font-weight: 600; }
.need-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 128px; }
.need-side .time { color: #8a99a8; font-size: 12px; }
.need-side .btn { width: 100%; }

.offer-card { border-left-color: var(--blue); }
.offer-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 120px; }
.offer-side .btn { width: 100%; }

.compact .need-card { padding: 14px 18px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed #cbd6e2; border-radius: var(--radius); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- phrases ---------- */
.phrase-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.phrase-toolbar input { font: inherit; font-size: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 520px; }
.phrase-toolbar input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip:hover { border-color: #cbd6e2; }

.phrase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.phrase-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(20, 32, 43, 0.03); }
.phrase-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phrase-cat { font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 2px 8px; border-radius: 6px; }
.phrase-zh { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.45; }
.phrase-target { margin: 0; font-size: 15px; color: var(--brand-dark); line-height: 1.5; min-height: 22px; }
.phrase-en { margin: 0; font-size: 12.5px; color: #8a99a8; }
.phrase-actions { display: flex; gap: 8px; margin-top: 4px; }
.phrase-actions .btn { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }

/* ---------- translate ---------- */
.translate-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.lang-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.lang-row select { font: inherit; font-size: 13.5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 150px; }
#trSrc { width: 100%; font: inherit; font-size: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; background: #fbfcfd; }
#trSrc:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.translate-actions { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.tr-voice-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.tr-voice-tools { display: flex; align-items: center; gap: 10px; }
.tr-voice-bar .hint { margin: 0; }
.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.mic-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mic-btn:hover { background: var(--brand-soft); }
.mic-btn.listening { background: var(--danger); border-color: var(--danger); color: #fff; animation: micPulse 1.2s infinite; }
.mic-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mic-status { font-size: 11.5px; color: var(--muted); }
.mic-status.err { color: var(--danger); }
#trSpeak:disabled { opacity: 0.5; cursor: not-allowed; }
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(179, 38, 30, 0); }
}
.translate-out { min-height: 120px; padding: 16px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #cfe5de; }
.translate-out pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 15px; line-height: 1.65; color: var(--brand-dark); }
.sources { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; font-size: 12.5px; color: var(--muted); }

/* ---------- dialogs ---------- */
dialog.sheet { width: min(720px, calc(100vw - 32px)); max-height: 88vh; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(20, 32, 43, 0.28); background: var(--surface); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(12, 22, 32, 0.55); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet form { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px; max-height: 62vh; overflow: auto; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.context-line { margin: 14px 22px 0; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 13px; }
.detail-body { padding: 20px 22px; max-height: 64vh; overflow: auto; }
.detail-body h3 { margin: 0 0 10px; font-size: 18px; }
.detail-body p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.detail-body .kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13.5px; margin: 14px 0; }
.detail-body .kv span { color: var(--muted); }
.detail-body .kv strong { font-weight: 600; word-break: break-word; }
.detail-body .offer-mini { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-body .offer-mini h4 { margin: 0 0 8px; font-size: 14px; }
.detail-body .offer-mini ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

/* ---------- footer / toast ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink, #1b2b36); text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #14202b; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8e2019; }

/* ---------- 统一卡片阴影 ---------- */
.stat, .step, .audience-card, .guide-card, .counselor-card { box-shadow: var(--elev-1); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; padding: 8px 0; }
  .topbar-tools { display: contents; }
  .brand { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding: 30px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .counselor-grid, .guide-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .phrase-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 0; gap: 6px 10px; }
  .brand-text small { display: none; }
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .lang-menu { left: auto; right: 0; min-width: 220px; }
  .nav-link { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .hero h1 { font-size: 28px; }
  .hero-lang-grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .hero-lang-chip { flex: 0 0 auto; min-width: 108px; scroll-snap-align: start; }
  .alert-bar { flex-direction: column; gap: 8px; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .need-card, .offer-card { flex-direction: column; }
  .need-side, .offer-side { flex-direction: row; align-items: center; min-width: 0; }
  .need-side .btn, .offer-side .btn { width: auto; }
  .filters input[type="search"] { flex-basis: 100%; }
  .stats { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .stat strong { font-size: 22px; }
  .audience-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr; }
}
