/* ============================================================
   FLC Personal Site — v5 "Dark Minimal"
   深色极简 · 衬线标题 · 单一强调色 · 行式列表 · 双中枢结构
   核心定位:硬核项目撑能力背书,独立观点显思维深度
   ============================================================ */

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

:root {
  --bg: #0d0f12;
  --bg-soft: #12151a;
  --card: #15181e;
  --ink: #e9e7e2;
  --muted: #8b9099;
  --faint: #5c616b;
  --accent: #7aa2f7;
  --accent-soft: rgba(122, 162, 247, 0.08);
  --gold: #b08d57;
  --border: #262a31;
  --border-soft: #1c1f25;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(122, 162, 247, 0.25); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand .dot { color: var(--gold); }
.nav-links a,
.nav-first {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-left: 1.7rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  padding-bottom: 2px;
}
.nav-first { margin-left: 0; }
.nav-links a::after,
.nav-first::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-first:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-first:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active, .nav-first.active { color: var(--accent); }
.nav-links a.active::after, .nav-first.active::after { transform: scaleX(1); }

/* ===== Hero (welcome page) ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.6rem 4rem;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(122, 162, 247, 0.07), transparent 70%),
    var(--bg);
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}

/* ===== Hero aurora (homepage) ===== */
.hero .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero .au1 {
  width: 560px;
  height: 560px;
  top: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.35), transparent 68%);
  animation: auroraA 12s ease-in-out infinite alternate;
}
.hero .au2 {
  width: 480px;
  height: 480px;
  top: 20%;
  right: -160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 68%);
  animation: auroraB 14s ease-in-out infinite alternate;
}
.hero .au3 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: 30%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 68%);
  animation: auroraC 16s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  text-align: left;
}

/* 左:文字 */
.hero-text { flex: 1 1 55%; }
.hero-text .hero-kicker,
.hero-text h1 { text-align: left; }

