/* ============================================================
   拾页 — 科技感设计风 · 统一视觉体系
   双主题：深色（默认）/ 浅色；token 集中在 :root 与 [data-theme=light]
   ============================================================ */

@import url('https://miaoda.feishu.cn/fonts/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b0f12;
  --bg-soft: #0f1519;
  --surface: #141c21;
  --surface-2: #1a242b;
  --line: #243038;
  --line-soft: #1a2329;
  --text: #e9eef1;
  --text-2: #a9b8c1;
  --muted: #7c8d97;
  --accent: #5eead4;
  --accent-2: #7aa2ff;
  --danger: #ef8a7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, .38);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --font-display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f2f5f6;
  --bg-soft: #e9eef0;
  --surface: #ffffff;
  --surface-2: #f4f8f8;
  --line: #d7e0e2;
  --line-soft: #e6ecee;
  --text: #162126;
  --text-2: #43555d;
  --muted: #6c7f87;
  --accent: #0f9d86;
  --accent-2: #3d6fd6;
  --danger: #c8553f;
  --shadow: 0 16px 34px rgba(31, 60, 70, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- 顶部导航（整条隐藏） ---------- */
.site-header { display: none; }
.header-inner {
  max-width: var(--maxw); margin: auto;
  min-height: 68px; padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; white-space: nowrap; }
.brand-symbol { font-size: 26px; color: var(--accent); line-height: 1; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand small { color: var(--muted); font-size: 8.5px; letter-spacing: .16em; font-weight: 500; }

.site-header nav { display: none; gap: 4px; margin-left: auto; align-self: stretch; }
.site-header nav a {
  display: flex; align-items: center; position: relative;
  color: var(--text-2); font-size: 13.5px; padding: 0 14px;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.active { color: var(--text); }
.site-header nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.icon-button {
  width: clamp(52px, 3.9vw, 72px); height: clamp(52px, 3.9vw, 72px); border-radius: 50%;
  border: 0; background: transparent;
  color: var(--text-2); display: grid; place-items: center; font-size: clamp(28px, 2.1vw, 38px); line-height: 1;
  transition: transform .2s, color .2s;
}
.icon-button:hover { transform: rotate(18deg); color: var(--accent); }
/* 月亮随页面一起滚动：定位在首屏顶部，不吸附在视口上 */
#theme-toggle { position: absolute; top: 22px; left: 24px; z-index: 30; box-shadow: none; }

/* ---------- 通用容器与页头 ---------- */
.home-body, .container { max-width: var(--maxw); margin: auto; padding-left: 32px; padding-right: 32px; }
.container { min-height: 62vh; padding-top: 72px; padding-bottom: 90px; }

.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.page-header h1 { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 52px); font-weight: 700; margin: 10px 0 0; letter-spacing: -.02em; }
.page-header > p { font-size: 14px; color: var(--muted); margin: 0; max-width: 380px; }
.eyebrow {
  margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; font-family: var(--font-mono);
}

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 26px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.section-head > div { display: flex; align-items: baseline; gap: 14px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.index-number { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.arrow-link { font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.arrow-link:hover span { transform: translate(3px, -3px); }
.arrow-link span { transition: transform .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-3d canvas { display: block; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset: 0; }
/* 氛围层：柔光晕 + 细网格，让行星融进背景而非贴纸 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 82% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 42% at 68% 78%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 100% at 30% 30%, #000 0%, transparent 62%);
  opacity: .5;
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--maxw); margin: auto;
  width: 100%; padding: 0 32px; flex: 1;
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: end; gap: 56px; padding-bottom: 58px;
}
.hero-info { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; max-width: 480px; }
.hero-label { display: flex; align-items: center; gap: 22px; width: 100%; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.hero-label::after { content: ""; flex: 1; }
.hero-label span:last-child { color: var(--accent); }
.hero-issue {
  position: absolute; z-index: 2; left: 76%; top: 68%; transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent);
}
.hero-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-intro p { max-width: 400px; margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.95; }
.hero-discover {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(6px);
  padding: 14px 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: border-color .2s, transform .2s, background-color .2s, box-shadow .25s;
}
.hero-discover:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 52px; }
  .hero-info { align-items: flex-start; gap: 24px; }
}
.hero-caption {
  position: relative; z-index: 2; flex: none;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 32px 26px; max-width: var(--maxw); width: 100%; margin: 0 auto;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* 跑马灯 */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.ticker > div {
  white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted); padding: 13px 0; animation: ticker 36s linear infinite;
}
.ticker b { color: var(--accent); margin: 0 28px; }
.ticker:hover > div { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.content-notice, .sample-note { color: var(--muted); font-size: 12px; }
.content-notice { padding-top: 26px; }
.home-section { padding: 64px 0 8px; }
.home-section:last-child { padding-bottom: 90px; }

/* ---------- 卡片栅格 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.all-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-card, .project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.project-card.is-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.post-card::after, .project-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.04), transparent 40%);
}
.post-card:hover, .project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.post-image, .project-image { position: relative; aspect-ratio: 1.55; overflow: hidden; background: var(--bg-soft); }
.project-image { aspect-ratio: 1.7; }
.post-image canvas, .project-image canvas, .art canvas { width: 100%; height: 100%; display: block; }
/* 实时封面：直接嵌入作品页面本身，画面在动 */
.live-cover { position: absolute; inset: 0; overflow: hidden; background: #0b0f12; }
/* 以 1280×825 的桌面视口渲染，再整体缩放铺满封面，等于一张会动的整站缩略图 */
.live-cover iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 825px; border: 0; pointer-events: none; background: #0b0f12; color-scheme: dark; transform: scale(var(--cover-scale, .46)); transform-origin: top left; }
.project-image .live-cover iframe { height: 753px; }
.project-cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.project-card:hover .project-cover { transform: scale(1.02); }
.live-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4, 8, 11, .22), transparent 38%, rgba(4, 8, 11, .34)); }
.live-tag { position: absolute; z-index: 3; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 999px; background: rgba(6, 12, 15, .62); backdrop-filter: blur(6px); font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: var(--accent); }
.live-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .live-tag i { animation: none; opacity: .8; } }
.post-card:hover canvas, .project-card:hover canvas { transform: scale(1.03); }
.post-image canvas, .project-image canvas { transition: transform .5s ease; }

.post-meta { display: flex; gap: 14px; align-items: center; margin: 18px 22px 0; font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.post-meta span { color: var(--accent); font-weight: 600; }
.post-card h3, .project-card h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 700; margin: 12px 22px 8px; line-height: 1.5; letter-spacing: -.01em; }
.post-card p, .project-card p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin: 0 22px; }
.card-arrow { position: absolute; right: 18px; bottom: 14px; color: var(--accent); }
.project-type {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; font-size: 10.5px; color: var(--text-2);
}
.project-content { padding: 22px; }
.project-content .arrow-link, .project-content .small { display: inline-block; margin-top: 16px; }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.tag-list span { background: var(--surface-2); color: var(--text-2); padding: 5px 10px; border-radius: 7px; font-size: 11px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* 动态列表 */
.activity-list { border-top: 1px solid var(--line); }
.activity-list > div {
  display: grid; grid-template-columns: 120px 1fr 1.4fr auto; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: center;
}
.activity-list time { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.activity-list strong { font-size: 14.5px; }
.activity-list p { font-size: 12.5px; color: var(--muted); margin: 0; }
.activity-list span { color: var(--muted); }

/* ---------- 工具栏 / 筛选 / 搜索 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button, .pagination button {
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  padding: 9px 15px; border-radius: 10px; font-size: 12.5px; transition: all .2s;
}
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button.selected { background: var(--accent); border-color: var(--accent); color: #0d1114; font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); min-width: 200px; padding: 4px 2px; }
.search-box span { font-size: 18px; color: var(--muted); }
.search-box input { border: 0; background: transparent; outline: 0; color: var(--text); padding: 9px 0; width: 100%; font-size: 13.5px; }
.result-count { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

.pagination { display: flex; justify-content: center; gap: 16px; align-items: center; margin-top: 48px; font-size: 12.5px; color: var(--muted); }
.pagination button:disabled { opacity: .35; cursor: default; }
.empty-state { text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------- 归档 ---------- */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.archive-item {
  display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; transition: transform .25s, border-color .25s;
}
.archive-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.archive-cover {
  width: 128px; min-width: 128px; aspect-ratio: .75; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--line);
  position: relative;
}
.archive-cover::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 30% 80%, #000, transparent 70%);
}
.archive-cover span, .archive-cover strong, .archive-cover small { position: relative; z-index: 1; }
.archive-cover.has-art { background: var(--bg-soft); }
.archive-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .92; }
.archive-cover.has-art::before { opacity: .18; }
.archive-cover.has-art::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(11,15,18,.55), rgba(11,15,18,.15) 45%, rgba(11,15,18,.75)); }
.archive-cover.has-art strong { text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.archive-cover span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; opacity: .8; }
.archive-cover strong { font-size: 17px; line-height: 1.35; }
.archive-cover small { font-family: var(--font-mono); font-size: 9px; }
.archive-item h3 { font-size: 15.5px; margin: 10px 0 6px; }
.archive-item p, .timeline p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.status { font-size: 10.5px; color: var(--accent); font-weight: 600; }
.rating { color: var(--danger); font-size: 14px; margin: 12px 0; letter-spacing: 2px; }

