/* 郝嘉兴 · 个人主页 v2 — 模型内容评测方向
   设计语言继承自 hjx-onepage archive（深色 + 暖金 + 纸白），
   新增数据卡片、作品墙、论文卡与胶片画廊组件。零 JavaScript。 */

:root {
  color-scheme: dark;
  --bg: #090908;
  --panel: #12110f;
  --ink: #f4f1ea;
  --muted: #aaa39a;
  --soft: #6f6961;
  --line: rgba(244, 241, 234, 0.12);
  --gold: #d6a84f;
  --blue: #6ca7ff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 168, 79, 0.16), transparent 32rem),
    linear-gradient(180deg, #050505 0%, var(--bg) 44rem);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand { font-weight: 800; letter-spacing: 0.24em; }

.nav {
  justify-self: center;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.04);
}

.nav a,
.resume-link {
  color: rgba(244, 241, 234, 0.68);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.resume-link:hover { color: #090908; background: var(--ink); }

.resume-link { border: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(22px, 6vw, 76px) 84px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(0.35) contrast(1.12);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.82) 78%, var(--bg) 100%);
}

.hero-content { max-width: 860px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0 0 34px;
  max-width: 620px;
  color: rgba(244, 241, 234, 0.78);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.primary-action,
.secondary-action {
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-action { background: var(--ink); color: #090908; font-weight: 700; }
.primary-action:hover { background: var(--gold); transform: translateY(-1px); }

.secondary-action { border: 1px solid rgba(244, 241, 234, 0.3); color: var(--ink); }
.secondary-action:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- 通用板块 ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(22px, 5vw, 48px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: 0.02em; }

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 核心优势 ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.strength-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 241, 234, 0.03);
}

.method-number { color: var(--gold); font-size: 13px; letter-spacing: 0.22em; margin-bottom: 14px; }

.strength-card h3 { margin: 0 0 10px; font-size: 17px; }

.strength-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---------- 产线数据卡片 ---------- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pipeline-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.04), rgba(244, 241, 234, 0.015));
}

.pipeline-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(214, 168, 79, 0.4);
  background:
    radial-gradient(circle at 85% 0%, rgba(214, 168, 79, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(244, 241, 234, 0.05), rgba(244, 241, 234, 0.02));
}

.pipeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.pipeline-head h3 { margin: 0; font-size: 18px; }

.badge {
  padding: 5px 12px;
  border: 1px solid rgba(214, 168, 79, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.badge.done { border-color: rgba(108, 167, 255, 0.5); color: var(--blue); }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding: 14px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: "SF Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.stat span { color: var(--soft); font-size: 12px; letter-spacing: 0.06em; }

/* 短语型 stat（非纯数字） */
.stat b.text {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.pipeline-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.95; }

/* ---------- 时间线 ---------- */
.timeline { display: grid; gap: 14px; }

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 241, 234, 0.02);
}

.timeline-item .date {
  color: var(--gold);
  font-family: "SF Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding-top: 3px;
}

.timeline-body h3 { margin: 0 0 8px; font-size: 16px; }

.timeline-body ul { margin: 0; padding-left: 18px; }

.timeline-body li { color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---------- 作品墙 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
}

.work-card.large { grid-column: 1 / -1; }

.work-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 400ms ease;
}

.work-card.large img { height: clamp(280px, 42vw, 460px); }

.work-card:hover img { transform: scale(1.02); }

.work-card > div { padding: 22px 24px 24px; }

.work-card span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.work-card h3 { margin: 8px 0 8px; font-size: 19px; }

.work-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.85; }

.work-card a { color: var(--blue); font-size: 13px; letter-spacing: 0.08em; }
.work-card a:hover { text-decoration: underline; }

/* ---------- 研究 ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.research-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}

.research-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.15);
}

.research-card > div { padding: 18px 20px 20px; }

.research-card span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.research-card h3 { margin: 8px 0 10px; font-size: 15px; line-height: 1.6; }

.research-card a { color: var(--blue); font-size: 13px; }
.research-card a:hover { text-decoration: underline; }

.research-note {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- 胶片画廊 ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-gallery img {
  width: 100%;
  height: clamp(200px, 26vw, 320px);
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform 300ms ease, border-color 300ms ease;
}

.photo-gallery img:hover { transform: translateY(-3px); border-color: rgba(214, 168, 79, 0.45); }

/* ---------- 技能 ---------- */
.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.skill-row span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ---------- 联系 ---------- */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.contact-section p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.contact-links { display: grid; gap: 10px; justify-items: end; }

.contact-links a {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.75);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 180ms ease, background 180ms ease;
}

.contact-links a:hover { color: #090908; background: var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .pipeline-grid,
  .work-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-links { justify-items: start; }
}

@media (max-width: 560px) {
  .photo-gallery { grid-template-columns: 1fr; }
  .stat-row { gap: 10px 24px; }
}
