/* ============================================================
   DoveTiger 作品集 · 双色版（v4.0）
   Hero = 深色沉浸（大衬线标题 + 视频）
   内容区 = B 高定白（近白底 / 墨色字 / 衬线 / 大量留白 / 细线）
   ============================================================ */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 思源宋体（本地子集：页面全部字符，91KB） */
@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/noto-serif-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ============ 设计令牌 ============ */
:root {
  /* 内容区（白） */
  --bg: #fafafa;
  --bg-raise: #f4f4f5;
  --bg-card: #ffffff;
  --line: rgba(28, 28, 30, 0.1);
  --line-strong: rgba(28, 28, 30, 0.2);
  --text: #1c1c1e;
  --text-dim: rgba(28, 28, 30, 0.62);
  --text-faint: rgba(28, 28, 30, 0.38);
  --accent: #5aa8d0;
  --accent-bright: #4a94bd;

  /* Hero（深色，局部覆盖） */
  --hero-bg: #0a0a0c;
  --hero-text: #ffffff;

  /* 字体 */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-cn: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, "Noto Sans Mono", "Droid Sans Mono", "Courier New", ui-monospace, monospace;

  /* 间距（8pt 网格） */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* 圆角与阴影 */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow-card: 0 20px 60px rgba(28, 28, 30, 0.1);
  --shadow-float: 0 24px 80px rgba(28, 28, 30, 0.18);

  /* 动效 */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;

  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }
/* 跨浏览器排版一致：禁止 iOS/安卓自动缩放文字（font boosting / text autosizing） */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-cn), var(--sans);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, video { display: block; max-width: 100%; }

::selection { background: rgba(90, 168, 208, 0.25); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(28, 28, 30, 0.16); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(28, 28, 30, 0.32); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-5); }

/* 主页整体渐入 */
.page { opacity: 0; }
.page.is-in { opacity: 1; transition: opacity 0.8s ease; }

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--accent), #a8cbe8);
  z-index: 300;
  pointer-events: none;
}

/* ============ 入口层 ============ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #08080a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  transition: opacity 0.9s ease;
}
.boot.is-leaving { opacity: 0; pointer-events: none; }
.boot-log {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.4;
  color: rgba(138, 180, 216, 0.8);
  min-height: 120px;
  padding: 0 24px;
  letter-spacing: 0.5px;
}
.boot-log .dim { color: rgba(138, 180, 216, 0.45); }
.boot-brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 100px);
  letter-spacing: 0.12em;
  color: var(--hero-text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out), letter-spacing 1.2s var(--ease-out);
  position: relative;
  text-shadow: 0 0 40px rgba(127, 196, 255, 0.25);
}
.boot-brand span { color: #7fc4ff; }
.boot-brand.is-in {
  opacity: 1;
  transform: none;
  letter-spacing: 0.18em;
}
/* 字符级动画模式下：父级直接可见，由字符控制浮现 */
.boot-brand[data-split] { opacity: 1; transform: none; }
/* 终端风格字标：等宽 + Tiger 天蓝 */
.boot-brand.boot-brand-terminal {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.boot-brand.boot-brand-terminal .bt-tiger { color: #7fc4ff; }
.boot-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(127, 196, 255, 0.3);
}
/* 品牌下方扫描光线 */
.boot-brand::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -18px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(127, 196, 255, 0.7), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s var(--ease-out) 0.5s;
  box-shadow: 0 0 12px rgba(127, 196, 255, 0.5);
}
.boot-brand.is-in::after { transform: scaleX(1); }
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============ 导航（透明→白） ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav .nav-brand { color: var(--hero-text); }
.nav .nav-brand span { color: #7fc4ff; }
.nav .nav-links a { color: rgba(255, 255, 255, 0.72); }
.nav .nav-links a::after { background: #7fc4ff; }
.nav.scrolled {
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.scrolled .nav-brand { color: var(--text); }
.nav.scrolled .nav-brand span { color: var(--accent); }
.nav.scrolled .nav-links a { color: var(--text-dim); }
.nav.scrolled .nav-links a::after { background: var(--accent); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 主页（作品页）导航：背景始终透明，文字随滚动切换深浅 */
.page .nav-inner { justify-content: center; }
.page .nav.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.page .nav.scrolled .nav-links a { color: var(--text-dim); }
.page .nav.scrolled .nav-links a::after { background: var(--accent); }
.page .nav .nav-links a.is-current { color: #7fc4ff; }
.page .nav.scrolled .nav-links a.is-current { color: var(--accent); }
.page .nav.scrolled .nav-links a:hover { color: var(--text); }
.nav-brand {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.14em;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
/* 品牌光标：终端签名（与载入动画同语言） */
.brand-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 3px;
  background: currentColor;
  animation: brandBlink 1.2s step-end infinite;
}
@keyframes brandBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.nav-links { display: flex; gap: var(--sp-2); }

/* 语言开关（右上角固定） */
.lang-switch {
  position: fixed;
  top: calc(var(--nav-h) / 2 - 14px);
  right: var(--sp-5);
  z-index: 150;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
/* 滚动后自动隐藏：只在页面最顶部出现（技术页） */
.lang-switch.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.lang-switch button {
  padding: 4px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: color 0.25s, background 0.25s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.is-active {
  background: var(--accent);
  color: #fff;
}
/* 移动端：右上角细长竖条（自上而下），紧贴屏幕右上角 */
@media (max-width: 700px) {
  .lang-switch {
    top: var(--sp-3);
    right: var(--sp-3);
    flex-direction: column;
    gap: 4px;
    padding: 8px 5px;
    border-radius: 10px;
  }
  .lang-switch button {
    padding: 4px 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;   /* 文字竖排，窄条 */
  }
}
.nav-links a {
  padding: var(--sp-2) var(--sp-4);
  font-size: 12px;
  letter-spacing: 0.3em;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: var(--sp-4); right: var(--sp-4);
  bottom: 4px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--hero-text); }
.nav.scrolled .nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ============ Hero（深色，保持已认可样式） ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--hero-bg);
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* 防夸克等浏览器拦截点击/接管播放器 */
  transform: scale(1.02);
  filter: blur(26px) brightness(0.6);
  animation: heroDenoise 2.4s var(--ease-out) 0.4s forwards;
}
@keyframes heroDenoise {
  to { filter: blur(0) brightness(1); }
}
/* 隐藏 Hero 原生播放控件（夸克等浏览器会自动注入控制条/播放器 UI） */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel { display: none !important; }
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--hero-bg) 0%, rgba(10, 10, 12, 0.4) 42%, rgba(10, 10, 12, 0.25) 100%),
    linear-gradient(to right, rgba(10, 10, 12, 0.55) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--sp-5) 13vh;
  will-change: transform, opacity;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(168, 203, 232, 0.85);
  margin-bottom: var(--sp-4);
  white-space: nowrap;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 148px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--hero-text);
}
.hero-title span { color: #7fc4ff; }
/* Dove 白色（字符动画拆分后保持白色） */
.hero-title .ht-white { color: #fff !important; }
.hero-sub {
  margin-top: var(--sp-5);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
/* AIGC：等宽终端感；创作者：中文宋体 */
.hero-sub .hs-en {
  font-family: var(--mono);
  color: rgba(168, 203, 232, 0.95);
}
.hero-sub .hs-cn {
  font-family: var(--serif-cn);
  letter-spacing: 0.3em;
}
.hero-line {
  margin-top: var(--sp-6);
  width: 72px;
  height: 1px;
  background: #7fc4ff;
  transform-origin: left;
}
.hero-content [data-seq] { opacity: 0; transform: translateY(24px); }
.hero-content [data-seq].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
/* 标题字符动画：标题本体由字符 span 接管，跳过整体动画 */
.hero-title[data-split] { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero-line[data-seq].is-in { transform: scaleX(1); transition: transform 0.9s var(--ease-out) 0.9s; }

.hero-scroll {
  position: absolute;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  writing-mode: vertical-rl;
}
.hero-scroll svg { animation: scrollDrop 2.2s ease-in-out infinite; }

/* 鼠标流体光斑（仅 PC，深色 Hero 区内的轨迹光） */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-glow .glow-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 196, 255, 0.5) 0%, rgba(147, 214, 255, 0.16) 40%, rgba(127, 196, 255, 0) 70%);
  filter: blur(36px);
  opacity: 0;
  animation: hGlowFade 1.4s ease-out forwards;
  will-change: transform, opacity;
}
.hero-glow .glow-blob.gb-cool {
  background: radial-gradient(circle, rgba(154, 212, 255, 0.45) 0%, rgba(127, 196, 255, 0.14) 45%, rgba(127, 196, 255, 0) 70%);
  filter: blur(44px);
}
@keyframes hGlowFade {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.55); }
  12%  { opacity: var(--blob-op, 0.5); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.35); }
}
@keyframes scrollDrop {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
}

