/* ============================================================
   Ross 作品集 — 墨与朱砂 设计系统
   ============================================================ */

/* 禁止右键保存 / 拖拽图片和视频 */
img, video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

:root,
[data-theme='light'] {
  /* 表面 */
  --color-bg: #FAF8F4;
  --color-surface: #FFFFFF;
  --color-surface-2: #F4F1EA;
  --color-surface-offset: #EFECE4;
  --color-divider: #E4E0D6;
  --color-border: #D8D3C8;

  /* 文字 */
  --color-text: #1A1A1A;
  --color-text-muted: #6B6862;
  --color-text-faint: #A8A49B;

  /* 朱砂强调 — logo #E6492B */
  --color-primary: #E6492B;
  --color-primary-hover: #CF3A22;
  --color-primary-soft: #FCE8E3;

  /* 墨色 */
  --color-ink: #14110F;

  /* 浅色按钮规范（已确认，勿随意改）
     实心主按钮：橙红渐变 #FF4D17 → #FF791A，白字
     次级：rgba(0,0,0,.05) / #191919
     线框：透明底 + --color-border 描边 + --color-text 字 */
  --btn-on-bg: linear-gradient(90deg, #FF4D17 0%, #FF791A 100%);
  --btn-on-fg: #fff;
  --btn-idle-bg: rgba(0, 0, 0, 0.05);
  --btn-idle-fg: #191919;
  --btn-line-bg: transparent;
  --btn-line-fg: var(--color-text);
  --btn-line-border: var(--color-border);
  --btn-line-hover-border: var(--color-text);

  --shadow-sm: 0 1px 2px rgba(20,17,15,0.06);
  --shadow-md: 0 6px 24px rgba(20,17,15,0.08);
  --shadow-lg: 0 20px 50px rgba(20,17,15,0.14);
}

[data-theme='dark'] {
  /* 参考即梦暗色：深底分层 + 高对比正文 + 半透明白次级字/描边 */
  --color-bg: #111318;
  --color-surface: #1A1D24;
  --color-surface-2: #22262E;
  --color-surface-offset: #2A2F38;
  --color-divider: #2E333C;
  --color-border: #3C4450;

  --color-text: #F2F5F8;
  --color-text-muted: #A8B0BC;
  --color-text-faint: #7E8796;

  --color-primary: #E6492B;
  --color-primary-hover: #FF6B4A;
  --color-primary-soft: #3A241F;

  --color-ink: #0B0C0F;

  --btn-on-bg: var(--btn-on-bg-jimeng);
  --btn-on-fg: #1a1a1a;
  --btn-idle-bg: rgba(255, 255, 255, 0.08);
  --btn-idle-fg: #fafafa;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111318;
    --color-surface: #1A1D24;
    --color-surface-2: #22262E;
    --color-surface-offset: #2A2F38;
    --color-divider: #2E333C;
    --color-border: #3C4450;
    --color-text: #F2F5F8;
    --color-text-muted: #A8B0BC;
    --color-text-faint: #7E8796;
    --color-primary: #E6492B;
    --color-primary-hover: #FF6B4A;
    --color-primary-soft: #3A241F;
    --color-ink: #0B0C0F;
    --btn-on-bg: var(--btn-on-bg-jimeng);
    --btn-on-fg: #1a1a1a;
    --btn-idle-bg: rgba(255, 255, 255, 0.08);
    --btn-idle-fg: #fafafa;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);
  }
}

/* 字号刻度 */
:root {
  --btn-on-bg-jimeng: linear-gradient(180deg, rgb(250 250 250) 0%, rgb(250 250 250 / 37%) 25%, transparent 42%, transparent 58%, rgb(250 250 250 / 37%) 75%, rgb(250 250 250) 100%), linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%), #fafafa;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  --text-2xl: clamp(2.25rem, 1.4rem + 4vw, 3.75rem);
  --text-3xl: clamp(3rem, 1rem + 7vw, 6rem);
  --text-detail-title: clamp(1.5rem, 1.38rem + 0.55vw, 2rem);

  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1280px;

  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'AlibabaPuHuiTi', 'SourceHanSansCN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'AlibabaPuHuiTi', 'SourceHanSansCN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-sub: 'AlibabaPuHuiTi', 'SourceHanSansCN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num: 'D-DIN-PRO', 'DingTalk JinBuTi', 'Alimama ShuHeiTi', 'Roboto', sans-serif;
  --font-mono: 'Roboto', 'Inter', 'JetBrains Mono', 'Noto Sans SC', sans-serif;
}

/* base */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-feature-settings: "palt";
}

img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); font-weight: 700; }
p, li { text-wrap: pretty; }

::selection { background: var(--color-primary); color: #FAF8F4; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
/* 鼠标点击导航锚点时，浏览器会聚焦 #id 目标；去掉非键盘场景下的默认虚线轮廓 */
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

a, button, [role="button"], input, textarea { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   布局
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}

/* ============================================================
   版块：间距收紧 + 纯色交替区分 + 新中式四角纹饰
   ============================================================ */
.section {
  position: relative;
  padding-block: clamp(var(--space-10), 4vw, var(--space-20));
}

/* 奇数版块：浅色表面（默认） */
.section:nth-of-type(odd) { background-color: transparent; }
/* 偶数版块：微差底色区分区域 */
.section:nth-of-type(even) { background-color: var(--color-surface-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--color-primary);
  display: inline-block;
}

.section-title {
  font-size: var(--text-xl);
  margin-top: var(--space-3);
}

/* ============================================================
   页头
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.header--scrolled { border-bottom-color: var(--color-divider); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
}

/* ===== Logo：横版一体图（IP + ROSS.hk） ===== */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo .logo-img {
  display: block;
  height: 40px !important;
  width: auto !important;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo .logo-img--sm {
  height: 28px !important;
  max-width: 112px;
}
.logo:hover { opacity: 0.85; }

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.bookmark-hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  max-width: 172px;
  height: 30px;
  padding: 0 10px 0 2px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  background: color-mix(in oklab, var(--color-ink) 4%, transparent);
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
}
.bookmark-hint-stage {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}
.bookmark-hint-emoji {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: auto;
  transform-origin: 50% 78%;
  animation: bookmark-peek 3.2s ease-in-out infinite;
}
.bookmark-hint-copy { letter-spacing: 0.02em; }
.bookmark-hint kbd {
  display: inline-block;
  padding: 1px 4px;
  margin: 0 1px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-ink) 6%, transparent);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
@keyframes bookmark-peek {
  0%, 100% { transform: translate(-8px, 11px) rotate(-16deg); }
  12% { transform: translate(3px, 0) rotate(12deg); }
  24% { transform: translate(-5px, 0) rotate(-14deg); }
  36% { transform: translate(4px, 0) rotate(10deg); }
  48% { transform: translate(-3px, 0) rotate(-9deg); }
  56% { transform: translate(2px, 1px) rotate(6deg); }
  64% { transform: translate(-2px, 6px) rotate(-8deg); }
  70% { transform: translate(-2px, 4.5px) rotate(-6deg); }
  76% { transform: translate(-5px, 8.5px) rotate(-12deg); }
  82% { transform: translate(-5px, 7px) rotate(-10deg); }
  92% { transform: translate(-8px, 11px) rotate(-16deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bookmark-hint-emoji { animation: none; transform: translate(0, 1px); }
}
@media (max-width: 1180px) {
  .bookmark-hint-copy { display: none; }
  .bookmark-hint {
    max-width: 32px;
    height: 32px;
    padding: 0;
    border-color: transparent;
    background: transparent;
  }
}
@media (max-width: 760px) {
  .bookmark-hint { display: none; }
}

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.2vw, 1.15rem); flex: 0 0 auto; }
.nav a {
  font-size: 15px;
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-1);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  word-break: keep-all;
}
.nav a:hover { color: var(--color-text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.header-actions .btn,
#vBack {
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* GitHub Star 按钮 */
.gh-star-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-ink) 3%, transparent);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.gh-star-btn:hover {
  border-color: var(--color-primary, #E6492B);
  color: var(--color-primary, #E6492B);
  background: color-mix(in oklab, var(--color-primary) 8%, transparent);
}
.gh-star-btn svg { flex-shrink: 0; }
.gh-star-count {
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-ink) 8%, transparent);
  font-variant-numeric: tabular-nums;
}

.lang-toggle {
  height: 38px;
  min-width: 58px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  flex-shrink: 0;
}
.lang-toggle i { font-style: normal; color: var(--color-text-faint); font-weight: 500; }
.lang-toggle [data-lang-label],
.lang-toggle [data-lang-label-en] { line-height: 1; }
html[lang="zh-CN"] .lang-toggle [data-lang-label],
html:not([lang="en"]) .lang-toggle [data-lang-label] { color: var(--color-text); }
html[lang="en"] .lang-toggle [data-lang-label-en] { color: var(--color-text); }
.lang-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
html[lang="en"] .nav { gap: clamp(0.55rem, 1.1vw, 1.15rem); }
html[lang="en"] .nav a { font-size: 15px; white-space: nowrap; }
html[lang="en"] .header-actions .btn,
html[lang="en"] #vBack {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11px;
}
html[lang="en"] .hero-title { letter-spacing: -0.03em; }
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.6em 1.2em;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
}
.btn:hover { border-color: var(--color-text); }
.btn--primary {
  background: var(--btn-on-bg);
  color: var(--btn-on-fg);
  border-color: transparent;
}
.btn--primary:hover {
  background: var(--btn-on-bg);
  color: var(--btn-on-fg);
  border-color: transparent;
  filter: brightness(1.08);
}

.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle {
    display: inline-flex; width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border-radius: var(--radius-full); border: 1px solid var(--color-border);
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4) var(--space-5);
    gap: var(--space-2);
  }
  .nav.open a { width: 100%; padding-block: var(--space-2); }
  .header-actions .btn,
  .gh-star-btn { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding-block: clamp(1.75rem, 3.5vh, 3rem) clamp(2rem, 4vh, 3.5rem);
  box-sizing: border-box;
}
.hero > .container {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.2vh, 2.75rem);
  flex: 1;
  justify-content: flex-start;
  min-height: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: var(--space-10) var(--space-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

.hero-intro { font-family: var(--font-sub); font-size: var(--text-sm); color: var(--color-text-muted); letter-spacing: 0.04em; }

.hero-pitch {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 2.4vh, 2rem);
}