/* 右:人像(抠图) */
.hero-photo { flex: 1 1 45%; text-align: center; }
.hero-photo img {
  width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 10px 46px rgba(122, 162, 247, 0.24));
  animation: photoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes photoIn {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 标题逐字弹出 */
.pop-title {
  animation: glowPulse 4s ease-in-out 1.6s infinite;
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 6px rgba(122, 162, 247, 0); }
  50% { text-shadow: 0 0 26px rgba(122, 162, 247, 0.5); }
}
.pop-title .pop-char {
  display: inline-block;
  opacity: 0;
  animation: popIn 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes popIn {
  0% { opacity: 0; transform: translateY(0.55em) scale(0.6); }
  70% { opacity: 1; transform: translateY(-0.06em) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 标题下定位语 */
.hero-sub {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 1.8rem;
  opacity: 0;
  animation: subIn 0.8s ease 0.9s forwards;
}
@keyframes subIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.6rem;
  min-height: 1.2em;
}
.hero-kicker::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  vertical-align: -0.12em;
  margin-left: 3px;
  animation: caret 0.9s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero h1 {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0;
}
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3rem;
}
.hero-tagline b { color: var(--accent); font-weight: 600; }

/* 三重人设标签 */
.hero-pillars {
  display: flex;
  gap: 2.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}
.hero-pillars span {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.hero-pillars span::before { content: "◆ "; color: var(--gold); font-size: 0.6rem; vertical-align: middle; }

/* ===== Dual entry (projects / blog) ===== */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto 3rem;
}
.entry {
  display: block;
  position: relative;
  text-align: left;
  padding: 2rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(21, 24, 30, 0.95), rgba(18, 21, 26, 0.95));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(122, 162, 247, 0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.entry:hover::before { left: 120%; }
.entry::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.entry:hover::after { opacity: 1; }
.entry:hover {
  border-color: rgba(122, 162, 247, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(122, 162, 247, 0.08);
}
.entry-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 1rem;
}
.entry h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.entry:hover h3 { color: var(--accent); }
.entry p { color: var(--muted); font-size: 0.9rem; }
.entry-arrow {
  position: absolute;
  top: 2.1rem;
  right: 2rem;
  color: var(--faint);
  font-size: 1.4rem;
  transition: color 0.3s, transform 0.3s;
}
.entry:hover .entry-arrow { color: var(--accent); transform: translateX(4px); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--accent); color: #0d0f12; }
.btn-primary:hover { background: #93b4f9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(122, 162, 247, 0.25); }
.btn-ghost { border: 1px solid var(--border); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ===== Layout ===== */
main { max-width: 1080px; margin: 0 auto; padding: 4rem 1.6rem 3rem; }

.section { margin-bottom: 5rem; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.section h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.section-more {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.section-more:hover { color: var(--gold); }

.lead { color: var(--muted); font-size: 1rem; margin-bottom: 1.3rem; max-width: 780px; }
.lead b { color: var(--ink); font-weight: 600; }
.quote {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem 1.5rem;
  margin-top: 2.6rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* ===== Research (in about) ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.research-item {
  padding: 1.8rem 1.8rem 1.8rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease;
}
.research-grid > :nth-child(odd) { padding-left: 1.8rem; padding-right: 1.8rem; border-right: 1px solid var(--border); }
.research-grid > :nth-child(odd):first-child { padding-left: 0; }
.research-item:hover { padding-left: 2.2rem; }
.research-grid > :nth-child(odd):hover { padding-left: 2.2rem; }
.research-item h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.research-item:hover h3 { color: var(--accent); }
.research-item h3::before { content: "— "; color: var(--gold); font-weight: 400; }
.research-item p { color: var(--muted); font-size: 0.9rem; }

/* ===== Project modules (in project pages) ===== */
.project-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.module {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.module:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.module-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.module-icon {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(122, 162, 247, 0.22);
}
.module h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0;
}
.module h3::before { content: ""; }
.module-role {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 2px;
  padding: 0.08rem 0.5rem;
  margin-bottom: 0.7rem;
}
.module p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }
.module b { color: var(--ink); }
.module .chips { margin-top: 0.2rem; }
.module .chips span { font-size: 0.74rem; }

/* ===== Video card (project demo, opens standalone page) ===== */
.video-card {
  position: relative;
  display: block;
  max-width: 860px;
  margin: 0 auto 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.26); }
.video-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.3s;
}
.video-card:hover img { opacity: 1; }
.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, background 0.3s;
}
.video-card:hover .video-card-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-align: center;
}
.video-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

/* ===== Figure (project page images) ===== */
.fig {
  margin: 1.2rem 0 1.6rem;
  text-align: center;
}

/* 原型图网格:手机截图等窄图 2-3 列展示,避免全宽拉伸 */
.fig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.4rem 1.2rem;
}
.fig-grid .fig {
  margin: 0 0 1.4rem;
}
.fig img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fig a:hover img { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16); }
.fig figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ===== Projects list ===== */
.project-list { display: grid; border-top: 1px solid var(--border); }
.project {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: padding-left 0.3s ease, transform 0.3s ease;
}
.project:hover { padding-left: 0.6rem; }
.project-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 700;
  min-width: 2.4rem;
}
.project h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.project:hover h3 { color: var(--accent); }
.project-date {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  padding: 0.08rem 0.55rem;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  background: var(--bg-soft);
}
.project p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; max-width: 640px; }
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-tags span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(122, 162, 247, 0.3);
  border-radius: 2px;
  padding: 0.1rem 0.55rem;
}
.project-arrow {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 1.1rem;
  transition: color 0.25s, transform 0.25s;
  justify-self: end;
}
.project:hover .project-arrow { color: var(--accent); transform: translateX(4px); }
.project-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
  min-width: 190px;
  border-left: 1px solid var(--border-soft);
  padding-left: 2rem;
}
.project-metrics div { display: flex; flex-direction: column; }
.m-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
}
.m-label { color: var(--faint); font-size: 0.78rem; letter-spacing: 0.02em; }
.more { margin-top: 1.8rem; color: var(--muted); font-size: 0.88rem; max-width: 800px; }

