:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #fff;
  --ink: #17191c;
  --muted: #676b72;
  --line: #d9dadd;
  --soft: #e9eaec;
  --accent: #3156d3;
  --accent-soft: #e8edff;
  --max: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(.22,.72,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--bg); font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(49,86,211,.12); }
img { display: block; max-width: 100%; }
ul { margin: 0; padding-left: 18px; }
li::marker { color: var(--accent); }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; left: 10px; top: 10px; z-index: 1000; padding: 9px 15px; color: #fff; background: var(--ink); border-radius: 999px; transform: translateY(-160%); transition: transform .2s; }.skip-link:focus { transform: none; }
.page { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
section[id] { scroll-margin-top: 92px; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 68px; padding: 0 max(24px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(23,25,28,.09); background: rgba(244,244,242,.9); backdrop-filter: blur(14px); }
.brand { justify-self: start; display: flex; flex-direction: column; line-height: 1.1; }.brand strong { font-size: 11px; letter-spacing: .12em; }.brand span { margin-top: 4px; color: var(--muted); font-size: 7px; letter-spacing: .16em; }
nav { display: flex; gap: 30px; }nav a, .header-mail { color: var(--muted); font-size: 12px; transition: color .2s; }nav a:hover, .header-mail:hover { color: var(--accent); }.header-mail { justify-self: end; }

.hero { padding: 88px 0 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; }
.overline, .section-no { margin: 0; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 16px 0 2px; font-size: clamp(62px,8.5vw,108px); line-height: .92; letter-spacing: -.075em; font-weight: 700; }
.role { margin: 18px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.03em; }.role span { margin-left: 18px; padding-left: 18px; color: var(--muted); border-left: 1px solid var(--line); font-size: 14px; font-weight: 450; letter-spacing: 0; }
.summary { max-width: 760px; margin: 28px 0 0; color: #41454b; font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.contact-row { margin-top: 28px; display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: 12px; }.contact-row a { color: var(--accent); border-bottom: 1px solid rgba(49,86,211,.35); }
.hero-side { padding: 26px; align-self: end; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.55); }
.side-title { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.capability-list { margin: 0; }.capability-list div { padding: 13px 0; display: grid; grid-template-columns: 95px 1fr; gap: 15px; border-bottom: 1px solid var(--line); }.capability-list div:last-child { border: 0; }.capability-list dt { font-size: 12px; font-weight: 650; }.capability-list dd { margin: 0; color: var(--muted); font-size: 11px; }
.stack, .tags { display: flex; flex-wrap: wrap; gap: 6px; }.stack { margin-top: 16px; }.stack span, .tags span { padding: 4px 8px; border-radius: 5px; color: #4f545b; background: var(--soft); font-size: 9px; }
.metrics { grid-column: 1/-1; margin-top: 18px; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }.metrics div { padding: 22px 20px; border-right: 1px solid var(--line); }.metrics div:first-child { padding-left: 0; }.metrics div:last-child { border: 0; }.metrics strong { display: block; font-size: 27px; font-variant-numeric: tabular-nums; line-height: 1; }.metrics sup { margin-left: 2px; color: var(--accent); font-size: 10px; }.metrics span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }

.section { padding: 96px 0 20px; }.section-header { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }.section-header > div { display: flex; gap: 18px; align-items: baseline; }.section-header h2, .education h2 { margin: 0; font-size: clamp(38px,5vw,56px); line-height: 1; letter-spacing: -.05em; }.section-header > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.featured-project { padding: 18px 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.project-demo { position: relative; width: 100%; min-height: 320px; padding: 0; display: grid; place-items: center; overflow: hidden; border: 0; border-radius: 12px; background: #eef0f3; cursor: zoom-in; }.project-demo picture { width: 100%; }.project-demo img { width: 100%; height: auto; max-height: 410px; object-fit: contain; }.demo-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; display: flex; align-items: center; gap: 7px; border-radius: 999px; color: #fff; background: rgba(23,25,28,.8); font-size: 9px; backdrop-filter: blur(6px); }.demo-label i { width: 5px; height: 5px; border-radius: 50%; background: #62e69a; animation: pulse 2s infinite; }
.project-head { margin-top: 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .08em; }.project-head em { color: var(--accent); font-style: normal; }.featured-project h3 { margin: 9px 0; font-size: 29px; letter-spacing: -.035em; }.project-desc { min-height: 52px; margin: 0 0 14px; color: #41454b; font-size: 13px; }.featured-project li { margin: 6px 0; color: #555960; font-size: 11px; }.featured-project .tags { margin-top: 18px; }
.project-list { margin-top: 32px; border-top: 1px solid var(--ink); }.project-row { padding: 32px 0; display: grid; grid-template-columns: 120px 1fr; gap: 36px; border-bottom: 1px solid var(--line); }.project-row-media { grid-template-columns: 120px 1fr 230px; }.project-index strong, .project-index span { display: block; }.project-index strong { color: var(--accent); font-size: 18px; }.project-index span { margin-top: 5px; color: var(--muted); font-size: 9px; }.row-title { display: flex; align-items: baseline; gap: 16px; }.row-title h3 { margin: 0; font-size: 23px; letter-spacing: -.025em; }.row-title span { color: var(--muted); font-size: 11px; }.project-content > p { margin: 9px 0 12px; color: #41454b; font-size: 12px; }.project-content li { margin: 4px 0; color: #5b5f66; font-size: 10px; }.project-content .tags { margin-top: 14px; }.row-proof { width: 100%; max-height: 220px; padding: 10px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: zoom-in; }.row-proof img { width: 100%; height: 198px; object-fit: contain; }.row-proof-wide img { height: auto; max-height: 198px; }
.other-results { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }.other-results h3 { margin: 0 0 20px; font-size: 14px; }.other-results > div { display: grid; grid-template-columns: repeat(4,1fr); }.other-results article { padding: 0 18px; border-right: 1px solid rgba(255,255,255,.16); }.other-results article:first-child { padding-left: 0; }.other-results article:last-child { border: 0; }.other-results strong, .other-results span { display: block; }.other-results strong { font-size: 12px; }.other-results span { margin-top: 7px; color: rgba(255,255,255,.6); font-size: 9px; }

.experience-list { border-top: 1px solid var(--ink); }.experience-item { padding: 35px 0; display: grid; grid-template-columns: 250px 1fr; gap: 50px; border-bottom: 1px solid var(--line); }.experience-meta time, .experience-meta span { display: block; }.experience-meta time { font-size: 12px; font-weight: 650; }.experience-meta span { margin-top: 4px; color: var(--muted); font-size: 10px; }.experience-body h3 { margin: 0; font-size: 21px; }.job-title { margin: 2px 0 14px; color: var(--accent); font-size: 12px; }.experience-body li { margin: 5px 0; color: #4f5359; font-size: 11px; }.education { padding: 45px 0; display: grid; grid-template-columns: 250px 1fr; gap: 50px; align-items: end; border-bottom: 1px solid var(--line); }.education > div:first-child { display: flex; gap: 18px; align-items: baseline; }.education h2 { font-size: 32px; }.education > div:last-child { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; }.education strong { font-size: 18px; }.education span, .education time { color: var(--muted); font-size: 11px; }

.credentials { padding-bottom: 60px; }.group-title { margin: 52px 0 16px; padding-bottom: 9px; border-bottom: 1px solid var(--ink); font-size: 13px; }.honor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }.certificate-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }.proof-card { margin: 0; min-width: 0; }.proof-image { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: zoom-in; }.proof-image img { width: 100%; height: auto; object-fit: contain; }.proof-card figcaption { padding: 11px 3px 0; display: flex; justify-content: space-between; gap: 15px; }.proof-card figcaption strong { font-size: 11px; }.proof-card figcaption span { color: var(--muted); font-size: 9px; text-align: right; }
.contact { margin-top: 60px; padding: 75px 0; border-top: 1px solid var(--ink); }.contact h2 { margin: 13px 0 28px; font-size: clamp(38px,5vw,60px); letter-spacing: -.05em; }.contact > a { padding: 14px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--accent); font-size: clamp(20px,3vw,32px); }.contact > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 10px; }
footer { padding: 24px 0 38px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .1em; }

.image-modal { width: min(1180px, calc(100% - 30px)); max-height: calc(100svh - 30px); padding: 0; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.25); }.image-modal::backdrop { background: rgba(15,17,20,.78); backdrop-filter: blur(7px); }.modal-head { height: 55px; padding: 0 12px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.modal-head p { margin: 0; color: var(--muted); font-size: 10px; }.modal-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }.modal-body { max-height: calc(100svh - 85px); padding: 12px; overflow: auto; overscroll-behavior: contain; background: #eceef1; }.modal-body img { width: 100%; height: auto; object-fit: contain; }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }.reveal.is-visible { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: .45; } }

/* 阅读字号体系：辅助信息不低于 12px，正文信息以 14px 以上为基准。 */
body { font-size: 16px; }
.brand strong { font-size: 14px; }
.brand span { font-size: 12px; }
nav a, .header-mail { font-size: 14px; }
.overline, .section-no { font-size: 12px; }
.role { font-size: 27px; }
.role span { font-size: 16px; }
.summary { font-size: 18px; }
.contact-row { font-size: 14px; }
.side-title { font-size: 14px; }
.capability-list div { grid-template-columns: 110px 1fr; }
.capability-list dt, .capability-list dd { font-size: 14px; }
.stack span, .tags span { font-size: 12px; }
.metrics strong { font-size: 30px; }
.metrics sup { font-size: 12px; }
.metrics span { font-size: 14px; }
.section-header h2, .education h2 { font-size: clamp(42px,5vw,60px); }
.section-header > p { max-width: 470px; font-size: 14px; }
.demo-label, .project-head { font-size: 12px; }
.featured-project h3 { font-size: 32px; }
.project-desc { min-height: 62px; font-size: 15px; }
.featured-project li { margin-block: 7px; font-size: 14px; }
.project-row { padding-block: 36px; grid-template-columns: 135px 1fr; }
.project-row-media { grid-template-columns: 135px 1fr 250px; }
.project-index strong { font-size: 21px; }
.project-index span { font-size: 12px; }
.row-title h3 { font-size: 27px; }
.row-title span, .project-content > p, .project-content li { font-size: 14px; }
.project-content li { margin-block: 5px; }
.row-proof { max-height: 250px; }
.row-proof img { height: 228px; }
.row-proof-wide img { max-height: 228px; }
.other-results { padding: 30px; }
.other-results h3 { font-size: 18px; }
.other-results strong, .other-results span { font-size: 14px; }
.other-results span { color: rgba(255,255,255,.68); }
.experience-item { padding-block: 38px; }
.experience-meta time { font-size: 14px; }
.experience-meta span { font-size: 12px; }
.experience-body h3 { font-size: 25px; }
.job-title, .experience-body li { font-size: 14px; }
.experience-body li { margin-block: 6px; }
.education { padding-block: 48px; }
.education h2 { font-size: 36px; }
.education strong { font-size: 21px; }
.education span, .education time { font-size: 14px; }
.group-title { font-size: 18px; }
.proof-card figcaption strong, .proof-card figcaption span { font-size: 14px; }
.contact h2 { font-size: clamp(42px,5vw,64px); }
.contact > a { font-size: clamp(22px,3vw,34px); }
.contact > p:last-child { font-size: 14px; }
footer { font-size: 12px; }
.modal-head p { font-size: 12px; }
.project-external { width: fit-content; min-height: 42px; margin-top: 16px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(49,86,211,.3); border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 14px; font-weight: 650; transition: color .2s, border-color .2s, background-color .2s, transform .2s; }
.project-external small { color: #5f6f9f; font-size: 12px; font-weight: 450; }
.project-external i { font-size: 16px; font-style: normal; }
.project-external:hover { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateY(-1px); }
.project-external:hover small { color: rgba(255,255,255,.78); }
.practice-list { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.practice-list > div { padding: 6px 0; display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.practice-list strong { font-size: 14px; }
.practice-list span { color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }.hero-side { width: 100%; }.featured-grid { grid-template-columns: 1fr; }.project-desc { min-height: 0; }.project-row-media { grid-template-columns: 100px 1fr 190px; }.other-results > div { grid-template-columns: 1fr 1fr; gap: 25px 0; }.other-results article:nth-child(2) { border: 0; }
  .certificate-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .page { width: min(var(--max), calc(100% - 30px)); }.site-header { min-height: 60px; padding: 0 15px; grid-template-columns: 1fr auto; }.site-header nav { display: none; }.header-mail { font-size: 10px; }.brand strong { font-size: 9px; }
  .hero { padding-top: 58px; gap: 35px; }.hero h1 { font-size: clamp(61px,21vw,88px); }.role { font-size: 21px; }.role span { display: block; margin: 8px 0 0; padding: 0; border: 0; }.summary { font-size: 14px; }.capability-list div { grid-template-columns: 86px 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }.metrics div { padding: 18px 14px; border-bottom: 1px solid var(--line); }.metrics div:nth-child(even) { border-right: 0; }.metrics div:last-child { grid-column: 1/-1; border-bottom: 0; }.metrics div:first-child { padding-left: 14px; }
  .section { padding-top: 72px; }.section-header { margin-bottom: 30px; display: block; }.section-header > div { gap: 12px; }.section-header > p { margin-top: 15px; text-align: left; }.section-header h2 { font-size: 42px; }
  .featured-project { padding: 12px 12px 18px; }.project-demo { min-height: 220px; }.featured-project h3 { font-size: 25px; }.featured-project li { font-size: 10px; }
  .project-row, .project-row-media { padding: 26px 0; grid-template-columns: 1fr; gap: 16px; }.project-index { display: flex; align-items: center; gap: 12px; }.project-index span { margin: 0; }.row-title { display: block; }.row-title span { display: block; margin-top: 3px; }.row-proof { max-height: none; }.row-proof img, .row-proof-wide img { width: 100%; height: auto; max-height: 360px; }
  .other-results > div { grid-template-columns: 1fr; }.other-results article, .other-results article:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }.other-results article:last-child { border: 0; }
  .experience-item, .education { grid-template-columns: 1fr; gap: 18px; }.experience-meta { display: flex; justify-content: space-between; }.experience-meta span { margin: 0; }.education > div:last-child { grid-template-columns: 1fr; gap: 3px; }.education time { margin-top: 5px; }
  .honor-grid, .certificate-grid { grid-template-columns: 1fr; }.proof-card figcaption { display: block; }.proof-card figcaption span { display: block; margin-top: 3px; text-align: left; }
  .contact { margin-top: 30px; padding: 55px 0; }.contact > a { font-size: 18px; }footer { gap: 15px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; }
  .header-mail, .brand strong, .brand span { font-size: 12px; }
  .hero h1 { font-size: clamp(65px,21vw,92px); }
  .role { font-size: 24px; }
  .role span, .summary { font-size: 16px; }
  .capability-list div { grid-template-columns: 100px 1fr; }
  .section-header h2 { font-size: 46px; }
  .featured-project h3 { font-size: 29px; }
  .featured-project li { font-size: 14px; }
  .contact > a { font-size: 20px; }
}
