/* ============================================================
   GaussField · 个人网站 v3
   方向：宣纸 · 朱砂印（暖白纸底 + 墨色文字 + 朱砂主色 + 靛蓝辅色）
   灵感：motionsites.ai（编辑排印 / sticky 堆叠 / 液态玻璃）
        reactbits.dev（点云背景 / 解密文字 / tilt / 磁吸 / 聚光卡）
   零依赖 · 原生 Canvas + CSS + JS
   ============================================================ */

/* ============ 设计变量 ============ */
/* 方向：宣纸 · 朱砂印
   —— 暖白纸底 + 墨色文字 + 朱砂主色 + 靛蓝辅色，出版物质感；
      趣味来自留白、排版尺度与朱砂印章式的点睛 */
:root {
  --bg: #F6F2E9;
  --bg-2: #EFEADD;
  --surface: rgba(28, 24, 19, 0.05);
  --surface-2: rgba(28, 24, 19, 0.08);
  --solid: #FFFFFF;
  --ink: #1C1813;
  --ink-dim: #4A4238;
  --muted: #7D7568;
  --faint: #A79E90;
  --line: rgba(28, 24, 19, 0.13);
  --line-2: rgba(28, 24, 19, 0.24);
  --accent: #C2402C;
  --accent-hi: #E0674A;
  --cyan: #2F5D8C;
  --violet: #7A6A52;
  --ok: #3F7D5B;
  /* —— 配色接口：换主题只改下面这一组，全站（含 canvas 动画）跟随 —— */
  --accent-rgb: 194, 64, 44;
  --accent-hi-rgb: 224, 103, 74;
  --cyan-rgb: 47, 93, 140;
  --violet-rgb: 122, 106, 82;
  --cyan-hi: #4A7FB5;
  --violet-hi: #A08E74;
  /* 第二点缀：靛蓝，只出现在状态与交互反馈处 */
  --accent-4: #2F5D8C;
  --accent-4-hi: #4A7FB5;
  --accent-4-rgb: 47, 93, 140;
  --on-accent: #FBF7F0;
  /* 双色渐变文字（墨 → 朱砂）：只在标题与页脚使用 */
  --grad-text: linear-gradient(100deg, var(--ink) 0%, var(--accent) 100%);
  /* 氛围光斑：宣纸上的淡彩晕染（改用 multiply 混合） */
  --aurora-1: #E8C070;
  --aurora-2: #DD8F72;
  --aurora-3: #8FB8C6;
  /* 四张项目卡：白纸张系，靠细微色温差异区分 */
  --card-1: #FFFCF6;
  --card-2: #F4F8F7;
  --card-3: #FDF6F1;
  --card-4: #F6F4EC;
  --card-base: #FFFFFF;
  --hero-grad: #C2402C;
  --footer-grad: #7D7568;
  --glow: 0 6px 24px rgba(var(--accent-rgb), .16);
  --glow-soft: 0 18px 60px rgba(var(--accent-rgb), .09);
  --font-display: 'STZhongsong', 'SimSun', 'Songti SC', 'Noto Serif SC', serif;
  --font-body: 'Microsoft YaHei UI', 'PingFang SC', 'Hiragino Sans GB', system-ui, sans-serif;
  --font-mono: 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius: 8px;
  --radius-lg: 18px;
  /* 吸顶导航高度：资讯页吸顶筛选条与右栏以此为基准对齐 */
  --nav-h: 66px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ============ 氛围层：点云 / 极光 / 噪点 ============ */
#pointfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: multiply;
  opacity: .16;
  will-change: transform;
}
.aurora span:nth-child(1) {
  top: -14%; left: -8%;
  background: radial-gradient(circle at 30% 30%, var(--aurora-1) 0%, transparent 62%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  bottom: -20%; right: -10%;
  background: radial-gradient(circle at 60% 40%, var(--aurora-2) 0%, transparent 60%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  top: 34%; left: 42%;
  width: 34vw; height: 34vw;
  background: radial-gradient(circle at 50% 50%, var(--aurora-3) 0%, transparent 62%);
  opacity: .14;
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-8vw, -9vh) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-10vw, 8vh) scale(.85); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ 自定义光标 ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-hi);
  box-shadow: 0 0 10px var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--accent-hi-rgb), .55);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              border-color .25s, background .25s;
}
.cursor-ring.is-hot {
  width: 56px; height: 56px;
  border-color: rgba(var(--cyan-rgb), .8);
  background: rgba(var(--cyan-rgb), .07);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ 顶部滚动进度线 ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: transparent;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .35);
}