/* ============ 区块标题（白区） ============ */
.section-head { margin-bottom: var(--sp-7); }
.section-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--text);
}

/* ============ 作品区（白） ============ */
.works { padding: var(--sp-10) 0 var(--sp-10); }

/* 横向无限循环画廊：内容复制两份，CSS 动画无缝滚动 */
.works-grid {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.works-track {
  display: flex;
  gap: var(--sp-5);
  width: max-content;
  animation: marquee 30s linear infinite;
  padding-bottom: var(--sp-2);
}
.works-grid:hover .works-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* 移动端：触摸设备禁用 marquee，改原生横向滚动（可手动滑动） */
@media (hover: none), (pointer: coarse) {
  .works-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .works-grid::-webkit-scrollbar { display: none; }
  .works-track {
    animation: none;
    width: max-content;
  }
  .work-card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .works-track { animation: none; flex-wrap: wrap; }
}

/* 卡片：固定宽度，竖屏画廊比例 */
.work-card {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  transition: border-color 0.5s, transform 0.6s var(--ease-out), box-shadow 0.6s;
  outline: none;
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.work-card:hover {
  border-color: rgba(90, 168, 208, 0.45);
  transform: translateY(-8px);
  box-shadow:
    0 30px 70px rgba(28, 28, 30, 0.14),
    0 0 0 1px rgba(90, 168, 208, 0.18),
    0 0 36px rgba(90, 168, 208, 0.18);
}
.work-card:focus-visible { border-color: var(--accent); }

.work-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0f0f2;
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out, opacity 0.5s, filter 2s var(--ease-out);
  /* 「生成」初始态：模糊 + 压暗（去噪动画见 .is-denoised） */
  filter: blur(24px) brightness(0.5) saturate(0.5) contrast(1.1);
  transform: scale(1.08);
}
.cover-grad {
  position: absolute;
  inset: 0;
  filter: blur(24px) brightness(0.5);
  transition: filter 2s var(--ease-out);
}
.work-card.is-denoised .cover-img,
.work-card.is-denoised .cover-grad {
  filter: blur(0) brightness(1) saturate(1) contrast(1);
  transform: scale(1);
}
/* 生成中的噪点覆盖层（去噪完成后隐去） */
.work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: overlay;
  transition: opacity 2s var(--ease-out);
}
.work-card.is-denoised .work-cover::after { opacity: 0; }
.card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 3;
}
.work-card:hover .card-preview,
.work-card.previewing .card-preview { opacity: 1; }
.work-card:hover .cover-img { transform: scale(1.05); }

/* 卡片信息：提示词（hover 打字机浮现） */
.cover-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 44px var(--sp-4) var(--sp-3);
  background: linear-gradient(to top, rgba(10, 10, 12, 0.85) 0%, transparent 100%);
}
.cover-prompt {
  max-height: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  color: rgba(242, 242, 244, 0.72);
  transition: max-height 0.5s var(--ease-out), margin 0.5s var(--ease-out), opacity 0.5s;
  opacity: 0;
  white-space: pre-wrap;
}
.cover-prompt::before {
  content: "$ prompt: ";
  color: rgba(127, 196, 255, 0.9);
  letter-spacing: 0.06em;
}
.work-card:hover .cover-prompt,
.work-card.previewing .cover-prompt {
  max-height: 160px;
  margin-top: var(--sp-2);
  opacity: 1;
}
.pp-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 2px;
  background: rgba(127, 196, 255, 0.9);
  vertical-align: -1px;
  animation: ppBlink 0.9s step-end infinite;
}
@keyframes ppBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 播放生成仪式：噪点 + sampling 进度 → 淡入视频 */
.gen-veil {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.6s ease;
}
.gen-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.35;
}
.gen-veil .gv-label {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(127, 196, 255, 0.9);
}
.gen-veil .gv-bar {
  position: relative;
  width: 180px;
  height: 3px;
  background: rgba(127, 196, 255, 0.15);
  overflow: hidden;
}
.gen-veil .gv-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 60%;
  background: #7fc4ff;
  animation: gvFill 0.8s var(--ease-out) forwards;
}
@keyframes gvFill { from { width: 4%; } to { width: 100%; } }
.gen-veil.is-done { opacity: 0; }

