/* ============================================================
   深色档案风 · 多页面简历站 共享样式
   纯静态 CSS，无任何外部依赖
   ============================================================ */

:root {
  /* ---- 深色档案风设计令牌 ---- */
  --bg: #141419;                 /* 页面深炭黑背景 */
  --bg-2: #1C1C23;               /* 次级深色面 */
  --bg-soft: rgba(246, 241, 229, 0.04); /* 深色面上的浅纸色浮层 */
  --paper: #F6F1E5;              /* 档案卡片米白纸色 */
  --paper-2: #ECE4D0;            /* 次级纸色 / 分隔 */
  --paper-3: #E2D8BE;            /* 更深的纸色（边框） */
  --ink: #2B2620;                /* 卡片上墨色文字 */
  --ink-soft: #4A4338;           /* 次级墨色 */
  --ink-muted: #6E675A;          /* 弱化墨色 */
  --brand: #C9A24B;              /* 黄铜金强调色 */
  --brand-2: #8C6F2F;            /* 深金 hover */
  --brand-soft: rgba(201, 162, 75, 0.14); /* 金色柔底 */
  --line: rgba(246, 241, 229, 0.14);      /* 深色面上的细线 */
  --line-paper: rgba(43, 38, 32, 0.14);   /* 纸面上的细线 */

  /* ---- 结构变量 ---- */
  --radius-card: 14px;
  --radius-tag: 999px;
  --radius-control: 8px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --max-w: 980px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
               "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", "Source Code Pro", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(201, 162, 75, 0.10), transparent 60%),
    radial-gradient(720px 420px at -10% 30%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ================= 顶部导航 ================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 25, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav__brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__brand em {
  font-style: normal;
  color: var(--brand);
  font-family: var(--font-serif);
}
.site-nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.site-nav__link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-control);
  color: rgba(246, 241, 229, 0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease;
}
.site-nav__link:hover {
  color: var(--paper);
  background: var(--bg-soft);
}
.site-nav__link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

/* ================= 页面容器 ================= */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-head {
  margin-bottom: 36px;
}
.page-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-head__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--paper);
}
.page-head__desc {
  margin-top: 8px;
  color: rgba(246, 241, 229, 0.6);
  font-size: 14px;
}

/* ================= 档案纸卡片 ================= */
.file-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 28px 30px 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.file-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-2);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-paper);
}
.file-card__title::before {
  content: "◆";
  font-size: 11px;
}

/* ================= 印章徽章 ================= */
.stamp {
  position: absolute;
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='120' height='40' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='120' height='40' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.stamp--rotate-left { transform: rotate(-8deg); }
.stamp--rotate-right { transform: rotate(8deg); }
/* 落在米白纸卡片上的印章：用深金保证对比度 */
.stamp--paper {
  color: var(--brand-2);
  border-color: var(--brand-2);
  opacity: 0.9;
}

/* ================= 首页 Hero ================= */
.hero {
  position: relative;
  margin-bottom: 40px;
}
.hero__inner {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 56px 48px 44px;
  position: relative;
  overflow: hidden;
}
/* 背景网格 */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 229, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero__greeting {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--brand);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.hero__name {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--paper);
  margin: 10px 0 6px;
  position: relative;
  z-index: 1;
}
.hero__name em {
  font-style: normal;
  color: var(--brand);
}
.hero__title {
  font-size: 17px;
  color: rgba(246, 241, 229, 0.85);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.hero__intro {
  max-width: 640px;
  font-size: 14.5px;
  color: rgba(246, 241, 229, 0.62);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}
.hero__cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: var(--brand);
  color: #171410;
}
.btn--primary:hover {
  background: var(--brand-2);
  color: #FFF8E8;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.28);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ================= 个人档案表 ================= */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-bottom: 8px;
}
.profile-item__label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}
.profile-item__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.profile-item__value a {
  color: var(--brand-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--brand);
}
.profile-item__value a:hover { color: var(--brand); }

/* ================= 数据指标卡 ================= */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  border: 1px solid var(--paper-3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.metric-card__num {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-2);
  font-family: var(--font-serif);
}
.metric-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 4px;
}
.metric-card__desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ================= 编号优势列表 ================= */
.file-list {
  list-style: none;
}
.file-list li {
  position: relative;
  padding: 13px 0 13px 46px;
  border-bottom: 1px dashed var(--line-paper);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.file-list li:last-child { border-bottom: none; }
.file-list li::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 13px;
  width: 32px;
  height: 32px;
  background: var(--brand-soft);
  color: var(--brand-2);
  border: 1px solid var(--brand);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-list strong {
  color: var(--ink);
  font-weight: 700;
}

/* ================= 技术标签 ================= */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-tag);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--paper);
  border: 1px solid var(--line);
}
.tag--paper {
  background: var(--brand-soft);
  color: var(--brand-2);
  border-color: rgba(140, 111, 47, 0.4);
}
.tag--solid {
  background: var(--brand);
  color: #171410;
  border-color: var(--brand);
}