/* ============ 导航 ============ */
.nav, .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* 始终不透明：纸底实色，避免背景球体与点云透上来干扰导航可读性 */
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* 滚动后只补出下边线，底色不再变化 */
.nav.is-scrolled, .site-header.is-scrolled {
  border-bottom-color: var(--line);
}
/* 简历页默认即给下边线（无滚动态 JS） */
.site-header {
  border-bottom-color: var(--line);
}
.nav-inner, .header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand, .site-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand em {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.7); }
}
.nav-links, .header-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
.nav-links a, .header-nav a {
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after, .header-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .header-nav a:hover { color: var(--ink); }
/* 当前所在板块：朱砂高亮 + 常驻下划线 */
.nav-links a.on, .header-nav a.on { color: var(--accent); }
.nav-links a.on::after, .header-nav a.on::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  background: var(--accent);
}
.nav-links a:hover::after, .header-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 12px;
  letter-spacing: .08em;
}

/* ============ 通用容器 / 标签 ============ */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), var(--violet));
}

.section { padding: 110px 0; position: relative; z-index: 2; }

.sec-head { margin-bottom: 48px; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 16px;
  letter-spacing: .02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-note { color: var(--muted); margin-top: 12px; font-size: 14.5px; }

/* 滚动揭示 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ============ Hero ============ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%; }

.hero-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 26px;
  opacity: 0;
  animation: fade-up .8s var(--ease-out) .15s forwards;
}
.hero-mono b { color: var(--cyan); font-weight: 400; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(4deg);
  animation: char-in .9s var(--ease-out) forwards;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  letter-spacing: .42em;
  color: var(--faint);
  font-weight: 400;
}
.hero-en .ch {
  display: inline-block;
  opacity: 0;
  animation: char-in .7s var(--ease-out) forwards;
}
@keyframes char-in { to { opacity: 1; transform: none; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 46ch;
  min-height: 1.6em;
}
.hero-sub .dc { color: var(--accent-hi); }

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up .8s var(--ease-out) 1.4s forwards;
}

.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--on-accent);
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, color .3s;
  will-change: transform;
}
.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .18);
  opacity: 0;
  transition: opacity .3s;
}
.btn-magnetic:hover {
  border-color: var(--accent-hi);
  background: var(--accent-hi);
  box-shadow: var(--glow);
}
.btn-magnetic:hover::before { opacity: 1; }
.btn-magnetic span { position: relative; }
.btn-magnetic .arr { transition: transform .3s var(--ease-out); }
.btn-magnetic:hover .arr { transform: translateX(4px); }

.btn-ghost {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.btn-ghost:hover { color: var(--ink); border-bottom-color: var(--cyan); }

.hero-social {
  margin-top: 30px;
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--faint);
  opacity: 0;
  animation: fade-up .8s var(--ease-out) 1.6s forwards;
}
.hero-social a, .hero-social .contact-btn {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.hero-social a:hover, .hero-social .contact-btn:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.hero-social .contact-btn {
  background: none; border: 0; padding: 0;
  font: inherit;
  cursor: none;
}

.hero-foot {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  left: 32px; right: 32px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
  opacity: 0;
  animation: fade-up 1s ease 1.8s forwards;
}
.enter-hint { display: flex; align-items: center; gap: 10px; }
.enter-hint i {
  display: inline-block;
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: .35; width: 14px; }
  50% { opacity: 1; width: 30px; }
}

/* ============ Hero 背景：高斯泼溅球体 ============
   只留点云本体，不套卡片壳；尺寸略高于一屏、右侧溢出边缘，
   保证球体上下完整（能读出球面）而右侧被纸边裁掉一截 */
#hero-orb {
  position: absolute;
  top: 50%;
  right: -10%;
  width: min(104vh, 66vw);
  height: min(104vh, 66vw);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: .7;
}