/* ============ 联系（白） ============ */
.contact { padding: var(--sp-10) 0; }
.contact-head { text-align: center; }
.contact-sub { margin-top: var(--sp-4); font-size: 13px; color: var(--text-dim); }

/* 名片式双栏：左二维码卡 + 右联系方式 */
.contact-list {
  max-width: 760px;
  margin: var(--sp-7) auto 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.contact-qr {
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 16px 50px rgba(28, 28, 30, 0.08);
  text-align: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.5s;
}
.contact-qr:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 168, 208, 0.35);
  box-shadow: 0 24px 70px rgba(28, 28, 30, 0.14);
}
.contact-qr img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.contact-qr-label {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
}
.contact-rows { display: block; }
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-5) var(--sp-3);
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease-out), color 0.3s, border-color 0.3s;
}
.contact-rows > .contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row:hover { padding-left: var(--sp-5); color: var(--accent); border-color: var(--line-strong); }
.contact-row a { color: inherit; }
.wechat-row { cursor: default; }
.wechat-row:hover { padding-left: var(--sp-3); color: var(--accent); }
.row-name {
  flex-shrink: 0;
  width: 72px;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.row-value { font-size: 13px; color: var(--text-dim); word-break: break-all; }
.row-arrow { margin-left: auto; font-size: 12px; color: var(--text-faint); }

/* ============ 页脚 ============ */
.footer {
  padding: var(--sp-7) 0 calc(var(--sp-7) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer p { font-size: 11px; letter-spacing: 0.15em; color: var(--text-faint); margin-bottom: var(--sp-2); }
.footer-note { font-size: 10px !important; }
/* 页脚等宽版本行 */
.footer-build {
  margin-top: var(--sp-2);
  font-size: 9px !important;
  letter-spacing: 0.25em !important;
  font-family: var(--mono);
  color: var(--text-faint);
  white-space: nowrap;
}
.footer-privacy {
  margin-top: var(--sp-4);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  transition: color 0.3s;
}
.footer-privacy:hover { color: var(--accent); }

/* ============ 滚动渐入 ============ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal[data-delay="0"] { transition-delay: 0ms; }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }
.reveal[data-delay="4"] { transition-delay: 280ms; }
.reveal[data-delay="5"] { transition-delay: 350ms; }
.reveal[data-delay="6"] { transition-delay: 420ms; }
.reveal[data-delay="7"] { transition-delay: 490ms; }

/* ============ 灯箱（中屏播放器：视频黑边 + 背景虚化） ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lightbox-panel {
  position: relative;
  background: #000;   /* 黑色播放器面板：视频 + 黑边 */
  animation: lbOpen 0.45s var(--ease-out);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
@keyframes lbOpen {
  from { opacity: 0; transform: scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.lightbox-stage {
  position: relative;
  background: #000;
}
.lightbox-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;   /* 按真实比例，面板内黑边 */
}
.lightbox-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 灯箱键盘切换提示条（打开时短暂浮现） */
.lb-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 260;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.lb-hint.is-show { opacity: 1; }
@media (max-width: 700px) {
  .lb-hint { display: none; }
}
.lb-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-5);
  cursor: pointer;
}
.lb-empty p { font-size: 12px; color: rgba(28, 28, 30, 0.7); letter-spacing: 0.1em; }
.lb-empty .hint { font-family: var(--mono); font-size: 10px; color: rgba(28, 28, 30, 0.45); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3); }
.lb-empty .play-ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ============ 隐私（白） ============ */
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.privacy-overlay.is-open { display: flex; }
.privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.privacy-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  animation: lbRise 0.4s var(--ease-out);
}
.privacy-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.3s, border-color 0.3s;
}
.privacy-close:hover { color: var(--accent); border-color: rgba(90, 168, 208, 0.4); }
.privacy-panel h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.privacy-panel h3 { font-size: 14px; letter-spacing: 0.1em; margin: var(--sp-5) 0 var(--sp-2); }
.privacy-panel p { font-size: 13px; color: var(--text-dim); line-height: 1.9; }
.privacy-panel a { color: var(--accent); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-scroll { display: none; }
}