.hero-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.hero-brand {
  --brand-beam: #1DBF73;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 9px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  transition: border-color .2s ease, background .2s ease;
  overflow: visible;
}
.hero-brand:hover {
  border-color: color-mix(in oklab, var(--color-text) 18%, var(--color-divider));
}
.hero-brand-logo,
.hero-brand-name {
  position: relative;
  z-index: 1;
}
.hero-brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.hero-brand-name {
  font-family: var(--font-sub);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
}
/* 环绕粒子光：完整底环 + conic 高光旋转（参考 Border Beam） */
.hero-brand-beam {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 0;
  /* 底层完整描边，避免流光未扫到的弧段看起来像线框缺口 */
  background: color-mix(in oklab, var(--brand-beam) 28%, var(--color-divider));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 1;
}
.hero-brand-beam::before {
  content: '';
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 230deg,
    color-mix(in oklab, var(--brand-beam) 0%, transparent) 265deg,
    color-mix(in oklab, var(--brand-beam) 55%, transparent) 290deg,
    var(--brand-beam) 312deg,
    #fff 326deg,
    var(--brand-beam) 338deg,
    transparent 355deg,
    transparent 360deg
  );
  animation: hero-beam-spin 3.1s linear infinite;
  will-change: transform;
  opacity: 0.95;
}
.hero-brand-beam::after {
  content: '';
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 180deg,
    transparent 0deg,
    transparent 250deg,
    color-mix(in oklab, var(--brand-beam) 40%, transparent) 300deg,
    transparent 340deg
  );
  filter: blur(5px);
  opacity: 0.55;
  animation: hero-beam-spin 3.1s linear infinite;
  will-change: transform;
}
@keyframes hero-beam-spin {
  to { transform: rotate(360deg); }
}
.hero-brand--cursor {
  --brand-beam: #1DBF73;
  border-color: color-mix(in oklab, #1DBF73 28%, var(--color-divider));
}
.hero-brand--cursor .hero-brand-name { color: #0F9F5B; }
.hero-brand--workbuddy {
  --brand-beam: #4C7DFF;
  border-color: color-mix(in oklab, #4C7DFF 28%, var(--color-divider));
}
.hero-brand--workbuddy .hero-brand-name { color: #3B6EF5; }
.hero-brand--workbuddy .hero-brand-beam::before,
.hero-brand--workbuddy .hero-brand-beam::after {
  animation-duration: 3.6s;
  animation-delay: -0.8s;
}
.hero-brands-x {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-faint);
  line-height: 1;
}
[data-theme='dark'] .hero-brand--cursor {
  --brand-beam: #3DDC97;
  border-color: color-mix(in oklab, #3DDC97 40%, var(--color-border));
  background: color-mix(in oklab, #3DDC97 7%, var(--color-surface));
}
[data-theme='dark'] .hero-brand--cursor .hero-brand-name { color: #3DDC97; }
[data-theme='dark'] .hero-brand--workbuddy {
  --brand-beam: #6B9BFF;
  border-color: color-mix(in oklab, #6B9BFF 40%, var(--color-border));
  background: color-mix(in oklab, #6B9BFF 7%, var(--color-surface));
}
[data-theme='dark'] .hero-brand--workbuddy .hero-brand-name { color: #6B9BFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-brand--cursor {
    --brand-beam: #3DDC97;
    border-color: color-mix(in oklab, #3DDC97 40%, var(--color-border));
    background: color-mix(in oklab, #3DDC97 7%, var(--color-surface));
  }
  :root:not([data-theme]) .hero-brand--cursor .hero-brand-name { color: #3DDC97; }
  :root:not([data-theme]) .hero-brand--workbuddy {
    --brand-beam: #6B9BFF;
    border-color: color-mix(in oklab, #6B9BFF 40%, var(--color-border));
    background: color-mix(in oklab, #6B9BFF 7%, var(--color-surface));
  }
  :root:not([data-theme]) .hero-brand--workbuddy .hero-brand-name { color: #6B9BFF; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-beam::before,
  .hero-brand-beam::after {
    animation: none;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.4vw, 2.875rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.38;
  max-width: 12.5em;
  color: var(--color-text);
  font-weight: 700;
}
.hero-title .accent { color: var(--color-primary); }
[data-theme='dark'] .hero-title,
[data-theme='dark'] .hero-title .accent {
  color: #96efff;
  background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-title,
  :root:not([data-theme]) .hero-title .accent {
    color: #96efff;
    background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin: 0.15rem 0 0;
  padding: 0;
}
.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.hero-check-ico {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  /* 略柔和，不抢主视觉 */
  background: color-mix(in oklab, var(--color-primary) 82%, #fff 18%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-primary) 28%, transparent);
}
.hero-check-ico::after {
  content: "";
  width: 9px;
  height: 9px;
  margin: 0;
  border: 0;
  transform: none;
  background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.6 8.15l2.9 2.9 5.9-6.2' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme='dark'] .hero-check-ico {
  background: var(--btn-on-bg-jimeng);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, #96efff 40%, transparent);
}
[data-theme='dark'] .hero-check-ico::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.6 8.15l2.9 2.9 5.9-6.2' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-check-ico {
    background: var(--btn-on-bg-jimeng);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, #96efff 40%, transparent);
  }
  :root:not([data-theme]) .hero-check-ico::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.6 8.15l2.9 2.9 5.9-6.2' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.hero-deploy {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin: 0.15rem 0 0;
}
.hero-deploy .hero-checks {
  margin: 0;
}
.hero-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.1rem 0 0;
  padding: clamp(1.15rem, 2.2vh, 1.6rem) 2.85rem clamp(1.15rem, 2vh, 1.5rem) clamp(1rem, 2vw, 1.35rem);
  border: 1px solid color-mix(in oklab, var(--color-primary) 38%, var(--color-border));
  border-radius: 16px;
  background: color-mix(in oklab, var(--color-primary) 3%, var(--color-surface));
}
/* 竖排侧签 · 右缘对齐「营」+ 轻 Border Glow */
.hero-panel-label {
  --mx: 50%;
  --my: 50%;
  --glow: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 0.55rem;
  left: auto;
  margin: 0;
  padding: 0 0.15em 0 0.72em;
  transform: none;
  z-index: 2;
  isolation: isolate;
  pointer-events: none;
  border: none;
  border-left: 1px dashed color-mix(in oklab, var(--color-primary) 42%, var(--color-border));
  background: transparent;
  border-radius: 0;
}
.hp-label-aura {
  display: none;
}
.hp-label-glow {
  display: none;
}
.hp-label-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  min-width: 0;
  height: auto;
  box-sizing: border-box;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  font-family: var(--font-sub);
  font-size: 0.6875rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--color-primary) 88%, #7a3a2a);
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.hero-panel-label.is-active .hp-label-text {
  box-shadow: none;
}
.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.hero-panel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}
.hero-panel-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.hero-panel-ico svg { width: 34px; height: 34px; }
.hero-panel-ico--ecs { color: #F08A3A; }
.hero-panel-ico--domain { color: #4C8DFF; }
.hero-panel-ico--oss { color: #2FBF7A; }
.hero-panel-ico--icp { color: #9B6BFF; }
.hero-panel-item strong {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  font-weight: 650;
  color: var(--color-text);
  line-height: 1.45;
}
.hero-panel-item > span:last-child {
  font-size: clamp(0.6875rem, 0.65rem + 0.15vw, 0.8125rem);
  color: var(--color-text-faint);
  line-height: 1.5;
}
[data-theme='dark'] .hero-panel {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
[data-theme='dark'] .hero-panel-label {
  border-left-color: color-mix(in oklab, #96efff 48%, #ffddc5);
}
[data-theme='dark'] .hp-label-text {
  color: #96efff;
  background-image: linear-gradient(180deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-panel {
    background: var(--color-surface-offset);
    border-color: var(--color-border);
  }
  :root:not([data-theme]) .hero-panel-label {
    border-left-color: color-mix(in oklab, #96efff 48%, #ffddc5);
  }
  :root:not([data-theme]) .hp-label-text {
    color: #96efff;
    background-image: linear-gradient(180deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@media (max-width: 720px) {
  .hero-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .hero-deploy { width: 100%; }
  .hero-panel {
    margin-right: 0;
    padding-right: 2.55rem;
  }
  .hero-panel-label {
    top: 12px;
    bottom: 12px;
    right: 0.4rem;
    padding-left: 0.58em;
  }
  .hp-label-text {
    font-size: 0.625rem;
    padding: 0;
    min-width: 0;
    letter-spacing: 0.1em;
    border-radius: 0;
  }
  .hero-checks { gap: 0.75rem 1.1rem; }
  .hero-title { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-label-aura,
  .hp-label-glow { transition: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55em 1.25em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--btn-idle-fg);
  background: var(--btn-idle-bg);
  border-color: transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease, filter .2s ease;
}
.hero-cta:hover {
  color: var(--btn-idle-fg);
  border-color: transparent;
  filter: brightness(1.06);
}
.hero-cta--primary {
  color: var(--btn-on-fg);
  background: var(--btn-on-bg);
  border-color: transparent;
}
.hero-cta--primary:hover {
  color: var(--btn-on-fg);
  background: var(--btn-on-bg);
  border-color: transparent;
  filter: brightness(1.08);
}

/* 深色下黑底单色 logo 反白 */
[data-theme='dark'] .logo-mono { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-mono { filter: invert(1); }
}
[data-theme='light'] .logo-mono { filter: none; }

[data-theme='dark'] .tools-item-icon,
[data-theme='dark'] .model-logo-wrap {
  background: transparent !important;
  border-color: transparent;
}
[data-theme='dark'] .tools-item-icon-fallback {
  background: transparent;
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .tools-item-icon,
  :root:not([data-theme]) .model-logo-wrap {
    background: transparent !important;
    border-color: transparent;
  }
  :root:not([data-theme]) .tools-item-icon-fallback {
    background: transparent;
    color: #fff;
  }
}



.hero-thumbs {
  --hero-thumbs-gap: 0.65rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--hero-thumbs-gap); /* 行列同距 */
  width: 100%;
  height: min(52vh, 420px);
  max-height: min(52vh, 420px);
  align-self: stretch;
  min-height: 0;
}
.hero-thumbs a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 0;
  height: 100%;
  /* 高度由等分网格决定，避免 aspect-ratio 把左右拉齐 */
}
.hero-thumbs a:nth-child(1) {
  grid-row: 1 / -1; /* 左侧 = 右侧两卡 + 中间间距 */
}
.hero-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--transition);
}
.hero-thumbs a:hover img { transform: scale(1.04); }
.hero-thumbs .thumb-label {
  position: absolute; left: var(--space-3); bottom: var(--space-3);
  background: color-mix(in oklab, var(--color-ink) 70%, transparent);
  color: #FAF8F4;
  font-size: var(--text-xs);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* AI Logo 流动墙 */
.ai-logo-wall {
  margin-top: 0;
  flex-shrink: 0;
  overflow: hidden;
  /* 给 hover 上移留空，避免顶边 1px 线框被 overflow 裁掉 */
  padding: 3px 0;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ai-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  /* 独立层，减少亚像素裁切导致边框断线 */
  transform: translateZ(0);
}
.ai-logo-item:hover {
  border-color: color-mix(in oklab, var(--color-text) 22%, var(--color-divider));
  transform: translate3d(0, -1px, 0);
}
.ai-logo-item img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}
.ai-logo-item b {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}
.ai-logo-item:hover b { color: var(--color-text); }
.ai-logo-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ai-logo-track.is-ready {
  animation: aiLogoFlow var(--ai-logo-duration, 48s) linear infinite;
}
.ai-logo-wall:hover .ai-logo-track.is-ready { animation-play-state: paused; }
.ai-logo-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 0.65rem;
  flex-shrink: 0;
}
[data-theme='dark'] .ai-logo-item {
  background: color-mix(in oklab, var(--color-surface) 92%, #fff);
  border-color: var(--color-border);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ai-logo-item {
    background: color-mix(in oklab, var(--color-surface) 92%, #fff);
    border-color: var(--color-border);
  }
}
@keyframes aiLogoFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-logo-track.is-ready { animation: none; }
  .ai-logo-wall { overflow-x: auto; }
}

/* Hero 内嵌 AI 设计看板 */
.hero-dashboard {
  width: 100%;
  margin-top: clamp(0.25rem, 1vh, 0.75rem);
}
.hero-dashboard .ainews-card {
  margin: 0;
}

/* ============================================================
   统计卡片（AI 工作流后 · 轻量展示）
   ============================================================ */
.stats-card {
  width: 100%;
  margin: clamp(var(--space-8), 3vw, var(--space-12)) 0 0;
  padding: calc(0.7rem + 9px) 0.5rem calc(0.7rem - 1px);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem 0;
  align-items: center;
  justify-items: stretch;
  text-align: center;
  width: 100%;
  margin: 0;
}
@media (max-width: 900px) {
  .stats-card { padding: calc(0.75rem + 9px) 0.65rem calc(0.75rem - 1px); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 0; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  padding-block: 2px;
}
.stat .num {
  font-family: var(--font-num);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
}
[data-theme='dark'] .stat .num { color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .stat .num { color: var(--color-text); }
}
.stat .num .suffix {
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: top;
  margin-left: 1px;
}
.stat .num .accent {
  color: color-mix(in oklab, var(--color-primary) 75%, var(--color-text-muted));
  font-size: 0.6em;
  font-weight: 600;
  vertical-align: top;
}
.stat .label {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-text-faint);
  font-weight: 500;
}
.stat .note {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  color: var(--color-text-faint);
  margin-top: 1px;
  opacity: 0.85;
}
[data-theme='dark'] .stats-card {
  background: color-mix(in oklab, var(--color-surface) 94%, #fff);
  border-color: var(--color-border);
}
[data-theme='dark'] .section--ai .stats-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-divider);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .stats-card {
    background: color-mix(in oklab, var(--color-surface) 94%, #fff);
    border-color: var(--color-border);
  }
  :root:not([data-theme]) .section--ai .stats-card {
    background: transparent;
    border: none;
    border-top: 1px solid var(--color-divider);
  }
}

/* ============================================================
   作品区
   ============================================================ */
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-btn {
  padding: 0.5em 1.1em;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border: 1px solid transparent;
  position: relative;
}
.filter-btn:hover { color: var(--color-text); }
.filter-btn.active {
  color: var(--color-text);
  background: var(--color-surface-2);
  border-color: var(--color-divider);
}
.filter-btn.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.work-card[hidden] { display: none; }

.work-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
  position: relative;
}
.work-cover img, .work-cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition); }
.work-card:hover .work-cover img,
.work-card:hover .work-cover svg { transform: scale(1.05); }
.work-card.featured .work-cover { aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .work-card.featured .work-cover { aspect-ratio: 4 / 3; } }

/* 精选作品·全部视图：所有卡片等宽并排（含两张「作品合集」并排一行），不拉伸变形 */
.work-grid .work-card.featured { grid-column: span 1; }

.work-body { padding: var(--space-5); }
.work-tag {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 500;
}
.work-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-2);
  letter-spacing: -0.01em;
}
.work-meta {
  font-family: var(--font-sub);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.work-meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.work-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-faint); display: inline-block; }

/* ============================================================
   关于
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-portrait {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  position: sticky;
  top: 100px;
}
@media (max-width: 860px) { .about-portrait { position: static; aspect-ratio: 3 / 2; max-width: 420px; } }

.about-text p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text);
  margin-top: var(--space-5);
  max-width: 52ch;
}
.about-text p:first-of-type { margin-top: var(--space-6); }
.about-text strong { color: var(--color-primary); font-weight: 600; }

.skills {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-8);
}
.skill h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.skill p { font-family: var(--font-sub); font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

/* About — 重新梳理的「我的」信息 */
.about-text .about-lead { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.45; color: var(--color-text); max-width: 34ch; }
.about-text .about-lead strong { color: var(--color-primary); font-weight: 600; }
.about-text .about-loc { font-family: var(--font-sub); font-size: var(--text-base); color: var(--color-text-muted); margin-top: var(--space-2); }
.about-text .about-intro { font-family: var(--font-sub); font-size: var(--text-base); line-height: 1.7; color: var(--color-text-muted); margin-top: var(--space-5); max-width: 56ch; }

.about-text .caps { margin-top: var(--space-10); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

/* 流光粒子动画属性注册 */
@property --cap-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.about-text .cap {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  transition: box-shadow .35s ease, border-color .35s ease;
}
/* 流光粒子边框效果 */
.about-text .cap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from var(--cap-angle, 0deg), transparent 0%, var(--color-primary) 10%, transparent 20%, transparent 80%, var(--color-primary) 90%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity .4s ease;
  animation: capFlow 3s linear infinite paused;
}
.about-text .caps:hover .cap::before {
  opacity: 1;
  animation-play-state: running;
}
.about-text .caps:hover .cap {
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(230,73,43,.14);
}
@keyframes capFlow {
  to { --cap-angle: 360deg; }
}
/* hover 任意卡片 → 全部展开，加号转成叉 */
.about-text .caps:hover .cap-body { max-height: 640px; opacity: 1; }
.about-text .caps:hover .cap-toggle { transform: rotate(135deg); }
.about-text .cap-head { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; color: var(--color-text); display: flex; gap: var(--space-2); align-items: baseline; }
.about-text .cap-no { color: var(--color-primary); font-weight: 700; flex: none; }
.about-text .cap-desc { font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); margin-top: var(--space-3); }
.about-text .cap-tools { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.about-text .ct { font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-muted); background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: 999px; padding: 4px 11px; }
.about-text .ct i { font-style: normal; font-weight: 700; color: var(--color-primary); margin-right: 6px; }

.about-socials { margin-top: var(--space-10); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.about-socials .soc { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text); border: 1px solid var(--color-divider); border-radius: 999px; padding: var(--space-2) var(--space-4); transition: color .2s ease, background .2s ease, border-color .2s ease; }
.about-socials .soc:hover { color: var(--color-primary); background: transparent; border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.about-socials .soc svg.soc-brand { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: contain; }
.about-socials .soc:hover svg.soc-brand { opacity: 0.85; }
.about-socials .soc svg.soc-zcool-logo { height: 20px; width: auto; flex: none; color: #2c2c2c; }
.about-socials .soc svg.soc-zcool-logo path { fill: currentColor; }
.about-socials .soc:hover svg.soc-zcool-logo { opacity: 0.85; }
[data-theme='dark'] .about-socials .soc svg.soc-zcool-logo { color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .about-socials .soc svg.soc-zcool-logo { color: #FFFFFF; }
}
[data-theme='light'] .about-socials .soc svg.soc-zcool-logo { color: #2c2c2c; }

@media (max-width: 560px) { .about-text .caps { grid-template-columns: 1fr; } }

/* ============================================================
   联系
   ============================================================ */
.contact {
  background: var(--color-ink);
  color: #ECE7DD;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact .eyebrow { color: #E6492B; }
.contact .eyebrow::before { background: #E6492B; }
.contact h2 { color: #FAF8F4; font-size: var(--text-2xl); margin-top: var(--space-4); letter-spacing: -0.02em; }
.contact p { font-family: var(--font-sub); color: #A8A097; margin-top: var(--space-5); max-width: 48ch; margin-inline: auto; font-size: var(--text-lg); }
.contact .email {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  color: #FAF8F4;
  border-bottom: 2px solid #E6492B;
  padding-bottom: var(--space-1);
}
.contact .email:hover { color: #E6492B; }

.socials {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-10);
}
.socials a {
  font-size: var(--text-sm);
  color: #A8A097;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.socials a:hover { color: #FAF8F4; }
.socials .sep { color: #4A423B; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10) var(--space-8);
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer .logo { font-size: var(--text-base); }
html[lang="en"] .footer-inner {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}
html[lang="en"] .footer-inner > span {
  max-width: 40rem;
  line-height: 1.65;
}
.footer-stats {
  margin: var(--space-3) auto 0;
  padding: 0 var(--space-4);
  max-width: 52rem;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}
.footer-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
}
#icpNotice a,
.beian-mps {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.beian-mps {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
}
.beian-mps img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 滚动入场动画 — 仅在 JS 启用时隐藏，无 JS 时内容默认可见 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--transition), transform 0.7s var(--transition); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   作品详情弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal.open { visibility: visible; opacity: 1; }
html[data-detail] { background: var(--color-bg); }
html[data-detail='work'] body > :not(#modal),
html[data-detail='post'] body > :not(#postModal),
html[data-detail='dribbble'] body > :not(#dModal) {
  visibility: hidden !important;
}
html[data-detail='work'] #modal,
html[data-detail='post'] #postModal,
html[data-detail='dribbble'] #dModal {
  visibility: visible !important;
  opacity: 1;
}
html[data-detail] .modal,
html[data-detail] .modal .modal-panel {
  transition: none;
}
html[data-detail='work'] #modal .modal-panel,
html[data-detail='post'] #postModal .modal-panel,
html[data-detail='dribbble'] #dModal .modal-panel {
  transform: none;
}
html[data-detail] body { overflow: hidden; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--color-ink) 62%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--color-bg);
  transform: translateY(16px);
  transition: transform var(--transition);
}
.modal.open .modal-panel { transform: none; }

.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) clamp(var(--space-5), 4vw, var(--space-12));
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.modal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}
.modal-back:hover { color: var(--color-text); background: var(--color-surface-2); }
.modal-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.modal-zcool,
.modal-behance {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  white-space: nowrap;
}
.modal-zcool {
  color: #E74C3C;
}
.modal-zcool:hover {
  border-color: #E74C3C;
  background: rgba(231, 76, 60, 0.06);
}
.modal-behance {
  color: var(--color-primary);
}
.modal-behance:hover { border-color: var(--color-primary); }

.modal-body {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(var(--space-8), 4vw, var(--space-16)) clamp(var(--space-5), 4vw, var(--space-12)) var(--space-24);
}
.modal-intro { margin-bottom: var(--space-10); }
.modal-title {
  font-size: var(--text-detail-title);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  text-wrap: pretty;
}
.modal-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
@media (max-width: 680px) { .modal-meta { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
.modal-meta dt { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.modal-meta dd { font-size: var(--text-sm); color: var(--color-text); }
.modal-meta dd { word-break: break-word; }
.modal-desc {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}
.modal-desc p + p { margin-top: var(--space-3); }

.modal-gallery { display: flex; flex-direction: column; gap: var(--space-3); }
.modal-fig {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
}
.modal-fig img { width: 100%; height: auto; display: block; }
.modal-fig img { transition: opacity 0.3s; }
/* ============================================================
   AI 实验室
   ============================================================ */
.section--ai { position: relative; }
.section--ai::before { content: none; }
.section--ai > .container { position: relative; z-index: 1; }
.ai-lead {
  font-family: var(--font-sub);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: min(52ch, 100%);
  line-height: 1.5;
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(var(--space-4), 2vw, var(--space-6));
  margin-top: clamp(var(--space-8), 3vw, var(--space-12));
  perspective: 1100px;
}
@media (max-width: 1080px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }

/* AI 卡片 · Spotlight + Border Beam + 轻 tilt（参考 reactbits） */
.ai-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --card-beam: var(--color-primary);
  position: relative;
  isolation: isolate;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}
.ai-card > *:not(.ai-card-beam) {
  position: relative;
  z-index: 1;
}
/* SpotlightCard：光斑跟随指针 */
.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx) var(--my),
    color-mix(in oklab, var(--card-beam) 22%, transparent),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}
.ai-card:hover::before,
.ai-card:focus-within::before {
  opacity: 1;
}
.ai-card:hover {
  border-color: color-mix(in oklab, var(--card-beam) 35%, var(--color-divider));
  box-shadow:
    0 18px 40px color-mix(in oklab, var(--card-beam) 14%, transparent),
    0 6px 16px rgba(0, 0, 0, 0.06);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
}
/* Border Beam：悬停时边框流光 */
.ai-card-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.ai-card:hover .ai-card-beam,
.ai-card:focus-within .ai-card-beam {
  opacity: 1;
}
.ai-card-beam::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 220deg,
    color-mix(in oklab, var(--card-beam) 0%, transparent) 260deg,
    color-mix(in oklab, var(--card-beam) 55%, transparent) 295deg,
    var(--card-beam) 318deg,
    #fff 328deg,
    var(--card-beam) 340deg,
    transparent 355deg
  );
  animation: ai-card-beam-spin 2.8s linear infinite;
  animation-play-state: paused;
}
.ai-card:hover .ai-card-beam::before,
.ai-card:focus-within .ai-card-beam::before {
  animation-play-state: running;
}
@keyframes ai-card-beam-spin {
  to { transform: rotate(360deg); }
}
.ai-card:nth-child(1) { --card-beam: #E6492B; }
.ai-card:nth-child(2) { --card-beam: #4C7DFF; }
.ai-card:nth-child(3) { --card-beam: #9B6BFF; }
.ai-card:nth-child(4) { --card-beam: #1DBF73; }
.ai-card:nth-child(2) .ai-card-beam::before { animation-duration: 3.2s; animation-delay: -0.6s; }
.ai-card:nth-child(3) .ai-card-beam::before { animation-duration: 2.6s; animation-delay: -1.2s; }
.ai-card:nth-child(4) .ai-card-beam::before { animation-duration: 3.4s; animation-delay: -0.3s; }

.ai-card-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
  position: relative;
}
.ai-card-icon img {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(100, 80, 180, 0.16));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.ai-card:hover .ai-card-icon img {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 12px 18px color-mix(in oklab, var(--card-beam) 28%, transparent));
}
.ai-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ai-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.7;
  min-height: 0;
}
.ai-tags {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.ai-tags span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.ai-card:hover .ai-tags span {
  border-color: color-mix(in oklab, var(--card-beam) 28%, #e5e7eb);
  color: color-mix(in oklab, var(--card-beam) 45%, #6b7280);
}
[data-theme='dark'] .ai-tags span {
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-color: var(--color-divider);
}
[data-theme='dark'] .ai-card:hover .ai-tags span {
  border-color: color-mix(in oklab, var(--card-beam) 40%, var(--color-divider));
  color: color-mix(in oklab, var(--card-beam) 55%, var(--color-text-muted));
  background: color-mix(in oklab, var(--card-beam) 10%, var(--color-surface-2));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ai-tags span {
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border-color: var(--color-divider);
  }
  :root:not([data-theme]) .ai-card:hover .ai-tags span {
    border-color: color-mix(in oklab, var(--card-beam) 40%, var(--color-divider));
    color: color-mix(in oklab, var(--card-beam) 55%, var(--color-text-muted));
    background: color-mix(in oklab, var(--card-beam) 10%, var(--color-surface-2));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-card {
    transform: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .ai-card-beam::before { animation: none; }
  .ai-card:hover { transform: none !important; }
}

.ai-flow {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(var(--space-8), 3vw, var(--space-12));
  display: none;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  color: #ECE7DD;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%),
    linear-gradient(135deg, #1A1714 0%, #12100E 48%, #1C1612 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 24px 56px rgba(20, 14, 10, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.ai-flow::before,
.ai-flow::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.ai-flow::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%),
    radial-gradient(90% 70% at 8% 100%, rgba(230, 73, 43, 0.18) 0%, transparent 55%),
    radial-gradient(80% 60% at 92% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 50%);
}
.ai-flow::after {
  width: 55%;
  height: 48%;
  right: -6%;
  top: -22%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  filter: blur(10px);
  opacity: 0.7;
}
.ai-flow > *:not(.ai-flow-shine) { position: relative; z-index: 1; }
/* hover：左→右玻璃反光 + 轻液态光斑（在文案下层） */
.ai-flow-shine {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ai-flow:hover .ai-flow-shine,
.ai-flow:focus-within .ai-flow-shine {
  opacity: 1;
}
.ai-flow-shine::before {
  display: none;
}
.ai-flow-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      72px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.26) 0%,
      rgba(255, 255, 255, 0.09) 24%,
      transparent 44%
    ),
    radial-gradient(
      118px circle at var(--mx) var(--my),
      transparent 48%,
      rgba(255, 255, 255, 0.14) 54%,
      rgba(200, 220, 255, 0.07) 60%,
      transparent 68%
    ),
    radial-gradient(
      168px circle at var(--mx) var(--my),
      transparent 64%,
      rgba(255, 255, 255, 0.06) 72%,
      transparent 80%
    );
  mix-blend-mode: screen;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ai-flow-shine::after {
    opacity: 0.55;
  }
}
@media (max-width: 860px) {
  .ai-flow { flex-direction: column; }
  .ai-flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: var(--space-4); }
}
.ai-flow-step { flex: 1 1 0; min-width: 0; }
.ai-flow-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #E6492B;
  letter-spacing: 0.2em;
}
.ai-flow-step h4 {
  color: #FAF8F4;
  font-size: var(--text-lg);
  margin-top: var(--space-2);
}
.ai-flow-step p {
  font-size: var(--text-sm);
  color: #9A948A;
  margin-top: var(--space-2);
}
.ai-flow-arrow {
  align-self: center;
  color: #5A524A;
  font-size: var(--text-lg);
  flex: none;
}

/* ============================================================
   文章版块
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-4), 1.6vw, var(--space-5));
  align-items: stretch;
  grid-auto-rows: 1fr;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  cursor: pointer;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.post-card[hidden] { display: none; }

/* 展开全部 / 收起 按钮（仅文章、作品预留） */
.expand-wrap { display: flex; justify-content: center; margin-top: var(--space-10); }
.expand-wrap[hidden] { display: none; }
.expand-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: var(--btn-on-bg);
  color: var(--btn-on-fg);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .2s ease;
}
.expand-btn:hover {
  border-color: transparent;
  background: var(--btn-on-bg);
  color: var(--btn-on-fg);
  filter: brightness(1.08);
}
[data-theme='light'] .expand-btn,
:root:not([data-theme='dark']) .expand-btn {
  background: var(--btn-line-bg);
  color: var(--btn-line-fg);
  border-color: var(--btn-line-border);
  filter: none;
}
[data-theme='light'] .expand-btn:hover,
:root:not([data-theme='dark']) .expand-btn:hover {
  background: var(--btn-line-bg);
  color: var(--btn-line-fg);
  border-color: var(--btn-line-hover-border);
  filter: none;
}
[data-theme='dark'] .expand-btn {
  background: transparent;
  color: #FFFFFF;
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  filter: none;
}
[data-theme='dark'] .expand-btn:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .expand-btn {
    background: transparent;
    color: #FFFFFF;
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
    filter: none;
  }
  :root:not([data-theme]) .expand-btn:hover {
    background: transparent;
    color: #FFFFFF;
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    filter: none;
  }
}
.expand-btn[hidden] { display: none; }
.post-card .post-cat {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 500;
}
.blog-grid .post-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  padding: 1.15rem 1.25rem 1rem;
  overflow: hidden;
  grid-column: span 1 !important;
  box-sizing: border-box;
}
.blog-grid .post-card > :not(.post-cat):not(h3):not(.post-excerpt):not(.post-meta) {
  display: none !important;
}
.blog-grid .post-card .post-cat {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-grid .post-card h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-2);
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-grid .post-card .post-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.55;
  flex: 1;
  min-height: 0;
  max-height: calc(1.55em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-grid .post-card .post-meta {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.blog-grid .post-card .post-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-grid .post-card .post-meta .dot { flex-shrink: 0; }
.blog-grid .post-card .post-read { flex-shrink: 0; }
#blogPagination { margin-top: var(--space-5); }
.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.post-card .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-faint); }
.post-card .post-read {
  margin-left: auto;
  color: var(--color-text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.post-card:hover .post-read { color: var(--color-primary); }

/* 公众号三级子分类 tab */
.subfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.subfilters[hidden] { display: none; }
.subfilters::before {
  content: "分类";
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-right: var(--space-1);
}
.subfilter-btn {
  padding: 0.4em 0.95em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  background: transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.subfilter-btn:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.subfilter-btn.active {
  color: var(--btn-on-fg);
  background: var(--btn-on-bg);
  border-color: transparent;
}

/* 主卡片标记不再改变网格：后续 CMS 新增也必须等宽两行 */
#blogGrid .post-card--main,
.blog-grid .post-card--main { grid-column: span 1 !important; }
.blog-grid .post-card--main h3 { font-size: var(--text-lg); }

/* 视频 / 动效 版块 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.video-card[hidden] { display: none; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  overflow: hidden;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-cap { padding: var(--space-5) var(--space-6) var(--space-6); }
.video-cap h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.video-cap p {
  font-family: var(--font-sub);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.video-card--tri {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
}
.video-tri {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: stretch;
  background: var(--color-surface-2);
}
.video-tri-main {
  display: block;
  position: relative;
  min-width: 0;
  background: #111;
  color: inherit;
  text-decoration: none;
}
.video-tri-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}
.video-tri-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  background: var(--color-surface-2);
}
.video-tri-thumb {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface-offset);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.video-tri-thumb:hover,
.video-tri-thumb:focus-visible {
  border-color: #f0d84a;
}
.video-tri-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
@media (max-width: 760px) {
  .video-tri {
    grid-template-columns: 1fr;
  }
  .video-tri-side {
    flex-direction: row;
    height: 88px;
    padding: 8px;
  }
}

/* ============================================================
   AI Design News 版块 — 三区块：快讯 / 今日必读 / 瀑布流
   ============================================================ */
.section--news { padding-bottom: clamp(var(--space-10), 4vw, var(--space-20)); }
.section--news .container { position: relative; }

/* 卡片容器 — 固定 24px 内边距 */
.ainews-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  position: relative;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* 头部 */
.ainews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ainews-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ainews-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}
.ainews-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}
.ainews-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-faint);
  background: var(--color-surface-2);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.ainews-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.ainews-refresh:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 5%, transparent);
}

/* 列表容器 */
.ainews-list {
  display: flex;
  flex-direction: column;
}

/* 分隔线 */
.ainews-divider {
  height: 1px;
  background: var(--color-divider);
  margin: 10px 0;
}

/* ===== 区块标题 ===== */
.ainews-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ainews-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ===== 快讯 + 今日必读（上） / 瀑布流（下） ===== */
.ainews-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.ainews-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ainews-split {
  width: 1px;
  margin: 4px 14px;
  align-self: stretch;
  background: var(--color-divider);
}
.ainews-section--flash,
.ainews-section--mustread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 2px 0;
}
.ainews-flash-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface);
}
.ainews-flash-card:hover .ainews-mustread-cover img {
  transform: scale(1.04);
}
.ainews-flash-card .ainews-mustread-cover {
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
}
.ainews-flash-card .ainews-flash-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}
.ainews-flash-card .ainews-mustread-caption {
  position: static;
  background: transparent;
  padding: 8px 2px 0;
  font-size: 15px;
}
.ainews-flash-card .ainews-mustread-desc {
  flex: 0 0 auto;
  padding: 4px 2px 0;
}
.ainews-flash-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #FF6B3D 0%, #E6492B 55%, #FF8A5C 100%);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 2px 8px rgba(230, 73, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
.ainews-mustread-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 10px;
  flex: 1;
  min-height: 0;
  align-content: start;
}
.ainews-mustread-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface);
}
.ainews-mustread-card:hover .ainews-mustread-cover img {
  transform: scale(1.04);
}
.ainews-mustread-cover {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-2);
  border-radius: 6px;
}
.ainews-mustread-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.ainews-mustread-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  background: #2b2b2b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  letter-spacing: .04em;
}
.ainews-section--mustread .ainews-mustread-caption {
  position: static;
  background: none;
  padding: 6px 2px 0;
  font-size: 12px;
}
.ainews-mustread-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 5px 8px 6px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.ainews-mustread-desc {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 8px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
/* ===== 瀑布流资讯 ===== */
.ainews-section--waterfall {
  padding: 2px 0;
}
.ainews-waterfall-list {
  --wf-duration: 36s;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.ainews-waterfall-list::-webkit-scrollbar {
  width: 3px;
}
.ainews-waterfall-list::-webkit-scrollbar-track {
  background: transparent;
}
.ainews-waterfall-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
.ainews-waterfall-track {
  display: flex;
  flex-direction: column;
}
.ainews-waterfall-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}
.ainews-waterfall-list.is-auto {
  overflow: hidden;
  padding-right: 0;
}
.ainews-waterfall-list.is-auto .ainews-waterfall-track {
  animation: ainews-waterfall-scroll var(--wf-duration) linear infinite;
  will-change: transform;
}
.ainews-waterfall-list.is-auto:hover .ainews-waterfall-track,
.ainews-waterfall-list.is-auto:focus-within .ainews-waterfall-track {
  animation-play-state: paused;
}
@keyframes ainews-waterfall-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ainews-waterfall-list.is-auto .ainews-waterfall-track {
    animation: none;
  }
  .ainews-waterfall-list.is-auto {
    overflow-y: auto;
    padding-right: 4px;
  }
}
.ainews-waterfall-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 0;
  border: none;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity .2s ease;
}
.ainews-waterfall-item:hover {
  opacity: .85;
}
.ainews-waterfall-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ainews-waterfall-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ainews-waterfall-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-faint);
}