/* ===== Project detail page ===== */
main.project-page { max-width: 880px; }
.project-header {
  position: relative;
  padding: 3rem 0 2rem;
  margin-bottom: 2.6rem;
}
.project-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 162, 247, 0.45) 50%, transparent);
}
.project-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.project-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.2rem;
}
.project-meta .tag {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(122, 162, 247, 0.3);
  border-radius: 2px;
  padding: 0.1rem 0.55rem;
}
.project-meta .meta-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
}
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.project-links .btn { padding: 0.55rem 1.4rem; font-size: 0.84rem; }

.pd-section { margin-bottom: 3rem; }
.pd-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.pd-section h2 .pd-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-right: 0.7rem;
  font-weight: 700;
}
.pd-section p { color: var(--muted); margin-bottom: 1.1rem; }
.pd-section ul { margin: 0 0 1.1rem 1.3rem; color: var(--muted); }
.pd-section ul li { margin-bottom: 0.45rem; }
.pd-section ul li::marker { color: var(--gold); }
.pd-section b { color: var(--ink); }

/* 占位框(架构图 / 训练曲线,等资料后替换为图片) */
.placeholder {
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin: 1.2rem 0;
}

/* ===== Blog list ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 2.5rem;
  border-top: 1px solid var(--border);
}
.post {
  display: block;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s ease;
}
.post:hover { padding-left: 0.6rem; }
.post-date {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}
.post h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.post:hover h3 { color: var(--accent); }
.post p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.8rem; }
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(122, 162, 247, 0.25);
  border-radius: 2px;
  padding: 0.12rem 0.55rem;
}

/* ===== Page head (subpages) ===== */
.page-head {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.6rem 2rem;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 162, 247, 0.45) 50%, transparent);
}
.page-head .hero-kicker { margin-bottom: 1rem; }
.page-head h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.page-desc { color: var(--muted); font-size: 0.98rem; letter-spacing: 0.02em; }

/* ===== Blog list page ===== */
.post-list { max-width: 1080px; border-top: 1px solid var(--border); }
.post-row {
  display: block;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s ease;
}
.post-row:hover { padding-left: 0.8rem; }
.post-row .post-date {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.post-row h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.post-row:hover h3 { color: var(--accent); }
.post-row p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; }

/* ===== Article page ===== */
main.article { max-width: 820px; }
.article-header {
  position: relative;
  padding: 3rem 0 1.8rem;
  margin-bottom: 2.4rem;
}
.article-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 162, 247, 0.45) 50%, transparent);
}
.article-header h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  flex-wrap: wrap;
  letter-spacing: 0.05em;
}
.post-content .lead { font-size: 1.08rem; color: var(--muted); }
.post-content h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 2.4rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.post-content p { color: var(--muted); margin-bottom: 1.2rem; }
.post-content ul { margin: 0 0 1.2rem 1.3rem; color: var(--muted); }
.post-content ul li { margin-bottom: 0.45rem; }
.post-content ol { margin: 0 0 1.2rem 1.4rem; color: var(--muted); }
.post-content ol li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.post-content ol li::marker { color: var(--gold); font-weight: 700; }
.post-content pre code { background: none; padding: 0; }
.post-content b { color: var(--ink); }
.post-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 1.6rem 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
}
.post-content pre {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.post-content .stats { margin: 1.6rem 0; gap: 2rem 1.5rem; }
.article-nav { margin: 3rem 0 1rem; }

/* ===== Timeline ===== */
.timeline { display: grid; border-top: 1px solid var(--border); }
.tl-item { padding: 1.8rem 0; border-bottom: 1px solid var(--border); transition: padding-left 0.3s ease; }
.tl-item:hover { padding-left: 0.6rem; }
.tl-head { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.tl-head h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; }
.tl-role { color: var(--accent); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em; }
.tl-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  margin-left: auto;
  letter-spacing: 0.06em;
}
.tl-item p { color: var(--muted); font-size: 0.9rem; max-width: 760px; }
.tl-sub { margin-top: 0.4rem !important; font-size: 0.82rem !important; color: var(--muted); }