@media (max-width: 700px) {
  .contact-list { grid-template-columns: 1fr; gap: var(--sp-6); }
  .contact-qr { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links a { letter-spacing: 0.15em; padding: var(--sp-2) var(--sp-3); }
  .lightbox { padding: var(--sp-3); }
}

/* ============ 手机端美化 ============ */
@media (max-width: 700px) {
  /* Hero：标题更大更靠下，沉浸感 */
  .hero-content { padding: 0 var(--sp-5) 12vh; }
  .hero-title { font-size: clamp(52px, 15vw, 72px); }
  .hero-kicker { letter-spacing: 0.35em; }
  .hero-line { margin-top: var(--sp-5); }
  .hero-sub { font-size: 12px; }

  /* 作品卡：移动端窄一些，更贴近屏幕宽度 */
  .works-grid { gap: var(--sp-4); }
  .work-card { width: 68vw; border-radius: 16px; }
  .cover-info { padding: 36px var(--sp-4) var(--sp-3); }
  .cover-prompt { font-size: 9px; }

  /* 区块间距 */
  .works, .about, .contact { padding: var(--sp-8) 0; }
  .section-title { font-size: clamp(32px, 9vw, 40px); }

  /* 联系区：二维码更大居中，行距舒适 */
  .contact-qr { max-width: 200px; padding: var(--sp-4); }
  .contact-row { padding: var(--sp-4) var(--sp-2); }
  .row-name { font-size: 13px; }
  .row-value { font-size: 12px; }

  /* 页脚 */
  .footer { padding: var(--sp-6) 0; }
}

/* 技术页手机端 */
@media (max-width: 700px) {
  /* 载入动画：品牌缩小防止超屏 */
  .boot { gap: 26px; }
  .boot-brand.boot-brand-terminal {
    font-size: 28px;
    letter-spacing: 0.06em;
    gap: 10px;
  }
  .boot-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .boot-log { font-size: 11px; padding: 0 16px; }

  .lab-head { padding-top: calc(var(--nav-h) + var(--sp-5)); }
  .lab-terminal { font-size: 11px; }
  .terminal-body { padding: 12px 14px; font-size: 11px; line-height: 2; }
  .lab-title { font-size: clamp(26px, 7.5vw, 34px); letter-spacing: 0.04em; }

  .sysbar { gap: var(--sp-3); flex-wrap: wrap; }
  .sysbar .sysbar-tail { display: none; }
  .post-left::before { display: none; }

  /* 帖子行：更紧凑 */
  .post-row { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
  .post-left { width: auto; flex-shrink: 0; }
  .post-title { font-size: 14px; }
  .post-summary { font-size: 12px; }
  .post-tag { display: none; }

  /* 阅读弹层：全屏感 */
  .reader { padding: 0; }
  .reader-panel { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; }
  .reader-body { padding: var(--sp-6) var(--sp-5) var(--sp-8); }
  .reader-head h1 { font-size: 21px; }
  .reader-body p { font-size: 14px; line-height: 1.85; }
  .reader-link { padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content [data-seq], .reveal { opacity: 1; transform: none; transition: none; }
  .boot, .boot-brand, .boot-enter, .work-card, .cover-img, .card-preview, .lightbox-panel { animation: none !important; transition: none !important; }
}

/* ============================================================
   技术页（tech.html）· 深色科技感（终端风格）
   ============================================================ */
.tech-page body,
.tech-page {
  --tp-bg: #08080a;
  --tp-ink: #eef4f8;
  --tp-dim: rgba(238, 244, 248, 0.55);
  --tp-faint: rgba(238, 244, 248, 0.38);
  --tp-fainter: rgba(238, 244, 248, 0.28);
  --tp-line: rgba(127, 196, 255, 0.16);
  --tp-line-strong: rgba(127, 196, 255, 0.4);
  --tp-card: #0b0d10;
  --tp-accent: #7fc4ff;
  --tp-nav: rgba(8, 8, 10, 0.82);
  --tp-nav2: rgba(10, 12, 16, 0.7);
  background: var(--tp-bg);
  color: var(--tp-ink);
}
@media (prefers-color-scheme: light) {
  .tech-page body,
  .tech-page {
    --tp-bg: #fafafa;
    --tp-ink: #1c1c1e;
    --tp-dim: rgba(28, 28, 30, 0.6);
    --tp-faint: rgba(28, 28, 30, 0.42);
    --tp-fainter: rgba(28, 28, 30, 0.3);
    --tp-line: rgba(28, 28, 30, 0.1);
    --tp-line-strong: rgba(90, 168, 208, 0.4);
    --tp-card: #ffffff;
    --tp-accent: #1d6ea8;
    --tp-nav: rgba(250, 250, 250, 0.85);
    --tp-nav2: rgba(255, 255, 255, 0.8);
  }
  /* 浅色：隐藏 CRT 扫描线，滚动条浅色 */
  .tech-page::before,
  .tech-page::after { display: none; }
  .tech-page ::-webkit-scrollbar-thumb { background: rgba(28, 28, 30, 0.25); }
  .tech-page ::-webkit-scrollbar-thumb:hover { background: rgba(28, 28, 30, 0.4); }
}


/* 滚动条（深色） */
.tech-page ::-webkit-scrollbar-thumb { background: var(--tp-line); }
.tech-page ::-webkit-scrollbar-thumb:hover { background: var(--tp-line-strong); }

/* 导航（深色） */
.tech-page .nav {
  background: var(--tp-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tp-line);
}
.tech-page .nav .nav-brand { color: var(--tp-ink); }
.tech-page .nav .nav-brand span { color: var(--tp-accent); }
.tech-page .nav .nav-links a { color: var(--tp-dim); }
.tech-page .nav .nav-links a::after { background: var(--tp-accent); }
.tech-page .nav .nav-links a:hover { color: var(--tp-ink); }
.tech-page .nav .nav-links a.is-current { color: var(--tp-accent); }

/* 导航右区：链接 + 语言开关 */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* 语言开关位置：PC 收进导航栏内常显；手机悬于导航下方（滚动隐藏由 tech.js 控制） */
@media (min-width: 701px) {
  .tech-page .lang-switch {
    position: static;
    top: auto;
    right: auto;
  }
  .tech-page .lang-switch.is-hidden {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
.tech-page .lang-switch {
  top: calc(var(--nav-h) + var(--sp-3));
}

/* 技术页主体 */
.tech {
  opacity: 0;
  transition: opacity 0.8s ease;
  min-height: 100vh;
}
.tech.is-in { opacity: 1; }

/* 阅读进度条（顶部天蓝细线） */
#readingBar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 400;
  background: linear-gradient(90deg, var(--tp-accent), var(--tp-line));
  box-shadow: 0 0 8px rgba(127, 196, 255, 0.55);
}

/* CRT 扫描细线 + 缓慢下移的扫描带（氛围，不挡交互） */
.tech-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
}
.tech-page::after {
  content: "";
  position: fixed;
  left: 0; right: 0;
  top: -120px;
  height: 120px;
  z-index: 350;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(127, 196, 255, 0.045), transparent);
  animation: crtSweep 7s linear infinite;
}
@keyframes crtSweep {
  to { transform: translateY(calc(100vh + 240px)); }
}
/* 新闻页不使用技术页的 CRT 扫描线/扫描带（排版语言独立） */
.news-page::before,
.news-page::after { display: none; }

/* 鼠标流体光斑（仅 PC：鼠标拖过留下消散的轨迹光） */
#glowLayer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 196, 255, 0.55) 0%, rgba(147, 214, 255, 0.18) 40%, rgba(127, 196, 255, 0) 70%);
  filter: blur(34px);
  opacity: 0;
  animation: glowFade 1.4s ease-out forwards;
  will-change: transform, opacity;
}
.glow-blob.gb-cool {
  background: radial-gradient(circle, rgba(154, 212, 255, 0.5) 0%, var(--tp-line) 45%, rgba(127, 196, 255, 0) 70%);
  filter: blur(42px);
}
@keyframes glowFade {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.55); }
  12%  { opacity: var(--blob-op, 0.5); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.35); }
}
@media (max-width: 700px) {
  #glowLayer { display: none; }
}