/* 通用元信息 */
.ainews-meta-source {
  color: var(--color-text-muted);
  font-weight: 500;
}
.ainews-meta-sep {
  opacity: .5;
}
.ainews-meta-time {
  font-family: var(--font-mono);
}

/* NEW 标签 — 亮感玻璃 + 星芒 */
.ainews-new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 120, 80, 0.95) 0%, #E6492B 48%, rgba(255, 170, 90, 0.95) 100%);
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 2px 10px rgba(230, 73, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.ainews-new-ico {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
              conic-gradient(from 0deg, transparent 0 20%, #fff 0 28%, transparent 0 45%, #fff 0 52%, transparent 0 70%, #fff 0 78%, transparent 0);
  border-radius: 50%;
  opacity: 0.95;
  font-style: normal;
}

/* 加载/空态 */
.ainews-loading,
.ainews-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-faint);
  font-size: 14px;
}

/* ============================================================
   AI Designer Dashboard — Tab 切换 + 四面板
   ============================================================ */

/* Dashboard 头部 */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dashboard-header .ainews-refresh {
  flex-shrink: 0;
}
.dashboard-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(100, 80, 180, 0.18));
}
.dashboard-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
}

/* Tab 栏 */
.dashboard-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.dash-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.dash-tab:hover {
  color: var(--color-text);
  background: color-mix(in oklab, var(--color-text) 6%, transparent);
}
.dash-tab.active {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: color-mix(in oklab, var(--color-border) 70%, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.dash-tab.active svg {
  color: var(--color-primary);
}
.dash-tab svg {
  flex-shrink: 0;
}

/* 深色：选中 Tab 抬升 + 高对比（参考即梦未选半透明 / 选中高亮） */
[data-theme='dark'] .dashboard-tabs {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
[data-theme='dark'] .dash-tab {
  color: color-mix(in oklab, var(--color-text) 62%, transparent);
}
[data-theme='dark'] .dash-tab:hover {
  color: var(--color-text);
  background: color-mix(in oklab, #fff 7%, transparent);
}
[data-theme='dark'] .dash-tab.active {
  color: #FFFFFF;
  background: color-mix(in oklab, var(--color-surface) 40%, #3A414C);
  border-color: color-mix(in oklab, #fff 18%, var(--color-border));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 2px 10px rgba(0, 0, 0, 0.35);
}
[data-theme='dark'] .dash-tab.active svg {
  color: var(--color-primary-hover);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .dashboard-tabs {
    background: var(--color-surface-offset);
    border-color: var(--color-border);
  }
  :root:not([data-theme]) .dash-tab {
    color: color-mix(in oklab, var(--color-text) 62%, transparent);
  }
  :root:not([data-theme]) .dash-tab:hover {
    color: var(--color-text);
    background: color-mix(in oklab, #fff 7%, transparent);
  }
  :root:not([data-theme]) .dash-tab.active {
    color: #FFFFFF;
    background: color-mix(in oklab, var(--color-surface) 40%, #3A414C);
    border-color: color-mix(in oklab, #fff 18%, var(--color-border));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 2px 10px rgba(0, 0, 0, 0.35);
  }
  :root:not([data-theme]) .dash-tab.active svg {
    color: var(--color-primary-hover);
  }
}

/* 面板容器 — AI新闻/市场行情不设固定高度，AI工具/热门模型固定高度 */
.dashboard-body {
  position: relative;
}
.dash-panel {
  display: none;
}
.dash-panel.active {
  display: block;
}
.dash-panel-inner {
  position: relative;
}

/* News 面板内子头部（计数已去掉） */
.ainews-subheader { display: none; }

/* ============================================================
   AI Market Pulse — 市场行情面板（TradingView Widget）
   ============================================================ */
.market-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.market-panel::-webkit-scrollbar { width: 4px; }
.market-panel::-webkit-scrollbar-track { background: transparent; }
.market-panel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }

/* 顶部 3 列信息卡 */
.market-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.market-info-card {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.market-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.market-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  box-sizing: border-box;
  color: #4e5969;
}
.market-info-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
.market-info-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.market-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.market-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}
a.market-info-item {
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  margin: 0 -4px;
  padding: 2px 4px;
  transition: background 0.15s ease;
}
a.market-info-item:hover {
  background: color-mix(in oklab, var(--color-primary) 8%, transparent);
}
a.market-info-item:hover .market-info-text {
  color: var(--color-primary);
}
.market-info-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
  white-space: nowrap;
  flex: 0 0 4.5em;
  width: 4.5em;
  text-align: left;
  padding-top: 1px;
}
.market-info-text {
  flex: 1;
  min-width: 0;
  color: var(--color-text);
  text-align: left;
}

/* 自建 API 行情区块 */
.market-live {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.market-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 0;
}
.market-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.market-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.market-section-meta {
  font-size: 12px;
  color: var(--color-text-faint);
}
.market-grid {
  display: grid;
  gap: 10px;
}
.market-grid--3 { grid-template-columns: repeat(3, 1fr); }
.market-grid--4 { grid-template-columns: repeat(4, 1fr); }

.quote-card {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 80px;
  justify-content: center;
}
.quote-card-symbol {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
}
.quote-card-price {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-text);
  line-height: 1.2;
}
.quote-card-change {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.quote-card-change.up { color: #E03A3A; }
.quote-card-change.down { color: #1CA54B; }
.quote-card-volume {
  font-size: 11px;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
}
.quote-card-skel {
  background: transparent;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 13px;
}

/* 底部状态栏 */
.market-pulse-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid var(--color-divider);
}
.market-pulse-hint {
  font-size: 13px;
  color: var(--color-text-faint);
}

/* ============================================================
   AI Tools 面板
   ============================================================ */
.tools-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  position: relative;
}
.tools-panel::-webkit-scrollbar { width: 4px; }
.tools-panel::-webkit-scrollbar-track { background: transparent; }
.tools-panel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
.tools-filter {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface);
  padding: 6px 0;
  margin: -6px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tools-filter-btn {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .15s;
}
.tools-filter-btn:hover { color: var(--color-text); border-color: var(--color-text-muted); background: var(--color-surface-2); }
.tools-filter-btn.active {
  color: var(--btn-on-fg);
  background: var(--btn-on-bg);
  border-color: transparent;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 16px;
}

.tools-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--color-text);
  transition: all .15s ease;
}
.tools-item:hover {
  color: var(--color-primary);
}
.tools-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  flex-shrink: 0;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.tools-item-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 0;
}
.tools-item-logo.logo-fill,
.model-logo.logo-fill {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.tools-item-icon-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  background: #ffffff;
  letter-spacing: 0;
  text-transform: uppercase;
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
}
.tools-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tools-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.tools-item-desc {
  font-size: 12px;
  color: var(--color-text-faint);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tools-item-tag {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}
[data-theme='dark'] .tools-item-tag {
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-color: var(--color-divider);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .tools-item-tag {
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border-color: var(--color-divider);
  }
}

/* ============================================================
   Trending Models 面板
   ============================================================ */
.models-panel {
  height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 0;
}
.models-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 2px 4px 12px;
  flex-shrink: 0;
}
.models-board-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.2;
}
.models-board-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 46em;
}
.models-board-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-text-faint);
}
.models-board-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.models-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px 22px;
  flex-shrink: 0;
  margin: 2px 4px 0;
  padding: 0;
  border-bottom: 1px solid var(--color-divider);
}
.models-cat {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0 10px;
  margin: 0 0 -1px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.models-cat:hover {
  color: var(--color-text);
}
.models-cat.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.models-rules-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.models-rules-btn:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.models-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.models-table-wrap::-webkit-scrollbar { width: 3px; height: 3px; }
.models-table-wrap::-webkit-scrollbar-track { background: transparent; }
.models-table-wrap::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
.models-table {
  min-width: 860px;
}
.models-table-head,
.model-item {
  display: grid;
  grid-template-columns: 44px minmax(168px, 1.7fr) 100px 88px 88px 88px 108px;
  gap: 8px;
  align-items: center;
}
.models-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-faint);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.models-table-head span:first-child,
.models-table-head span:nth-child(n+3) {
  text-align: right;
}
.models-list {
  display: flex;
  flex-direction: column;
}
.model-item {
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--color-divider);
  text-decoration: none;
  color: var(--color-text);
  transition: background .15s ease;
}
.model-item:last-child {
  border-bottom: none;
}
.model-item:hover {
  background: color-mix(in oklab, var(--color-text) 3.5%, transparent);
}
.model-rank {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  text-align: right;
  letter-spacing: 0.02em;
}
.model-rank.top {
  color: #E85A3A;
}
.model-cell {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  text-align: right;
  white-space: nowrap;
}
.model-model {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.model-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.model-score-top {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.model-score-num {
  font-family: var(--font-num, var(--font-mono));
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
}
.model-go {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-faint);
  line-height: 1;
}
.model-ev {
  display: inline-flex;
  gap: 3px;
}
.model-ev i {
  width: 10px;
  height: 4px;
  border-radius: 1px;
  background: #e5e7eb;
  display: block;
}
.model-ev i:nth-child(1).on { background: #22c55e; }
.model-ev i:nth-child(2).on { background: #eab308; }
.model-ev i:nth-child(3).on { background: #f0523c; }
[data-theme='dark'] .model-ev i { background: color-mix(in oklab, #fff 16%, transparent); }
[data-theme='dark'] .model-ev i:nth-child(1).on { background: #22c55e; }
[data-theme='dark'] .model-ev i:nth-child(2).on { background: #eab308; }
[data-theme='dark'] .model-ev i:nth-child(3).on { background: #f0523c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .model-ev i { background: color-mix(in oklab, #fff 16%, transparent); }
  :root:not([data-theme]) .model-ev i:nth-child(1).on { background: #22c55e; }
  :root:not([data-theme]) .model-ev i:nth-child(2).on { background: #eab308; }
  :root:not([data-theme]) .model-ev i:nth-child(3).on { background: #f0523c; }
}
.model-org {
  font-size: 12px;
  color: var(--color-text-faint);
  line-height: 1.3;
}
.model-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.model-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-meta {
  font-size: 12px;
  color: var(--color-text-faint);
  display: flex;
  gap: 8px;
  align-items: center;
}
.model-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
/* 趋势徽章 — 胶囊 + 渐变玻璃 */
.model-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.model-trend-ico {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  font-style: normal;
  display: inline-block;
  position: relative;
}
/* HOT：火焰感红橙渐变 */
.model-trend.hot {
  background: linear-gradient(105deg, #FF7A3D 0%, #E6492B 42%, #FF9A4A 100%);
  box-shadow:
    0 2px 12px rgba(230, 73, 43, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.model-trend.hot .model-trend-ico {
  background:
    radial-gradient(circle at 50% 78%, #FFE566 0 28%, transparent 30%),
    linear-gradient(180deg, #FFD54A 0%, #FF8A1A 55%, #E6492B 100%);
  clip-path: polygon(50% 0%, 68% 28%, 82% 18%, 78% 48%, 95% 62%, 70% 100%, 50% 88%, 30% 100%, 5% 62%, 22% 48%, 18% 18%, 32% 28%);
  border-radius: 40% 40% 45% 45%;
}
/* UP：上升箭头 + 活力橙绿 */
.model-trend.rise {
  background: linear-gradient(135deg, #34D399 0%, #10B981 45%, #FBBF24 100%);
  box-shadow:
    0 2px 12px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.model-trend.rise .model-trend-ico {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #fff;
  background: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
/* STEADY：平稳玻璃青绿 */
.model-trend.steady {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.92) 0%, #14B8A6 50%, rgba(56, 189, 248, 0.9) 100%);
  box-shadow:
    0 2px 12px rgba(20, 184, 166, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.model-trend.steady .model-trend-ico {
  height: 2px;
  width: 10px;
  margin-top: 1px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 -3px 0 0 rgba(255, 255, 255, 0.55), 0 3px 0 0 rgba(255, 255, 255, 0.55);
}

/* 模型 logo */
.model-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.model-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 0;
}
.model-logo-fb {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
}
.model-desc {
  font-size: 12px;
  color: var(--color-text-faint);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dashboard 响应式 */
@media (max-width: 720px) {
  .market-info-cards { grid-template-columns: 1fr; }
  .tv-grid--4 .tv-card { flex: 0 0 180px; }
  .tv-grid--3 .tv-card { flex: 0 0 220px; }
  .tv-grid--2 .tv-card { flex: 0 0 280px; }
  .tools-grid { grid-template-columns: 1fr; }
  .dashboard-tabs { gap: 2px; }
  .dash-tab { padding: 6px 6px; font-size: 11px; }
  .dash-tab svg { display: none; }
}
@media (max-width: 480px) {
  .tv-grid--4 .tv-card { flex: 0 0 160px; }
  .tv-grid--3 .tv-card { flex: 0 0 200px; }
  .tv-grid--2 .tv-card { flex: 0 0 260px; }
}

/* 注：原「市场总览」悬浮卡片 CSS 已移除（2026-08-02） */

/* ===== 响应式 ===== */
@media (max-width: 560px) {
  .ainews-card { padding: 16px; }
  .ainews-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ainews-split { display: none; }
  .ainews-mustread-list { min-height: 0; }
  .ainews-mustread-caption { font-size: 11px; }
  .ainews-flash-card .ainews-mustread-caption { font-size: 13px; }
  .ainews-mustread-desc { font-size: 11px; }
  .ainews-mustread-tag { font-size: 9px; padding: 2px 5px; }
  .ainews-waterfall-title { font-size: 11px; }
  .ainews-waterfall-list { max-height: 220px; }
}



/* 关于我：左侧主视觉铺满 4:5 框，不撑开右侧文案 */
.about-portrait video,
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-modal-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-soft);
  background: color-mix(in oklab, var(--color-primary-soft) 45%, transparent);
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

/* ============================================================
   Markdown 排版（文章阅读）
   ============================================================ */
.md-article {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.md-article .post-head { margin-bottom: var(--space-8); }
.md-article .post-head .post-cat {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 500;
}
.md-article .post-head .post-title {
  margin: var(--space-3) 0 0;
  font-size: var(--text-detail-title);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.md-article .post-head .post-dek {
  margin: var(--space-3) 0 0;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.md-article .post-head .post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.md-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-text);
}
.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4 {
  text-wrap: pretty;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.md-body h1 {
  font-size: 1.375rem;
  margin-block: 1.75em 0.7em;
}
.md-body h2 {
  font-size: 1.25rem;
  margin-block: 2em 0.7em;
}
.md-body h3 { font-size: 1.125rem; margin-block: 1.6em 0.55em; }
.md-body h4, .md-body h5, .md-body h6 { margin-block: 1.35em 0.45em; }
.md-body p { margin-block: 0 1.15em; }
.md-body strong { font-weight: 700; }
.md-body em { font-style: italic; }
.md-body del { color: var(--color-text-faint); }
.md-body a { color: var(--color-primary); border-bottom: 1px solid var(--color-primary-soft); }
.md-body a:hover { border-bottom-color: var(--color-primary); }
.md-body img { border-radius: var(--radius-md); border: 1px solid var(--color-divider); margin-block: var(--space-4); }

.md-body ul, .md-body ol { margin-block: var(--space-4); padding-left: 1.4em; }
.md-body ul { list-style: disc; }
.md-body ol { list-style: decimal; }
.md-body li { margin-block: var(--space-2); }
.md-body li::marker { color: var(--color-primary); }

.md-body blockquote {
  margin-block: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-muted);
}
.md-body blockquote p { margin-block: var(--space-2); }

.md-body code {
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.875em;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}
.md-body .md-pre {
  margin-block: var(--space-6);
  background: var(--color-ink);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  overflow-x: auto;
  position: relative;
}
.md-body .md-pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: var(--space-3); right: var(--space-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: #5E5850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.md-body .md-pre code {
  background: none; border: none; padding: 0;
  color: #ECE7DD;
  font-size: var(--text-sm);
  line-height: 1.7;
  display: block;
  white-space: pre;
}

.md-body hr {
  border: none;
  height: 1px;
  background: var(--color-divider);
  margin-block: var(--space-10);
}

.md-body .md-table-wrap { overflow-x: auto; margin-block: var(--space-6); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.md-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.md-body th, .md-body td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); }
.md-body th {
  background: var(--color-surface-2);
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
}
.md-body tr:last-child td { border-bottom: none; }

/* ============================================================
   文章卡片：转载来源标记 + 阅读原文横幅
   ============================================================ */
.post-src { color: var(--color-primary); }

.post-source-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary-soft) 50%, transparent);
  border: 1px solid var(--color-primary-soft);
  padding: 0.5em 0.9em;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.post-source-banner:hover {
  background: color-mix(in oklab, var(--color-primary-soft) 78%, transparent);
}

/* ============================================================
   站酷精选（AI 实验室内）
   ============================================================ */
.vis-wrap,
.zcool-wrap { margin-top: clamp(var(--space-12), 5vw, var(--space-20)); }

.section--ai {
  --ai-lab-gap: 1.5rem;
  --ai-lab-track: var(--color-surface-2);
  --ai-tab-idle-bg: var(--btn-idle-bg);
  --ai-tab-idle-fg: var(--btn-idle-fg);
  --ai-tab-on-bg: var(--btn-on-bg);
  --ai-tab-on-fg: var(--btn-on-fg);
}
[data-theme='dark'] .section--ai {
  --ai-tab-idle-bg: var(--btn-idle-bg);
  --ai-tab-idle-fg: var(--btn-idle-fg);
  --ai-tab-on-bg: var(--btn-on-bg);
  --ai-tab-on-fg: var(--btn-on-fg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .section--ai {
    --ai-tab-idle-bg: var(--btn-idle-bg);
    --ai-tab-idle-fg: var(--btn-idle-fg);
    --ai-tab-on-bg: var(--btn-on-bg);
    --ai-tab-on-fg: var(--btn-on-fg);
  }
}
.ai-lab-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  margin: clamp(var(--space-8), 3vw, var(--space-12)) 0 0;
  padding: 10px 0 2px;
  background: var(--ai-lab-track);
  border: 0;
  border-radius: 0;
  position: sticky;
  top: 68px;
  z-index: 8;
  box-shadow: 0 var(--ai-lab-gap) 0 0 var(--ai-lab-track);
}
.ai-lab-tab {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ai-tab-idle-fg);
  background: var(--ai-tab-idle-bg);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}
.ai-lab-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ai-lab-tab:hover {
  color: var(--color-text);
  filter: brightness(1.06);
}
.ai-lab-tab.active,
.ai-lab-tab.active:hover {
  color: var(--ai-tab-on-fg);
  background: var(--ai-tab-on-bg);
  border-color: transparent;
  filter: none;
}
/* 浅色未选是 rgba(0,0,0,.05)，选中是橙红渐变：过渡 background 时浏览器会把 background-color 插到黑，闪一下 */
[data-theme='light'] .ai-lab-tab,
:root:not([data-theme='dark']) .ai-lab-tab {
  transition: color .15s ease, border-color .15s ease, filter .15s ease;
}
[data-theme='light'] .ai-lab-tab.active,
[data-theme='light'] .ai-lab-tab.active:hover,
:root:not([data-theme='dark']) .ai-lab-tab.active,
:root:not([data-theme='dark']) .ai-lab-tab.active:hover {
  background-color: #FF4D17;
  background-image: linear-gradient(90deg, #FF4D17 0%, #FF791A 100%);
}
#ai .vis-wrap[data-ai-panel],
#ai .zcool-wrap[data-ai-panel] {
  margin-top: var(--ai-lab-gap);
  scroll-margin-top: calc(68px + 5.5rem);
}
/* Tab 面板很高：.reveal 的 12% 阈值在点导航跳到 #ai 时经常达不到，会留下一整块空白 */
.js #ai [data-ai-panel].reveal {
  opacity: 1;
  transform: none;
}
#ai .vis-wrap[data-ai-panel][hidden],
#ai .zcool-wrap[data-ai-panel][hidden] { display: none !important; }
.section--ai .stats-card {
  margin-top: clamp(1.4rem, 3vw, 2.25rem);
  padding: clamp(1.4rem, 3vw, 2.25rem) 0 0.15rem;
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-divider);
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 760px) {
  .ai-lab-tabs { padding: 8px 0 2px; gap: 8px 10px; }
  .ai-lab-tab { font-size: 13px; padding: 7px 12px; }
}

.vis-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: var(--space-8); }
.vis-title { font-size: var(--text-xl); margin-top: var(--space-3); }
.vis-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.vis-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.vis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.vis-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.vis-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--color-surface-2);
  transform-origin: center;
  transition: transform 0.55s var(--transition);
}
.vis-card:hover img {
  transform: scale(1.06);
}
.vis-card img.vis-card-img--shift {
  object-position: center 72%;
}
.vis-card-cover {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-2);
  background-image:
    radial-gradient(120% 90% at 18% 12%, hsla(var(--cover-h), 48%, 52%, .36), transparent 58%),
    linear-gradient(165deg, var(--color-surface-2), var(--color-surface));
  color: var(--color-text);
  user-select: none;
  transform-origin: center;
  transition: transform 0.55s var(--transition);
}
.vis-card-cover span {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.52;
  line-height: 1;
}
.vis-card:hover .vis-card-cover {
  transform: scale(1.06);
}
.vis-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vis-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.vis-card-body h4::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.28em;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity var(--transition), transform var(--transition);
}
.vis-card:hover .vis-card-body h4::after,
.vis-card:focus-visible .vis-card-body h4::after {
  opacity: 1;
  transform: none;
}
.vis-card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1100px) { .vis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .vis-grid { grid-template-columns: 1fr; } }
#visGrid,
#promptGrid,
#siteGrid,
#researchGrid,
#vizGrid,
#paperGrid,
#gameGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  #visGrid,
  #promptGrid,
  #siteGrid,
  #researchGrid,
  #vizGrid,
  #paperGrid,
  #gameGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  #visGrid,
  #promptGrid,
  #siteGrid,
  #researchGrid,
  #vizGrid,
  #paperGrid,
  #gameGrid { grid-template-columns: 1fr; }
}
.vis-card[hidden] { display: none !important; }
.xhs-pagination[hidden] { display: none !important; }
.vis-grid,
.stock-grid,
.xhs-grid,
.xhs-pagination {
  overflow-anchor: none;
}
.vis-wrap .xhs-pagination { margin-top: var(--space-6); }
.vis-wrap .filters { flex-shrink: 0; }
.vis-head > div .vis-lead {
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  margin: 8px 0 0;
  max-width: none;
  white-space: nowrap;
  margin-left: 0;
}

.stock-wrap { margin-top: 0; }
.stock-wrap .filters { flex-shrink: 0; }
.stock-wrap .vis-lead {
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  margin: 8px 0 0;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .stock-wrap .vis-lead { white-space: normal; }
}
.stock-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stock-grid { grid-template-columns: 1fr; } }

.zcool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: var(--space-8); }
.zcool-title { font-size: var(--text-xl); margin-top: var(--space-3); }
.zcool-lead {
  font-family: var(--font-sub);
  margin-top: 0;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  max-width: min(48ch, 100%);
  line-height: 1.5;
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
}

.zcool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}
@media (max-width: 760px) { .zcool-grid { grid-template-columns: 1fr; } }

.zcool-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.zcool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.zcool-banner {
  position: relative;
  padding: var(--space-6) var(--space-6) var(--space-8);
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  color: #FAF8F4;
}
.zcool-banner--duanwu { background: linear-gradient(135deg, #1C2B33 0%, #2E4A4F 58%, #E6492B 150%); }
.zcool-banner--wuyi   { background: linear-gradient(135deg, #2A2118 0%, #5A3A22 55%, #E6492B 150%); }

.zcool-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: #FAF8F4;
  border: 1px solid rgba(250, 248, 244, 0.35);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-full);
}
.zcool-banner h4 {
  font-size: var(--text-xl);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.zcool-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.zcool-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}
.zcool-tags {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.zcool-tags span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
}
[data-theme='dark'] .zcool-tags span {
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-color: var(--color-divider);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .zcool-tags span {
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border-color: var(--color-divider);
  }
}
.zcool-go {
  margin-top: auto;
  padding-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: var(--text-sm);
}
.zcool-go svg { transition: transform var(--transition); }
.zcool-card:hover .zcool-go svg { transform: translateX(3px); }

/* ============================================================
   本次更新：副文本右置 / 能力卡折叠 / 社交 Logo / 公众号间距 / 私域 / 视频详情
   ============================================================ */

/* 大标题右侧副文本：右对齐、更小字号、尽量单行 */
.ai-lead,
.head-lead,
.zcool-lead {
  font-family: var(--font-sub);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: right;
  margin-left: auto;
  max-width: min(52ch, 100%);
  white-space: nowrap;
}
.vis-lead {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: right;
  margin-left: auto;
  max-width: min(52ch, 100%);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .ai-lead,
  .head-lead,
  .vis-lead,
  .zcool-lead {
    white-space: normal;
    text-align: left;
    margin-left: 0;
  }
}
.head-lead {
  margin-top: 0;
}

/* 留言板英文副文案较长：右对齐、最多两行，不撑出容器 */
#guestbook .head-lead {
  white-space: normal;
  text-align: right;
  min-width: 0;
  flex: 1 1 16rem;
  max-width: min(42ch, 62%);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 720px) {
  #guestbook .head-lead {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
  }
}

/* 公众号子分类与正文间距加大 */
.subfilters { margin-bottom: 2.5rem; }

/* 能力卡：可折叠 accordion */
.about-text .cap-head {
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.about-text .cap-head:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}
.about-text .cap-toggle {
  margin-left: auto;
  width: 18px; height: 18px;
  flex: none;
  position: relative;
  transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.about-text .cap-toggle::before,
.about-text .cap-toggle::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
}
.about-text .cap-toggle::before { left: 50%; top: 3px; width: 2px; height: 12px; transform: translateX(-50%); }
.about-text .cap-toggle::after { top: 50%; left: 3px; height: 2px; width: 12px; transform: translateY(-50%); }
.about-text .cap.open .cap-toggle { transform: rotate(135deg); }
.about-text .cap-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
}
.about-text .cap.open .cap-body { max-height: 640px; opacity: 1; }

/* 视频卡片现在是可点击链接 */
.video-card { display: block; text-decoration: none; color: inherit; }

/* 私域 · 小红书 */
.xhs-author { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-8); }
.xhs-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 2px solid var(--color-primary);
  background: var(--color-surface-2);
}
.xhs-name { font-weight: 600; font-size: var(--text-lg); line-height: 1.3; }
.xhs-profile { display: inline-block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-primary); }
.xhs-profile:hover { text-decoration: underline; }
.xhs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3vw, 3rem);
}
@media (max-width: 860px) { .xhs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .xhs-grid { grid-template-columns: 1fr; } }
.xhs-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.xhs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.xhs-cover { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; display: block; background: var(--color-surface-2); }
.xhs-card-body { padding: var(--space-4); }
.xhs-card-title { font-size: var(--text-sm); font-weight: 600; line-height: 1.45; }
.xhs-card-date { font-family: var(--font-sub); margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-faint); }
.xhs-hint { font-family: var(--font-sub); margin-top: var(--space-3); font-size: var(--text-xs); font-weight: 500; color: var(--color-primary); }
.xhs-stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); }
.xhs-stat b { color: var(--color-text); font-weight: 600; margin-left: 2px; }
.xhs-badge {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  background: var(--color-primary); color: #FAF8F4;
  font-size: var(--text-xs); font-weight: 600;
  padding: 2px 10px; border-radius: 999px; letter-spacing: .05em;
}
.xhs-note { margin-top: var(--space-8); font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.7; }
.xhs-note code { font-family: var(--font-mono); background: var(--color-surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* 私域分类筛选 */
.xhs-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: 2.5rem; }
.xhs-filter-btn {
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-text-muted); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px;
  padding: 5px 16px; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.xhs-filter-btn:hover { border-color: var(--color-primary); color: var(--color-text); }
.xhs-filter-btn.active { background: var(--btn-on-bg); color: var(--btn-on-fg); border-color: transparent; }

/* 私域分页 */
.xhs-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; margin-top: var(--space-8);
}
.xhs-page-btn {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-muted); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  padding: 8px 20px; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.xhs-page-btn:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-text); }
.xhs-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.xhs-page-btn.active { background: var(--btn-on-bg); color: var(--btn-on-fg); border-color: transparent; }
.xhs-page-btn.active:hover:not(:disabled) { color: var(--btn-on-fg); border-color: transparent; }
.xhs-page-nums { display: inline-flex; align-items: center; gap: 8px; }
.xhs-page-num { min-width: 36px; padding: 8px 10px; text-align: center; }
.xhs-page-ellipsis {
  font-size: var(--text-sm); color: var(--color-text-faint);
  padding: 0 2px; user-select: none;
}
.xhs-page-info { font-size: var(--text-xs); color: var(--color-text-faint); }
/* 文章模块底部小字独立间距（不影响分页内的 .xhs-page-info） */
#blog > .container > .xhs-page-info { margin-top: 2.5rem; }

