/* ============================================================
 *  style.css —— 明亮简约杂志风
 *  你一般不需要改这个文件；想调主色改下面的 --accent 即可
 * ============================================================ */

:root {
  --paper: #faf9f6;        /* 纸白背景 */
  --paper-tint: #f2f0ea;   /* 交替区块的浅底 */
  --ink: #1c1b18;          /* 墨色正文 */
  --ink-soft: #6f6b62;     /* 次级文字 */
  --ink-faint: #a8a399;    /* 更浅的文字 */
  --line: #e4e1d8;         /* 分隔线 */
  --accent: #c73e3a;       /* 主色：印章红（想换色改这里） */
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  --maxw: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: .05em;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: .12em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 24px 80px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-main {
  display: flex;
  align-items: center;
  gap: 44px;
}
.hero-avatar {
  width: 116px; height: 116px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 44px;
  color: var(--accent);
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 62px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;
}
.hero-latin {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 10px;
}
.hero-tagline {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero-location {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-faint);
  letter-spacing: .1em;
}
.hero-location::before {
  content: "◦ ";
  color: var(--accent);
}
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}
.hero-socials a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); }
.hero-motto {
  margin-top: 72px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--ink-faint);
}
.hero-motto::before {
  content: "—— ";
  color: var(--accent);
}
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: .3em;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ---------- 通用 Section ---------- */
.section { padding: 110px 24px; }
.section-tinted { background: var(--paper-tint); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-lead {
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 48px;
}
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--accent);
  margin-top: 18px;
}

/* ---------- 关于我 ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.about-paragraphs p {
  margin-bottom: 20px;
  font-size: 16.5px;
  color: #3a3833;
}
.about-keywords {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.about-keywords span {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .25em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 人生履历（章节时间线） ---------- */
.chapter { margin-bottom: 72px; }
.chapter:last-child { margin-bottom: 0; }
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chapter-index {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .1em;
}
.chapter-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .05em;
}
.chapter-span {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: .15em;
}
.chapter-note {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 34px;
  font-style: italic;
}
.tl {
  border-left: 1px solid var(--line);
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.tl-entry { position: relative; }
.tl-entry::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 12px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.tl-year {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.tl-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 热爱与技能 ---------- */
.skill-group { margin-bottom: 44px; }
.skill-group-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.skill-group-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 36px;
}
.skill-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.skill-item-name {
  font-weight: 600;
  font-size: 15.5px;
  white-space: nowrap;
}
.skill-item-name::before {
  content: "— ";
  color: var(--accent);
}
.skill-item-desc {
  font-size: 13.5px;
  color: var(--ink-faint);
}
.interests { margin-top: 56px; }
.interests-label {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.interests-list { display: flex; flex-wrap: wrap; gap: 12px; }
.interests-list span {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .12em;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .2s, color .2s;
}
.interests-list span:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 项目作品 ---------- */
.projects-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin: -20px 0 44px;
  font-style: italic;
}
.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 40px;
  margin-bottom: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(28, 27, 24, .07);
  border-color: #d8d4c8;
}
.project-card.featured {
  padding: 46px 48px;
  border-top: 3px solid var(--accent);
}
.project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.project-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .04em;
}
.project-name .project-subtitle {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 10px;
  letter-spacing: .1em;
}
.project-year {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: .18em;
}
.project-tagline {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.project-desc {
  margin-top: 18px;
  font-size: 15px;
  color: #3a3833;
}
.project-highlights { margin: 20px 0 0; list-style: none; }
.project-highlights li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0 6px 20px;
  position: relative;
}
.project-highlights li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.project-tags span {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: var(--paper-tint);
  border: 1px solid var(--line);
  padding: 4px 13px;
  border-radius: 999px;
}
.project-links { display: flex; gap: 20px; margin-top: 26px; }
.project-links a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: .06em;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.project-links a:hover { border-color: var(--accent); }
.project-links a.is-muted { color: var(--ink-faint); pointer-events: none; }
.project-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 18px;
}

/* ---------- 联系我 ---------- */
.section-contact { text-align: center; padding-bottom: 130px; }
.section-contact .section-title::after { margin-left: auto; margin-right: auto; }
.contact-text {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 44px;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  transition: color .2s;
}
.contact-email:hover { color: var(--accent); }
.contact-socials { justify-content: center; margin-top: 40px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: .06em;
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-main { flex-direction: column; align-items: flex-start; gap: 28px; }
  .about-body { grid-template-columns: 1fr; }
  .about-keywords { flex-direction: row; flex-wrap: wrap; }
  .section { padding: 80px 20px; }
  .project-card { padding: 28px 24px; }
  .project-card.featured { padding: 32px 26px; }
  .tl { padding-left: 26px; }
  .tl-entry::before { left: -31px; }
}