/* ============ 终端式页头 ============ */
.lab-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--sp-7)) 0 var(--sp-7);
  border-bottom: 1px solid var(--tp-line);
}
/* 显示器辉光：页头顶部极淡天蓝光晕 */
.lab-head::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 400px;
  background: radial-gradient(ellipse, rgba(127, 196, 255, 0.10), transparent 65%);
  pointer-events: none;
}
/* 左右留白（防止自身 padding 覆盖 container） */
.lab-head, .lab-head .container { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.lab-terminal {
  max-width: 620px;
  margin-bottom: var(--sp-7);
  border-radius: 10px;
  overflow: hidden;
  background: #0d0f13;
  border: 1px solid var(--tp-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #12151a;
  border-bottom: 1px solid var(--tp-line);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--tp-faint);
  white-space: nowrap;
}
.terminal-body {
  padding: 14px 16px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.1;
  color: rgba(127, 196, 255, 0.9);
}
.terminal-body .t-line { white-space: pre; }
.terminal-body .t-line.dim { color: rgba(127, 196, 255, 0.5); }
.t-prompt { color: var(--tp-accent); font-weight: bold; }
.t-cursor {
  display: inline-block;
  color: var(--tp-accent);
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 迷你状态栏（数据仪表感） */
.sysbar {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--tp-faint);
}
.sysbar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.8);
  animation: cursorBlink 2.2s ease-in-out infinite;
}
.sysbar b { color: rgba(238, 244, 248, 0.75); font-weight: 500; }
.sysbar .sysbar-tail { margin-left: auto; color: rgba(127, 196, 255, 0.6); }

/* 标题等宽小标签（实验室档案感） */
.lab-file {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(127, 196, 255, 0.8);
  border: 1px solid var(--tp-line);
  background: var(--tp-line);
  white-space: nowrap;
}

.lab-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.35;
  letter-spacing: 0.1em;
  color: var(--tp-ink);
  text-shadow: 0 0 36px var(--tp-line);
}
/* 「AI」等宽天蓝发光，「创作实验室」亮白 */
.lab-title span:first-child { color: var(--tp-accent); }
.lab-title span:last-child { color: var(--tp-ink); }

/* ============ 帖子列表（深色终端论坛） ============ */
.forum { padding-top: var(--sp-7); padding-bottom: var(--sp-10); }
.forum, .forum .container { padding-left: var(--sp-5); padding-right: var(--sp-5); }

/* Skill 下载区块（干货入口） */
.skill-download {
  margin-bottom: var(--sp-7);
  padding: var(--sp-6) var(--sp-6);
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  background:
    radial-gradient(480px 200px at 90% -40%, var(--tp-line), transparent 60%),
    var(--tp-card);
}
.sd-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--tp-accent);
  border: 1px solid var(--tp-line-strong);
  background: var(--tp-line);
  margin-bottom: var(--sp-3);
}
.sd-title {
  font-family: var(--serif-cn);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--tp-ink);
}
.sd-desc {
  margin-top: var(--sp-3);
  font-size: 13px;
  line-height: 1.9;
  color: var(--tp-dim);
  max-width: 620px;
}
.sd-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.sd-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 6px;
  background: var(--tp-accent);
  color: var(--tp-bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.sd-btn:hover {
  background: #9ad4ff;
  transform: translateY(-1px);
}
/* 次级下载按钮（描边） */
.sd-btn-ghost {
  background: transparent;
  color: var(--tp-accent);
  border: 1px solid var(--tp-line-strong);
}
.sd-btn-ghost:hover {
  background: var(--tp-line);
  color: #9ad4ff;
}
.sd-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--tp-faint);
}
.sd-install {
  margin-top: var(--sp-4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--tp-fainter);
}

/* 本地部署体检（一键检测本机能否跑 MiniMax H3 / DeepSeek V4） */
.deploy-check,
.dc-inline {
  margin: var(--sp-5) 0;
  padding: var(--sp-5);
  border: 1px solid var(--tp-line-strong);
  border-radius: 10px;
  background:
    radial-gradient(420px 180px at 8% -30%, var(--tp-line), transparent 60%),
    var(--tp-card);
}
.dc-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--tp-accent);
  border: 1px solid var(--tp-line-strong);
  background: var(--tp-line);
  margin-bottom: var(--sp-3);
}
.dc-title {
  font-family: var(--serif-cn);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--tp-ink);
  margin: 0;
}
.dc-desc {
  margin-top: var(--sp-2);
  font-size: 13px;
  color: var(--tp-dim);
}
.dc-btn {
  margin-top: var(--sp-4);
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--tp-line-strong);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--tp-accent);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.dc-btn:hover { background: var(--tp-line); color: var(--tp-ink); }
.dc-result { margin-top: var(--sp-4); }
.dc-scan { display: flex; flex-direction: column; gap: 6px; }
.dc-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--tp-faint);
  opacity: 0.3;
}
.dc-line.is-on { opacity: 1; color: var(--tp-accent); }
.dc-hardware {
  border: 1px solid var(--tp-line);
  border-radius: 8px;
  overflow: hidden;
}
.dc-row {
  display: flex;
  gap: var(--sp-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--tp-line);
  font-family: var(--mono);
  font-size: 11px;
}
.dc-row:last-child { border-bottom: 0; }
.dc-k { color: var(--tp-faint); width: 42px; flex-shrink: 0; }
.dc-v { color: var(--tp-ink); word-break: break-all; }
.dc-verdict {
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.dc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.dc-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--tp-ink);
}
.dc-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid var(--tp-line-strong);
  color: var(--tp-faint);
}
.dc-tag.dc-lv1 { color: var(--tp-accent); border-color: var(--tp-line-strong); background: var(--tp-line); }
.dc-tag.dc-lv2 { color: #08080a; background: var(--tp-accent); border-color: var(--tp-accent); }
.dc-tag.dc-lv-1 { color: #e0a03c; border-color: rgba(224, 160, 60, 0.4); }
.dc-manual {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--tp-line-strong);
  border-radius: 8px;
}
.dc-m-label {
  font-size: 11px;
  color: var(--tp-dim);
  margin-bottom: var(--sp-2);
}
.dc-m-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.dc-m-row select,
.dc-m-row button {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--tp-line-strong);
  background: var(--tp-card);
  color: var(--tp-ink);
  font-family: var(--mono);
  font-size: 11px;
}
.dc-m-row button {
  color: var(--tp-accent);
  cursor: pointer;
  transition: background 0.25s;
}
.dc-m-row button:hover { background: var(--tp-line); }
.dc-disclaimer {
  margin-top: var(--sp-3);
  font-size: 11px;
  line-height: 1.7;
  color: var(--tp-fainter);
}

