/* ==========================================================================
   刘纪泽 · 个人求职主页
   style.css — 全站样式（手写，无框架、无构建）
   目录：01 变量 / 02 基础 / 03 布局 / 04 导航 / 05 首页 Hero
        06 章节 / 07 卡片 / 08 简历页 / 09 作品页 / 10 联系页
        11 页脚 / 12 动效 / 13 响应式 / 14 打印
   ========================================================================== */

/* ---------- 01 变量 ---------- */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe8dc;
  --ink: #161310;
  --ink-2: #4a423b;
  --ink-3: #8a7e73;
  --line: rgba(22, 19, 16, 0.14);
  --line-2: rgba(22, 19, 16, 0.07);
  --accent: #a6431f;
  --accent-2: #1c453f;
  --gold: #b98a3e;

  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;

  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 30px 70px -40px rgba(30, 22, 16, 0.5);
}

/* ---------- 02 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 420px at 92% -6%, rgba(166, 67, 31, 0.07), transparent 62%),
    radial-gradient(760px 400px at 0% 8%, rgba(28, 69, 63, 0.06), transparent 60%);
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(166, 67, 31, 0.18);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip:focus {
  top: 14px;
}

/* ---------- 03 布局 ---------- */
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--tight {
  padding: clamp(40px, 5.5vw, 64px) 0;
}

.section--line {
  border-top: 1px solid var(--line-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* ---------- 04 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 40px);
  height: var(--nav-h);
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.is-stuck {
  background: rgba(246, 242, 234, 0.95);
  border-bottom-color: var(--line-2);
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand__en {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--ink);
  background: rgba(22, 19, 16, 0.05);
}

.nav__links a.is-active {
  color: var(--accent);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  translate: -50% 0;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__mail {
  margin-left: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.2s;
}

.nav__mail:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

.burger.is-open span:nth-child(1) { top: 22px; rotate: 45deg; }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; rotate: -45deg; }

/* ---------- 05 首页 Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__inner {
  max-width: 880px;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__role span {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.85;
}

.hero__lead b {
  color: var(--ink);
  font-weight: 600;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 30px;
}

.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  transition: 0.25s;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 34px -22px rgba(22, 19, 16, 0.9);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn__arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* 弱化说明文字 */
.muted-note {
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: var(--ink-3);
}

/* ---------- 06 章节 ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.sec-head__k {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
}

.sec-head__k::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sec-head p {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 300;
}

.sec-head__aside {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-align: right;
}

.section h1,
.page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.page-head {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line-2);
}

.page-head__lead {
  max-width: 58ch;
  margin-top: 14px;
  color: var(--ink-2);
  font-weight: 300;
  font-size: 15px;
}

.crumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.crumb a:hover {
  color: var(--accent);
}

/* ---------- 07 卡片与列表 ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pillar {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  transition: 0.3s;
}

.pillar:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(166, 67, 31, 0.3);
  transform: translateY(-3px);
}

.pillar__n {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.pillar h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

.pillar b {
  font-weight: 600;
  color: var(--ink);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.3s;
}

.card:hover {
  border-color: rgba(166, 67, 31, 0.32);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.card__k {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.card p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-2);
}

.card__more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* 时间线 */
.timeline {
  border-top: 1px solid var(--line-2);
}

.tl-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
}

.tl-item__side {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.tl-item__side b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.tl-item__body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.tl-item__body h3 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-left: 8px;
}

.tl-item__body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

.tl-item__body p + p {
  margin-top: 6px;
}

/* 摘要条 */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.fact {
  padding: 18px 18px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.fact__v {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fact__k {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* ---------- 08 简历页 ---------- */
.resume-block {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(30px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line-2);
}

.resume-block__side {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 4px;
}

.resume-block__body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.resume-block__body .sub {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.resume-block__body ul {
  display: grid;
  gap: 10px;
}

.resume-block__body li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

.resume-block__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.resume-block__body li b {
  color: var(--ink);
  font-weight: 600;
}

.skill-table {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-2);
}

.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}

.skill-row dt {
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.skill-row dd {
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
}

.skill-row dd b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 09 作品页 ---------- */
.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.work__item {
  position: relative;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.3s;
}

.work__item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(166, 67, 31, 0.3);
}

.work__item--wide {
  grid-column: span 2;
}

.work__n {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.work__item h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.work__item .meta {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.work__item p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

.work__item p + p {
  margin-top: 8px;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- 10 联系页 ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.mail {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  word-break: break-all;
  transition: color 0.25s;
}

.mail:hover {
  color: var(--accent);
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.copy b {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.copy.is-done {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.copy__state {
  font-size: 11px;
  opacity: 0.62;
}

.copy.is-done .copy__state {
  opacity: 1;
}

.contact-list {
  border-top: 1px solid var(--line-2);
}

.contact-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}

.contact-list__row dt {
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.contact-list__row dd {
  font-weight: 500;
  text-align: right;
}

/* ---------- 11 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 34px;
  margin-top: clamp(20px, 4vw, 40px);
}

.foot__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.foot__brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.foot p {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.foot__links {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.foot__links a:hover {
  color: var(--accent);
}

/* ---------- 12 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 小工具类 */
.sec-head--flush {
  margin-bottom: 0;
}

.sec-head--tight {
  margin-bottom: 18px;
}

.mt-18 {
  margin-top: 18px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-28 {
  margin-top: 28px;
}

.text-left {
  text-align: left;
}

/* ---------- 13 响应式 ---------- */
@media (max-width: 980px) {
  .grid-2,
  .contact {
    grid-template-columns: 1fr;
  }

  .pillars,
  .card-row,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .work {
    grid-template-columns: 1fr;
  }

  .work__item--wide {
    grid-column: auto;
  }

  .tl-item,
  .resume-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav__links {
    position: fixed;
    inset: calc(var(--nav-h) + 8px) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(246, 242, 234, 0.98);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 12px 14px;
  }

  .nav__links a.is-active::after {
    display: none;
  }

  .nav__links a.is-active {
    background: rgba(166, 67, 31, 0.08);
  }

  .nav__mail {
    margin: 6px 0 0;
    text-align: center;
  }

  .burger {
    display: block;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .pillars,
  .card-row,
  .facts {
    grid-template-columns: 1fr;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .foot__grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 14 打印 ---------- */
@media print {
  .nav,
  .foot,
  .hero__actions,
  .copy,
  .skip {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-head {
    padding-top: 0;
  }

  .section {
    padding: 18px 0;
  }

  .resume-block {
    break-inside: avoid;
    padding: 16px 0;
  }
}