/* 私域平台切换（小红书 / Dribbble 同频） */
.pd-tabs {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--color-surface-2); border: 1px solid var(--color-divider);
  border-radius: 999px;
}
.pd-tab {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted); background: transparent; border: none;
  padding: 7px 22px; border-radius: 999px; cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.pd-tab:hover { color: var(--color-text); }
.pd-tab.active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm); }
.pd-view[hidden] { display: none; }
.pd-view { display: block; }

/* 私域顶部栏：Tab + 作者信息同行 */
.pd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}
/* 确保 Tab 容器和作者行垂直居中对齐 */
.pd-topbar > .pd-tabs { align-self: center; margin-bottom: 0; }
.pd-topbar > .pd-author { align-self: center; }
.pd-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.pd-author[hidden] { display: none; }
.pd-author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: none;
  border: 2px solid var(--color-primary);
  background: var(--color-surface-2);
}
.pd-author-name { font-weight: 600; font-size: var(--text-base); line-height: 1.3; }
.pd-author-link {
  display: inline-block; margin-top: 2px;
  font-size: var(--text-sm); color: var(--color-primary);
}
@media (max-width: 640px) {
  .pd-topbar { flex-direction: column; align-items: flex-start; }
}

/* Dribbble 卡片：可点击查看原图，封面按比例更接近原作 */
.dribbble-card { cursor: pointer; }
.dribbble-card .xhs-cover { aspect-ratio: 4 / 3; }
.xhs-card-cat {
  font-family: var(--font-sub); margin-top: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em;
  color: var(--color-text-muted); text-transform: none;
}