/* AI 技能徽标：右上角小角标，标注具备 AI 实战能力的技能 */
.tag--ai {
  position: relative;
}
.tag--ai::after {
  content: "AI";
  position: absolute;
  top: -8px;
  right: -7px;
  background: #171410;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  pointer-events: none;
}
.skill-note {
  display: block;
  margin: 4px 0 14px;
  font-size: 12px;
  color: rgba(246, 241, 229, 0.55);
}
.skill-note b {
  display: inline-block;
  margin: 0 6px 0 2px;
  padding: 1px 7px;
  background: #171410;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  vertical-align: 1px;
}

/* ================= 编号技能清单（THINGS I CAN DO） ================= */
.skill-item {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  border: 1px solid var(--paper-3);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.skill-item__num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  border-right: 2px solid var(--paper-3);
  padding-right: 20px;
  text-align: center;
}
.skill-item__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.skill-item__body { font-size: 13px; color: var(--ink-muted); margin-top: 10px; line-height: 1.7; }
.skill-stack { display: flex; flex-direction: column; gap: 16px; }

/* ================= 经历条目（作品页） ================= */
.exp-item {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  border: 1px solid var(--paper-3);
  border-left: 3px solid var(--brand);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exp-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.exp-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.exp-item__company {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.exp-item__role {
  font-size: 13.5px;
  color: var(--brand-2);
  font-weight: 700;
  margin-left: 8px;
}
.exp-item__date {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.exp-item__body { margin-top: 10px; }
.exp-item__body p {
  font-size: 13.8px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 7px;
  padding-left: 18px;
  position: relative;
}
.exp-item__body p::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand);
}
.exp-item__body strong { color: var(--ink); font-weight: 700; }

.project-item { margin-bottom: 22px; }
.project-item:last-child { margin-bottom: 0; }
.project-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.project-item__name { font-size: 16px; font-weight: 700; color: var(--ink); }
.project-item__role { font-size: 12.5px; color: var(--brand-2); font-weight: 700; margin-left: 8px; }
.project-item__date { font-size: 12px; color: var(--ink-muted); font-family: var(--font-mono); }
.project-item__tags { margin: 10px 0; }
.project-divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}

/* ================= 教育经历 ================= */
.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-paper);
}
.edu-row:last-child { border-bottom: none; }
.edu-row__school { font-size: 15px; font-weight: 700; color: var(--ink); }
.edu-row__degree { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.edu-row__date { font-size: 12.5px; color: var(--ink-muted); font-family: var(--font-mono); white-space: nowrap; }

/* ================= 联系页 ================= */
.contact-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 34px 36px;
  position: relative;
  overflow: hidden;
}
.contact-card__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-card__sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 26px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-paper);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  color: var(--brand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-row__label { font-size: 12px; color: var(--ink-muted); letter-spacing: 1px; font-family: var(--font-mono); text-transform: uppercase; }
.contact-row__value { font-size: 15px; font-weight: 700; color: var(--ink); }
.contact-row__value a { color: var(--brand-2); text-decoration: none; }
.contact-row__value a:hover { border-bottom: 1px dashed var(--brand); }

/* ================= 页脚 ================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(246, 241, 229, 0.45);
}
.site-footer a { color: var(--brand); text-decoration: none; }

/* ================= 区块间距 ================= */
.block { margin-bottom: 32px; }
.block:last-child { margin-bottom: 0; }
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 4px 12px;
  background: var(--bg-2);
}

/* ================= 滚动显现动画 ================= */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= 响应式 ================= */
@media (max-width: 720px) {
  .page { padding: 28px 16px 60px; }
  .site-nav__inner { padding: 0 14px; }
  .site-nav__brand { font-size: 13.5px; }
  .site-nav__link { padding: 6px 9px; font-size: 13px; }
  .hero__inner { padding: 36px 22px 30px; }
  .hero__name { font-size: 32px; }
  .metric-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .skill-item { grid-template-columns: 1fr; gap: 12px; }
  .skill-item__num { border-right: none; border-bottom: 2px solid var(--paper-3); padding: 0 0 10px; text-align: left; }
  .file-card { padding: 22px 18px; }
  .page-head__title { font-size: 26px; }
}

/* ================= 打印样式 ================= */
@media print {
  body {
    background: #FFFFFF;
    color: #222;
    font-size: 12px;
    line-height: 1.6;
  }
  .site-nav, .site-footer, .stamp, .hero__cta, .btn { display: none !important; }
  .page { padding: 0; max-width: 100%; }
  .hero__inner { background: #FFFFFF; border: 1px solid #ccc; padding: 20px; }
  .hero__inner::before { display: none; }
  .hero__name { font-size: 26px; color: #222; }
  .hero__name em, .hero__greeting, .section-label, .page-head__eyebrow { color: #8C6F2F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero__title { color: #333; }
  .hero__intro { color: #555; }
  .file-card, .metric-card, .skill-item, .exp-item { background: #FFFFFF !important; color: #222; box-shadow: none; border: 1px solid #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .metric-card__num, .skill-item__num, .profile-item__value a, .contact-row__value a, .exp-item__role, .project-item__role { color: #8C6F2F; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .file-card, .metric-card, .skill-item, .exp-item, .edu-row { page-break-inside: avoid; }
}
