/* ============================================================
   李沅泽 · 个人主页 — Elite editorial light theme
   暖白底 / 深墨字 / 铜金点缀 / 衬线标题
   ============================================================ */

:root {
  --bg: #f6f4ef;
  --bg-soft: #efece5;
  --panel: #fffdf9;
  --ink: #1b1e24;
  --muted: #5c636e;
  --muted-2: #8b9099;
  --gold: #9a7838;
  --gold-deep: #87672d;
  --gold-bright: #ad8845;
  --gold-soft: rgba(154, 120, 56, .10);
  --line: rgba(154, 120, 56, .34);
  --line-soft: rgba(27, 30, 36, .10);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 82% 8%, rgba(154,120,56,.07), transparent 62%),
    radial-gradient(700px 500px at 8% 72%, rgba(70,95,125,.05), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 74px; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(24px, 5vw, 72px);
  background: rgba(246,244,239,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line-soft); background: rgba(246,244,239,.96); }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--gold); color: var(--gold);
  font: 600 11px/1 var(--sans); letter-spacing: .08em;
}
.brand-text { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.brand-dot { color: var(--gold); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 13px; letter-spacing: .06em; color: var(--muted);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.nav a:hover, .nav a.active { color: var(--ink); border-color: var(--gold); }
.nav-cv {
  font-size: 12px; letter-spacing: .06em; color: var(--gold);
  border: 1px solid var(--line); padding: 9px 15px; white-space: nowrap;
  transition: background .25s, border-color .25s;
}
.nav-cv:hover { background: var(--gold-soft); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px clamp(24px, 7vw, 110px) 90px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: clamp(40px, 7vw, 100px); align-items: center;
}
.eyebrow { font-size: 11px; letter-spacing: .28em; color: var(--gold); text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.eyebrow .line { display: block; width: 52px; height: 1px; background: var(--line); }
.hero h1 {
  font-size: clamp(64px, 10vw, 132px); line-height: 1.02; margin: 22px 0 6px;
  letter-spacing: .06em;
}
.hero-en {
  display: block; font-family: var(--sans); font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: .42em; color: var(--muted); margin-top: 18px; font-weight: 400;
}
.hero-role { font-family: var(--serif); font-size: clamp(17px, 2vw, 22px); margin-top: 26px; letter-spacing: .05em; }
.hero-role .sep { color: var(--gold); margin: 0 10px; font-size: 13px; }
.hero-desc { max-width: 620px; color: var(--muted); font-size: 15px; margin-top: 18px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; font-size: 13px; letter-spacing: .06em;
  border: 1px solid var(--line); transition: all .25s;
}
.btn-primary { background: var(--gold-deep); color: #fffdf8; border-color: var(--gold-deep); font-weight: 600; }
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold); transform: translateY(-2px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 52px); margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font: 400 30px/1.1 var(--serif); color: var(--gold); }
.hero-stats span { font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-top: 8px; }

.hero-aside { display: flex; justify-content: center; }
.hero-portrait { position: relative; margin: 0; width: min(350px, 32vw); }
.hero-portrait img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  filter: saturate(.96) contrast(1.02);
}
.hero-portrait::before {
  content: ""; position: absolute; inset: 12px -12px -12px 12px;
  border: 1px solid rgba(154,120,56,.42); pointer-events: none;
}
.hero-portrait figcaption {
  margin-top: 26px; font-size: 10px; letter-spacing: .22em;
  color: var(--muted-2); text-align: center;
}
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: .3em; color: var(--muted-2); display: flex; align-items: center; gap: 12px; }
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 108px clamp(24px, 5vw, 0); }
.section-head { display: flex; align-items: flex-start; gap: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.section-num { font: 400 13px/1 var(--serif); color: var(--gold); letter-spacing: .12em; padding-top: 14px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; }
.section-en { font-size: 10px; letter-spacing: .28em; color: var(--muted-2); margin-top: 8px; }
.section-intro { color: var(--muted); font-size: 14px; margin: -20px 0 34px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 90px); }
.about-text .lead { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.65; margin-bottom: 22px; }
.about-photo { float: right; width: 158px; margin: 4px 0 18px 26px; }
.about-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); filter: saturate(.96); }
.about-photo figcaption { margin-top: 8px; font-size: 9px; letter-spacing: .18em; color: var(--muted-2); text-align: center; }
.about-text p:not(.lead) { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { font-size: 11px; letter-spacing: .08em; color: var(--gold); border: 1px solid var(--line); padding: 5px 12px; }
.timeline { border-left: 1px solid var(--line); padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ""; position: absolute; left: -35px; top: 9px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--gold); border-radius: 50%; }
.timeline-year { font-size: 11px; letter-spacing: .14em; color: var(--gold); }
.timeline-item h3 { font-size: 19px; margin: 8px 0 8px; }
.timeline-item p { color: var(--muted); font-size: 14px; }
.mini-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.mini-facts div { display: flex; flex-direction: column; gap: 8px; }
.fact-label { font-size: 10px; letter-spacing: .22em; color: var(--gold); }
.fact-value { font-size: 13px; color: var(--muted); }

