:root {
  color-scheme: light;
  --paper: #f8faff;
  --white: #fff;
  --ink: #17243b;
  --muted: #495a72;
  --accent: #2440aa;
  --accent-deep: #18318a;
  --line: #dce4f1;
  --panel: #eef3fb;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.052em; }
h2 { font-size: clamp(1.5rem, 2.65vw, 2.3rem); letter-spacing: -.025em; }
h3 { font-size: 1.16rem; }
a { color: var(--accent); text-underline-offset: .23em; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
iframe { display: block; }
time { font-variant-numeric: tabular-nums; }
ul, ol { margin: .5rem 0 0; padding-left: 1.3rem; }
:focus-visible { outline: 3px solid #3556bf; outline-offset: 4px; }
.shell { width: min(calc(100% - 72px), 1180px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; background: white; padding: .4rem .7rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.topbar { background: #fffffffa; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.topbar .shell { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.brand { color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 1.12rem; font-weight: 800; }
.brand span { margin-left: .45rem; font-size: .9rem; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: .5rem clamp(.8rem, 2vw, 1.75rem); }
.nav a { color: var(--ink); font-size: .92rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
.nav a:hover, .nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.nav .resume-nav { padding: .39rem .72rem; border: 1px solid var(--line); border-radius: 7px; }
.identity { display: grid; grid-template-columns: 1fr 1.17fr; align-items: center; gap: clamp(1.5rem, 6vw, 5.5rem); padding-block: clamp(3rem, 7vw, 6.4rem); }
.identity h1 { font-size: clamp(4.3rem, 9vw, 8.1rem); line-height: 1.06; letter-spacing: -.09em; }
.role { margin-top: .72rem; color: var(--accent); font-size: clamp(1.14rem, 2.2vw, 1.56rem); font-weight: 780; }
.bio { border-left: 3px solid #b8caff; padding: .14rem 0 .14rem clamp(1.06rem, 2.7vw, 2.4rem); }
.bio p:first-child { font-size: clamp(1.1rem, 1.95vw, 1.43rem); line-height: 1.72; }
.bio .caption { margin-top: .82rem; }
.caption, .muted, figcaption { color: var(--muted); }
.caption, figcaption { font-size: .88rem; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.section-top h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1.05rem; }
.work-card { display: flex; flex-direction: column; align-items: start; gap: .65rem; min-height: 15.4rem; padding: clamp(1.05rem, 2.3vw, 1.65rem); background: var(--white); border: 1px solid var(--line); border-top: 3px solid #8097e4; border-radius: 10px; }
.work-card h3 { font-size: clamp(1.2rem, 2vw, 1.48rem); }
.work-card p { color: var(--muted); }
.work-card .proof { color: var(--ink); font-weight: 750; border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .18rem; }
.work-card a { font-weight: 750; margin-top: auto; }
.home-foot { margin-top: clamp(2rem, 5vw, 4rem); margin-bottom: 3rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .94rem; }
.page-intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.8rem, 4vw, 3.4rem); }
.page-intro .lead { color: var(--muted); margin-top: .95rem; font-size: clamp(1.06rem, 1.8vw, 1.27rem); }
.jump-nav { margin-top: 1.15rem; display: flex; gap: .65rem 1.45rem; flex-wrap: wrap; font-weight: 720; }
.section { padding-block: clamp(1.95rem, 4vw, 3.15rem); border-top: 1px solid var(--line); }
.section-lead { color: var(--muted); margin-top: .58rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .92rem; margin-top: 1.2rem; }
.case-grid article, .split-card article { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; border-radius: 9px; }
.case-grid p, .split-card p { color: var(--muted); margin-top: .45rem; }
.result-band { margin-top: 1.1rem; display: flex; align-items: center; gap: .9rem 1.4rem; flex-wrap: wrap; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid #8097e4; background: var(--panel); border-radius: 7px; }
.result-band strong { color: var(--accent-deep); font-size: 1.43rem; line-height: 1.3; }
.result-band p { flex: 1 1 26rem; min-width: 0; color: var(--muted); font-size: .9rem; }
.split-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.18rem; }
.visual { padding: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.visual img { width: 100%; max-height: 350px; object-fit: contain; border-radius: 5px; }
.visual figcaption { margin-top: .55rem; text-align: center; }
.cta { display: inline-block; background: var(--accent); border: 1px solid var(--accent); border-radius: 7px; padding: .54rem .88rem; color: white; text-decoration: none; font-weight: 750; }
.cta:hover { background: var(--accent-deep); color: white; }
.preview { margin-top: 1.35rem; overflow: clip; border: 1px solid #c8d4e6; border-radius: 12px; background: white; }
.preview-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; background: #eef3fa; border-bottom: 1px solid #c8d4e6; padding: .78rem 1rem; }
.preview-head a { font-size: .89rem; font-weight: 700; }
.preview iframe { width: 100%; height: min(76vh, 760px); min-height: 450px; border: 0; background: white; }
.gallery-link { margin-top: 1.2rem; }
.resume-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem 2rem; }
.resume-role { margin-top: .7rem; font-size: 1.1rem; color: var(--muted); }
.resume-section { padding-block: 1.45rem; }
.resume-section h2 { font-size: clamp(1.35rem, 2.1vw, 1.71rem); margin-bottom: .7rem; }
.resume-line { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; flex-wrap: wrap; }
.resume-section li + li { margin-top: .35rem; }
.resume-section .resume-line + p { color: var(--muted); margin-top: .35rem; }
.resume-section article + article { margin-top: 1.05rem; }
.footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 1.5rem 2.1rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: .6rem 1rem; flex-wrap: wrap; font-size: .92rem; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 42px); }
  .topbar .shell { padding-block: .55rem; }
  .nav { overflow-x: auto; max-width: 100%; gap: .8rem; padding-block: .14rem; }
  .nav a { font-size: .88rem; }
  .identity { gap: 1.75rem; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .topbar .shell { display: block; }
  .nav { margin-top: .27rem; }
  .identity, .work-grid, .case-grid, .split-card { grid-template-columns: minmax(0,1fr); }
  .identity { padding-block: 2.55rem; }
  .work-card { min-height: 0; }
  .work-card a { margin-top: .2rem; }
  .work-card .proof { width: 100%; }
  .preview iframe { min-height: 390px; }
}
@media print {
  body { background: white; font-size: 10pt; line-height: 1.48; }
  .topbar, .footer, .skip, .print-hide { display: none !important; }
  .shell { width: 100%; }
  .page-intro { padding: 0 0 9pt; }
  .page-intro h1 { font-size: 25pt; }
  .resume-role { font-size: 11pt; margin-top: 4pt; }
  .resume-section { padding: 8pt 0; }
  .resume-section h2 { font-size: 13pt; margin-bottom: 5pt; }
  .resume-section h3 { font-size: 10.5pt; }
  .resume-section time, .caption { font-size: 9pt; }
  .resume-section article { break-inside: avoid; }
  .resume-section li + li { margin-top: 2pt; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