.timeline { margin-top: 32px; border-left: 1px solid var(--line); }
.timeline > div { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 0 0 32px 26px; position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.timeline time { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.timeline h3 { font-size: 15.5px; margin: 0; }

/* ---------- 兴趣 ---------- */
.hobby-list { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hobby-card { flex: 0 1 320px; max-width: 380px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; position: relative; }
.hobby-text { padding: 14px 18px 18px; }
.hobby-en { display: block; margin-top: -4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--accent); }
.hobby-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.hobby-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hobby-card h2 { margin: 0 0 6px; font-size: 18px; }
.hobby-card p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 兴趣画廊 ---------- */
.gallery-heading { display: flex; justify-content: space-between; align-items: end; margin: 36px 0 20px; }
.gallery-heading h2 { margin: 0 0 6px; font-size: 20px; }
.gallery-heading p, .gallery-heading > span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin: 0; }
.gallery { columns: 3; column-gap: 18px; }
.photo {
  display: block; width: 100%; padding: 0; margin: 0 0 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); break-inside: avoid; text-align: left;
  border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s;
}
.photo:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.photo .art { height: 300px; }
.photo:nth-child(3n+2) .art { height: 370px; }
.photo > span { display: flex; justify-content: space-between; padding: 14px 16px; font-size: 13px; font-weight: 600; }
.photo b { color: var(--accent); font-weight: 400; }