/* 分类筛选 tab */
.forum-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.forum-tabs button {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--tp-line);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(238, 244, 248, 0.5);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.forum-tabs button:hover { color: var(--tp-accent); }
.forum-tabs button.is-active {
  background: var(--tp-line);
  color: var(--tp-accent);
  border-color: var(--tp-line-strong);
}
.forum-tabs button:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; }
.forum-list {
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--tp-card);
}
.post-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--tp-line);
  cursor: pointer;
  transition: background 0.2s;
}
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: var(--tp-line); }
.post-row:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: -2px; }
/* hover：左侧天蓝指示条 */
.post-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--tp-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 0 10px rgba(127, 196, 255, 0.6);
}
.post-row:hover::before { transform: scaleY(1); }

/* 左：分类徽标 */
.post-left { position: relative; flex-shrink: 0; width: 56px; }
/* hover：行首 $ 提示符 */
.post-left::before {
  content: "$";
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: bold;
  color: var(--tp-accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.post-row:hover .post-left::before { opacity: 1; }
.post-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid var(--tp-line);
  color: rgba(127, 196, 255, 0.85);
  background: var(--tp-line);
  white-space: nowrap;
}
.post-cat[data-cat="tutorial"] { background: var(--tp-line); color: var(--tp-accent); border-color: var(--tp-line-strong); }

/* 中：标题 + 摘要 */
.post-body { flex: 1; min-width: 0; }
.post-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--serif-cn);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tp-ink);
  overflow: hidden;
  white-space: nowrap;
}
.post-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-pin {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--tp-accent);
  color: var(--tp-bg);
}
.post-row:hover .post-title-text { color: var(--tp-accent); }
.post-summary {
  margin-top: 3px;
  font-family: var(--serif-cn);
  font-size: 13px;
  color: var(--tp-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 「生成」签名：hover 方法论打字机（替换摘要） */
.post-row .ps-type {
  color: rgba(127, 196, 255, 0.95);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.post-row .ps-type::before { content: "→ "; }
.ps-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 2px;
  background: var(--tp-accent);
  vertical-align: -1px;
  animation: ppBlink 0.9s step-end infinite;
}
.post-row:hover .post-summary { color: transparent; }

/* 右：标签 + 箭头 */
.post-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.post-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--tp-faint);
  white-space: nowrap;
}
.post-arrow {
  position: relative;
  width: 34px;
  text-align: right;
  font-size: 16px;
  color: var(--tp-faint);
  transition: color 0.25s;
}
.pa-glyph { display: inline-block; transition: opacity 0.2s; }
.post-row:hover .pa-glyph { opacity: 0; }
.post-row:hover .post-arrow { color: var(--tp-accent); }
/* hover：箭头变语言化「读取」（文案由 i18n 注入 --read-label） */
.post-arrow::after {
  content: var(--read-label, "READ");
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--tp-accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.post-row:hover .post-arrow::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============ 阅读弹层（深色） ============ */
.reader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.reader.is-open { display: flex; }
.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.reader-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #0d0f13;
  border: 1px solid var(--tp-line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: readerIn 0.4s var(--ease-out);
}
@keyframes readerIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.reader-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tp-line);
  background: #0d0f13;
  color: rgba(238, 244, 248, 0.6);
  font-size: 15px;
  transition: color 0.3s, border-color 0.3s;
}
.reader-close:hover { color: var(--tp-accent); border-color: rgba(127, 196, 255, 0.5); }
.reader-body { padding: var(--sp-7) var(--sp-6) var(--sp-6); }
.reader-head { margin-bottom: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--tp-line); }
/* 「生成」签名：弹层标题从噪点中生成 */
.reader-path, .reader-head {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
}
.reader.is-gen .reader-path, .reader.is-gen .reader-head {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 0.7s ease, filter 0.9s ease, transform 0.7s var(--ease-out);
}
/* 代码块逐行生成 */
.reader-code { overflow: hidden; }
.reader-code .rc-line {
  display: block;
  opacity: 0;
  transform: translateY(6px);
}
.reader-code .rc-line.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* 弹层终端路径（$ cat posts/xxx.md） */
.reader-path {
  padding: 0 0 var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--tp-line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(127, 196, 255, 0.8);
}
.reader-path .rp-prompt { color: var(--tp-accent); font-weight: bold; margin-right: 6px; }
.reader-path .rp-dim { color: var(--tp-faint); }
/* 正文命令 → 终端代码块 */
.reader-code {
  margin: var(--sp-4) 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0a0c10;
  border: 1px solid var(--tp-line);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: #cfe6f7;
  white-space: pre-wrap;
  word-break: break-all;
}
.reader-code .rc-prompt { color: var(--tp-accent); font-weight: bold; margin-right: 6px; }
.reader-code .rc-comment { color: var(--tp-faint); }
.reader-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--tp-accent);
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--tp-line-strong);
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
.reader-head h1 {
  font-family: var(--serif-cn);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--tp-ink);
}
.reader-body h2 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--tp-accent);
  margin: var(--sp-6) 0 var(--sp-3);
}
.reader-body p {
  font-family: var(--serif-cn);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(238, 244, 248, 0.78);
  margin-bottom: var(--sp-3);
}
.reader-body p:last-child { margin-bottom: 0; }

/* 参考链接 */
.reader-links {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--tp-line);
}
.reader-links-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--tp-accent);
  margin-bottom: var(--sp-4);
}
/* 正文配图（真实截图） */
.reader-img {
  margin: var(--sp-5) 0;
  padding: 10px;
  background: #0a0c10;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
}
.reader-img img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.reader-img figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--tp-faint);
  text-align: center;
}
.reader-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 12px 14px;
  border: 1px solid var(--tp-line);
  border-radius: 8px;
  margin-bottom: var(--sp-2);
  background: rgba(127, 196, 255, 0.04);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.reader-link:hover {
  border-color: var(--tp-line-strong);
  background: rgba(127, 196, 255, 0.09);
  transform: translateX(3px);
}
.reader-link-name {
  font-family: var(--serif-cn);
  font-size: 13px;
  color: rgba(238, 244, 248, 0.85);
}
.reader-link-arrow {
  font-size: 13px;
  color: var(--tp-accent);
  transition: transform 0.3s var(--ease-out);
}
.reader-link:hover .reader-link-arrow { transform: translate(2px, -2px); }

/* 教程视频（自动播放） */
.reader-video {
  margin: var(--sp-4) 0 var(--sp-5);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--tp-line);
}
.reader-video video {
  width: 100%;
  display: block;
  background: #000;
}

/* 页脚（深色） */
.tech-page .footer { border-top-color: var(--tp-line); }
.tech-page .footer p { color: var(--tp-faint); }

