:root {
  --paper: #f7f4ed;
  --paper-deep: #ece7da;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-solid: #fffdf8;
  --ink: #17312d;
  --muted: #66756f;
  --line: rgba(23, 49, 45, 0.14);
  --brand: #174a42;
  --brand-strong: #0d382f;
  --gold: #d9a938;
  --gold-soft: #f0cd72;
  --shadow: 0 24px 70px rgba(22, 51, 46, 0.12);
  --radius: 24px;
  --shell: 1180px;
}

html[data-theme='dark'] {
  --paper: #101816;
  --paper-deep: #0b1210;
  --surface: rgba(25, 39, 35, 0.74);
  --surface-solid: #17231f;
  --ink: #edf4ee;
  --muted: #a5b6af;
  --line: rgba(229, 242, 232, 0.13);
  --brand: #72b6a4;
  --brand-strong: #9bd3c5;
  --gold: #e5bb55;
  --gold-soft: #f2d27f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; line-height: 1.7; text-rendering: optimizeLegibility; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
svg { width: 1.2em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.reading-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); z-index: 99; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 87%, transparent); backdrop-filter: blur(18px); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #f8e6a8; background: var(--brand-strong); font-family: Georgia, serif; font-weight: 800; letter-spacing: -.06em; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 28px 0 24px; color: var(--muted); font-size: 14px; font-weight: 600; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 18px; height: 2px; background: var(--gold); transition: right .25s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active::after { right: 0; }
.header-actions { display: flex; gap: 8px; padding-left: 8px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: .2s; }
.icon-button:hover { transform: translateY(-2px); background: var(--surface); }
.menu-button { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 20px 18px; background: var(--paper); }
.mobile-nav a { display: block; padding: 12px 10px; color: var(--muted); }
.mobile-nav a.active { color: var(--ink); font-weight: 700; }