/* ============ Marquee 跑马灯 ============ */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(28, 24, 19, .025);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group b { color: var(--accent-hi); font-weight: 400; }
.marquee-group .dot { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 玻璃卡 / 聚光 / Tilt ============ */
.glass-card {
  position: relative;
  background: linear-gradient(160deg, #FFFFFF, #FAF7F1);
  box-shadow: 0 1px 2px rgba(28, 24, 19, .04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .3s;
  will-change: transform;
}
.glass-card:hover { border-color: var(--line-2); box-shadow: var(--glow-soft); }
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--accent-rgb), .08), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--accent-hi-rgb), .5), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.glass-card:hover::after { opacity: 1; }

/* ============ 记录 ============ */
/* ============ 记录页：日报式版面 ============ */
/* 报头：左标题 + 右日期，借鉴报纸 masthead */
.paper-head { padding: 40px 0 26px; position: relative; z-index: 2; }
.paper-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.paper-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; color: var(--accent); margin-bottom: 14px; }
.paper-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600; line-height: 1.12; letter-spacing: .01em;
}
.paper-sub { margin-top: 14px; font-size: 14px; color: var(--muted); }
.paper-date { text-align: right; }
.paper-date-main { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .05em; color: var(--ink); }
.paper-date-sub { margin-top: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.paper-date-meta { margin-top: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; }

/* ============================================================
   资讯页 · AI 行业日报
   布局与交互照搬参考站（报头 / 吸顶筛选条 / 长滚动主栏 + 吸顶右栏 / 数据来源条）
   配色一律沿用全站「宣纸 · 朱砂印」变量
   ============================================================ */
/* 报头：静态，紧贴吸顶导航之下 */
.digest-head { padding-top: calc(var(--nav-h) + 34px); }

/* 筛选条：两行，吸顶在导航之下 */
.digest-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  background: rgba(246, 242, 233, .94);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.bar-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 0; }
.bar-row + .bar-row { border-top: 1px solid var(--line); }

/* 分类胶囊 + 数量 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.fpill {
  font-size: 12.5px; color: var(--ink-dim); cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 13px; background: none; font-family: var(--font-body);
  transition: color .2s, border-color .2s, background .2s;
}
.fpill b { font-family: var(--font-mono); font-size: 11px; margin-left: 6px; color: var(--faint); font-weight: 500; }
.fpill:hover { border-color: var(--accent); color: var(--accent); }
.fpill.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fpill.on b { color: rgba(255, 255, 255, .6); }

/* 搜索框 */
.search { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--solid); color: var(--faint); }
.search-ico { font-size: 14px; }
.search input { width: 190px; border: 0; outline: 0; background: none; font-family: var(--font-body); font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search:focus-within { border-color: var(--accent); }

/* 阅读状态分段控件 */
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg-btn {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 4px 13px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink-dim);
  transition: background .2s, color .2s;
}
.seg-btn:hover { color: var(--accent); }
.seg-btn.on { background: var(--accent); color: var(--on-accent); }