/* 回顶按钮（^ TOP，滚动后浮现） */
.top-btn {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-6);
  z-index: 120;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 196, 255, 0.3);
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(238, 244, 248, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.top-btn.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.top-btn:hover { color: #7fc4ff; border-color: rgba(127, 196, 255, 0.6); }
@media (max-width: 700px) {
  .top-btn { right: var(--sp-3); bottom: var(--sp-4); }
}

/* ============ 新闻页（AI 动态）：杂志风 · 自动日夜间（跟随系统） ============ */

/* 主题变量：浅色默认，深色随系统自动切换 */
.news-page {
  --np-bg: #fafafa;
  --np-bg-hi: #ffffff;
  --np-ink: #1c1c1e;
  --np-dim: rgba(28, 28, 30, 0.6);
  --np-faint: rgba(28, 28, 30, 0.38);
  --np-fainter: rgba(28, 28, 30, 0.26);
  --np-line: rgba(28, 28, 30, 0.08);
  --np-line-strong: rgba(28, 28, 30, 0.14);
  --np-accent: #5aa8d0;
  --np-accent-soft: rgba(90, 168, 208, 0.5);
  --np-accent-faint: rgba(90, 168, 208, 0.25);
  --np-glow: rgba(90, 168, 208, 0.08);
  --np-nav: rgba(250, 250, 250, 0.85);
  background: var(--np-bg);
  color: var(--np-ink);
}
@media (prefers-color-scheme: dark) {
  .news-page {
    --np-bg: #0e1014;
    --np-bg-hi: #12151b;
    --np-ink: #e8eef4;
    --np-dim: rgba(232, 238, 244, 0.58);
    --np-faint: rgba(232, 238, 244, 0.36);
    --np-fainter: rgba(232, 238, 244, 0.24);
    --np-line: rgba(232, 238, 244, 0.1);
    --np-line-strong: rgba(127, 196, 255, 0.2);
    --np-accent: #7fc4ff;
    --np-accent-soft: rgba(127, 196, 255, 0.5);
    --np-accent-faint: rgba(127, 196, 255, 0.22);
    --np-glow: rgba(127, 196, 255, 0.09);
    --np-nav: rgba(14, 16, 20, 0.85);
  }
}

/* 导航：毛玻璃 + 随主题 */
.news-page .nav {
  background: var(--np-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--np-line);
}
.news-page .nav .nav-brand { color: var(--np-ink); }
.news-page .nav .nav-brand span { color: var(--np-accent); }
.news-page .nav .nav-links a { color: var(--np-dim); }
.news-page .nav .nav-links a::after { background: var(--np-accent); }
.news-page .nav .nav-links a:hover { color: var(--np-ink); }
.news-page .nav .nav-links a.is-current { color: var(--np-accent); }
/* 动态页导航无品牌：链接居中 */
.news-page .nav-inner { justify-content: center; }
/* PC：翻译模块固定在导航栏最右侧（相对全宽 nav 定位） */
@media (min-width: 701px) {
  .news-page .lang-switch {
    position: absolute;
    top: 50%;
    right: var(--sp-5);
    transform: translateY(-50%);
  }
}

/* 报头：随主题（浅色冷光 / 深色氛围光） */
.news-head {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-9);
  border-bottom: 1px solid var(--np-line);
  background:
    radial-gradient(900px 480px at 8% -8%, var(--np-glow), transparent 62%),
    linear-gradient(180deg, var(--np-bg-hi), var(--np-bg));
}
.news-head, .news-head .container { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.news-kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--np-accent);
  margin-bottom: var(--sp-6);
  white-space: nowrap;
}
.news-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--np-accent), transparent);
}
.news-title {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--np-ink);
}
.news-title .nt-accent {
  font-family: var(--serif);
  color: var(--np-accent);
  margin-right: 0.26em;
}
.news-title .nt-plain { color: var(--np-ink); }
.news-title::after {
  content: "";
  display: block;
  width: 140px;
  height: 2px;
  margin-top: var(--sp-6);
  background: linear-gradient(90deg, var(--np-accent), transparent);
}
.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--np-faint);
}
.news-meta .news-dot { color: var(--np-accent-soft); }
.news-refresh {
  margin-left: var(--sp-2);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--np-accent-soft);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--np-accent);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.news-refresh:hover { background: var(--np-accent-faint); color: var(--np-accent); }

/* 头版头条：通栏大标题（报纸头版感） */
.news-lead {
  max-width: 920px;
  padding: var(--sp-8) var(--sp-5) var(--sp-7);
}
.lead-entry {
  display: block;
  color: inherit;
  text-decoration: none;
}
.lead-meta {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}
.lead-src {
  padding-left: 9px;
  border-left: 2px solid var(--np-accent-soft);
  color: var(--np-accent);
}
.lead-time { color: var(--np-faint); }
.lead-title {
  display: block;
  font-family: var(--serif-cn);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--np-ink);
  transition: color 0.3s;
}
.lead-entry:hover .lead-title { color: var(--np-accent); }
/* 「生成」签名：头条标题逐字生成光标 */
.lt-cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--np-accent);
  vertical-align: -2px;
  animation: ppBlink 0.9s step-end infinite;
}
.lead-desc {
  display: block;
  margin-top: var(--sp-4);
  max-width: 640px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--np-dim);
}
/* 头条与时间线的分隔：双线（报纸头版风格） */
.news-lead::after {
  content: "";
  display: block;
  margin-top: var(--sp-7);
  border-bottom: 2px solid var(--np-line-strong);
}
.news-lead::before {
  content: "";
  display: block;
  height: 6px;
  margin-top: var(--sp-8);
  background: repeating-linear-gradient(90deg, var(--np-line-strong) 0 6px, transparent 6px 12px);
}

