/* 文旌骅 · 个人介绍页
   视觉系统：白底 / 墨黑 / 柠檬黄标识 / 柔粉·薄荷·杏色卡片
   断点：768px（双栏 → 单栏） */

:root {
  --ink: #1C1C1E;
  --charcoal: #2C2C34;
  --slate: #555A6A;
  --steel: #6B6F7E;
  --stone: #8E91A0;
  --muted: #A5A8B5;
  --canvas: #FFFFFF;
  --surface: #F7F8FA;
  --hairline: #EEF0F3;
  --yellow: #FFD02F;
  --yellow-soft: #FFF4C4;
  --yellow-pale: #FFF8E0;
  --olive: #746019;
  --rose: #FDE0F0;
  --wine: #600000;
  --mint: #C3FAF5;
  --moss: #187574;

  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-latin: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --gutter: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 90px; }

/* ---------- 通用元件 ---------- */

.eyebrow {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
}
.eyebrow-yellow { color: var(--yellow); }
.eyebrow-olive { color: var(--olive); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28,28,30,.16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }

.text-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .18s ease;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link-yellow { color: var(--yellow); }

/* ---------- 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  position: relative;
  height: 72px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--steel); transition: color .18s ease; }
.nav-links a:first-child { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { height: 40px; padding-inline: 20px; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink);
  cursor: pointer;
}

/* ---------- 主视觉 ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 600px;
}
.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 56px;
  background: var(--ink);
  color: #fff;
}
.hero-top { display: flex; flex-direction: column; gap: 12px; }
.yellow-rule { display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--yellow); }

.hero-name-block { display: flex; flex-direction: column; gap: 10px; }
.hero-name-block h1 {
  font-size: 88px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.04em;
}
.hero-en {
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 600;
  color: var(--yellow);
}
.hero-role { font-size: 18px; color: var(--muted); }
.hero-intro { font-size: 16px; line-height: 1.7; max-width: 42ch; }

.stats { display: flex; gap: 40px; }
.stat dt {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -.01em;
}
.stat dd { font-size: 14px; color: rgba(255,255,255,.72); }

.hero-actions { display: flex; align-items: center; gap: 20px; }

.hero-visual {
  position: relative;
  padding: 48px;
  background: var(--yellow-soft);
  overflow: hidden;
}
.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.deco-dot {
  position: absolute;
  top: 24px;
  right: 36px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--mint);
}
.deco-dot::before, .deco-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--moss);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.deco-dot::before { width: 28px; height: 2.5px; }
.deco-dot::after { width: 2.5px; height: 28px; }

.float-card {
  position: absolute;
  left: 24px;
  bottom: 56px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28,28,30,.10);
}
.float-card span { font-size: 12px; color: var(--stone); }
.float-card strong { font-size: 15px; font-weight: 600; }

/* ---------- 关于 / 时间线 ---------- */

.profile { padding-block: 56px; }
.profile-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
}
.profile-about { display: flex; flex-direction: column; gap: 16px; }
.profile-about h2 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.02em;
}
.profile-about p:not(.eyebrow) { font-size: 15px; line-height: 1.75; color: var(--slate); }

.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline h3 { font-size: 20px; font-weight: 700; }
.timeline li {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 4px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
}
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }

/* ---------- 代表作品 ---------- */

.work { background: var(--surface); padding-block: 56px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 24px;
}
.work-card {
  border: 1px solid var(--hairline);
  border-radius: 28px;
}
.work-card--wide {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--yellow-pale);
}
.work-card--wide img {
  flex: none;
  width: 180px; height: 180px;
  border-radius: 16px;
  object-fit: cover;
}
.work-card-body { display: flex; flex-direction: column; gap: 10px; }
.work-tag { font-size: 12px; font-weight: 500; color: var(--olive); }
.work-tag--wine { color: var(--wine); }
.work-card h3 { font-size: 22px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.work-card p:not(.work-tag):not(.work-more) { font-size: 15px; line-height: 1.7; color: var(--slate); }

.work-card--narrow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--rose);
}
.work-card--narrow h3 { font-size: 20px; line-height: 1.5; }
.work-card--narrow p:not(.work-tag):not(.work-more) { font-size: 14px; }
.work-more { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--wine); }

