/* ============================================================
   智汇 AI 对接平台 · 设计系统
   纯 CSS 变量驱动，无第三方框架
   ============================================================ */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f9;
  --surface-3: #e8ebf5;
  --text: #151726;
  --text-2: #484d63;
  --text-3: #878da3;
  --border: #e5e8f1;
  --border-strong: #d3d8e6;

  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-soft: #eef0fe;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --success: #10b981;
  --success-soft: #e7f7f1;
  --warn: #f59e0b;
  --warn-soft: #fef3e2;
  --danger: #ef4444;
  --danger-soft: #fdecec;
  --pink: #ec4899;

  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef0fe 0%, #f3edfe 55%, #e6f7fa 100%);

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(21, 23, 38, 0.06);
  --shadow-s: 0 2px 8px rgba(21, 23, 38, 0.08);
  --shadow-m: 0 8px 24px rgba(21, 23, 38, 0.1);
  --shadow-l: 0 20px 48px rgba(79, 70, 229, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --nav-h: 68px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon { display: inline-flex; align-items: center; }
.icon svg { width: 16px; height: 16px; }
.btn .icon svg, .badge .icon svg { width: 14px; height: 14px; }
.pi .icon svg { width: 20px; height: 20px; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.anim-up { animation: fadeUp 0.5s ease both; }
.anim-up-1 { animation: fadeUp 0.5s 0.06s ease both; }
.anim-up-2 { animation: fadeUp 0.5s 0.12s ease both; }
.anim-up-3 { animation: fadeUp 0.5s 0.18s ease both; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: var(--shadow-s);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  display: block;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--primary-dark); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-s);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-s);
}
.btn-primary:hover { box-shadow: var(--shadow-m); filter: brightness(1.04); }
.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: var(--radius-m); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-s); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
}
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-grad { background: var(--grad); color: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: 0.16s;
}
a.chip:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 360px at 12% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(640px 320px at 92% 0%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(520px 300px at 60% 120%, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat .num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.stat .num em { font-style: normal; color: var(--primary); }
.stat .label { font-size: 13px; color: var(--text-3); }

/* Hero 侧栏卡片 */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
}
.hero-panel .panel-head h3 { font-size: 15px; margin: 0; }
.mini-card {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  transition: 0.18s;
}
.mini-card:hover { background: var(--primary-soft); }
.mini-card .avatar { flex: none; }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(23px, 2.6vw, 29px); font-weight: 800; margin-bottom: 6px; }
.section-head p { color: var(--text-3); margin: 0; font-size: 15px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}