/* 视频二级详情页（带声音） */
.video-detail { max-width: 920px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--space-5); }
.video-detail .back-link { display: inline-block; margin-bottom: var(--space-6); font-size: var(--text-sm); color: var(--color-primary); }
.video-detail .back-link:hover { text-decoration: underline; }
.video-detail-frame { border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-detail-frame video { width: 100%; display: block; max-height: 72vh; background: #000; }
.video-detail h1 {
  margin-top: var(--space-6);
  font-size: var(--text-detail-title);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.video-detail-cap { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-base); }
.video-detail-tip { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-faint); }

/* 详情页：主播放器 + 右侧分集（YouTube / B 站） */
.video-detail--watch { max-width: 1240px; }
.vd-watch { display: block; }
.video-detail--watch .vd-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}
.vd-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-lg);
}
.vd-stage video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}
.video-detail--watch .vd-stage {
  min-height: min(72vh, 820px);
  height: min(72vh, 820px);
}
.video-detail--watch .vd-stage video {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.vd-plist {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(72vh, 820px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.vd-plist-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 650;
}
.vd-plist-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}
.vd-plist-list {
  flex: 1;
  overflow: auto;
}
.vd-plist-item {
  display: flex;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--color-divider);
  border-left: 3px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.vd-plist-item:hover { background: var(--color-surface-2); }
.vd-plist-item.is-on {
  background: var(--color-surface-2);
  border-left-color: var(--color-primary);
}
.vd-plist-thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 128px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.vd-plist-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vd-plist-no {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.vd-plist-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.vd-plist-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}
.vd-plist-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--color-text);
}
.vd-now {
  font-size: 11px;
  font-weight: 650;
  color: var(--color-primary);
}
.vd-prompt {
  margin-top: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.vd-prompt-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.vd-prompt-hd h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.vd-copy {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.vd-copy:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.vd-prompt pre {
  margin: 0;
  padding: 16px 18px 22px;
  max-height: min(62vh, 720px);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text);
}
@media (max-width: 900px) {
  .video-detail--watch .vd-watch { grid-template-columns: 1fr; }
  .video-detail--watch .vd-stage {
    height: min(70vh, 640px);
    min-height: 420px;
  }
  .vd-plist { max-height: none; }
}

/* 返回顶部悬浮按钮 */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 120;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease, border-color .2s ease, color .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--btn-on-bg); color: var(--btn-on-fg); border-color: transparent; }
.back-to-top:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .2s ease; transform: none; }
}