/* ===== Skills (in about) ===== */
.skill-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.skill-block {
  padding: 1.8rem 1.8rem 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.skill-blocks > :nth-child(odd) { padding-left: 1.8rem; padding-right: 1.8rem; border-right: 1px solid var(--border); }
.skill-blocks > :nth-child(odd):first-child { padding-left: 0; }
.skill-block h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.9rem;
  letter-spacing: 0.06em;
}
.skill-block h3::after { content: ""; display: block; width: 26px; height: 1px; background: var(--gold); margin-top: 0.5rem; }

/* ===== Chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.16rem 0.65rem;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chips span:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Resume page ===== */
.resume-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.resume-head h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.resume-head .sub { color: var(--muted); font-size: 0.95rem; }
.resume-block { margin-bottom: 3rem; }
.resume-block h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.resume-block h2 .pd-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-right: 0.7rem;
}

/* ===== 404 ===== */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.6rem;
}
.notfound .code {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--border);
  letter-spacing: 0.1em;
  line-height: 1.1;
}
.notfound .code span { color: var(--accent); }
.notfound h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 1.2rem 0 0.6rem;
}
.notfound p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.2rem; }

/* ===== Contact page: dark glass card ===== */
body.contact-card-page {
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(122, 162, 247, 0.08), transparent 70%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
body.contact-card-page #particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}

/* 极光光斑:大、亮、动得快,一眼可见(仅联系页) */
body.contact-card-page .aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
body.contact-card-page .au1 {
  width: 640px;
  height: 640px;
  top: -220px;
  left: -200px;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.5), transparent 68%);
  animation: auroraA 9s ease-in-out infinite alternate;
}
body.contact-card-page .au2 {
  width: 560px;
  height: 560px;
  top: 12%;
  right: -220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 68%);
  animation: auroraB 11s ease-in-out infinite alternate;
}
body.contact-card-page .au3 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 15%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 68%);
  animation: auroraC 13s ease-in-out infinite alternate;
}
body.contact-card-page .au4 {
  width: 400px;
  height: 400px;
  top: 46%;
  right: 10%;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.4), transparent 68%);
  animation: auroraA 10s ease-in-out infinite alternate-reverse;
}
@keyframes auroraA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(160px, 100px) scale(1.25); }
}
@keyframes auroraB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-150px, 90px) scale(0.85); }
}
@keyframes auroraC {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(130px, -100px) scale(1.2); }
}