/* 项目卡片 */
.project-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.project-card h3 a:hover { color: var(--primary-dark); }
.card-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-2);
  font-size: 13.5px;
}
.project-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.project-meta svg { width: 15px; height: 15px; color: var(--text-3); }
.project-excerpt {
  color: var(--text-2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
}
.budget { font-weight: 800; color: var(--text); font-size: 15px; }
.budget small { font-weight: 500; color: var(--text-3); }

/* 开发者卡片 */
.dev-card { text-align: left; }
.dev-head { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 50px; height: 50px;
  border-radius: var(--radius-m);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px;
  flex: none;
}
.avatar-lg { width: 72px; height: 72px; font-size: 26px; border-radius: var(--radius-l); }
.dev-head .name { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.dev-head .title { font-size: 13.5px; color: var(--text-3); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.rating svg { width: 14px; height: 14px; fill: var(--warn); }
.dev-stats { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dev-stats .ds .n { font-weight: 700; }
.dev-stats .ds .l { font-size: 12px; color: var(--text-3); }

.verified {
  width: 16px; height: 16px; color: var(--primary);
}

/* ---------- 筛选工具栏 ---------- */
.toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 26px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}
.field textarea { resize: vertical; min-height: 110px; }

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; color: var(--text-3); font-size: 14px;
}

/* ---------- 详情页 ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-3); margin: 26px 0 20px; }
.breadcrumb a:hover { color: var(--primary-dark); }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.detail-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px;
}
.detail-main h1 { font-size: 26px; margin-bottom: 14px; }
.detail-desc { color: var(--text-2); font-size: 15px; }
.detail-desc p { margin-bottom: 14px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.side-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.side-row .k { color: var(--text-3); }
.side-row .v { font-weight: 600; text-align: right; }
.side-divider { height: 1px; background: var(--border); }

/* 案例作品集 */
.case-card {
  background: var(--surface-2);
  border-radius: var(--radius-m);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.case-card .case-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case-card h4 { margin: 0; font-size: 15.5px; }
.case-result {
  background: var(--success-soft);
  color: var(--success);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.skill-bar { margin: 10px 0; }
.skill-bar .sb-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.skill-bar .sb-track { height: 7px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.skill-bar .sb-fill { height: 100%; border-radius: var(--radius-pill); background: var(--grad); }

/* ---------- 表单页 ---------- */
.form-shell { max-width: 820px; margin: 36px auto 60px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title {
  font-size: 15px; font-weight: 700;
  padding-top: 6px;
  display: flex; align-items: center; gap: 8px;
}
.form-section-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--grad);
}
.option-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.option-checks label {
  cursor: pointer;
}
.option-checks input { position: absolute; opacity: 0; }
.option-checks .opt {
  display: inline-flex; padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 13.5px; color: var(--text-2);
  background: var(--surface);
  transition: 0.16s;
}
.option-checks input:checked + .opt {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}
.form-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; min-height: 1em; }
.case-block {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-m);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-3);
}
.empty .empty-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: var(--radius-l);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-3);
}
.empty h3 { color: var(--text-2); margin-bottom: 6px; }

/* ---------- 步骤 / 理念 ---------- */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 26px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: var(--radius-m);
  background: var(--grad-soft);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: 14px; margin: 0; }

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
}
.principle-card .pi {
  width: 42px; height: 42px; border-radius: var(--radius-m);
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary-dark);
}

/* ---------- 开源横幅 ---------- */
.band {
  background: var(--grad);
  border-radius: var(--radius-l);
  color: #fff;
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.band h2 { font-size: 25px; margin-bottom: 8px; }
.band p { opacity: 0.9; margin: 0; max-width: 520px; }
.band .btn-white {
  background: #fff; color: var(--primary-dark);
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 60px;
  background: #10121f;
  color: #c6cadd;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; font-size: 13.5px; color: #a7adc4; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #8288a3;
}

/* ---------- 模态 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 17, 30, 0.5);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-l);
  width: min(480px, 100%);
  padding: 26px;
  box-shadow: var(--shadow-l);
  animation: popIn 0.2s ease;
}
.modal h3 { font-size: 18px; margin-bottom: 6px; }
.modal .modal-close {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: var(--radius-s);
  border: none; background: var(--surface-2); cursor: pointer;
  display: grid; place-items: center; color: var(--text-2);
}
.modal-head { display: flex; align-items: center; }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed; top: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px;
  align-items: center;
}
.toast {
  background: #1c1f30; color: #fff;
  padding: 11px 18px; border-radius: var(--radius-s);
  font-size: 14px; box-shadow: var(--shadow-m);
  display: flex; gap: 8px; align-items: center;
  animation: popIn 0.2s ease;
}
.toast-success { background: #0f7a5c; }
.toast-warn { background: #b45309; }
.toast-error { background: #b91c1c; }

/* ---------- 工具类 ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mb-1 { margin-bottom: 12px; }
.text-3 { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-m);
    flex-direction: column; align-items: stretch;
    padding: 14px 20px; gap: 6px;
    transform: translateY(-120%);
    transition: transform 0.22s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-actions .btn-outline { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 28px; }
  .toolbar { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .detail-main, .form-card { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 14px; }
  .stat .num { font-size: 22px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