/* ---------- 联系 / 页脚 ---------- */

.contact { background: var(--ink); color: #fff; padding-block: 48px; }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.contact h2 { margin-top: 10px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.contact-detail { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.contact-email {
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color .18s ease;
}
.contact-email:hover { text-decoration-color: currentColor; }
.contact-actions { display: flex; align-items: center; gap: 16px; }
.contact-actions span { font-size: 13px; color: var(--muted); }

.site-footer { background: var(--ink); padding-bottom: 28px; }
.footer-line { display: block; height: 1px; background: var(--charcoal); margin-bottom: 16px; }
.site-footer p { font-size: 12px; color: var(--stone); }

/* ---------- 平板 / 窄屏过渡 ---------- */

@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .hero-info { padding: 44px; }
  .hero-name-block h1 { font-size: 72px; }
  .hero-visual { padding: 32px; }
  .stats { gap: 24px; }
  .profile-grid { gap: 40px; }
  .work-card--wide img { width: 140px; height: 140px; }
}

/* ---------- 移动端 ---------- */

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  section[id] { scroll-margin-top: 72px; }

  .nav { height: 60px; gap: 12px; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px rgba(28,28,30,.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--hairline); }
  .nav-links a:last-child { border-bottom: 0; }

  .hero-inner { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-visual { height: 340px; padding: 16px; }
  .portrait { border-radius: 20px; }
  .deco-dot { top: 8px; right: 20px; width: 44px; height: 44px; }
  .deco-dot::before { width: 22px; }
  .deco-dot::after { height: 22px; }
  .float-card { display: none; }

  .hero-info { justify-content: flex-start; gap: 16px; padding: 28px 20px; }
  .hero-name-block { gap: 8px; }
  .hero-name-block h1 { font-size: 52px; line-height: 1.2; }
  .hero-en { font-size: 13px; font-weight: 600; }
  .hero-role { font-size: 14px; }
  .hero-intro { font-size: 15px; }
  .stats { gap: 24px; }
  .stat dt { font-size: 17px; }
  .stat dd { font-size: 12px; }
  .hero-actions .btn { height: 44px; padding-inline: 22px; }

  .profile { padding-block: 40px 0; }
  .profile-grid { grid-template-columns: 1fr; gap: 0; }
  .profile-about { gap: 14px; }
  .profile-about h2 { font-size: 24px; line-height: 1.42; }
  .profile-about p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
  .timeline {
    margin: 32px -20px 0;
    padding: 32px 20px;
    gap: 12px;
    background: var(--surface);
  }
  .timeline h3 { font-size: 18px; }
  .timeline li { font-size: 13px; gap: 12px; }

  .work { padding-block: 40px; }
  .section-head h2 { font-size: 24px; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-card { border-radius: 24px; }
  .work-card--wide { gap: 14px; padding: 16px; }
  .work-card--wide img { width: 80px; height: 80px; border-radius: 14px; }
  .work-card-body { gap: 6px; }
  .work-card h3 { font-size: 16px; line-height: 1.5; }
  .work-card--wide .work-card-body > p:last-child { display: none; }
  .work-card--narrow { gap: 8px; padding: 18px; }
  .work-card--narrow h3 { font-size: 16px; }
  .work-card--narrow p:not(.work-tag):not(.work-more) { font-size: 13px; line-height: 1.6; }

  .contact { padding-block: 40px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact h2 { font-size: 24px; }
  .contact-detail { align-items: flex-start; gap: 14px; }
  .contact-email { font-size: 18px; }
  .contact-actions { flex-wrap: wrap; gap: 12px; }

  .site-footer { padding-bottom: 24px; }
}

@media (max-width: 380px) {
  .hero-name-block h1 { font-size: 46px; }
  .stats { gap: 16px; }
  .stat dt { font-size: 16px; }
}

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