.glass-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: calc(100vh - 60px);
  padding: 3.5rem 1.2rem 4.5rem;
}
.glass-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 2.6rem 2.4rem 2.1rem;
  animation: cardFloat 7s ease-in-out infinite alternate;
}
@keyframes cardFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
.glass-head { display: flex; align-items: center; gap: 1.15rem; }
.glass-avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #38bdf8 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  outline: 1px solid rgba(255, 255, 255, 0.15);
  outline-offset: 3px;
}
.glass-avatar svg {
  width: 27px;
  height: 27px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glass-title h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.3;
}
.glass-title .hero-kicker {
  margin-bottom: 0.55rem;
  font-size: 0.76rem;
}
.glass-title p {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}
.glass-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.7rem 0 1.5rem;
}
.glass-list { display: flex; flex-direction: column; gap: 0.8rem; }
.c-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.c-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(122, 162, 247, 0.08);
}
.c-card.c-tone-phone:hover { border-color: rgba(16, 185, 129, 0.55); }
.c-card.c-tone-wechat:hover { border-color: rgba(7, 193, 96, 0.55); }
.c-card.c-tone-email:hover { border-color: rgba(79, 70, 229, 0.6); }
.c-card.c-tone-resume:hover { border-color: rgba(139, 92, 246, 0.6); }
.c-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.3s ease;
}
.c-card:hover .c-icon { transform: scale(1.07); }
.c-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-icon-phone { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28); }
.c-icon-wechat { background: linear-gradient(135deg, #2ec97a, #07c160); box-shadow: 0 6px 16px rgba(7, 193, 96, 0.28); }
.c-icon-email { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3); }
.c-icon-resume { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
.c-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1; }
.c-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--gold);
}
.c-value {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
  letter-spacing: 0.02em;
}
.c-act {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.c-card:hover .c-act { opacity: 1; transform: translateX(0); color: var(--accent); background: rgba(122, 162, 247, 0.1); }
.c-act svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glass-foot { margin-top: 1.8rem; text-align: center; }
.glass-foot p {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}
.glass-social { display: flex; justify-content: center; gap: 1.1rem; margin-top: 1rem; }
.glass-social .s-icon {
  color: var(--faint);
  display: grid;
  place-items: center;
  transition: color 0.25s, transform 0.25s;
}
.glass-social .s-icon svg { width: 19px; height: 19px; fill: currentColor; }
.glass-social .s-icon:hover { color: var(--accent); transform: translateY(-2px); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2.6rem;
  transform: translateX(-50%) translateY(16px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Contact page: responsive ===== */
@media (max-width: 600px) {
  .glass-card { padding: 1.8rem 1.3rem 1.6rem; border-radius: 20px; }
  .glass-avatar { width: 50px; height: 50px; }
  .glass-title h1 { font-size: 1.4rem; }
  .c-card { padding: 0.85rem 0.9rem; }
  .c-icon { width: 42px; height: 42px; border-radius: 12px; }
  .c-icon svg { width: 20px; height: 20px; }
  .c-value { font-size: 0.98rem; }
  .c-act { display: none; }
}


/* ===== Footer ===== */
.footer {
  text-align: center;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 2.6rem 1rem 3rem;
  border-top: 1px solid var(--border-soft);
}

/* ===== Hero fade-in ===== */
.hero-inner { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.hero-in { opacity: 1; transform: translateY(0); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero { padding: 4.5rem 1.2rem 3.5rem; min-height: auto; }
  .hero-inner { flex-direction: column; gap: 2.6rem; text-align: center; }
  .hero-text .hero-kicker,
  .hero-text h1 { text-align: center; }
  .hero-photo img { width: min(80%, 300px); height: auto; }
  .hero h1 { font-size: 2.4rem; }
  .hero-tagline { font-size: 0.98rem; }
  .hero-pillars { gap: 1.2rem; }
  .entry-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 2rem; }
  .project-header h1 { font-size: 1.8rem; }
  .article-header h1 { font-size: 1.6rem; }
  .project { grid-template-columns: 1fr; }
  .project-metrics {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding-left: 0;
    padding-top: 1.2rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .research-grid, .skill-blocks { grid-template-columns: 1fr; }
  .research-grid > :nth-child(odd), .skill-blocks > :nth-child(odd) { padding-left: 0; padding-right: 0; border-right: none; }
  .nav-links a { margin-left: 0.9rem; font-size: 0.8rem; }
  .nav-links { line-height: 2.1; }
  .tl-date { margin-left: 0; width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== Agent flow steps (project page) ===== */
.agent-flow {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.4rem 0 1.2rem;
}
.agent-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.agent-step:hover { border-color: var(--accent); transform: translateX(3px); }
.agent-step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.agent-step h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.agent-step p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.55rem; }
.agent-step .chips { margin: 0; }
.agent-step .chips span { font-size: 0.72rem; }
.agent-arrow {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 1rem;
  text-align: center;
  line-height: 1;
  margin: -0.2rem 0;
  letter-spacing: 0.1em;
}
.agent-step b { color: var(--ink); }

/* ===== Prompt framework cards ===== */
.prompt-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.prompt-map div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color 0.3s;
}
.prompt-map div:hover { border-color: var(--accent); }
.prompt-map b { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }
.prompt-map span { font-size: 0.74rem; color: var(--muted); }
.module .prompt-note { font-size: 0.8rem; color: var(--faint); margin-top: 0.7rem; }

/* ===== Achievements detail list (project page) ===== */
.more-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.more-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft);
  transition: border-color 0.3s, transform 0.3s;
}
.more-item:hover { border-color: var(--accent); transform: translateX(3px); }
.more-ico { flex-shrink: 0; font-size: 1rem; }
.more-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  min-width: 2.6rem;
}
.more-item a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(122, 162, 247, 0.4); }
.more-item a:hover { border-bottom-color: var(--accent); }