/* ---------- 关于 ---------- */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; margin-top: 44px; }
.about-image { position: relative; aspect-ratio: 1.05; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.about-image > .art { height: 100%; }
.about-image > span {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px);
  padding: 13px 15px; border-radius: 10px; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .05em;
}
.about-copy h2 { font-family: var(--font-display); font-size: 34px; line-height: 1.35; margin: 16px 0; }
.accent { color: var(--accent); }
.about-copy > p:not(.eyebrow) { font-size: 14.5px; line-height: 2; color: var(--text-2); }
.about-links { display: flex; gap: 24px; margin-top: 24px; color: var(--accent); font-size: 13.5px; }
.about-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-top: 70px; border-top: 1px solid var(--line); padding-top: 30px; }
.about-bottom h2 { font-size: 17px; }
.about-bottom p { color: var(--muted); font-size: 13px; line-height: 2; }

/* ---------- 文章详情 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; justify-content: space-between; gap: 56px; }
.back-link { color: var(--accent); font-size: 12.5px; }
.article-meta { margin-top: 34px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
#article-content { line-height: 1.95; font-size: 15px; overflow-wrap: anywhere; }
#article-content h1 { font-size: 34px; line-height: 1.35; letter-spacing: -.01em; }
#article-content h2 { margin-top: 42px; font-size: 22px; }
#article-content blockquote { margin: 24px 0; border-left: 3px solid var(--accent); padding: 6px 20px; background: var(--surface); color: var(--text-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
#article-content pre { overflow: auto; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 18px; border-radius: var(--radius-sm); font-size: 13px; }
#article-content pre code { font-family: var(--font-mono); background: transparent; padding: 0; }
#article-content a { color: var(--accent); text-decoration: underline; }
.toc { border-left: 1px solid var(--line); padding-left: 20px; align-self: start; position: sticky; top: 90px; font-size: 12.5px; }
.toc strong { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.toc a { display: block; color: var(--text-2); margin-top: 12px; line-height: 1.5; }
.toc a:hover { color: var(--accent); }

/* ---------- 灯箱 ---------- */
dialog {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 40px 20px 20px; max-width: min(760px, 94vw); max-height: 92vh; border-radius: var(--radius);
}
dialog::backdrop { background: rgba(5, 9, 11, .72); backdrop-filter: blur(3px); }
#lightbox-art { height: min(62vh, 500px); border-radius: var(--radius-sm); overflow: hidden; }
#lightbox-art .art { height: 100%; }
dialog p { text-align: center; font-size: 13px; color: var(--text-2); margin: 16px 0 0; }
.lightbox-close { position: absolute; right: 14px; top: 12px; background: none; color: var(--text); border: 0; font-size: 28px; width: 44px; height: 44px; border-radius: 10px; }
.lightbox-close:hover { background: var(--surface-2); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft); background: var(--bg-soft);
  padding: 38px 32px; display: flex; justify-content: space-between; gap: 20px;
  max-width: var(--maxw); margin: auto;
}
.site-footer > div { display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--muted); }
.footer-brand { font-size: 16px; color: var(--text); font-weight: 700; }
.footer-nav { display: flex; gap: 16px; }
.site-footer a:hover { color: var(--accent); }