/* ============================================================
   私域模块重构：平台 Tab
   ============================================================ */

/* 平台 Tab 样式 */
.pd-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  flex-shrink: 0;
}
.pd-tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  padding: 7px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}
.pd-tab:hover { color: var(--color-text); }
.pd-tab.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   留言板（站酷风格）
   ============================================================ */
.gb-wrap {
  max-width: 720px;
  margin-inline: auto;
}
.gb-form {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.gb-textarea-wrap {
  position: relative;
  margin-bottom: var(--space-4);
}
.gb-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  padding-right: 96px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  resize: vertical;
  min-height: 100px;
  transition: border-color .2s ease;
}
.gb-input:focus { outline: none; border-color: var(--color-primary); }
.gb-input::placeholder { color: var(--color-text-faint); }
.gb-count {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
}
.gb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.gb-name-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.gb-name-label svg { flex-shrink: 0; color: var(--color-primary); }
.gb-name-input {
  width: 140px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color .2s ease;
}
.gb-name-input:focus { outline: none; border-color: var(--color-primary); }
.gb-submit {
  height: 36px;
  padding: 0 14px;
  box-sizing: border-box;
}

/* 表情 / 图片工具按钮 + 面板 */
.gb-tools {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.gb-tool-btn,
.gb-emoji-btn {
  position: static;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .12s ease, color .2s ease;
}
.gb-tool-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.gb-tool-btn:hover,
.gb-emoji-btn:hover { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }
.gb-tool-btn:active,
.gb-emoji-btn:active { transform: scale(.94); }
.gb-emoji-panel {
  position: absolute;
  top: 52px;
  right: 12px;
  width: 300px;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(8, 32px);
  gap: 4px;
  justify-content: center;
  align-content: start;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  z-index: 20;
}
.gb-emoji-panel[hidden] { display: none; }
.gb-emoji-panel button {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0;
  border: none;
  background: transparent;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .1s ease;
}
.gb-emoji-panel button img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}
.gb-emoji-panel button:hover { background: var(--color-primary-soft); transform: scale(1.08); }