/* 收藏夹入口 / 排序 / 已阅计数 */
.fav-open {
  border: 1px solid var(--line-2); background: none; cursor: pointer;
  border-radius: 999px; padding: 5px 14px;
  font-family: var(--font-body); font-size: 12.5px; color: var(--ink-dim);
  transition: border-color .2s, color .2s;
}
.fav-open b { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }
.fav-open:hover { border-color: var(--accent); color: var(--accent); }
.sort { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.sort select {
  border: 1px solid var(--line-2); background: var(--solid); color: var(--ink-dim);
  font-family: var(--font-body); font-size: 12.5px; border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.sort select:focus { outline: 0; border-color: var(--accent); }
.read-count { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .05em; }
.read-count b { color: var(--accent); font-weight: 600; }

/* 正文两栏：主栏长滚动 + 右栏吸顶（单页长滚动，与参考站一致） */
.digest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 46px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 44px;
}
.digest-main { min-width: 0; }
/* 右栏吸顶，内部自带细滚动条（与参考站一致：面板多于一屏时可读） */
.digest-side {
  position: sticky;
  top: calc(var(--nav-h) + 130px);
  max-height: calc(100vh - var(--nav-h) - 150px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  display: flex; flex-direction: column; gap: 30px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.digest-side::-webkit-scrollbar { width: 9px; }
.digest-side::-webkit-scrollbar-track { background: transparent; }
.digest-side::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
.digest-side::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
.side-panel { min-width: 0; }

/* 头条 */
.lead { padding-bottom: 30px; }
.topstory { padding-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.ts-kicker { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--accent); }
.ts-kicker::after { content: ""; display: inline-block; width: 30px; height: 1px; background: var(--accent); vertical-align: middle; margin-left: 10px; }
.ts-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.22; font-weight: 600; letter-spacing: .01em; margin-top: 16px;
}
.ts-title a { transition: color .25s; }
.ts-title a:hover { color: var(--accent); }
.ts-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.ts-cat, .entry-cat {
  font-family: var(--font-body); font-size: 12px; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 3px; padding: 2px 9px;
}
.ts-lead { margin-top: 18px; font-size: 15px; line-height: 1.85; color: var(--ink-dim); max-width: 900px; }

/* 显示计数条 */
.showbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .05em;
}

/* 编号条目：大号序号 + 元信息行 + 宋体标题 + 摘要 + 未阅/收藏 */
.entries { list-style: none; }
.entry { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.entry[hidden] { display: none; }
.entry-no { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--faint); letter-spacing: .02em; }
.entry-body { min-width: 0; }
.entry-top { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.entry-fold {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font-size: 15px; line-height: 1; color: var(--faint); padding: 0 4px;
  transition: color .2s, transform .2s;
}
.entry-fold:hover { color: var(--accent); }
.entry-fold.on { transform: rotate(45deg); }
.entry-title { font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.4; font-weight: 600; margin-top: 10px; }
.entry-title a { transition: color .25s; }
.entry.is-read .entry-title a { color: var(--ink-dim); }
.entry:hover .entry-title a { color: var(--accent); }
.entry-sum {
  margin-top: 9px; font-size: 13.5px; line-height: 1.8; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry.is-fold .entry-sum { display: none; }
.entry-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: .05em; }
.mini {
  border: 1px solid var(--line-2); background: none; cursor: pointer;
  border-radius: 999px; padding: 3px 11px;
  font-family: var(--font-body); font-size: 11.5px; color: var(--ink-dim);
  transition: color .2s, border-color .2s, background .2s;
}
.mini:hover { border-color: var(--accent); color: var(--accent); }
.mini.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mini.star.on { background: none; color: var(--accent); }

/* 右栏：六块面板（焦点 / 话题 / 信源 / 节律 / 概况 / 口径） */
.side-h { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .06em; padding-bottom: 9px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.side-focus { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.side-focus li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.side-focus .n {
  width: 18px; height: 18px; border-radius: 50%; background: var(--line); color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 10.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-focus li:first-child .n { background: var(--accent); color: var(--on-accent); }
.side-focus a { font-size: 13px; line-height: 1.6; color: var(--ink-dim); transition: color .2s; }
.side-focus a:hover { color: var(--accent); }
.side-rank { display: flex; flex-direction: column; gap: 12px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rank-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-dim); }
.rank-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-top b { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-weight: 500; }
.rank-bar { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.rank-bar i { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent); }
.side-note { font-size: 12.5px; line-height: 1.85; color: var(--muted); }

/* 发帖节律：24 小时柱状 */
.rhythm { display: flex; align-items: flex-end; gap: 3px; height: 62px; }
.rhythm i { flex: 1 1 0; min-height: 2px; background: var(--line-2); border-radius: 2px 2px 0 0; }
.rhythm i.hot { background: var(--accent); }
.rhythm-axis { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); }
#side-peak { margin-top: 10px; }

/* 今日概况 */
.side-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.side-stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.side-stats span { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: .06em; }

/* 数据来源条 */
.digest-foot { position: relative; z-index: 2; border-top: 1px solid var(--line-2); }
.digest-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; }
.digest-foot b { color: var(--accent); font-weight: 600; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--solid); color: var(--ink-dim);
  font-size: 16px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, color .2s, border-color .2s, transform .3s var(--ease-out);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* 「我的记录」独立栏：与上方 AI 资讯并列的第二个区块 */
.record-sec { position: relative; z-index: 2; padding: 66px 0 40px; border-top: 1px solid var(--line-2); }
.record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.record-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.record-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .08em; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.record-card { display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 26px; }
.rec-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; }
.rec-cat { color: var(--accent); }
.rec-title { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; font-weight: 600; transition: color .25s; }
.record-card:hover .rec-title { color: var(--accent); }
.rec-excerpt {
  font-size: 13px; line-height: 1.78; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rec-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.rec-pin { color: var(--on-accent); background: var(--accent); padding: 1px 7px; border-radius: 3px; font-family: var(--font-body); font-size: 11px; font-weight: 600; }
@media (max-width: 1024px) { .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .record-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1024px) {
  /* 窄屏改为上下堆叠：取消吸顶右栏，回归整页滚动 */
  .digest-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .digest-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .paper-date { text-align: left; }
  .read-count { margin-left: 0; }
}
@media (max-width: 720px) {
  .paper-head { padding-top: 104px; }
  .digest-head { padding-top: 104px; }
  .digest-bar { top: 0; }
  .entry { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
  .entry-no { font-size: 1.45rem; }
  .bar-row { gap: 12px; }
  .filters { flex: 1 1 100%; }
  .search { width: 100%; }
  .search input { width: 100%; }
}
.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

/* 分类 chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  background: rgba(28, 24, 19, .035);
}
.chip-count {
  color: var(--cyan);
  font-size: 10.5px;
}

/* ============ 项目 sticky 堆叠 ============ */
.stack { position: relative; padding-top: 30px; }
.stack-card {
  position: sticky;
  top: 96px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  padding: 56px clamp(28px, 5vw, 72px);
  margin-bottom: 26px;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.stack-card:nth-child(1) { background: linear-gradient(150deg, var(--card-1), var(--card-base) 70%); }
.stack-card:nth-child(2) { background: linear-gradient(150deg, var(--card-2), var(--card-base) 70%); }
.stack-card:nth-child(3) { background: linear-gradient(150deg, var(--card-3), var(--card-base) 70%); }
.stack-card:nth-child(4) { background: linear-gradient(150deg, var(--card-4), var(--card-base) 72%); }
.stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 0%),
              rgba(var(--accent-rgb), .07), transparent 55%);
  pointer-events: none;
}
.stack-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--faint);
}
.stack-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  margin: 12px 0 14px;
  line-height: 1.2;
}
.stack-desc { color: var(--ink-dim); font-size: 14.5px; max-width: 44ch; }
.stack-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--faint);
}
.stack-meta .status { color: var(--cyan); }
.stack-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink-dim);
  border: 1px solid rgba(28, 24, 19, .18);
  border-radius: 999px;
  padding: 4px 13px;
  background: rgba(28, 24, 19, .035);
}
.stack-visual {
  position: relative;
  height: 220px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(28, 24, 19, .05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack-visual .vlabel {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(var(--accent-hi-rgb), .7);
  letter-spacing: .14em;
}

/* ============ 关于 + 小配件 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: start;
}
/* 关于页题头：方形头像 + 姓名署名，置于"我是龚程"段落上方 */
.about-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}
.about-avatar {
  display: block;
  width: 132px; height: 132px;
  flex: 0 0 auto;
  border-radius: 20px;
  object-fit: cover; object-position: center 15%;
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 26px rgba(28, 24, 19, .1);
}
.about-id { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.about-id-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--ink);
}
.about-id-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.about-card .lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.6;
  font-weight: 600;
}
.about-card .lead em { font-style: normal; color: var(--accent-hi); }
.about-card p { color: var(--muted); margin-top: 16px; font-size: 14px; }
.about-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.about-meta b { display: block; color: var(--ink); font-size: 24px; font-weight: 400; }