/* 时间线：hairline 分隔 + 左侧轴线 + 节点圆点 */
.news-timeline {
  position: relative;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-10);
  max-width: 920px;
}
.news-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: var(--sp-9);
  width: 1px;
  background: linear-gradient(180deg, var(--np-accent-soft), var(--np-accent-faint));
}
.tl-group { margin-bottom: var(--sp-8); }
.tl-date {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--np-accent);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  white-space: nowrap;
}
.tl-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--np-accent-faint), transparent);
}
.tl-entry {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--np-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), background 0.35s, opacity 0.6s var(--ease-out);
}
/* 「生成」签名：条目从模糊中生成浮现（替代纯淡入） */
.tl-entry.tl-hidden {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
}
.tl-entry.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 0.7s var(--ease-out), filter 0.9s ease, transform 0.7s var(--ease-out);
}
.tl-entry:hover {
  transform: translateX(6px);
  background: linear-gradient(90deg, var(--np-accent-faint), transparent 55%);
}
.tl-time {
  position: relative;
  padding-left: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--np-faint);
  padding-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.3s;
}
.tl-time::before {
  content: "";
  position: absolute;
  left: 24.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--np-accent-faint);
  transition: background 0.3s, box-shadow 0.3s;
}
.tl-entry:hover .tl-time { color: var(--np-accent); }
.tl-entry:hover .tl-time::before {
  background: var(--np-accent);
  box-shadow: 0 0 10px var(--np-accent-soft);
}
.tl-main { min-width: 0; }
.tl-src {
  display: inline-block;
  margin-bottom: 6px;
  padding-left: 9px;
  border-left: 2px solid var(--np-accent-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--np-accent);
  white-space: nowrap;
}
.tl-title {
  display: block;
  position: relative;
  font-family: var(--serif-cn);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--np-ink);
  transition: color 0.3s;
}
.tl-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--np-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.tl-entry:hover .tl-title { color: var(--np-accent); }
.tl-entry:hover .tl-title::after { transform: scaleX(1); }
.tl-arrow {
  font-size: 16px;
  color: var(--np-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
  align-self: center;
  white-space: nowrap;
}
.tl-entry:hover .tl-arrow { opacity: 1; transform: none; }

.news-loading, .news-empty {
  padding: var(--sp-8) 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--np-faint);
}
/* 「生成」签名：加载步骤状态 */
.news-loading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.news-loading .nl-step { opacity: 0.35; }
.news-loading .nl-step.is-on { opacity: 1; color: var(--np-accent); }

/* 来源脚注 */
.news-sources {
  padding: var(--sp-7) var(--sp-5) var(--sp-8);
  border-top: 1px solid var(--np-line);
}
.news-sources .ns-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--np-faint);
}
.news-sources .ns-label { color: var(--np-accent); margin-right: var(--sp-2); }
.news-sources .ns-note {
  margin-top: var(--sp-4);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--np-fainter);
}
/* 手机端排版优化 */
@media (max-width: 700px) {
  .news-head { padding: calc(var(--nav-h) + var(--sp-6)) 0 var(--sp-6); }
  .news-kicker { font-size: 10px; letter-spacing: 0.4em; margin-bottom: var(--sp-4); }
  .news-title { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.1; }
  .news-title::after { width: 90px; margin-top: var(--sp-4); }
  .news-meta { margin-top: var(--sp-4); }
  .news-lead { padding: var(--sp-6) var(--sp-5) var(--sp-5); }
  .lead-meta { margin-bottom: var(--sp-3); }
  .lead-title { font-size: clamp(23px, 6.6vw, 30px); line-height: 1.4; }
  .lead-desc { margin-top: var(--sp-3); font-size: 14px; line-height: 1.8; }
  .news-lead::before { height: 4px; margin-top: var(--sp-6); }
  .news-lead::after { margin-top: var(--sp-5); }
  .news-timeline { padding-top: var(--sp-6); padding-bottom: var(--sp-8); }
  .news-timeline::before { display: none; }
  .tl-group { margin-bottom: var(--sp-6); }
  .tl-date { font-size: 11px; }
  /* 条目块状化：来源+时间同行，标题独立，箭头隐藏 */
  .tl-entry { display: block; position: relative; padding: 14px 0; padding-right: 0; }
  .tl-time { display: none; }
  .tl-arrow { display: none; }
  .tl-src { margin-bottom: 5px; }
  .tl-src::after {
    content: "  ·  " attr(data-time);
    margin-left: 2px;
    letter-spacing: 0.1em;
    color: var(--np-faint);
  }
  .tl-title { font-size: 15.5px; line-height: 1.55; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-entry.tl-hidden { opacity: 1; transform: none; }
}
/* 印刷噪点：给纯色背景加细腻颗粒质感（浅色/深色通用） */
.news-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ============ 技术页阅读弹层：浅色模式覆盖（置于文件末尾保证优先级） ============ */
@media (prefers-color-scheme: light) {
  .reader-backdrop { background: rgba(250, 250, 250, 0.82); }
  .reader-panel {
    background: #ffffff;
    border-color: rgba(28, 28, 30, 0.12);
    box-shadow: 0 24px 80px rgba(28, 28, 30, 0.18);
  }
  .reader-close { background: #ffffff; color: rgba(28, 28, 30, 0.55); }
  .reader-path { color: rgba(90, 168, 208, 0.85); }
  .reader-body p { color: rgba(28, 28, 30, 0.75); }
  .reader-code { background: #f0f2f4; border-color: rgba(28, 28, 30, 0.1); color: #2a2a2e; }
  .reader-code .rc-comment { color: rgba(28, 28, 30, 0.45); }
  .reader-img { background: #f0f2f4; border-color: rgba(28, 28, 30, 0.1); }
  .reader-img figcaption { color: rgba(28, 28, 30, 0.45); }
  .reader-link-name { color: rgba(28, 28, 30, 0.85); }
}

/* ============ 技术页浅色模式：对比度修正（选中态 / 分类 tab / 分类徽标 / 标签） ============ */
@media (prefers-color-scheme: light) {
  /* 选中文字：明确深字 + 可见蓝底——移动端长按选择不再「看不出选中」 */
  .tech-page ::selection { background: rgba(90, 168, 208, 0.42); color: #0b0b0d; }

  /* 分类 tab：非激活深灰、激活深蓝实底白字——一眼可辨 */
  .forum-tabs button { color: rgba(28, 28, 30, 0.58); }
  .forum-tabs button:hover { color: #1d6ea8; }
  .forum-tabs button.is-active {
    background: #1d6ea8;
    color: #ffffff;
    border-color: #1d6ea8;
  }

  /* 分类徽标：覆盖深色模式硬编码的浅天蓝（浅色下原为近白蓝，看不清） */
  .post-cat { color: #1d6ea8; }
  .post-cat[data-cat="tutorial"] { color: #1d6ea8; border-color: rgba(29, 110, 168, 0.45); }

  /* 右侧标签（实战 · 后期 / 入门 · 概念）加深 */
  .post-tag { color: rgba(28, 28, 30, 0.58); }

  /* hover 签名打字机：覆盖硬编码浅天蓝 */
  .post-row .ps-type { color: #1d6ea8; }

  /* 阅读弹层路径蓝加深 */
  .reader-path { color: #1d6ea8; }
}
