/* ===========================================================
   Yang.LM. · 个人网站 v2 样式（2026-11）
   纸底 + 宋体标题 + 深蓝/铜色点缀；纯静态、无依赖。
   =========================================================== */

:root {
  --paper: #f7f5f0;
  --paper-2: #fffdf8;
  --ink: #1b1a17;
  --body: #46423b;
  --muted: #7b7468;
  --line: #e3ddd2;
  --line-2: #d3cbbc;
  --navy: #1d3a55;
  --navy-deep: #0f2537;
  --copper: #a35c2b;
  --copper-soft: #f2e6d8;
  --cream: #f4efe4;
  --measure: 1120px;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(20, 35, 50, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(29, 58, 85, .32);
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--copper); text-decoration-color: var(--copper); }
a:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(163, 92, 43, .16); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.32;
  margin: 0;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- 顶栏 ---------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .inner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand .name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .06em;
}
.brand .tagline {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
  white-space: nowrap;
}
.nav {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--body);
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: .02em;
}
.nav a:hover { color: var(--navy); background: rgba(29, 58, 85, .06); }
.nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--copper);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(163, 92, 43, .28), transparent 62%),
    radial-gradient(700px 420px at -6% 24%, rgba(46, 96, 132, .35), transparent 60%),
    linear-gradient(158deg, #0f2537 0%, #17324a 56%, #1d3a55 100%);
  color: var(--cream);
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .8;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.1));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  min-width: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 88px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #d9b58f;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.hero h1 {
  color: #fbf8f1;
  font-size: clamp(30px, 4vw, 46px);
  margin: 20px 0 18px;
  letter-spacing: .015em;
}
.hero .lead {
  color: rgba(244, 239, 228, .9);
  font-size: 17.5px;
  line-height: 1.95;
  max-width: 44em;
}
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--copper);
  color: #fff8ef;
}
.btn-solid:hover { background: #8f4e22; color: #fff; }
.btn-ghost {
  border-color: rgba(244, 239, 228, .42);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(244, 239, 228, .1); border-color: var(--cream); color: #fff; }

.hero-card {
  position: relative;
  border: 1px solid rgba(244, 239, 228, .2);
  background: rgba(11, 30, 44, .42);
  border-radius: 10px;
  padding: 26px 26px 20px;
  backdrop-filter: blur(6px);
}
.hero-card h2 {
  color: #f7f1e6;
  font-size: 16px;
  letter-spacing: .18em;
  font-family: var(--sans);
  font-weight: 600;
}
.hero-card ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.hero-card li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(244, 239, 228, .13);
  font-size: 14.5px;
  color: rgba(244, 239, 228, .86);
  line-height: 1.6;
}
.hero-card li:first-child { border-top: none; }
.hero-card li span.no {
  flex: none;
  font-family: var(--serif);
  color: #d9b58f;
  font-size: 13px;
  letter-spacing: .08em;
  padding-top: 1px;
}

/* ---------------- 通用段落 ---------------- */
.section { padding: 84px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 14px 0 14px;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.lead-2 {
  font-size: 18px;
  line-height: 1.95;
  color: var(--body);
  max-width: 52em;
}
.lead-2 strong { color: var(--ink); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card h3 .en {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--copper);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card p { color: var(--body); font-size: 15px; margin: 0; }
.card .more {
  margin-top: 16px;
  font-size: 14px;
}
.card .more a { text-decoration: none; }
.card .more a::after { content: " →"; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .5);
}

/* ---------------- 关注方向 ---------------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.focus-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.focus-item .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--copper);
  letter-spacing: .1em;
  padding-top: 3px;
}
.focus-item h3 { font-size: 19px; margin-bottom: 8px; }
.focus-item p { font-size: 15px; margin: 0; color: var(--body); }

/* ---------------- 经历时间线 ---------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-2);
}
.timeline li {
  position: relative;
  padding: 0 0 26px 28px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--copper);
}
.timeline .when {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--copper);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.timeline h3 { font-size: 17.5px; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 15px; color: var(--body); }

/* ---------------- 项目 ---------------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.project:first-of-type { border-top: none; padding-top: 0; }
.project.reverse .copy { order: 2; }
.project.reverse .shot { order: 1; }
.project h3 { font-size: 26px; margin-bottom: 6px; }
.project .en {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--copper);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.project p { font-size: 15.5px; }
.project ul.plain { margin: 12px 0 0; padding-left: 18px; }
.project ul.plain li { font-size: 15px; margin-bottom: 6px; }
.shot-ph {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(420px 220px at 30% 10%, rgba(163, 92, 43, .22), transparent 60%),
    linear-gradient(160deg, #12293d, #1d3a55);
  color: rgba(244, 239, 228, .82);
  text-align: center;
  padding: 40px 24px;
}
.shot-ph .ph-mark {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: .08em;
  color: #f7f1e6;
}
.shot-ph .ph-line {
  font-size: 13px;
  letter-spacing: .28em;
  color: #d9b58f;
}
.shot-ph .ph-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(244, 239, 228, .55);
  border: 1px dashed rgba(244, 239, 228, .35);
  border-radius: 999px;
  padding: 4px 12px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--copper);
  background: var(--copper-soft);
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: #5c4a37;
}

/* ---------------- 写作 ---------------- */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.writing-item {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 24px 26px;
}
.writing-item h3 { font-size: 18px; margin-bottom: 8px; }
.writing-item p { font-size: 14.8px; margin: 0; color: var(--body); }
.writing-item .status {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.topic-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 15px;
}
.topic-list li { margin-bottom: 8px; }

/* ---------------- 关于页 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-aside {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  padding: 24px;
}
.about-aside .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.about-aside h2 { font-size: 22px; margin-bottom: 4px; }
.about-aside .sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-aside dl { margin: 0; font-size: 14.5px; }
.about-aside dt {
  color: var(--copper);
  font-size: 12.5px;
  letter-spacing: .08em;
  margin-top: 12px;
}
.about-aside dd { margin: 2px 0 0; color: var(--body); }
.prose h2 {
  font-size: 28px;
  margin: 44px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { font-size: 16.5px; }
.prose blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--copper);
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* ---------------- 联系 ---------------- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  padding: 42px;
}
.contact-card h2 { font-size: 30px; margin-bottom: 12px; }
.contact-card .mail {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
}
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: none; }
.contact-list .k { color: var(--muted); font-size: 13px; letter-spacing: .08em; display: block; }

/* ---------------- 页脚 ---------------- */
.site-foot {
  margin-top: 40px;
  background: var(--navy-deep);
  color: rgba(244, 239, 228, .78);
  padding: 48px 0 30px;
  font-size: 14px;
}
.site-foot a { color: rgba(244, 239, 228, .9); text-decoration-color: rgba(244, 239, 228, .32); }
.site-foot a:hover { color: #fff; }
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(244, 239, 228, .14);
}
.foot-brand .name {
  font-family: var(--serif);
  font-size: 22px;
  color: #f7f1e6;
  letter-spacing: .08em;
}
.foot-brand p { margin: 8px 0 0; font-size: 13.5px; color: rgba(244, 239, 228, .6); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; }
.foot-links .col { display: flex; flex-direction: column; gap: 8px; }
.foot-links .col b { color: #f7f1e6; font-weight: 600; font-size: 13px; letter-spacing: .1em; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(244, 239, 228, .5);
}

/* ---------------- 动效 ---------------- */
/* 渐进增强：只有检测到 JS 时才隐藏待入场元素，避免无 JS 时正文不可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 68px; }
  .hero-card { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-aside { position: static; display: block; }
  .about-aside .avatar { margin: 0 0 16px; }
  .project { grid-template-columns: 1fr; gap: 22px; }
  .project.reverse .copy { order: 0; }
  .project.reverse .shot { order: 0; }
  .contact-card { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .site-head .inner { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 10px; gap: 8px; }
  .brand .tagline { display: none; }
  .nav {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    padding-bottom: 2px;
  }
  .nav a { padding: 8px 10px; white-space: nowrap; }
  .section { padding: 56px 0; }
  .focus-grid, .writing-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16.5px; }
  .hero-card { padding: 20px; }
  .foot-grid { flex-direction: column; }
  .timeline { padding-left: 0; }
  .about-aside { grid-template-columns: 72px 1fr; }
  .about-aside .avatar { width: 72px; height: 72px; }
}