.hero { position: relative; overflow: hidden; min-height: 720px; display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; width: 540px; height: 540px; right: -220px; top: -180px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 18%, transparent); filter: blur(2px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 76px; padding: 92px 0 110px; }
.eyebrow { margin: 0 0 20px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-copy > .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #47a06b; box-shadow: 0 0 0 5px rgba(71, 160, 107, .12); }
.hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(50px, 6vw, 82px); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; }
.hero h1 span { color: var(--brand); }
.hero-intro { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions, .about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { color: #fff; background: var(--brand-strong); box-shadow: 0 12px 24px rgba(17, 61, 53, .18); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button svg, .secondary-button svg { width: 17px; }
.secondary-button { border-color: var(--line); background: var(--surface); }
.hero-notes { display: flex; gap: 18px; margin-top: 42px; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-notes span + span::before { content: '·'; margin-right: 18px; color: var(--gold); }
.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; }
.orbit-two { width: 335px; height: 335px; border-style: dashed; transform: rotate(-18deg); }
.code-window { position: relative; z-index: 2; width: min(100%, 430px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; color: #d5e9e2; background: #122b27; box-shadow: 0 30px 80px rgba(8, 43, 36, .3); transform: rotate(1.5deg); }
.window-head { height: 52px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.12); }
.window-head i { width: 8px; height: 8px; border-radius: 50%; background: #d4695d; }.window-head i:nth-child(2) { background: #d5a94e; }.window-head i:nth-child(3) { background: #5ca978; }
.window-head span { margin-left: 10px; color: #87a19a; font: 11px ui-monospace, monospace; }
.code-window pre { margin: 0; padding: 28px 30px 34px; font: 14px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-window b { color: #e9c66e; }.code-window em { color: #9bd3b5; font-style: normal; }
.floating-chip { position: absolute; z-index: 3; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-solid); box-shadow: var(--shadow); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.chip-one { top: 48px; right: -2px; transform: rotate(5deg); }.chip-two { bottom: 52px; left: -12px; transform: rotate(-6deg); }.chip-three { bottom: 10px; right: 46px; transform: rotate(3deg); }

.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; margin-bottom: 54px; }
.section-heading.compact { grid-template-columns: 1fr auto; }
.section-heading h2, .principles h2, .about-grid h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(36px, 4vw, 55px); line-height: 1.16; letter-spacing: -.04em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); }
.project-spotlight { background: var(--paper-deep); }
.project-card { position: relative; overflow: hidden; display: grid; gap: 24px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow); }
.project-card::before { content: ''; position: absolute; width: 340px; height: 340px; right: -180px; top: -190px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 50%; box-shadow: 0 0 0 42px color-mix(in srgb, var(--gold) 5%, transparent), 0 0 0 82px color-mix(in srgb, var(--gold) 4%, transparent); }
.project-featured { grid-template-columns: .85fr 1.3fr; align-items: end; min-height: 420px; padding: 48px; }
.project-featured .project-card-top { align-self: start; grid-row: span 3; align-items: flex-start; flex-direction: column; }
.project-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.project-index { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; color: var(--gold-soft); background: var(--brand-strong); font-family: Georgia, "Songti SC", serif; font-size: 46px; font-weight: 800; box-shadow: 0 18px 34px rgba(13, 56, 47, .2); }
.status-dot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #4ba56b; box-shadow: 0 0 0 5px rgba(75, 165, 107, .12); }
.project-card h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 46px; line-height: 1; }.project-card h4 { margin: 13px 0 20px; font-size: 17px; }.project-card p { color: var(--muted); }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; }.stack-list span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-list { border-top: 1px solid var(--line); }
.post-card { padding: 32px 0; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }.post-meta span:first-child { color: var(--brand); font-weight: 800; }.post-meta > * + *::before { content: '·'; margin-right: 12px; color: var(--gold); }
.post-card h3 { max-width: 820px; margin: 12px 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }.post-card h3 a:hover { color: var(--brand); }
.post-card > p { max-width: 800px; margin: 0; color: var(--muted); }
.post-card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }.tag-list a { color: var(--muted); font-size: 12px; }.tag-list a:hover { color: var(--brand); }.tag-list.large { margin-top: 20px; }.tag-list.large a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 13px; font-weight: 800; white-space: nowrap; }.text-link svg { width: 16px; transition: transform .2s; }.text-link:hover svg { transform: translateX(4px); }
.principles { color: #edf4ef; background: var(--brand-strong); }
.principles .eyebrow { color: var(--gold-soft); }.principles-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }.principle-list article { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.13); }.principle-list article:first-child { padding-top: 0; }.principle-list span { color: var(--gold-soft); font: 15px Georgia, serif; }.principle-list h3 { margin: 0 0 6px; font-size: 20px; }.principle-list p { margin: 0; color: #a9beb7; }

.page-hero { padding: 100px 0 70px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--paper), var(--paper-deep)); }
.page-hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(52px, 8vw, 92px); line-height: 1; letter-spacing: -.055em; }.page-hero .shell > p:last-child { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 17px; }.page-section { min-height: 520px; }
.articles-layout { display: grid; grid-template-columns: 210px 1fr; gap: 70px; align-items: start; }
.filter-panel { position: sticky; top: 112px; display: grid; }.filter-panel h2 { margin: 0 0 16px; font-size: 13px; letter-spacing: .08em; }.filter-tag { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); font-size: 13px; }.filter-tag span { color: var(--muted); }.filter-tag:hover, .filter-tag.active { color: var(--brand); font-weight: 800; }.result-heading { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }.result-heading strong { color: var(--ink); }.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.archive { max-width: 920px; }.archive-year { display: grid; grid-template-columns: 150px 1fr; gap: 50px; margin-bottom: 70px; }.archive-year h2 { margin: 0; color: var(--brand); font: 46px Georgia, serif; }.archive-year a { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }.archive-year a:hover span { color: var(--brand); }.archive-year time, .archive-year small { color: var(--muted); font-size: 12px; }.archive-year span { font-family: Georgia, "Songti SC", serif; font-size: 19px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }.project-grid .project-card { min-height: 510px; }.project-grid .project-card h3 { font-size: 38px; }.project-coming { place-content: center; border-style: dashed; box-shadow: none; }.project-coming::before { display: none; }.coming-plus { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); font: 36px Georgia, serif; }.project-coming code { padding: 2px 5px; border-radius: 5px; background: var(--paper-deep); }.project-note { display: grid; grid-template-columns: 190px 1fr; gap: 30px; margin-top: 38px; padding: 24px 28px; border-left: 3px solid var(--gold); background: var(--surface); }.project-note p { margin: 0; color: var(--muted); }
.service-preview-section { background: var(--paper-deep); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { position: relative; overflow: hidden; min-height: 440px; display: flex; flex-direction: column; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow); }
.service-card::after { content: ''; position: absolute; right: -70px; top: -70px; width: 190px; height: 190px; border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); border-radius: 50%; }.service-card.accent-gold::after { border-color: color-mix(in srgb, var(--gold) 32%, transparent); }
.service-card-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }.service-card-head > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--brand); font: 30px Georgia, serif; }.service-card.accent-gold .service-card-head > span { color: #2d271b; background: var(--gold-soft); }.service-card-head .eyebrow { margin: 0; }
.service-card h3 { max-width: 480px; margin: 42px 0 14px; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }.service-card > p { margin: 0; color: var(--muted); }
.service-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 26px 0 34px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }.service-card li { position: relative; padding-left: 15px; color: var(--muted); font-size: 13px; }.service-card li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }.service-card > .text-link { margin-top: auto; align-self: flex-start; }
.services-main { background: var(--paper-deep); }.service-grid.detailed .service-card { min-height: 500px; }
.service-process { color: #edf4ef; background: var(--brand-strong); }.service-process .eyebrow { color: var(--gold-soft); }.service-process .section-heading > p { color: #a9beb7; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.13); list-style: none; }.process-grid li { min-height: 250px; padding: 30px 28px; border-right: 1px solid rgba(255,255,255,.13); }.process-grid li:last-child { border-right: 0; }.process-grid span { color: var(--gold-soft); font: 14px Georgia, serif; }.process-grid h3 { margin: 40px 0 10px; font-size: 20px; }.process-grid p { margin: 0; color: #a9beb7; font-size: 13px; }
.cooperation-boundaries { background: var(--paper); }.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.boundary-grid article { padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.boundary-grid h2 { margin: 12px 0 15px; font-family: Georgia, "Songti SC", serif; font-size: 31px; }.boundary-grid article > p:not(.eyebrow) { color: var(--muted); }.boundary-grid strong { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--brand); font-size: 13px; }
.service-contact { background: var(--paper-deep); }.service-contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: start; }.service-contact-copy { position: sticky; top: 112px; }.service-contact-copy h2 { margin: 8px 0 16px; font-family: Georgia, "Songti SC", serif; font-size: clamp(36px, 5vw, 58px); }.service-contact-copy > p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); }.contact-form { display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); box-shadow: var(--shadow); }.contact-form > .primary-button { justify-self: start; }
.about-intro { display: grid; grid-template-columns: 1fr 320px; gap: 90px; align-items: center; }.portrait-card { min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border-radius: 140px 140px 24px 24px; color: #eaf4ef; background: var(--brand-strong); box-shadow: var(--shadow); }.portrait-card > span { flex: 1; display: grid; place-items: center; color: var(--gold-soft); font: 76px Georgia, serif; }.portrait-card p { margin: 0; font-weight: 700; }.portrait-card small { color: #a9beb7; }.about-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 90px; }.large-copy { margin: 0 0 45px; font-family: Georgia, "Songti SC", serif; font-size: 27px; line-height: 1.7; }.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.skill-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }.skill-grid span { color: var(--gold); font: 14px Georgia, serif; }.skill-grid h3 { margin: 12px 0 7px; }.skill-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.resume-current { background: var(--paper-deep); }
.resume-loading { min-height: 72vh; display: grid; place-items: center; color: var(--muted); }
.resume-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; }
.resume-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-bottom: 5px; }
.service-notice { border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); background: color-mix(in srgb, var(--gold-soft) 22%, var(--surface)); }
.service-notice .shell { display: flex; gap: 18px; padding-top: 14px; padding-bottom: 14px; font-size: 13px; }
.service-notice span { color: var(--muted); }
.resume-showcase { display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; min-height: 650px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow); }
.resume-showcase-copy { display: flex; flex-direction: column; justify-content: center; padding: 52px; border-right: 1px solid var(--line); }
.resume-version-label { align-self: flex-start; padding: 6px 10px; border-radius: 99px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); font-size: 11px; font-weight: 800; }
.resume-showcase-copy h3 { margin: 22px 0 15px; font-family: Georgia, "Songti SC", serif; font-size: 39px; line-height: 1.25; }
.resume-showcase-copy > p { margin: 0; color: var(--muted); }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.resume-safety { display: grid; gap: 5px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.resume-safety strong { font-size: 12px; }.resume-safety span { color: var(--muted); font-size: 12px; }
.resume-preview { min-height: 650px; padding: 24px; background: color-mix(in srgb, var(--paper-deep) 75%, var(--surface-solid)); }
.resume-preview object { width: 100%; height: 100%; min-height: 602px; border: 0; border-radius: 12px; background: #fff; }
.pdf-fallback { height: 100%; min-height: 560px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.resume-history { background: var(--paper); }
.resume-history-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 90px; align-items: start; }
.resume-history-heading { position: sticky; top: 112px; }.resume-history-heading h2, .resume-method h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(36px, 4vw, 55px); line-height: 1.16; letter-spacing: -.04em; }.resume-history-heading > p:last-child { color: var(--muted); }
.resume-timeline { position: relative; }.resume-timeline::before { content: ''; position: absolute; left: 6px; top: 9px; bottom: 20px; width: 1px; background: var(--line); }
.resume-version { position: relative; display: grid; grid-template-columns: 105px 1fr; gap: 24px; padding-bottom: 28px; }
.resume-version-marker { position: relative; display: flex; align-items: flex-start; gap: 13px; padding-top: 25px; color: var(--muted); font-size: 11px; }
.resume-version-marker i { position: relative; z-index: 1; flex: 0 0 auto; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.resume-version.current .resume-version-marker i { background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 13%, transparent); }
.resume-version-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.resume-version.current .resume-version-card { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: var(--surface-solid); box-shadow: var(--shadow); }
.resume-version-head { display: flex; justify-content: space-between; gap: 18px; }.resume-version-head .eyebrow { margin-bottom: 8px; }.resume-version-head h3 { margin: 0; font-size: 21px; }.resume-version-card > p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.current-badge, .pending-label { align-self: flex-start; padding: 5px 9px; border-radius: 99px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); font-size: 10px; font-weight: 800; white-space: nowrap; }.pending-label { display: inline-flex; margin-top: 16px; color: var(--muted); }
.resume-version-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 17px; }.muted-link { color: var(--muted); }
.text-button { padding: 0; border: 0; color: var(--brand); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.text-button:hover { text-decoration: underline; }.danger-text { color: #a53f36; }
.resume-empty, .resume-current-empty { min-height: 280px; display: grid; place-content: center; justify-items: center; padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: var(--surface); }
.resume-empty span, .resume-current-empty span { color: var(--gold); font: 64px/1 Georgia, serif; opacity: .7; }.resume-empty h3, .resume-current-empty h3 { margin: 18px 0 6px; font-size: 25px; }.resume-empty p, .resume-current-empty p { max-width: 500px; margin: 0; color: var(--muted); }
.resume-current-empty { min-height: 430px; }.resume-current-empty span { font-size: 40px; letter-spacing: .08em; }
.resume-method { color: #edf4ef; background: var(--brand-strong); }.resume-method .eyebrow { color: var(--gold-soft); }.resume-method-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }.resume-method ol { margin: 0; padding: 0; list-style: none; }.resume-method li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.13); }.resume-method li:first-child { padding-top: 0; }.resume-method li > span { color: var(--gold-soft); font: 15px Georgia, serif; }.resume-method strong { display: block; margin-bottom: 4px; }.resume-method li p { margin: 0; color: #a9beb7; }

.resume-dialog { width: min(680px, calc(100% - 28px)); max-height: min(88vh, 860px); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--surface-solid); box-shadow: 0 34px 100px rgba(0,0,0,.32); }
.resume-dialog::backdrop { background: rgba(5,16,13,.62); backdrop-filter: blur(6px); }
.resume-dialog-panel { display: grid; gap: 20px; padding: 30px; }
.resume-dialog-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }.resume-dialog-head h2 { margin: 5px 0 0; font: 32px/1.2 Georgia, "Songti SC", serif; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-help { margin: 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.field-wide { grid-column: 1 / -1; }
.field-label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.field-label input, .field-label textarea, .field-label select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: var(--paper); font: inherit; font-size: 14px; }
.field-label input:focus, .field-label textarea:focus, .field-label select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.field-label textarea { resize: vertical; line-height: 1.6; }.checkbox-label, .privacy-confirm { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.checkbox-label { align-items: center; padding-top: 30px; }.checkbox-label input, .privacy-confirm input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--brand); }
.privacy-confirm { padding: 14px; border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--gold-soft) 16%, transparent); }
.form-message { min-height: 20px; margin: 0; color: #a53f36; font-size: 12px; }.form-message[data-type="info"] { color: var(--brand); }.form-message[data-type="success"] { color: #2c755a; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }.dialog-actions button:disabled { opacity: .55; cursor: wait; }

.article-header { padding: 90px 0 70px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--paper), var(--paper-deep)); }.article-shell { max-width: 900px; }.back-link { display: inline-block; margin-bottom: 46px; color: var(--muted); font-size: 13px; }.back-link:hover { color: var(--brand); }.article-header h1 { max-width: 850px; margin: 18px 0 20px; font-family: Georgia, "Songti SC", serif; font-size: clamp(42px, 6vw, 67px); line-height: 1.16; letter-spacing: -.045em; }.article-header p { max-width: 750px; margin: 0; color: var(--muted); font-size: 18px; }.article-layout { max-width: 1050px; display: grid; grid-template-columns: 190px minmax(0, 720px); gap: 70px; align-items: start; padding-top: 70px; padding-bottom: 110px; }.toc { position: sticky; top: 110px; display: grid; gap: 10px; padding-left: 18px; border-left: 1px solid var(--line); }.toc strong { margin-bottom: 5px; font-size: 12px; letter-spacing: .08em; }.toc a { color: var(--muted); font-size: 12px; }.toc a:hover { color: var(--brand); }.article-body { min-width: 0; color: color-mix(in srgb, var(--ink) 92%, var(--muted)); font-family: Georgia, "Songti SC", "Microsoft YaHei", serif; font-size: 17px; line-height: 2; }.article-body .lead { margin-top: 0; font-size: 22px; line-height: 1.8; }.article-body h2 { scroll-margin-top: 110px; margin: 60px 0 18px; color: var(--ink); font-size: 29px; line-height: 1.4; }.article-body ul, .article-body ol { padding-left: 1.4em; }.article-body li { margin: 8px 0; }.article-body blockquote { margin: 36px 0; padding: 20px 24px; border-left: 3px solid var(--gold); color: var(--muted); background: var(--surface); }.article-body pre { position: relative; overflow-x: auto; margin: 34px 0; padding: 25px; border-radius: 14px; color: #d8e8e2; background: #122b27; font: 14px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }.copy-button { position: absolute; right: 10px; top: 10px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; color: #bbcec7; background: rgba(0,0,0,.12); cursor: pointer; font-size: 11px; }.article-end { margin-top: 70px; padding-top: 35px; border-top: 1px solid var(--line); text-align: center; }.article-end > span { color: var(--gold); font: 12px Georgia, serif; letter-spacing: .28em; }.article-end p { color: var(--muted); font-family: Inter, "Microsoft YaHei", sans-serif; font-size: 14px; }.article-end > div { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.article-community { padding: 90px 0 110px; border-top: 1px solid var(--line); background: var(--paper-deep); }.community-layout { max-width: 1050px; display: grid; grid-template-columns: .68fr 1.32fr; gap: 75px; align-items: start; }.like-panel { position: sticky; top: 110px; }.like-panel h2, .comment-heading h2 { margin: 10px 0 18px; font-family: Georgia, "Songti SC", serif; font-size: 32px; line-height: 1.25; }.like-panel > p:last-child { color: var(--muted); font-size: 12px; }
.like-button { width: 150px; height: 150px; display: grid; grid-template-columns: 1fr; place-content: center; justify-items: center; margin: 28px 0 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--surface-solid); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, border-color .2s; }.like-button:hover { transform: translateY(-3px); border-color: var(--gold); }.like-button span { color: var(--gold); font-size: 30px; line-height: 1; }.like-button strong { margin-top: 5px; font: 30px Georgia, serif; }.like-button small { color: var(--muted); }.like-button.liked { border-color: color-mix(in srgb, var(--gold) 65%, var(--line)); background: color-mix(in srgb, var(--gold-soft) 16%, var(--surface-solid)); }
.comment-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.comment-heading .eyebrow { margin: 0; }.comment-heading h2 { margin-bottom: 0; }.comment-heading > span { color: var(--muted); font-size: 12px; }.comment-list { display: grid; margin-bottom: 35px; }.comment-item { padding: 24px 0; border-bottom: 1px solid var(--line); }.comment-item > div { display: flex; justify-content: space-between; gap: 20px; }.comment-item strong { color: var(--ink); }.comment-item time { color: var(--muted); font-size: 11px; }.comment-item p { margin: 10px 0 0; color: var(--muted); white-space: pre-wrap; }.comment-loading, .comment-empty { padding: 35px 0; color: var(--muted); font-size: 13px; }.comment-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); }.comment-form h3 { margin: 0; font-size: 23px; }.comment-form > p:not(.form-message) { margin: -8px 0 4px; color: var(--muted); font-size: 12px; }.comment-form > .primary-button { justify-self: start; }
.manage-loading { min-height: 70vh; display: grid; place-items: center; color: var(--muted); }.manage-login-card { min-height: 420px; display: grid; place-content: center; justify-items: center; text-align: center; }.manage-login-card > span { color: var(--gold); font: 46px Georgia, serif; letter-spacing: .12em; }.manage-login-card h2 { margin: 22px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 36px; }.manage-login-card p { margin: 0 0 25px; color: var(--muted); }
.manage-hero-grid { display: flex; justify-content: space-between; align-items: end; gap: 35px; }.manage-summary { padding-top: 35px; padding-bottom: 35px; background: var(--paper-deep); }.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.summary-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.summary-grid span { color: var(--brand); font: 40px Georgia, serif; }.summary-grid p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.manage-content { background: var(--paper); }.manage-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }.manage-section-heading { margin-bottom: 20px; }.manage-section-heading h2 { margin: 8px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 34px; }.manage-list { display: grid; gap: 15px; }.manage-item { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-solid); }.manage-item-head { display: flex; justify-content: space-between; gap: 20px; }.manage-item-head h3 { margin: 10px 0 0; font-size: 16px; line-height: 1.5; }.manage-item-head time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }.manage-item > p { color: var(--muted); white-space: pre-wrap; }.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: var(--muted); background: var(--paper-deep); font-size: 10px; font-weight: 800; }.status-pending, .status-new { color: #875d18; background: color-mix(in srgb, var(--gold-soft) 28%, transparent); }.status-approved, .status-contacted { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }.status-closed { color: var(--muted); }.manage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; }.manage-actions .primary-button, .manage-actions .secondary-button { min-height: 38px; padding: 8px 13px; font-size: 11px; }.manage-actions select { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }.contact-value { display: flex; justify-content: space-between; gap: 18px; width: 100%; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--brand); background: var(--paper-deep); cursor: pointer; text-align: left; }.contact-value small { color: var(--muted); }.manage-empty { padding: 45px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }.not-found span { color: var(--gold); font: 120px/1 Georgia, serif; opacity: .55; }.not-found h1 { margin: 12px 0; font: 44px Georgia, "Songti SC", serif; }.not-found p { margin-bottom: 28px; color: var(--muted); }

.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--paper-deep); }.footer-grid { display: flex; justify-content: space-between; gap: 40px; }.footer-brand { font-family: Georgia, "Songti SC", serif; font-size: 20px; font-weight: 800; }.footer-grid p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.footer-links { display: flex; flex-wrap: wrap; gap: 25px; color: var(--muted); font-size: 13px; }.footer-links a:hover { color: var(--brand); }.footer-bottom { display: flex; justify-content: space-between; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.search-dialog { width: min(700px, calc(100% - 28px)); max-height: 78vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface-solid); box-shadow: 0 34px 100px rgba(0,0,0,.3); }.search-dialog::backdrop { background: rgba(5, 16, 13, .58); backdrop-filter: blur(6px); }.search-panel { display: grid; }.search-head { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); }.search-head input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }.search-head button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }.search-results { max-height: 58vh; overflow: auto; padding: 10px; }.search-result { display: grid; gap: 5px; padding: 14px; border-radius: 10px; }.search-result:hover { background: var(--paper-deep); }.search-result span { color: var(--brand); font-size: 10px; font-weight: 800; }.search-result strong { font-family: Georgia, "Songti SC", serif; }.search-result small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }.search-empty { padding: 50px 20px; text-align: center; color: var(--muted); font-size: 13px; }.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; opacity: 0; pointer-events: none; color: var(--ink); background: var(--surface-solid); box-shadow: var(--shadow); cursor: pointer; transform: translateY(10px); transition: .2s; }.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }.noscript { padding: 16px; text-align: center; color: #fff; background: #8e332c; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }.menu-button { display: grid; }.header-inner { height: 68px; }.brand-copy { display: none; }
  .hero { min-height: auto; }.hero-grid { grid-template-columns: 1fr; gap: 55px; padding: 70px 0 90px; }.hero-visual { min-height: 370px; }.code-window { width: min(90%, 430px); }.orbit-one { width: 370px; height: 370px; }.orbit-two { width: 290px; height: 290px; }
  .section { padding: 80px 0; }.section-heading, .project-featured, .principles-grid, .about-grid { grid-template-columns: 1fr; }.section-heading { gap: 20px; }.project-featured .project-card-top { grid-row: auto; flex-direction: row; }.principles-grid { gap: 45px; }
  .articles-layout { grid-template-columns: 1fr; gap: 35px; }.filter-panel { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 5px; }.filter-panel h2 { display: none; }.filter-tag { flex: 0 0 auto; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; }.filter-tag.active { background: var(--surface); }
  .project-grid, .service-grid, .boundary-grid, .manage-columns { grid-template-columns: 1fr; }.process-grid { grid-template-columns: repeat(2, 1fr); }.process-grid li:nth-child(2) { border-right: 0; }.process-grid li { border-bottom: 1px solid rgba(255,255,255,.13); }.process-grid li:nth-child(n+3) { border-bottom: 0; }.article-layout, .community-layout { grid-template-columns: 1fr; }.community-layout { gap: 45px; }.like-panel { position: static; }.toc { display: none; }.about-intro { grid-template-columns: 1fr; gap: 50px; }.portrait-card { width: min(100%, 320px); }.archive-year { grid-template-columns: 100px 1fr; gap: 25px; }.resume-hero-grid { grid-template-columns: 1fr; }.resume-admin-actions { justify-content: flex-start; }.resume-showcase { grid-template-columns: 1fr; }.resume-showcase-copy { border-right: 0; border-bottom: 1px solid var(--line); }.resume-history-grid, .resume-method-grid { grid-template-columns: 1fr; }.resume-history-heading { position: static; }.resume-history-grid { gap: 45px; }.service-contact-layout { grid-template-columns: 1fr; gap: 45px; }.service-contact-copy { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }.header-actions { gap: 5px; }.icon-button { width: 37px; height: 37px; }
  .hero h1 { font-size: 47px; }.hero-intro { font-size: 16px; }.hero-notes { flex-wrap: wrap; gap: 7px 12px; }.hero-notes span + span::before { margin-right: 12px; }.hero-visual { min-height: 320px; }.orbit-one { width: 305px; height: 305px; }.orbit-two { width: 245px; height: 245px; }.code-window pre { padding: 22px 18px 28px; font-size: 11px; }.floating-chip { font-size: 8px; }.chip-one { right: 4px; }.chip-two { left: 0; }
  .section-heading.compact { grid-template-columns: 1fr; }.section-heading.compact .text-link { margin-top: 8px; }.project-card, .project-featured { min-height: 0; padding: 26px; }.project-index { width: 70px; height: 70px; border-radius: 20px; font-size: 34px; }.project-card h3 { font-size: 37px; }.project-actions { display: grid; }.post-card-bottom { align-items: flex-start; flex-direction: column; }.principle-list article { grid-template-columns: 38px 1fr; }
  .page-hero { padding: 70px 0 50px; }.page-hero h1 { font-size: 56px; }.archive-year { grid-template-columns: 1fr; gap: 12px; }.archive-year h2 { font-size: 36px; }.archive-year a { grid-template-columns: 56px 1fr; }.archive-year small { display: none; }.project-note { grid-template-columns: 1fr; gap: 7px; }.service-card { min-height: 0; padding: 26px; }.service-card h3 { margin-top: 32px; font-size: 34px; }.service-card ul { grid-template-columns: 1fr; }.process-grid { grid-template-columns: 1fr; }.process-grid li, .process-grid li:nth-child(2), .process-grid li:nth-child(n+3) { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }.process-grid li:last-child { border-bottom: 0; }.process-grid h3 { margin-top: 22px; }.boundary-grid article { padding: 26px; }.contact-form { padding: 22px 18px; }.skill-grid { grid-template-columns: 1fr; }.large-copy { font-size: 23px; }
  .article-header { padding: 65px 0 50px; }.article-header h1 { font-size: 42px; }.article-header p { font-size: 16px; }.article-layout { padding-top: 45px; }.article-body { font-size: 16px; }.article-body .lead { font-size: 19px; }.article-body h2 { font-size: 25px; }.article-end > div { display: grid; }.article-community { padding: 65px 0; }.like-button { width: 120px; height: 120px; }.comment-heading { align-items: flex-start; flex-direction: column; }.comment-form { padding: 22px 18px; }.manage-hero-grid, .manage-item-head { align-items: flex-start; flex-direction: column; }.summary-grid { grid-template-columns: 1fr; }.resume-admin-actions { display: grid; }.service-notice .shell { display: grid; gap: 4px; }.resume-showcase-copy { padding: 30px 24px; }.resume-showcase-copy h3 { font-size: 31px; }.resume-actions { display: grid; }.resume-preview { min-height: 500px; padding: 12px; }.resume-preview object { min-height: 476px; }.resume-version { grid-template-columns: 1fr; gap: 8px; }.resume-timeline::before { display: none; }.resume-version-marker { padding-top: 0; }.resume-version-marker i { border-color: var(--paper); }.resume-version-head { align-items: flex-start; flex-direction: column; }.resume-version-actions { flex-wrap: wrap; }.resume-dialog-panel { padding: 22px 18px; }.form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.checkbox-label { padding-top: 0; }.dialog-actions { display: grid; }.footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; }.footer-bottom { gap: 8px; }.search-dialog { margin-top: 74px; }
}

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