/* =====================================================================
   MedAid Capital · Base —— 通用重置、排版、组件
   供 PC 站 / 移动站 / 后台共用
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--h-header) + var(--sp-4));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-md); line-height: var(--lh-snug); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--teal-500); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

strong { font-weight: var(--fw-semibold); color: var(--text-primary); }

small { font-size: var(--fs-sm); }

img, svg { max-width: 100%; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: var(--sp-7) 0;
}

code, pre { font-family: var(--font-mono); font-size: 0.92em; }

::selection { background: var(--teal-300); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ============================ 布局 ============================ */
.container { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: var(--w-narrow); }
.container--content { max-width: var(--w-content); }
.container--prose { max-width: var(--w-prose); }

.section { padding: var(--sp-11) 0; }
.section--tight { padding: var(--sp-9) 0; }
.section--flush { padding: 0 0 var(--sp-10); }

.row { display: flex; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 372px; gap: var(--sp-7); align-items: start; }

.stack > * + * { margin-top: var(--sp-4); }
.stack--sm > * + * { margin-top: var(--sp-2); }
.stack--lg > * + * { margin-top: var(--sp-7); }

.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-lg { font-size: var(--fs-lg); }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.nums { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.full { width: 100%; }

/* ============================ 眉标 / 标题块 ============================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head { max-width: 640px; margin-bottom: var(--sp-8); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--text-secondary); font-size: var(--fs-md); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5);
  height: 42px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn--primary:hover:not(:disabled) { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn--accent { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.btn--accent:hover:not(:disabled) { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

.btn--secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--secondary:hover:not(:disabled) { border-color: var(--ink-300); background: var(--bg-surface); color: var(--text-primary); }

.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-subtle); color: var(--text-primary); }

.btn--danger { background: var(--rose-600); color: #fff; border-color: var(--rose-600); }
.btn--danger:hover:not(:disabled) { background: #9F1239; color: #fff; }

.btn--inverse { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--inverse:hover:not(:disabled) { background: #E8EFF7; color: var(--navy-900); }

.btn--outline-inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn--outline-inverse:hover:not(:disabled) { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.5); }

.btn--sm { height: 34px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }
.btn--lg { height: 50px; padding: 0 var(--sp-7); font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { width: 34px; height: 34px; padding: 0; }

.btn-group { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ============================ 卡片 ============================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}
.card--pad { padding: var(--sp-6); }
.card--pad-lg { padding: var(--sp-7); }
.card--flat { box-shadow: none; }
.card--hover { transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.card--hover:hover { box-shadow: var(--sh-md); border-color: var(--border-strong); transform: translateY(-2px); }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
}
.card-head h3, .card-head h4 { margin: 0; }
.card-body { padding: var(--sp-6); }
.card-foot {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--ink-050);
  border-radius: 0 0 var(--r-md) var(--r-md);
}

/* ============================ 徽章 / 状态 ============================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  line-height: 1.5;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge--plain::before { display: none; }

.badge--live { background: var(--teal-050); color: var(--teal-600); border-color: #A7F3D0; }
.badge--funded { background: var(--info-bg); color: var(--navy-600); border-color: #BFDBFE; }
.badge--active { background: var(--green-050); color: var(--green-600); border-color: #A7F3D0; }
.badge--closed { background: var(--ink-100); color: var(--ink-500); border-color: var(--ink-200); }
.badge--draft { background: var(--ink-100); color: var(--ink-400); border-color: var(--ink-200); }
.badge--pending { background: var(--amber-050); color: var(--amber-600); border-color: #FDE68A; }
.badge--warning { background: var(--amber-050); color: var(--amber-600); border-color: #FDE68A; }
.badge--danger { background: var(--rose-050); color: var(--rose-600); border-color: #FECDD3; }
.badge--success { background: var(--green-050); color: var(--green-600); border-color: #A7F3D0; }
.badge--neutral { background: var(--bg-subtle); color: var(--ink-500); border-color: var(--ink-200); }

.dot-status {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-status--pulse { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================ 表单 ============================ */
.field { margin-bottom: var(--sp-5); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.label .req { color: var(--rose-600); margin-left: 2px; }

.input, .select, .textarea {
  width: 100%;
  height: 42px;
  padding: 0 var(--sp-4);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: var(--sp-3) var(--sp-4); line-height: var(--lh-normal); resize: vertical; }
.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2364748B' stroke-width='1.6' d='M2 4.5L6 8.5L10 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-8);
  cursor: pointer;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--ink-050); color: var(--ink-400); cursor: not-allowed; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--rose-500); }

.hint { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-tertiary); line-height: var(--lh-snug); }
.error-msg { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--rose-600); font-weight: var(--fw-medium); }

.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; height: 42px; }