.ability { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.ability-item { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ability-name { color: var(--cyan); font-family: var(--font-mono); font-size: 11.5px; width: 36px; letter-spacing: .08em; }
.ability-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.about-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.about-links a, .about-links .contact-btn { color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; }
.about-links a:hover, .about-links .contact-btn:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.activity { margin-top: 28px; border-top: 1px solid var(--line); }
.activity li {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: baseline;
}
.act-date { flex: 0 0 86px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.act-text { color: var(--ink-dim); }

.widget-stack { display: flex; flex-direction: column; gap: 22px; }
.widget {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  background: linear-gradient(160deg, #FFFFFF, #FBF8F2);
  position: relative;
  overflow: hidden;
}
.widget-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* 时钟 */
.clock-time {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.clock-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .1em;
}
.clock-row .greet { color: var(--cyan); }

/* 音乐 */
.music-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.4; }
.music-artist { margin-top: 2px; font-size: 12px; color: var(--muted); }
.music-ctrl { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.music-btn {
  flex: 0 0 36px;
  height: 36px;
  font-size: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .35), rgba(var(--cyan-rgb), .22));
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: none;
  transition: box-shadow .25s, transform .15s;
}
.music-btn:hover { box-shadow: var(--glow); transform: scale(1.06); }
.music-btn:disabled { opacity: .35; cursor: default; }
.music-progress {
  flex: 1;
  height: 4px;
  background: rgba(28, 24, 19, .1);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.music-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 999px;
}
.music-time { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; }

/* 一言 */
.quote { font-family: var(--font-display); font-size: 16px; line-height: 1.8; }
.quote-from { margin-top: 8px; text-align: right; font-size: 12px; color: var(--faint); }

/* 日历 */
.cal-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; text-align: center; font-family: var(--font-mono); }
.cal-head { font-size: 10px; color: var(--faint); letter-spacing: .1em; padding-bottom: 4px; }
.cal-day { font-size: 12px; color: var(--muted); padding: 5px 0; border-radius: 7px; position: relative; }
.cal-day.is-today {
  color: var(--on-accent);
  background: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(var(--cyan-rgb), .5);
}

/* 时间进度 */
.prog-row { display: flex; justify-content: space-between; font-size: 13px; margin: 12px 0 8px; }
.prog-row .v { font-family: var(--font-mono); color: var(--accent-hi); }
.prog-bar { height: 4px; border-radius: 999px; background: rgba(28, 24, 19, .08); overflow: hidden; }
.prog-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .6);
  transition: width 1.4s var(--ease-out);
}
.prog-note { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: .06em; }

