:root {
  --paper: #f3f5f9;
  --ink: #151d30;
  --muted: #526078;
  --line: #dce2ec;
  --blue: #2849cf;
  --white: #fff;
  color-scheme: light;
  font-family: 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #5171f4; outline-offset: 4px; }
.skip { position: fixed; inset: 12px auto auto 12px; transform: translateY(-160%); background: white; padding: 12px; z-index: 3; }
.skip:focus { transform: none; }
.wrap { width: min(1168px, calc(100% - 112px)); margin-inline: auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 650; line-height: 1.25; }
.brand-mark { display: grid; place-items: center; background: var(--blue); color: #fff; width: 38px; height: 38px; border-radius: 8px; font-size: 22px; letter-spacing: -.08em; padding-right: 2px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 10px; }
.topbar nav { display: flex; align-items: center; gap: 31px; font-size: 13px; }
.topbar a:hover, .footer a:hover { color: var(--blue); }
.nav-resume { border: 1px solid #c5cde0; padding: 10px 14px; border-radius: 6px; }
.nav-resume span { padding-left: 5px; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: clamp(32px, 8vw, 112px); padding-block: 54px 43px; }
.hero-text { padding-block: 8px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 650; font-size: 13px; margin: 0 0 20px; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.eyebrow-divider { height: 11px; border-left: 1px solid #a9b7ed; margin-inline: 3px; }
.hero h1 { font-size: clamp(64px, 8.2vw, 114px); line-height: 1.03; letter-spacing: -.085em; margin: 0 0 23px -.065em; font-weight: 750; }
.hero h1 span { color: var(--blue); margin-left: .05em; }
.intro { margin: 0 0 12px; font-weight: 650; font-size: clamp(17px, 2vw, 26px); line-height: 1.6; }
.support { max-width: 31em; font-size: 14px; line-height: 1.95; color: var(--muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 16px; font-size: 13px; font-weight: 650; border: 1px solid transparent; border-radius: 7px; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #1835bb; }
.secondary { background: transparent; border-color: #c5cde0; }
.secondary:hover { border-color: var(--blue); color: var(--blue); }
.portrait { position: relative; isolation: isolate; align-self: stretch; min-height: 340px; margin: 0; border-radius: 13px; background: #101728; color: white; overflow: hidden; }
.portrait img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 13%; }
.portrait:after { content: ''; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent,#0b1023e6); pointer-events: none; }
.portrait figcaption { position: absolute; z-index: 1; bottom: 16px; right: 20px; left: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .08em; border-top: 1px solid #ffffff58; padding-top: 12px; }
.availability { display: flex; flex-wrap: wrap; gap: 14px 27px; border-block: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 12px; }
.availability span + span { padding-left: 26px; border-left: 1px solid #c9d2e2; }
section[id] { scroll-margin-top: 25px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 9px 25px; margin-bottom: 23px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.2vw, 40px); letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.case-card:hover { border-color: #a5b7f6; box-shadow: 0 3px 16px #233b8210; }
.case-art { display: grid; position: relative; isolation: isolate; min-height: 205px; align-items: center; overflow: hidden; background: #dce6fd; }
.case-image { height: 210px; width: 100%; object-fit: cover; object-position: center 27%; }
.case-card[data-id='huisheng'] .case-image { width: min(100%, 240px); margin: 0 auto; object-position: center 16%; box-shadow: 0 0 28px #15246724; }
.case-card[data-id='ai'] .case-art { background: #131d34; }
.case-card[data-id='ai'] .case-image { width: min(100%, 300px); margin: 0 auto; object-position: 50% 34%; }
.case-placeholder { padding: 24px; color: #21348b; font-size: 23px; font-weight: 700; overflow-wrap: anywhere; }
.case-copy { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 23px 26px; flex: 1; overflow-wrap: anywhere; }
.case-kicker { font-size: 12px; font-weight: 650; color: var(--blue); }
.case-title { font-size: clamp(20px, 2.7vw, 31px); font-weight: 750; line-height: 1.35; letter-spacing: -.045em; }
.case-summary { color: var(--muted); font-size: 13px; line-height: 1.85; }
.case-read { display: block; margin-top: 8px; color: var(--ink); font-weight: 650; font-size: 12px; }
.case-card:hover .case-read { color: var(--blue); }
.case-snippet { padding-top: 5px; font-size: 12px; color: var(--blue); font-weight: 650; }
.experience { margin-bottom: 68px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: minmax(145px, .6fr) minmax(190px, 1fr) minmax(0, 1.5fr); gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 20px 0; overflow-wrap: anywhere; }
.timeline-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-row h3 { margin: 0 0 4px; font-size: 16px; }
.timeline-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.timeline-row button { margin-top: 6px; padding: 0; background: none; border: 0; color: var(--blue); font-size: 12px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.footer { background: #e9edf5; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; padding-block: 27px; }
.footer-inner p { margin: 0 0 7px; font-size: 20px; font-weight: 700; }
.footer a, .editor-link { color: var(--muted); font-size: 12px; }
.footer a + a { margin-left: 15px; }
.editor-link { background: transparent; border: 0; padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; }
dialog { width: min(755px, calc(100% - 24px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 13px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 22px 90px #0a164b40; }
dialog::backdrop { background: #111a32a8; }
dialog[open] { animation: appear .22s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; min-height: 59px; gap: 12px; padding: 10px clamp(17px, 5vw, 39px); background: #f6f8fc; border-bottom: 1px solid var(--line); font-size: 13px; }
.dialog-head h2 { font-size: 16px; margin: 0; }
.dialog-head button { min-width: 36px; min-height: 36px; padding: 0; font-size: 23px; line-height: 1; border: 1px solid var(--line); background: white; border-radius: 6px; }
.case-detail, .editor-body { padding: 23px clamp(17px, 5vw, 39px) 32px; overflow-wrap: anywhere; }
.case-detail h2 { font-size: clamp(24px, 5vw, 40px); letter-spacing: -.04em; margin: 8px 0 14px; }
.case-detail p, .case-detail li { font-size: 14px; line-height: 1.9; color: var(--muted); white-space: pre-line; }
.case-detail h3 { margin: 24px 0 0; font-size: 16px; }
.case-detail p { margin: 7px 0 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.tag-row span { background: #edf1fe; color: #2542a2; padding: 5px 9px; border-radius: 4px; font-size: 11px; }
.metric-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.metric-list li { background: #f0f3fc; padding: 12px; border-radius: 7px; font-size: 11px; }
.metric-list strong { display: block; color: var(--blue); font-size: 19px; }
.detail-image { max-height: 420px; width: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; }
.case-detail .detail-note { margin-top: 23px; font-size: 11px; border-top: 1px solid var(--line); padding-top: 12px; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 650; margin-bottom: 13px; min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; background: #fff; border: 1px solid #c8d1e2; border-radius: 5px; padding: 9px; font-size: 14px; font-weight: 400; }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor-note, .editor-status { color: var(--muted); font-size: 12px; line-height: 1.7; }
.editor-note { margin-top: 0; }
.editor-toggles { display: flex; gap: 10px 17px; flex-wrap: wrap; font-size: 12px; }
.editor-body .actions { margin-top: 15px; }
.editor-status { margin-bottom: 0; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 30px; }
  .portrait { min-height: 310px; }
  .timeline-row { grid-template-columns: minmax(120px,.7fr) 1fr 1.35fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { height: 65px; }
  .topbar nav { gap: 11px; font-size: 10px; }
  .nav-resume { padding: 7px 5px; white-space: nowrap; }
  .nav-resume span { padding-left: 0; }
  .brand { gap: 6px; font-size: 13px; }
  .brand-mark { width: 29px; height: 29px; font-size: 16px; }
  .brand small { font-size: 9px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 22px; padding-block: 27px 24px; }
  .hero h1 { margin-bottom: 15px; font-size: 64px; }
  .eyebrow { margin-bottom: 14px; }
  .portrait { min-height: 290px; }
  .portrait img { object-position: 50% 11%; }
  .availability { gap: 8px 13px; padding-block: 13px; font-size: 11px; }
  .availability span + span { padding-left: 0; border: 0; }
  .case-list { grid-template-columns: minmax(0,1fr); }
  .case-copy { padding: 17px; }
  .timeline-row { grid-template-columns: minmax(0,1fr); gap: 6px; padding-block: 15px; }
  .timeline-row h3 { font-size: 15px; }
  .section-heading { margin-bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
