:root {
  color-scheme: light;
  --page: #f5f6f8;
  --surface: #fff;
  --ink: #252b36;
  --muted: #637085;
  --blue: #426eae;
  --blue-dark: #30578f;
  --blue-soft: #edf2f9;
  --line: #dfe5ed;
  --green: #306851;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overscroll-behavior: none; }
[hidden] { display: none !important; }
a { color: var(--blue-dark); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7499ca; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 3.7vw, 54px); margin-bottom: 22px; font-weight: 750; }
h2 { font-size: clamp(25px, 2.5vw, 32px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 14px; }
p { margin-bottom: 16px; }
strong { font-weight: 650; }
.container { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 20px; background: white; }
.skip-link:focus { top: 10px; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 18px; color: var(--ink); font-size: 23px; font-weight: 750; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand::before { content: ""; width: 9px; height: 24px; border-radius: 3px; background: var(--blue); }
.brand span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .03em; }
.header-nav { display: flex; align-items: stretch; gap: 32px; }
.header-nav a { color: var(--muted); font-size: 14px; padding-block: 27px 23px; border-bottom: 3px solid transparent; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue); text-decoration: none; }
.home-hero { padding-block: 56px 45px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.home-hero h1 { margin-bottom: 16px; letter-spacing: -.045em; }
.hero-intro { max-width: 820px; }
.home-hero .lead { margin-bottom: 12px; }
.lead { font-size: 20px; line-height: 1.65; color: #3e4d63; }
.hero-note { margin: 0; color: var(--muted); }
.hero-index { display: grid; gap: 10px; min-width: 166px; border-left: 1px solid var(--line); padding-left: 28px; padding-bottom: 4px; }
.hero-index a { font-size: 14px; white-space: nowrap; }
.project-card { margin-bottom: 32px; padding: 34px 36px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.project-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.project-heading h2 { font-size: 31px; margin-bottom: 8px; }
.project-heading h2 a { color: inherit; }
.project-heading p { margin: 0; color: var(--muted); }
.project-context { color: var(--muted); font-size: 13px; padding-top: 8px; white-space: nowrap; }
.project-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr); gap: 34px; align-items: center; }
.project-copy { min-width: 0; }
.project-copy h3 { font-size: 16px; }
.contribution-list { padding: 0; margin: 0 0 24px; list-style: none; }
.contribution-list li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.contribution-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.project-copy .contribution-list { font-size: 14px; }
.project-copy .contribution-list li { margin-bottom: 12px; }
.metrics { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px 0; }
.metrics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-width: 0; padding: 0 30px; display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong { font-size: 38px; line-height: 1.2; color: var(--blue-dark); letter-spacing: -.04em; }
.metric span { font-size: 14px; color: var(--muted); }
.project-copy .metrics { padding: 18px 0; margin-bottom: 26px; border-radius: 0; border-width: 1px 0; }
.project-copy .metric { padding: 0 12px; display: block; }
.project-copy .metric:first-child { padding-left: 0; }
.project-copy .metric:last-child { padding-right: 0; }
.project-copy .metric strong { display: block; font-size: 29px; margin-bottom: 8px; }
.project-copy .metric span { font-size: 12px; line-height: 1.5; display: block; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 10px 20px; border: 1px solid var(--blue); border-radius: 7px; color: white; background: var(--blue); font-size: 14px; font-weight: 600; transition: background .15s; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.button.secondary { color: var(--blue-dark); border-color: #c8d3e2; background: white; }
.button.secondary:hover { background: var(--blue-soft); }
.image-trigger { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #edf0f5; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.image-trigger img { width: 100%; }
.image-trigger::after { content: "放大查看 ↗"; position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border: 1px solid #d6dfeb; border-radius: 5px; background: rgba(255,255,255,.95); color: var(--blue-dark); font-size: 11px; opacity: 0; transition: opacity .15s; }
.image-trigger:hover::after, .image-trigger:focus-visible::after { opacity: 1; }
.screenshot-frame, .hero-visual { min-width: 0; }
.screenshot-frame .image-trigger, .hero-visual .image-trigger { border: 1px solid #d7dfe9; box-shadow: 0 5px 16px #293c5e08; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding: 12px 2px 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
figcaption strong { font-size: 14px; color: #46556a; }
.project-flow { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.project-flow h3 { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.flow-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.flow-list li { position: relative; flex: 1; min-width: 0; min-height: 76px; border: 1px solid #cfdaea; background: #f5f8fc; border-radius: 7px; padding: 15px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.5; }
.flow-list li:last-child { background: var(--blue-soft); border-color: #a9bfdd; color: var(--blue-dark); }
.flow-list li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: #7c95b7; font-size: 20px; font-weight: 400; }
.flow-title { font-size: 14px; font-weight: 600; }
.flow-list small { font-size: 12px; color: var(--muted); margin-top: 6px; }
.project-flow .flow-list li { min-height: 54px; padding: 10px 8px; }
.project-flow .flow-title { font-size: 13px; }
.flow-note { margin: 17px 0 0; color: var(--muted); font-size: 13px; padding: 12px 18px; background: #eef2f6; border-radius: 6px; }
.flow-note strong { color: #536b8b; }
.workflow-figure { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.workflow-figure .image-trigger { border-radius: 0; background: white; }
.workflow-figure .image-trigger::after { opacity: 1; }
.workflow-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.workflow-caption span { color: var(--muted); }
.workflow-reading { margin-top: 16px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.workflow-reading summary { color: var(--blue-dark); font-size: 14px; cursor: pointer; }
.workflow-reading ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; margin: 20px 0 6px; padding-left: 22px; color: var(--muted); font-size: 14px; }
.workflow-reading strong { display: block; color: var(--ink); margin-bottom: 4px; }
.home-outro { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0 48px; font-size: 14px; color: var(--muted); }
.home-outro p { margin: 0; }
.back-link { display: inline-block; margin: 29px 0 22px; font-size: 13px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: center; padding-bottom: 38px; }
.hero-copy { min-width: 0; }
.hero-copy > p:not(.lead):not(.meta) { color: var(--muted); font-size: 15px; }
.meta { font-size: 12px; color: var(--blue-dark); letter-spacing: .025em; margin-bottom: 18px; }
.detail-hero .lead { font-size: 22px; }
.section-nav { display: flex; gap: 32px; padding: 20px 0 0; border-bottom: 1px solid var(--line); margin-top: 15px; }
.section-nav a { padding: 10px 0 18px; color: var(--muted); font-size: 14px; }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--blue-dark); }
.section { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: 27px; }
.section-heading p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.two-column > div { min-width: 0; }
.two-column p, .two-column li { font-size: 15px; color: #566174; }
.two-column .contribution-list { margin-bottom: 0; }
.two-column > div + div { border-left: 1px solid var(--line); padding-left: 36px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.screenshot-frame + .screenshot-grid { margin-top: 28px; }
.iteration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.iteration-card { padding: 28px; border: 1px solid var(--line); background: white; border-radius: var(--radius); }
.iteration-card p { color: var(--muted); font-size: 14px; }
.iteration-card p:last-child { margin-bottom: 0; }
.quote { margin: 20px 0; padding: 18px 20px; color: var(--blue-dark); border-left: 3px solid #9bb6da; background: var(--blue-soft); border-radius: 0 6px 6px 0; font-size: 20px; line-height: 1.7; }
.change-row { display: flex; align-items: baseline; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.change-row:last-child { border-bottom: 0; }
.change-row > span { color: var(--muted); font-size: 14px; }
.change-row strong { font-size: 28px; color: var(--blue-dark); }
.change-row strong span { color: #8a9bb1; padding-inline: 12px; font-weight: 400; }
.notice { background: #edf1f6; border-radius: 6px; padding: 14px 18px; font-size: 13px; color: #596779; margin: 22px 0 0; }
.deliverables, .design-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.deliverables article { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 24px; }
.deliverables h3, .design-notes h3 { font-size: 16px; }
.deliverables p, .design-notes p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.design-notes { margin-top: 26px; }
.design-notes article { padding: 6px 20px; border-left: 2px solid #bccddd; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.test-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.test-table caption { text-align: left; padding: 16px 20px; font-weight: 600; }
.test-table th, .test-table td { padding: 12px 20px; border-top: 1px solid var(--line); }
.test-table thead { background: #eef2f7; color: #4d5f77; }
.test-table tbody th { font-weight: 500; white-space: nowrap; }
.test-table td { color: var(--muted); }
.project-switch { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 48px; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); background: #eef1f5; color: var(--muted); }
.footer-inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); }
.image-dialog { width: min(1320px, 94vw); height: min(920px, 92vh); max-width: 94vw; max-height: 92vh; padding: 0; border: 1px solid #ced8e5; border-radius: 12px; color: var(--ink); background: #f0f3f7; box-shadow: 0 24px 90px #0d1c3e55; }
.image-dialog[open] { display: flex; flex-direction: column; }
.image-dialog::backdrop { background: #172338c9; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 22px; background: white; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.dialog-caption { font-size: 14px; margin: 0; min-width: 0; }
.dialog-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dialog-actions button, .dialog-original { padding: 7px 12px; border-radius: 5px; border: 1px solid #ced8e5; background: white; color: var(--blue-dark); font-size: 13px; white-space: nowrap; min-height: 38px; }
.dialog-actions button:hover { background: var(--blue-soft); }
.dialog-actions .dialog-close { background: var(--blue); border-color: var(--blue); color: white; }
.dialog-canvas { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; display: flex; align-items: flex-start; justify-content: center; }
.dialog-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin-block: auto; box-shadow: 0 2px 8px #1f314016; }
.dialog-canvas.is-zoomed { display: block; }
.dialog-canvas.is-zoomed .dialog-image { max-width: none; max-height: none; width: auto; height: auto; margin: 0 auto; }
.dialog-status { margin: auto; padding: 30px; font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) {
  .brand span { display: none; }
  .project-card { padding: 28px; }
  .project-body { gap: 26px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); }
  .project-context { display: none; }
  .metric { flex-direction: column; align-items: center; gap: 7px; text-align: center; }
  .detail-hero { gap: 30px; }
  .detail-hero h1 { font-size: 42px; }
}

@media (max-width: 899px) {
  .container { width: calc(100% - 48px); }
  .header-inner { min-height: 74px; gap: 18px; }
  .header-nav { gap: 20px; }
  .header-nav a { font-size: 13px; padding-block: 25px 20px; }
  .home-hero { padding-block: 40px 32px; }
  .hero-index { display: none; }
  .project-card { padding: 26px; }
  .project-body, .detail-hero, .two-column, .iteration-grid { grid-template-columns: 1fr; }
  .project-copy .metrics { max-width: 480px; }
  .project-copy .metric { text-align: left; }
  .project-body { gap: 26px; }
  .project-copy .contribution-list { font-size: 15px; }
  .flow-list { flex-direction: column; gap: 25px; }
  .flow-list li, .project-flow .flow-list li { min-height: 54px; padding: 12px 18px; }
  .flow-list li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -25px; transform: translateX(50%); line-height: 24px; }
  .flow-list li { flex-direction: row; gap: 14px; }
  .flow-list small { margin: 0; }
  .flow-title, .project-flow .flow-title { font-size: 14px; }
  .two-column { gap: 26px; }
  .two-column > div + div { padding-left: 0; border-left: 0; }
  .detail-hero { padding-bottom: 28px; }
  .hero-copy { max-width: 660px; }
  .detail-hero h1 { font-size: 42px; }
  .section { padding-block: 36px; }
  .design-notes { gap: 15px; }
  .design-notes article { padding: 5px 13px; }
  .deliverables { gap: 14px; }
  .deliverables article { padding: 20px; }
  .dialog-toolbar { flex-wrap: wrap; gap: 12px; }
  .dialog-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .header-inner { display: block; padding-top: 16px; }
  .brand { font-size: 21px; gap: 12px; }
  .brand::before { height: 21px; width: 7px; }
  .header-nav { justify-content: space-between; gap: 10px; margin-top: 4px; }
  .header-nav a { padding-block: 12px 11px; font-size: 12px; }
  .home-hero { padding-block: 32px 28px; }
  .home-hero h1 { font-size: 35px; max-width: 330px; text-wrap: balance; }
  .lead, .detail-hero .lead { font-size: 18px; }
  .hero-note { font-size: 13px; }
  .project-card { padding: 23px 18px 20px; margin-bottom: 22px; }
  .project-heading { margin-bottom: 22px; }
  .project-heading h2 { font-size: 26px; }
  .project-heading p { font-size: 14px; }
  .project-copy .contribution-list { font-size: 14px; }
  .project-copy .metric strong { font-size: 27px; }
  .project-flow { margin-top: 22px; }
  .flow-list li { flex-direction: column; gap: 4px; }
  .flow-note { font-size: 12px; padding: 12px; line-height: 1.9; }
  figcaption { display: block; font-size: 11px; }
  figcaption span { display: block; margin-top: 3px; }
  .image-trigger::after { opacity: 1; right: 6px; bottom: 6px; font-size: 10px; padding: 2px 6px; }
  .home-outro { display: block; font-size: 12px; padding-bottom: 30px; }
  .home-outro a { display: inline-block; margin-top: 12px; }
  .back-link { margin-block: 22px 18px; }
  .detail-hero h1 { font-size: 35px; }
  .meta { font-size: 11px; margin-bottom: 12px; }
  .hero-copy > p:not(.lead):not(.meta) { font-size: 14px; }
  .button-row { margin-top: 22px; gap: 9px; }
  .button { padding: 9px 15px; font-size: 13px; }
  .metrics { padding-block: 20px; }
  .metric { padding-inline: 9px; gap: 6px; }
  .metric strong { font-size: 29px; }
  .metric span { font-size: 11px; line-height: 1.65; }
  .section-nav { gap: 0; justify-content: space-between; margin-top: 10px; padding-top: 12px; }
  .section-nav a { font-size: 12px; padding-bottom: 12px; }
  .section { padding-block: 30px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 24px; text-wrap: balance; }
  .section-heading p { font-size: 13px; }
  .screenshot-grid, .deliverables, .design-notes { grid-template-columns: 1fr; }
  .screenshot-grid { gap: 24px; }
  .iteration-card { padding: 22px; }
  .quote { font-size: 18px; padding: 15px; }
  .notice { font-size: 12px; padding: 13px 15px; }
  .test-table { font-size: 12px; }
  .test-table th, .test-table td { padding: 11px 13px; }
  .test-table caption { padding: 14px 13px; }
  .project-switch { flex-direction: column; gap: 16px; padding-block: 26px 36px; font-size: 13px; }
  .footer-inner { align-items: flex-start; padding-block: 22px; min-height: 78px; font-size: 11px; }
  .footer-inner a { flex-shrink: 0; }
  .image-dialog { width: 94vw; height: 88vh; max-height: 88vh; }
  .dialog-toolbar { padding: 13px; }
  .dialog-caption { font-size: 12px; }
  .dialog-actions { gap: 7px; width: 100%; justify-content: space-between; }
  .dialog-actions button, .dialog-original { padding: 7px 8px; font-size: 11px; }
  .dialog-canvas { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 899px) {
  .workflow-reading ol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .workflow-caption { flex-direction: column; padding: 12px 14px; font-size: 12px; }
  .workflow-reading { padding: 14px; }
}