/* works — compact, keep metadata + links, drop long abstracts */
.work-list { display: flex; flex-direction: column; gap: 10px; }
.work-card {
  position: relative; background: rgba(255,255,255,.72);
  border: 1px solid var(--line-soft); padding: 18px 22px;
  transition: border-color .3s, transform .3s, background .3s;
}
.work-card:hover { border-color: var(--line); transform: translateY(-2px); background: #fffdf9; }
.work-card-muted { opacity: .82; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.work-index { font-size: 10px; letter-spacing: .18em; color: var(--muted-2); }
.work-badge { font-size: 10px; letter-spacing: .1em; color: var(--gold); border: 1px solid var(--line); padding: 3px 9px; }
.work-card h3 { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; }
.work-meta { color: var(--muted); font-size: 12px; margin-top: 7px; }
.work-note { color: var(--muted-2); font-size: 11px; margin-top: 6px; max-width: 850px; }
.work-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.work-links a { font-size: 11px; letter-spacing: .05em; color: var(--gold); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .25s; }
.work-links a:hover { border-color: var(--gold); }
.work-pending { font-size: 12px; color: var(--muted-2); }
.subhead { display: flex; align-items: baseline; gap: 18px; margin: 40px 0 18px; }
.subhead h3 { font-size: 24px; }
.subhead span { font-size: 10px; letter-spacing: .22em; color: var(--muted-2); }

/* articles — compact rows to keep the page short and let visuals breathe */
.article-list { border-top: 1px solid var(--line-soft); }
.article-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center; gap: 10px 20px;
  padding: 16px 12px; border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.article-row:hover { background: rgba(154,120,56,.05); }
.article-no { font: 400 17px/1 var(--serif); color: rgba(154,120,56,.55); }
.article-body h3 { font-size: 17px; line-height: 1.45; }
.article-meta { font-size: 11px; letter-spacing: .06em; color: var(--muted-2); margin-top: 5px; }
.article-links { display: flex; flex-wrap: wrap; gap: 14px; white-space: nowrap; }
.article-links a { font-size: 11px; color: var(--gold); transition: color .25s; }
.article-links a:hover { color: var(--ink); border-bottom: 1px solid var(--gold); }
/* video cards — embed platform player, no large local files */
.video-block { margin-top: 0; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.video-card { border: 1px solid var(--line-soft); background: rgba(255,255,255,.66); transition: border-color .3s, transform .3s; }
.video-card:hover { border-color: var(--line); transform: translateY(-2px); }
.video-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #1f2733, #3a3020 70%, #5d4a24);
}
.video-cover-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .28em; color: rgba(255,255,255,.45); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,253,249,.92); color: var(--gold-deep); font-size: 18px; padding-left: 4px;
  transition: transform .25s, background .25s;
}
.video-cover:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.video-src { position: absolute; right: 12px; bottom: 10px; font-size: 10px; letter-spacing: .14em; color: #fff; background: rgba(0,0,0,.42); padding: 3px 8px; }
.video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-info { padding: 15px 18px 17px; }
.video-info h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.video-info p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.video-origin { color: var(--gold); border-bottom: 1px solid transparent; }
.video-origin:hover { border-color: var(--gold); }
.video-note { margin-top: 16px; font-size: 11px; color: var(--muted-2); }
.video-note .video-origin { margin-left: 6px; }

/* honors */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.honor-col { padding: 28px 26px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.66); }
.honor-col h3 { font-size: 18px; color: var(--gold); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.honor-col ul { margin-top: 18px; }
.honor-col li { font-size: 13px; color: var(--muted); padding: 9px 0 9px 16px; position: relative; }
.honor-col li::before { content: ""; position: absolute; left: 0; top: 18px; width: 4px; height: 4px; background: var(--gold); }
.service-row { display: flex; gap: 24px; align-items: baseline; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.service-row span { font-size: 10px; letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.service-row p { font-size: 13px; color: var(--muted); }

/* portrait strip in about */
.portrait-block { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.portrait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portrait-item { margin: 0; min-width: 0; }
.portrait-item a { display: block; height: 220px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); cursor: zoom-in; }
.portrait-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.94); transition: transform .5s ease; }
.portrait-item:hover img { transform: scale(1.04); }
.portrait-item figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-align: center; }
.portrait-note { margin-top: 16px; font-size: 11px; color: var(--muted-2); }