.loading { padding: 120px; text-align: center; color: var(--muted); }

/* ---------- 封面图形内文字 ---------- */
.art { position: relative; width: 100%; height: 100%; min-height: 190px; overflow: hidden; }
.art-index, .art-label { position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; }
.art-index { left: 18px; top: 16px; }
.art-label { right: 18px; bottom: 16px; text-align: right; font-size: 11px; font-weight: 600; }
.art-label small { display: block; font-size: 8px; margin-top: 5px; font-weight: 400; opacity: .7; }

/* ---------- 响应式 ---------- */
@media (max-width: 1150px) {
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; width: 100%; }
}
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { columns: 2; }
}
@media (max-width: 650px) {
  .hero-caption { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 20px 20px; }
  .header-inner { padding: 12px 20px; gap: 16px; flex-wrap: wrap; }
  .site-header nav { order: 3; overflow-x: auto; width: 100%; gap: 4px; height: 40px; margin-left: 0; }
  .site-header nav a { white-space: nowrap; padding: 0 10px; }
  .icon-button { margin-left: auto; order: 2; }
  .home-body, .container { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: 84vh; }
  .hero-content { padding: 80px 20px 32px; gap: 24px; }
  .hero-label { font-size: 9.5px; }
  .hero-intro p { max-width: 100%; font-size: 14px; }
  .hero-caption { padding: 16px 20px 22px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .post-grid, .project-grid, .all-projects, .archive-grid, .about-layout, .about-bottom { grid-template-columns: 1fr; }
  .post-grid { gap: 26px; }
  .page-header { display: block; }
  .page-header > p { margin-top: 14px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .activity-list > div { grid-template-columns: 80px 1fr auto; gap: 12px; }
  .activity-list p { grid-column: 2; grid-row: 2; }
  .gallery { columns: 2; column-gap: 12px; }
  .photo { margin-bottom: 12px; }
  .photo .art { height: 180px; }
  .photo:nth-child(3n+2) .art { height: 225px; }
  .about-layout { gap: 30px; }
  .archive-item { flex-direction: column; }
  .archive-cover { width: 100%; aspect-ratio: 1.5; }
  .site-footer { display: block; }
  .site-footer > div { justify-content: space-between; margin: 12px 0; }
  #article-content h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