/* 运行状态 */
.status-line { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-dim); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status-dot.online { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.status-dot.offline { background: #E05D6F; box-shadow: 0 0 10px rgba(224,93,111,.6); }
.stack-tags-line { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.stack-tags-line .tag { font-size: 10.5px; padding: 3px 11px; }
.sys-note { margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: .05em; }

/* ============ 页脚 ============ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 70px 0 40px;
  background: rgba(28, 24, 19, .04);
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-small {
  width: 100%;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
}

/* ============ 联系方式弹层 ============ */
.contact-pop {
  display: none;
  position: absolute;
  z-index: 999;
  background: var(--solid);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 18px rgba(var(--accent-rgb), .18);
  cursor: pointer;
  white-space: nowrap;
}

/* ============ 简历页微调（沿用旧结构，暗色化） ============ */
.resume-main { max-width: 1080px; margin: 0 auto; padding: 128px 24px 72px; position: relative; z-index: 2; }
.resume-board {
  background: var(--solid) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 20px !important;
  box-shadow: var(--glow-soft);
}
.resume-photo { border-radius: 12px !important; }
.resume-chip { background: rgba(28, 24, 19, .04); border-radius: 999px; }
.resume-entry { border-bottom-color: var(--line) !important; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  #hero-orb { right: -22%; width: min(98vh, 62vw); height: min(98vh, 62vw); opacity: .58; }
}
@media (max-width: 900px) {
  #hero-orb { top: 44%; right: -42%; width: 88vh; height: 88vh; opacity: .4; }
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: 1fr; }
  .stack-visual { height: 170px; }
}
@media (max-width: 720px) {
  .nav-inner, .header-inner { padding: 14px 20px; gap: 14px; }
  .nav-links, .header-nav { gap: 16px; }
  .nav-links a, .header-nav a { font-size: 12.5px; white-space: nowrap; }
  .nav-tag { display: none; }
  .wrap, .hero-inner { padding: 0 20px; }
  .section { padding: 76px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-foot { display: none; }
  .stack-card { padding: 36px 24px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .ch, .hero-en .ch { opacity: 1; transform: none; }
}