/* awards gallery */
.gallery-block { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.gallery-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 24px; }
.gallery-head h3 { font-size: 24px; }
.gallery-head span { font-size: 10px; letter-spacing: .22em; color: var(--muted-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-item a { display: block; height: 300px; border: 1px solid var(--line-soft); background: #fff; overflow: hidden; cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { margin-top: 12px; }
.gallery-item strong { display: block; font-family: var(--serif); font-size: 14px; font-weight: 500; }
.gallery-item figcaption span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.gallery-note { margin-top: 24px; font-size: 12px; color: var(--muted); }

/* certificate thumbnails — deliberately low resolution */
.cert-block { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.cert-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cert-item { margin: 0; }
.cert-item img { display: block; width: 100%; height: auto; border: 1px solid var(--line-soft); }
.cert-item figcaption { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.cert-note { margin-top: 22px; font-size: 11px; color: var(--muted-2); }

/* contact */
.contact { padding-bottom: 120px; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 44px clamp(24px, 4vw, 52px); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(154,120,56,.09), rgba(255,255,255,.6)); }
.contact-lead { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 25px); }
.contact-email { display: inline-block; font: 400 clamp(20px, 3vw, 34px)/1.4 var(--serif); color: var(--gold); margin-top: 14px; border-bottom: 1px solid var(--line); }
.contact-email:hover { border-color: var(--gold); }
.contact-sub { font-size: 13px; color: var(--muted); margin-top: 10px; }
.contact-side { display: flex; flex-direction: column; gap: 12px; min-width: 180px; }

/* footer */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px clamp(24px, 5vw, 0); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: .1em; color: var(--muted-2); }
.footer a:hover { color: var(--gold); }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,253,249,.94); color: var(--gold); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, background .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--gold-soft); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(20,22,26,.9); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lightbox img:not([src]) { display: none; }
.lightbox-video { display: none; width: min(1000px, 92vw); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.lightbox-video.open { display: block; }
.lightbox-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: 22px; right: 28px; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.35); background: transparent;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.12); }

/* reveal — CSS animation so content is always visible without JS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in-view { animation-play-state: running; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { display: flex; margin-top: 16px; }
  .hero-portrait { width: min(300px, 62vw); }
  .about-grid { grid-template-columns: 1fr; }
  .mini-facts, .honor-grid { grid-template-columns: 1fr 1fr; }
  .article-row { grid-template-columns: 30px minmax(0, 1fr); }
  .article-links { grid-column: 2; }
  .portrait-grid { grid-template-columns: repeat(3, 1fr); }
  .portrait-item a { height: 150px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item a { height: 260px; }
  .video-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(246,244,239,.98); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; transform: translateY(-140%); transition: transform .3s; }
  .nav.open { transform: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cv { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 118px; min-height: auto; }
  .hero h1 { font-size: 62px; }
  .hero-stats { gap: 22px 30px; }
  .hero-stats strong { font-size: 25px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .section-head { gap: 16px; }
  .gallery-head { flex-direction: column; gap: 8px; }
  .gallery-item strong { font-size: 13px; }
  .gallery-item a { height: 200px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-facts, .honor-grid { grid-template-columns: 1fr; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
  .work-card { padding: 22px 20px; }
  .article-row { grid-template-columns: 26px minmax(0, 1fr); gap: 8px 12px; padding: 14px 4px; }
  .article-body h3 { font-size: 15px; }
  .article-links { gap: 12px; }
  .portrait-grid { gap: 10px; }
  .portrait-item a { height: 108px; }
  .portrait-item figcaption { font-size: 11px; }
  .service-row { flex-direction: column; gap: 8px; }
  .footer-inner { flex-direction: column; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