.input-money { position: relative; }
.input-money .input { padding-left: 30px; font-variant-numeric: tabular-nums; font-weight: var(--fw-medium); }
.input-money::before {
  content: '$';
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-weight: var(--fw-medium);
  pointer-events: none;
}

.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: 6px 13px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--ink-300); color: var(--text-primary); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.checkbox { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; font-size: var(--fs-sm); line-height: var(--lh-snug); }
.checkbox input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--teal-600); flex-shrink: 0; cursor: pointer; }

/* ============================ 表格 ============================ */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border-subtle); background: var(--bg-surface); }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--ink-050);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--ink-050); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td strong { color: var(--text-primary); }
.table--compact td, .table--compact th { padding: var(--sp-2) var(--sp-3); }

/* ============================ 进度 / 计量 ============================ */
.progress {
  height: 6px;
  background: var(--ink-150);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  border-radius: var(--r-pill);
  transition: width var(--t-slow) var(--ease-out);
}
.progress--thin { height: 4px; }
.progress--navy .progress__bar { background: var(--navy-600); }

.meter { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: var(--sp-2); }

/* ============================ 数据块 ============================ */
.stat { }
.stat__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-2);
}
.stat__value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.15;
}
.stat__sub { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--text-tertiary); }
.stat--sm .stat__value { font-size: var(--fs-lg); }

.kv { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-sm); }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--text-secondary); }
.kv__v { color: var(--text-primary); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; text-align: right; }

/* ============================ 空态 / 加载 ============================ */
.empty {
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  color: var(--text-tertiary);
}
.empty__icon {
  width: 44px; height: 44px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  color: var(--ink-300);
  font-size: var(--fs-lg);
}
.empty p { margin-bottom: var(--sp-1); }

.skeleton {
  background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-050) 50%, var(--ink-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton--text { height: 12px; margin-bottom: var(--sp-2); }
.skeleton--card { height: 180px; border-radius: var(--r-md); }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner--dark { border-color: var(--ink-200); border-top-color: var(--ink-500); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 提示条 ============================ */
.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  border: 1px solid transparent;
}
.notice__icon { flex-shrink: 0; font-size: var(--fs-md); line-height: 1.3; }
.notice--info { background: var(--info-bg); border-color: #DBEAFE; color: #1E3A8A; }
.notice--warn { background: var(--warning-bg); border-color: #FDE68A; color: #78350F; }
.notice--danger { background: var(--danger-bg); border-color: #FECDD3; color: #881337; }
.notice--success { background: var(--success-bg); border-color: #A7F3D0; color: #065F46; }
.notice--neutral { background: var(--bg-subtle); border-color: var(--border-subtle); color: var(--text-secondary); }

/* ============================ Toast ============================ */
.toast-host {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  min-width: 260px;
  max-width: 380px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  animation: toast-in var(--t-base) var(--ease-out);
  pointer-events: auto;
}
.toast--error { background: var(--rose-600); }
.toast--success { background: var(--green-600); }
.toast--warn { background: var(--amber-600); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================ 模态 ============================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 28, 0.55);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  animation: fade-in var(--t-fast) var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: modal-in var(--t-base) var(--ease-out);
}
.modal--wide { max-width: 780px; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__head {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.modal__body { padding: var(--sp-6); }
.modal__foot {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  background: var(--ink-050);
}

/* ============================ 分段控件 / Tab ============================ */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-subtle);
  border-radius: var(--r-sm);
  gap: 2px;
}
.segmented__item {
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-family: inherit;
}
.segmented__item.is-active { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--sh-xs); font-weight: var(--fw-semibold); }

/* ============================ 页脚 ============================ */
.footer {
  background: var(--navy-900);
  color: var(--text-inverse-dim);
  padding: var(--sp-10) 0 var(--sp-7);
  font-size: var(--fs-sm);
}
.footer a { color: var(--text-inverse-dim); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-7);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border-inverse);
}
.footer__brand { color: #fff; font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: var(--ls-snug); margin-bottom: var(--sp-3); }
.footer__desc { max-width: 300px; line-height: var(--lh-normal); font-size: var(--fs-xs); }
.footer h5 {
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-weight: var(--fw-semibold);
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: var(--sp-2); }
.footer__bottom {
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.footer__disclaimer {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--border-inverse);
  border-radius: var(--r-sm);
  font-size: 11.5px;
  line-height: 1.65;
  color: #8DA3BA;
}

/* ============================ 工具：屏幕阅读器 ============================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 820px) {
  :root {
    --fs-4xl: 34px;
    --fs-3xl: 27px;
    --fs-2xl: 22px;
    --sp-11: 56px;
    --sp-10: 44px;
  }
  .container { padding: 0 var(--sp-4); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-8) 0; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .toast-host { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); }
  .toast { max-width: none; }
  h1 { font-size: var(--fs-3xl); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
