:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-blue: #eaf4f9;
  --surface-blue-2: #dcecf4;
  --primary: #2f6f8b;
  --primary-dark: #24566c;
  --text: #23343d;
  --muted: #657985;
  --line: #cfdde5;
  --max: 1040px;
  --font: "DengXian", "等线", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.project-header { height: 68px; border-bottom: 1px solid var(--line); background: rgba(244, 248, 251, 0.95); }
.project-header .shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--primary-dark); font-size: 13px; font-weight: 750; }
.header-name { color: var(--muted); font-size: 12px; }

.project-hero { padding-top: 72px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: start; }
.project-type { margin: 0 0 15px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; }
.project-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 66px); line-height: 1.12; letter-spacing: -0.045em; }
.project-lead { max-width: 690px; margin: 25px 0 0; color: #4f636e; font-size: 17px; line-height: 1.85; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px; }
.button { min-height: 45px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary); border-radius: 8px; font-size: 13px; font-weight: 750; }
.button-primary { color: white; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--primary-dark); background: var(--surface); }
.button-secondary:hover { background: var(--surface-blue); }

.project-meta { margin: 0; padding: 8px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.project-meta > div { padding: 14px 0; display: grid; grid-template-columns: 72px 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.project-meta > div:last-child { border-bottom: 0; }
.project-meta dt { color: var(--muted); font-size: 11px; }
.project-meta dd { margin: 0; font-size: 12px; font-weight: 650; line-height: 1.55; }

.project-content { padding-bottom: 88px; }
.content-block { padding: 52px 0; border-top: 1px solid var(--line); }
.block-heading { margin-bottom: 28px; display: grid; grid-template-columns: 170px 1fr; gap: 30px; }
.block-heading span { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.block-heading h2 { margin: 0; font-size: 28px; }
.block-body { margin-left: 200px; }
.block-body > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }

.detail-list { display: grid; gap: 12px; }
.detail-item { padding: 24px; display: grid; grid-template-columns: 46px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail-item > span { color: #86aabd; font-size: 12px; font-weight: 800; }
.detail-item h3 { margin: 0 0 9px; font-size: 17px; }
.detail-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.process article { min-height: 152px; padding: 22px; border-right: 1px solid var(--line); }
.process article:last-child { border-right: 0; }
.process span { color: var(--primary); font-size: 11px; font-weight: 800; }
.process h3 { margin: 22px 0 8px; font-size: 15px; }
.process p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-grid.four { grid-template-columns: repeat(4, 1fr); }
.metric { min-height: 132px; padding: 24px; display: grid; align-content: center; gap: 8px; border: 1px solid #bad2de; border-radius: 12px; background: var(--surface-blue); }
.metric strong { color: var(--primary-dark); font-size: 29px; letter-spacing: -0.035em; }
.metric span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.architecture { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.architecture-source { padding: 22px; display: grid; align-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.architecture-source span { padding: 9px 11px; color: var(--primary-dark); background: var(--surface-blue); border-radius: 7px; font-size: 11px; font-weight: 650; }
.architecture-levels { display: grid; gap: 7px; }
.architecture-levels article { padding: 13px 17px; display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.architecture-levels span { width: 24px; color: #86aabd; font-size: 10px; font-weight: 800; }
.architecture-levels strong { font-size: 13px; }

.wechat-panel { padding: 28px; display: grid; grid-template-columns: 1fr 170px; gap: 32px; align-items: center; border: 1px solid #bad2de; border-radius: 14px; background: var(--surface-blue); }
.wechat-panel h3 { margin: 0; font-size: 21px; }
.wechat-panel p { margin: 14px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.wechat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-card { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: center; }
.qr-card img { width: 144px; height: 144px; }
.qr-card figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; }

.result-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.result-row { padding: 18px 22px; display: grid; grid-template-columns: 1.3fr 120px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-row span { color: var(--muted); font-size: 12px; }
.result-row strong { color: var(--primary-dark); font-size: 23px; }
.result-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.page-note { margin-top: 24px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.project-footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.project-footer .shell { display: flex; justify-content: space-between; gap: 20px; }
.project-footer a { color: var(--primary-dark); font-weight: 700; }

.toast { min-width: 170px; padding: 12px 16px; position: fixed; left: 50%; bottom: 24px; color: white; background: var(--primary-dark); border-radius: 8px; font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .project-hero { padding-top: 48px; grid-template-columns: 1fr; gap: 28px; }
  .project-hero h1 { font-size: 42px; }
  .project-lead { font-size: 15px; }
  .project-meta { padding-inline: 18px; }
  .block-heading { grid-template-columns: 1fr; gap: 9px; }
  .block-heading h2 { font-size: 24px; }
  .block-body { margin-left: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .process article:nth-child(2) { border-right: 0; }
  .process article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .metric-grid,
  .metric-grid.four { grid-template-columns: 1fr 1fr; }
  .architecture { grid-template-columns: 1fr; }
  .architecture-source { grid-template-columns: repeat(3, 1fr); }
  .wechat-panel { grid-template-columns: 1fr; }
  .qr-card { justify-self: start; }
  .result-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 470px) {
  .header-name { display: none; }
  .project-hero h1 { font-size: 38px; }
  .hero-actions .button,
  .wechat-actions .button { width: 100%; }
  .detail-item { grid-template-columns: 1fr; gap: 8px; }
  .process,
  .metric-grid,
  .metric-grid.four { grid-template-columns: 1fr; }
  .process article { border-right: 0; border-bottom: 1px solid var(--line); }
  .process article:last-child { border-bottom: 0; }
  .architecture-source { grid-template-columns: 1fr; }
  .project-footer .shell { flex-direction: column; }
}