/* ===== Achievements card grid ===== */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ach-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.ach-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.ach-ico {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(122, 162, 247, 0.22);
  margin-bottom: 0.7rem;
}
.ach-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.ach-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.7;
}
.ach-card a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(122, 162, 247, 0.4); }
.ach-card a:hover { border-bottom-color: var(--accent); }


/* ===== Article resource links ===== */
.resource-box {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}
.resource-box .rb-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.resource-box .rb-title::before { content: "— "; color: var(--gold); }
.resource-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.resource-links .btn { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.resource-links .btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ===== Mobile enhancements ===== */
@media (max-width: 760px) {
  main { padding: 2.6rem 1.1rem 2.4rem; }
  main.project-page, main.article { padding: 2.6rem 1.1rem 2.4rem; }

  /* 项目列表:序号/箭头隐藏,指标换行 */
  .project { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.6rem 0; }
  .project-num { display: none; }
  .project-arrow { display: none; }
  .project-main h3 { font-size: 1.12rem; }
  .project-date { font-size: 0.72rem; }

  /* 模块/成果卡片墙:单列 */
  .project-modules, .ach-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .module, .ach-card { padding: 1.05rem 1.1rem; }

  /* Agent 链路步骤 */
  .agent-flow { gap: 0.6rem; }
  .agent-step { grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.9rem 1rem; }
  .agent-step-num { width: 1.7rem; height: 1.7rem; font-size: 0.72rem; }
  .agent-arrow { font-size: 0.85rem; margin: -0.1rem 0; }

  /* 提示词字母网格 */
  .prompt-map { grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 0.4rem; }

  /* 视频封面卡 */
  .video-card-play { width: 56px; height: 56px; font-size: 1.2rem; }
  .video-card-label { font-size: 0.8rem; padding: 1.8rem 0.8rem 0.8rem; }

  /* 成果 stats:两列 */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; margin-top: 1.8rem; }
  .stat-num { font-size: 2rem; }

  /* 博客文章 */
  .post-content h2 { font-size: 1.22rem; gap: 0.5rem; }
  .post-content .lead { font-size: 1.02rem; padding-left: 0.9rem; }
  .post-content blockquote { padding: 0.85rem 1.1rem; font-size: 0.95rem; }
  .post-content pre { padding: 1rem 1.1rem; font-size: 0.78rem; }
  .resource-box { padding: 1.1rem 1.1rem; }
  .resource-links .btn { padding: 0.45rem 1rem; font-size: 0.78rem; }

  /* 导航:更紧凑 */
  .nav-inner { padding: 0.8rem 1.1rem; }
  .nav-first { font-size: 0.85rem; }
  .nav-links a { margin-left: 0.7rem; font-size: 0.76rem; }
  .nav-links { gap: 0.2rem; }

  /* 页头 */
  .page-head { padding: 2.6rem 1.1rem 1.4rem; }
  .page-desc { font-size: 0.9rem; }
}

@media (max-width: 400px) {
  .project-metrics { gap: 1rem; min-width: 0; }
  .project-metrics .m-num { font-size: 1.2rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.4rem 0.8rem; }
  .module-head { gap: 0.5rem; }
  .module-icon { width: 1.7rem; height: 1.7rem; font-size: 0.9rem; }
  .post-row h3 { font-size: 1.08rem; }
  .article-meta { font-size: 0.72rem; }
}