/* 待发图片预览（最多 3 张，一排均分） */
.gb-preview-list {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
  align-items: start;
}
.gb-preview-list[hidden] { display: none; }
.gb-preview {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}
.gb-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.gb-preview-rm {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gb-preview-rm svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.gb-preview-rm:hover { background: var(--color-primary); }

/* 留言图片：最多 3 张一排，单张不超过 1/3 宽 */
.gb-item-images {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
}
.gb-item-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  aspect-ratio: 1 / 1;
}
.gb-item-image a { display: block; width: 100%; height: 100%; }
.gb-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 留言列表 */
.gb-list { display: flex; flex-direction: column; gap: var(--space-4); }
.gb-pagination[hidden] { display: none; }
.gb-pagination { margin-top: var(--space-6); }

/* 单条留言 */
.gb-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.gb-item.is-enter {
  animation: gbIn .35s ease both;
}
@keyframes gbIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.gb-item-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
}
[data-theme='dark'] .gb-item-avatar {
  background: color-mix(in oklab, color-mix(in oklab, #ffddc5 45%, #96efff) 22%, var(--color-surface));
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .gb-item-avatar {
    background: color-mix(in oklab, color-mix(in oklab, #ffddc5 45%, #96efff) 22%, var(--color-surface));
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
  }
}
.gb-item-body { flex: 1; min-width: 0; }
.gb-item-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.gb-item-name { font-weight: 600; font-size: var(--text-sm); }
.gb-item-time { font-size: var(--text-xs); color: var(--color-text-faint); }
.gb-item-text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
}

/* 留言删除按钮 */
.gb-item-del {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  width: 28px; height: 28px;
  border: none; border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-faint);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s ease, background .2s ease;
}
.gb-item-del:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
[data-theme='dark'] .gb-input:focus,
[data-theme='dark'] .gb-name-input:focus {
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
}
[data-theme='dark'] .gb-name-label svg {
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
}
[data-theme='dark'] .gb-tool-btn:hover,
[data-theme='dark'] .gb-emoji-btn:hover {
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
}
[data-theme='dark'] .gb-emoji-panel button:hover {
  background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
}
[data-theme='dark'] .gb-item-del:hover {
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
  background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
}
[data-theme='dark'] .gb-preview-rm:hover {
  background: color-mix(in oklab, #96efff 55%, #ffddc5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .gb-input:focus,
  :root:not([data-theme]) .gb-name-input:focus {
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  }
  :root:not([data-theme]) .gb-name-label svg {
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
  }
  :root:not([data-theme]) .gb-tool-btn:hover,
  :root:not([data-theme]) .gb-emoji-btn:hover {
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
  }
  :root:not([data-theme]) .gb-emoji-panel button:hover {
    background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
  }
  :root:not([data-theme]) .gb-item-del:hover {
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
    background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
  }
  :root:not([data-theme]) .gb-preview-rm:hover {
    background: color-mix(in oklab, #96efff 55%, #ffddc5);
  }
}

/* 空状态 */
.gb-empty {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.gb-empty-art { margin-bottom: var(--space-6); }
.gb-empty-art svg { margin-inline: auto; }
.gb-empty-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.gb-empty-hint {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ============================================================
   暗色可读性 & 选中态（参考即梦：正文高亮 / 次级≈60%白 / 选中抬升或主色）
   ============================================================ */
[data-theme='dark'] .nav a,
[data-theme='dark'] .filter-btn,
[data-theme='dark'] .subfilter-btn,
[data-theme='dark'] .xhs-filter-btn,
[data-theme='dark'] .pd-tab {
  color: color-mix(in oklab, var(--color-text) 62%, transparent);
}
[data-theme='dark'] .nav a:hover,
[data-theme='dark'] .filter-btn:hover,
[data-theme='dark'] .subfilter-btn:hover,
[data-theme='dark'] .xhs-filter-btn:hover,
[data-theme='dark'] .pd-tab:hover {
  color: var(--color-text);
}
[data-theme='dark'] .nav a::after {
  background: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
}
[data-theme='dark'] .xhs-filter-btn:hover:not(.active),
[data-theme='dark'] .subfilter-btn:hover:not(.active),
[data-theme='dark'] .tools-filter-btn:hover:not(.active),
[data-theme='dark'] .xhs-page-btn:hover:not(:disabled):not(.active) {
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
}
[data-theme='dark'] .filter-btn.active {
  color: #FFFFFF;
  background: linear-gradient(90deg,
    color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
    color-mix(in oklab, #96efff 12%, var(--color-surface-2))
  );
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
}
[data-theme='dark'] .filter-btn.active::after {
  background: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 100%);
  width: 22px;
  height: 2.5px;
}
[data-theme='dark'] .models-cat.active {
  position: relative;
  color: #96efff;
  background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom-color: transparent;
}
[data-theme='dark'] .models-cat.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  pointer-events: none;
}
[data-theme='dark'] .subfilter-btn.active {
  color: var(--btn-on-fg);
  background: var(--btn-on-bg);
  border-color: transparent;
}
[data-theme='dark'] .pd-tab.active {
  color: #FFFFFF;
  background: var(--color-surface-offset);
  box-shadow:
    0 0 0 1px color-mix(in oklab, #fff 14%, var(--color-border)),
    var(--shadow-sm);
}
[data-theme='dark'] .xhs-filter-btn.active,
[data-theme='dark'] .xhs-page-btn.active {
  color: var(--btn-on-fg);
  background: var(--btn-on-bg);
  border-color: transparent;
}
[data-theme='dark'] .ai-logo-item {
  border-color: color-mix(in oklab, #fff 12%, var(--color-border));
  background: var(--color-surface);
}
[data-theme='dark'] .ai-logo-item:hover {
  border-color: color-mix(in oklab, #fff 22%, var(--color-border));
  background: var(--color-surface-2);
}
[data-theme='dark'] .ai-logo-item b {
  color: var(--color-text-muted);
}
[data-theme='dark'] .ai-logo-item:hover b {
  color: var(--color-text);
}
html[data-theme='dark'] .gh-star-btn:hover,
html[data-theme='dark'] .lang-toggle:hover,
html[data-theme='dark'] .theme-toggle:hover {
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  color: #96efff;
}
html[data-theme='dark'] .gh-star-btn:hover {
  background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 8%, transparent);
}
html[data-theme='dark'] .gh-star-btn:hover > span,
html[data-theme='dark'] .lang-toggle:hover [data-lang-label],
html[data-theme='dark'] .lang-toggle:hover [data-lang-label-en],
html[data-theme='dark'] .lang-toggle:hover i,
html[lang="zh-CN"][data-theme='dark'] .lang-toggle:hover [data-lang-label],
html:not([lang="en"])[data-theme='dark'] .lang-toggle:hover [data-lang-label],
html[lang="en"][data-theme='dark'] .lang-toggle:hover [data-lang-label-en] {
  background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[data-theme='dark'] .gh-star-btn:hover svg {
  color: #96efff;
  fill: #96efff;
}
html[data-theme='dark'] .theme-toggle:hover svg {
  color: #96efff;
}
[data-theme='dark'] .expand-btn:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  filter: none;
}
[data-theme='dark'] .modal-back:focus-visible,
[data-theme='dark'] #vBack:focus-visible {
  outline-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  border-radius: var(--radius-full);
}
[data-theme='dark'] .modal-zcool,
[data-theme='dark'] .modal-behance,
[data-theme='dark'] .post-modal-badge,
[data-theme='dark'] .post-source-banner {
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  background: linear-gradient(90deg,
    color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
    color-mix(in oklab, #96efff 12%, var(--color-surface-2))
  );
}
[data-theme='dark'] .modal-zcool:hover,
[data-theme='dark'] .modal-behance:hover,
[data-theme='dark'] .post-source-banner:hover {
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  background: linear-gradient(90deg,
    color-mix(in oklab, #ffddc5 18%, var(--color-surface-2)),
    color-mix(in oklab, #96efff 18%, var(--color-surface-2))
  );
}
[data-theme='dark'] .modal-zcool > span,
[data-theme='dark'] .modal-behance > span {
  background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme='dark'] .post-modal-badge {
  color: #96efff;
  -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%),
    linear-gradient(90deg,
      color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
      color-mix(in oklab, #96efff 12%, var(--color-surface-2))
    );
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
}
[data-theme='dark'] .modal .post-head .post-cat,
[data-theme='dark'] .modal .work-tag,
[data-theme='dark'] .modal .post-source-banner,
[data-theme='dark'] .modal .md-body a,
[data-theme='dark'] .modal .md-body li::marker,
[data-theme='dark'] .modal .md-body code,
[data-theme='dark'] .video-detail .back-link {
  color: #96efff;
}
[data-theme='dark'] .modal .md-body a {
  border-bottom-color: color-mix(in oklab, #96efff 40%, var(--color-border));
}
[data-theme='dark'] .modal .md-body a:hover {
  border-bottom-color: #96efff;
}
[data-theme='dark'] .modal .md-body blockquote {
  border-left-color: #96efff;
}
[data-theme='dark'] .modal .md-body code {
  border-color: color-mix(in oklab, #96efff 40%, var(--color-border));
}
[data-theme='dark'] .md-body .md-pre code {
  color: #ECE7DD;
  border-color: transparent;
}
[data-theme='dark'] .vd-copy {
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  color: #FFFFFF;
  background: transparent;
}
[data-theme='dark'] .vd-copy:hover {
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
}
[data-theme='dark'] .vd-plist-item.is-on {
  border-left-color: color-mix(in oklab, #96efff 55%, #ffddc5);
}
[data-theme='dark'] ::selection {
  background: var(--color-primary);
  color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nav a,
  :root:not([data-theme]) .filter-btn,
  :root:not([data-theme]) .subfilter-btn,
  :root:not([data-theme]) .xhs-filter-btn,
  :root:not([data-theme]) .pd-tab {
    color: color-mix(in oklab, var(--color-text) 62%, transparent);
  }
  :root:not([data-theme]) .nav a:hover,
  :root:not([data-theme]) .filter-btn:hover,
  :root:not([data-theme]) .subfilter-btn:hover,
  :root:not([data-theme]) .xhs-filter-btn:hover,
  :root:not([data-theme]) .pd-tab:hover {
    color: var(--color-text);
  }
  :root:not([data-theme]) .nav a::after {
    background: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
  }
  :root:not([data-theme]) .xhs-filter-btn:hover:not(.active),
  :root:not([data-theme]) .subfilter-btn:hover:not(.active),
  :root:not([data-theme]) .tools-filter-btn:hover:not(.active),
  :root:not([data-theme]) .xhs-page-btn:hover:not(:disabled):not(.active) {
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  }
  :root:not([data-theme]) .filter-btn.active {
    color: #FFFFFF;
    background: linear-gradient(90deg,
      color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
      color-mix(in oklab, #96efff 12%, var(--color-surface-2))
    );
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  }
  :root:not([data-theme]) .filter-btn.active::after {
    background: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 100%);
    width: 22px;
    height: 2.5px;
  }
  :root:not([data-theme]) .models-cat.active {
    position: relative;
    color: #96efff;
    background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom-color: transparent;
  }
  :root:not([data-theme]) .models-cat.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
    pointer-events: none;
  }
  :root:not([data-theme]) .subfilter-btn.active {
    color: var(--btn-on-fg);
    background: var(--btn-on-bg);
    border-color: transparent;
  }
  :root:not([data-theme]) .pd-tab.active {
    color: #FFFFFF;
    background: var(--color-surface-offset);
    box-shadow:
      0 0 0 1px color-mix(in oklab, #fff 14%, var(--color-border)),
      var(--shadow-sm);
  }
  :root:not([data-theme]) .xhs-filter-btn.active,
  :root:not([data-theme]) .xhs-page-btn.active {
    color: var(--btn-on-fg);
    background: var(--btn-on-bg);
    border-color: transparent;
  }
  :root:not([data-theme]) .ai-logo-item {
    border-color: color-mix(in oklab, #fff 12%, var(--color-border));
    background: var(--color-surface);
  }
  :root:not([data-theme]) .ai-logo-item:hover {
    border-color: color-mix(in oklab, #fff 22%, var(--color-border));
    background: var(--color-surface-2);
  }
  :root:not([data-theme]) .ai-logo-item b {
    color: var(--color-text-muted);
  }
  :root:not([data-theme]) .ai-logo-item:hover b {
    color: var(--color-text);
  }
  :root:not([data-theme]) .gh-star-btn:hover,
  :root:not([data-theme]) .lang-toggle:hover,
  :root:not([data-theme]) .theme-toggle:hover {
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    color: #96efff;
  }
  :root:not([data-theme]) .gh-star-btn:hover {
    background: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 8%, transparent);
  }
  :root:not([data-theme]) .gh-star-btn:hover > span,
  :root:not([data-theme]) .lang-toggle:hover [data-lang-label],
  :root:not([data-theme]) .lang-toggle:hover [data-lang-label-en],
  :root:not([data-theme]) .lang-toggle:hover i,
  html[lang="zh-CN"]:not([data-theme]) .lang-toggle:hover [data-lang-label],
  html:not([lang="en"]):not([data-theme]) .lang-toggle:hover [data-lang-label],
  html[lang="en"]:not([data-theme]) .lang-toggle:hover [data-lang-label-en] {
    background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  :root:not([data-theme]) .gh-star-btn:hover svg {
    color: #96efff;
    fill: #96efff;
  }
  :root:not([data-theme]) .theme-toggle:hover svg {
    color: #96efff;
  }
  :root:not([data-theme]) .expand-btn:hover {
    background: transparent;
    color: #FFFFFF;
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    filter: none;
  }
  :root:not([data-theme]) .modal-back:focus-visible,
  :root:not([data-theme]) #vBack:focus-visible {
    outline-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    border-radius: var(--radius-full);
  }
  :root:not([data-theme]) .modal-zcool,
  :root:not([data-theme]) .modal-behance,
  :root:not([data-theme]) .post-modal-badge,
  :root:not([data-theme]) .post-source-banner {
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
    background: linear-gradient(90deg,
      color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
      color-mix(in oklab, #96efff 12%, var(--color-surface-2))
    );
  }
  :root:not([data-theme]) .modal-zcool:hover,
  :root:not([data-theme]) .modal-behance:hover,
  :root:not([data-theme]) .post-source-banner:hover {
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    background: linear-gradient(90deg,
      color-mix(in oklab, #ffddc5 18%, var(--color-surface-2)),
      color-mix(in oklab, #96efff 18%, var(--color-surface-2))
    );
  }
  :root:not([data-theme]) .modal-zcool > span,
  :root:not([data-theme]) .modal-behance > span {
    background-image: linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  :root:not([data-theme]) .post-modal-badge {
    color: #96efff;
    -webkit-text-fill-color: transparent;
    background-image:
      linear-gradient(90deg, #ffddc5 0%, #f5e7d1 32%, #c4edf0 48%, #96efff 62%, #bef3fe 85%, #ccf5ff 100%),
      linear-gradient(90deg,
        color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
        color-mix(in oklab, #96efff 12%, var(--color-surface-2))
      );
    -webkit-background-clip: text, padding-box;
    background-clip: text, padding-box;
  }
  :root:not([data-theme]) .modal .post-head .post-cat,
  :root:not([data-theme]) .modal .work-tag,
  :root:not([data-theme]) .modal .post-source-banner,
  :root:not([data-theme]) .modal .md-body a,
  :root:not([data-theme]) .modal .md-body li::marker,
  :root:not([data-theme]) .modal .md-body code,
  :root:not([data-theme]) .video-detail .back-link {
    color: #96efff;
  }
  :root:not([data-theme]) .modal .md-body a {
    border-bottom-color: color-mix(in oklab, #96efff 40%, var(--color-border));
  }
  :root:not([data-theme]) .modal .md-body a:hover {
    border-bottom-color: #96efff;
  }
  :root:not([data-theme]) .modal .md-body blockquote {
    border-left-color: #96efff;
  }
  :root:not([data-theme]) .modal .md-body code {
    border-color: color-mix(in oklab, #96efff 40%, var(--color-border));
  }
  :root:not([data-theme]) .md-body .md-pre code {
    color: #ECE7DD;
    border-color: transparent;
  }
  :root:not([data-theme]) .vd-copy {
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
    color: #FFFFFF;
    background: transparent;
  }
  :root:not([data-theme]) .vd-copy:hover {
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
  }
  :root:not([data-theme]) .vd-plist-item.is-on {
    border-left-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  }
  :root:not([data-theme]) ::selection {
    background: var(--color-primary);
    color: #FFFFFF;
  }
}

/* ============================================================
   已上线产品（商免素材站下方独立区，不用 <section> 以免翻偶数底）
   ============================================================ */
.live-products {
  padding-block: clamp(var(--space-10), 4vw, var(--space-20));
  background-color: var(--color-surface-offset);
}
.live-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 3vw, var(--space-10));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.live-stage { min-width: 0; width: 100%; }
.live-device {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  background: #eceae4;
  aspect-ratio: 720 / 1216;
  box-shadow: var(--shadow-lg);
}
.live-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: auto;
}
.live-device.is-video .live-still,
.live-device.is-still .live-video,
.live-still[hidden],
.live-video[hidden] { display: none !important; }
.live-carousel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.live-carousel[hidden] { display: none !important; }
.live-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 18px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.live-arrow--prev { left: 8px; }
.live-arrow--next { right: 8px; }
.live-dots {
  pointer-events: auto;
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.live-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.18);
}
.live-dot.is-on { background: var(--color-primary); border-color: var(--color-primary); }
.live-thumbs {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--space-3);
}
.live-thumb--demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 68px;
  width: 68px;
  height: auto;
  padding: 0;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--color-text-muted);
}
.live-thumb--demo::before {
  content: "";
  display: block;
  width: 68px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  background-color: var(--color-surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23E6492B' stroke-width='1.6'/%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5z' fill='%23E6492B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}
.live-thumb--demo.is-on {
  color: var(--color-text);
  border-color: transparent;
  background: transparent;
}
.live-thumb--demo.is-on::before,
.live-thumb--demo:hover::before {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.live-thumb--demo.is-on::before {
  background-color: var(--color-primary-soft);
}
[data-theme='light'] .live-thumb--demo.is-on::before {
  border: 1.5px solid color-mix(in oklab, var(--color-primary) 55%, var(--color-divider));
  box-shadow: none;
  background-color: var(--color-surface-2);
}
[data-theme='light'] .live-thumb--demo:hover::before {
  border-color: color-mix(in oklab, var(--color-primary) 45%, var(--color-divider));
  box-shadow: none;
}
[data-theme='dark'] .live-thumb--demo::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23ffddc5'/%3E%3Cstop offset='32%25' stop-color='%23f5e7d1'/%3E%3Cstop offset='48%25' stop-color='%23c4edf0'/%3E%3Cstop offset='62%25' stop-color='%2396efff'/%3E%3Cstop offset='85%25' stop-color='%23bef3fe'/%3E%3Cstop offset='100%25' stop-color='%23ccf5ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='9' stroke='url(%23g)' stroke-width='1.6'/%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5z' fill='url(%23g)'/%3E%3C/svg%3E");
}
[data-theme='dark'] .live-thumb--demo.is-on {
  color: #FFFFFF;
}
[data-theme='dark'] .live-thumb--demo.is-on::before,
[data-theme='dark'] .live-thumb--demo:hover::before {
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  box-shadow: 0 0 0 1px color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
}
[data-theme='dark'] .live-thumb--demo.is-on::before {
  background-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23ffddc5'/%3E%3Cstop offset='32%25' stop-color='%23f5e7d1'/%3E%3Cstop offset='48%25' stop-color='%23c4edf0'/%3E%3Cstop offset='62%25' stop-color='%2396efff'/%3E%3Cstop offset='85%25' stop-color='%23bef3fe'/%3E%3Cstop offset='100%25' stop-color='%23ccf5ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='9' stroke='url(%23g)' stroke-width='1.6'/%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5z' fill='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(90deg,
      color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
      color-mix(in oklab, #96efff 12%, var(--color-surface-2))
    );
  background-repeat: no-repeat, no-repeat;
  background-position: center, 0 0;
  background-size: 26px 26px, 100% 100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .live-thumb--demo::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23ffddc5'/%3E%3Cstop offset='32%25' stop-color='%23f5e7d1'/%3E%3Cstop offset='48%25' stop-color='%23c4edf0'/%3E%3Cstop offset='62%25' stop-color='%2396efff'/%3E%3Cstop offset='85%25' stop-color='%23bef3fe'/%3E%3Cstop offset='100%25' stop-color='%23ccf5ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='9' stroke='url(%23g)' stroke-width='1.6'/%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5z' fill='url(%23g)'/%3E%3C/svg%3E");
  }
  :root:not([data-theme]) .live-thumb--demo.is-on {
    color: #FFFFFF;
  }
  :root:not([data-theme]) .live-thumb--demo.is-on::before,
  :root:not([data-theme]) .live-thumb--demo:hover::before {
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
    box-shadow: 0 0 0 1px color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  }
  :root:not([data-theme]) .live-thumb--demo.is-on::before {
    background-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 12%, var(--color-surface-2));
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23ffddc5'/%3E%3Cstop offset='32%25' stop-color='%23f5e7d1'/%3E%3Cstop offset='48%25' stop-color='%23c4edf0'/%3E%3Cstop offset='62%25' stop-color='%2396efff'/%3E%3Cstop offset='85%25' stop-color='%23bef3fe'/%3E%3Cstop offset='100%25' stop-color='%23ccf5ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='9' stroke='url(%23g)' stroke-width='1.6'/%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5z' fill='url(%23g)'/%3E%3C/svg%3E"),
      linear-gradient(90deg,
        color-mix(in oklab, #ffddc5 12%, var(--color-surface-2)),
        color-mix(in oklab, #96efff 12%, var(--color-surface-2))
      );
    background-repeat: no-repeat, no-repeat;
    background-position: center, 0 0;
    background-size: 26px 26px, 100% 100%;
  }
}
.live-shots {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.live-shots::-webkit-scrollbar { display: none; }
.live-strip-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  align-self: center;
}
.live-strip-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1;
}
.live-strip-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
[data-theme='dark'] .live-strip-btn:hover {
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  color: color-mix(in oklab, #96efff 68%, #ffddc5);
}
.live-thumb {
  display: flex;
  flex: 0 0 68px;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  scroll-snap-align: start;
}
.live-thumb img {
  width: 68px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.live-thumb.live-thumb--demo {
  flex: 0 0 68px;
  flex-direction: column;
  width: 68px;
  min-width: 68px;
}
.live-thumb:hover { color: var(--color-text); }
.live-thumb.is-on { color: var(--color-text); }
.live-thumb.is-on img {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
[data-theme='light'] .live-thumb.is-on:not(.live-thumb--demo) img {
  border: 1.5px solid color-mix(in oklab, var(--color-primary) 55%, var(--color-divider));
  box-shadow: none;
}
[data-theme='dark'] .live-thumb.is-on:not(.live-thumb--demo) img {
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  box-shadow: 0 0 0 1px color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .live-strip-btn:hover {
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    color: color-mix(in oklab, #96efff 68%, #ffddc5);
  }
  :root:not([data-theme]) .live-thumb.is-on:not(.live-thumb--demo) img {
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
    box-shadow: 0 0 0 1px color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  }
}
.live-info {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(var(--space-5), 2.4vw, var(--space-8));
  align-items: stretch;
}
.live-main { min-width: 0; }
.live-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(var(--space-4), 2vw, var(--space-6));
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}
.live-aside-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}
.live-aside-title {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.live-aside-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.live-aside-list li {
  position: relative;
  padding-left: 1.15em;
}
.live-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.live-aside-cta {
  align-self: flex-start;
  margin-top: var(--space-2);
  text-decoration: none;
}
.live-aside-note {
  margin-top: var(--space-2);
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-faint);
}
.live-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22em 0.7em;
  border-radius: var(--radius-full);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.live-badge--mp {
  gap: 0.38em;
  padding-left: 0.42em;
  color: var(--color-text-muted);
  background: transparent;
  border-color: var(--color-border);
}
.live-badge-mp-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}
.live-badge--on {
  color: #1f5b21;
  background: #e7f6d9;
  border-color: #c7e8a8;
}
[data-theme='dark'] .live-badge--on {
  color: #d7f5bf;
  background: color-mix(in oklab, #7dff7a 16%, var(--color-surface-2));
  border-color: color-mix(in oklab, #7dff7a 28%, var(--color-border));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .live-badge--on {
    color: #d7f5bf;
    background: color-mix(in oklab, #7dff7a 16%, var(--color-surface-2));
    border-color: color-mix(in oklab, #7dff7a 28%, var(--color-border));
  }
}
.live-title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.live-desc {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 42ch;
}
.live-points {
  margin-top: var(--space-5);
  display: grid;
  gap: 10px;
}
.live-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: var(--text-sm);
}
.live-points b { font-weight: 650; min-width: 7em; }
.live-points span { color: var(--color-text-muted); }
.live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-5);
}
.live-chips span {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
}
.live-cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.live-qr {
  margin: 0;
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-divider);
}
.live-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.live-cta-copy { min-width: 0; }
.live-qr-label {
  font-weight: 650;
  font-size: var(--text-sm);
}
.live-search {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.live-copy {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: var(--btn-on-bg);
  color: var(--btn-on-fg);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), filter var(--transition), color var(--transition);
}
.live-copy:hover {
  border-color: transparent;
  background: var(--btn-on-bg);
  color: var(--btn-on-fg);
  filter: brightness(1.08);
}
[data-theme='light'] .live-copy,
:root:not([data-theme='dark']) .live-copy {
  background: var(--btn-line-bg);
  color: var(--btn-line-fg);
  border-color: var(--btn-line-border);
  filter: none;
}
[data-theme='light'] .live-copy:hover,
:root:not([data-theme='dark']) .live-copy:hover {
  background: var(--btn-line-bg);
  color: var(--btn-line-fg);
  border-color: var(--btn-line-hover-border);
  filter: none;
}
[data-theme='light'] .live-copy.is-done,
:root:not([data-theme='dark']) .live-copy.is-done {
  background: var(--btn-line-bg);
  color: var(--color-text-muted);
  border-color: var(--btn-line-border);
}
[data-theme='dark'] .live-copy {
  background: transparent;
  color: #FFFFFF;
  border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
  filter: none;
}
[data-theme='dark'] .live-copy:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
  filter: none;
}
[data-theme='dark'] .live-copy.is-done {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
  filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .live-copy {
    background: transparent;
    color: #FFFFFF;
    border-color: color-mix(in oklab, color-mix(in oklab, #ffddc5 40%, #96efff) 46%, var(--color-border));
    filter: none;
  }
  :root:not([data-theme]) .live-copy:hover {
    background: transparent;
    color: #FFFFFF;
    border-color: color-mix(in oklab, #96efff 55%, #ffddc5);
    filter: none;
  }
  :root:not([data-theme]) .live-copy.is-done {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
    filter: none;
  }
}
.live-copy.is-done { color: var(--color-text); border-color: var(--color-divider); background: transparent; filter: none; }
.live-note {
  margin-top: var(--space-4);
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-faint);
  max-width: 52ch;
}
@media (max-width: 1100px) {
  .live-info { grid-template-columns: 1fr; }
  .live-aside { max-width: 36rem; }
}
@media (max-width: 860px) {
  .live-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .live-stage { width: min(280px, 100%); }
  .live-info { width: 100%; }
  .live-aside { max-width: none; }
  .live-desc { max-width: none; }
  .live-points li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .live-cta { align-items: flex-start; }
  .live-qr { flex-basis: 104px; width: 104px; height: 104px; }
  html[lang="en"] .live-products .head-lead { white-space: normal; }
}

