/* ==========================================================================
   Cursor-Light-Warmth — 暖纸浅色设计系统
   风格来源：cursor.com 首页浅色模式
   适用：cf-media-parser 全站页面（index / video / music / option）

   核心信条
     · 暖纸白 × 暖墨黑双色主调，占 98% 视觉面积
     · 唯一彩色是朱砂橙 #C8451D，且只用于文字链接
     · 字重 400 的巨型标题 —— 「轻声说大事」
     · 圆角全或无：交互件胶囊(9999px)，展示面 4px
     · 无偏移纯弥散阴影，克制到几乎不可见
     · 字体全部使用系统栈，不依赖任何外部字体服务
   ========================================================================== */

/* ---------- 设计 Token ---------- */
:root {
  /* 暖纸白三层底色：像一叠不同克重的纸，分区靠色阶不靠边框 */
  --bg:             #F7F7F4;  /* 主背景、固定 Header */
  --surface:        #F2F1ED;  /* 媒体舞台底板、Footer */
  --surface-deep:   #E6E5E0;  /* 更深的内嵌面板、悬停底色 */

  /* 墨色而非纯黑 —— 带黄绿底调，与暖纸同温 */
  --ink:            #26251E;
  --ink-invert:     #F7F7F4;
  --ink-muted:      rgba(38, 37, 30, .55);
  --ink-faint:      rgba(38, 37, 30, .38);

  /* 唯一强调色：朱砂橙，仅用于文字链接 */
  --accent:         #C8451D;

  /* 边框 */
  --border:         rgba(38, 37, 30, .2);
  --border-hairline:rgba(38, 37, 30, .025);
  --border-inner:   rgba(38, 37, 30, .08);

  --card-white:     #FFFFFF;

  /* 语义色（低饱和） */
  --success:        #3F7A46;
  --error:          #B0413E;
  --timeline-thinking: #DFA88F;
  --timeline-grep:     #9FC9A2;
  --timeline-read:     #9FBBE0;
  --timeline-edit:     #C0A8DD;

  /* 字体 —— 全部系统栈，离线可用、无外部依赖 */
  /* 人文无衬线：标题/正文/按钮 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI',
               'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei',
               'Noto Sans SC', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* 衬线斜体点缀：媒体舞台内的「作品」文案 */
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Songti SC', Georgia,
                'Times New Roman', serif;
  /* 等宽：代码、diff、徽章编号 */
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', 'Cascadia Mono', 'Cascadia Code',
               Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* 字号阶梯 */
  --fs-cta:      clamp(40px, 6vw, 72px);   /* Final CTA */
  --fs-hero:     clamp(28px, 3.6vw, 40px); /* Hero 标题 */
  --fs-section:  clamp(23px, 2.6vw, 32px); /* 区块标题 */
  --fs-window:   18px;                     /* 窗口标题 */
  --fs-body:     16px;
  --fs-sm:       14px;
  --fs-code:     12.5px;
  --fs-badge:    11px;

  /* 圆角：全或无 */
  --r-pill: 9999px;   /* 交互件 */
  --r-face: 4px;      /* 展示面 */

  /* 阴影：无偏移纯弥散，像纸面微微鼓起 */
  --shadow-float: rgba(0,0,0,.02) 0 0 16px, rgba(0,0,0,.008) 0 0 8px;
  --shadow-none: none;

  /* 过渡 */
  --ease: cubic-bezier(.25, 1, .5, 1);
  --t-fast: 140ms;
  --t-base: 300ms;
  --t-slow: 500ms;

  /* 间距阶梯（4px 基） */
  --sp-section: 67.2px;
  --sp-hero: 112px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- 排印：字重 400 的巨型标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: var(--fs-hero); letter-spacing: -.72px; }
h2 { font-size: var(--fs-section); letter-spacing: -.325px; }
h3 { font-size: var(--fs-window); font-weight: 500; letter-spacing: normal; }

p { color: var(--ink-muted); }
em, .italic { font-family: var(--font-serif); font-style: italic; }

a { color: var(--accent); text-decoration: none; transition: opacity var(--t-fast) var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code, kbd, samp, pre, .mono { font-family: var(--font-mono); font-size: var(--fs-code); }

/* 双色同阶标题：两行同字号同字重，第二行降为 55% 透明度 */
.two-tone { display: block; }
.two-tone .l1 { display: block; color: var(--ink); }
.two-tone .l2 { display: block; color: var(--ink-muted); }

/* 朱砂橙文字链接（每屏 ≤1 处） */
.link-accent {
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 400;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--t-fast) var(--ease);
}
.link-accent .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.link-accent:hover { text-decoration: none; }
.link-accent:hover .arrow { transform: translateX(2px); }

/* 等宽徽章 */
.badge {
  font-family: var(--font-mono);
  font-size: var(--fs-badge);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(38, 37, 30, .05);
  border-radius: var(--r-face);
  padding: 3px 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge.pill { border-radius: var(--r-pill); padding: 3px 10px; }

/* 状态点 */
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--success); }
.dot.warn { background: var(--accent); }
.dot.live { background: var(--success); animation: pulseSoft 1.8s ease-in-out infinite; }

/* diff 数字 */
.diff-add { font-family: var(--font-mono); font-size: var(--fs-code); color: var(--success); }
.diff-del { font-family: var(--font-mono); font-size: var(--fs-code); color: var(--error); }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.section { padding: var(--sp-section) 0; }
.section-hero { padding: var(--sp-hero) 0 var(--sp-section); }

/* 三层纸底色分区：靠色阶不靠边框 */
.band { background: var(--surface); }
.band-deep { background: var(--surface-deep); }

.prose { max-width: 65ch; }

/* ---------- 按钮：胶囊体系 ---------- */
.btn {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  height: 38px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* 主按钮：墨底白字 */
.btn-primary { background: var(--ink); color: var(--ink-invert); box-shadow: var(--shadow-none); }
.btn-primary:hover { background: #3A382F; }
.btn-primary:active { transform: translateY(1px); }

/* 次按钮：浅灰底 */
.btn-subtle { background: var(--surface-deep); color: var(--ink); }
.btn-subtle:hover { background: #DCDBD5; }

/* 描边按钮 */
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { background: rgba(38, 37, 30, .04); }

/* 纯文字按钮 */
.btn-text { background: none; padding: 6px 8px; color: var(--ink); }
.btn-text:hover { color: var(--ink-muted); }

/* 尺寸 */
.btn-sm { height: 32px; padding: 4px 13px; font-size: 13px; }
.btn-lg { height: 44px; padding: 8px 22px; font-size: 15px; }
.btn-full { width: 100%; }

/* ---------- 固定顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: 52px;
  background: var(--bg);   /* 与页面同色，不透明，无阴影无毛玻璃 */
  border-bottom: 1px solid var(--border-hairline);
}
.header-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  height: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.brand-name { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

.nav-center { display: flex; align-items: center; justify-content: center; gap: 26px; }
.nav-center a {
  font-size: var(--fs-sm); font-weight: 400; color: var(--ink);
  padding: 8px 0; transition: color var(--t-fast) var(--ease);
}
.nav-center a:hover { color: var(--ink-muted); text-decoration: none; }
.nav-center a.is-active { color: var(--ink); }
.nav-center a.is-active::after {
  content: ""; display: block; height: 1px; background: var(--ink);
  margin-top: 6px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* 汉堡（移动端） */
.hamburger {
  display: none;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; align-items: center; justify-content: center;
  color: var(--ink);
}
.hamburger:hover { background: rgba(38,37,30,.04); }

/* 移动端抽屉 */
.mobile-nav {
  display: none;
  position: fixed; inset: 52px 0 0 0; z-index: 190;
  background: var(--bg); padding: 32px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 18px; color: var(--ink); padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.mobile-nav a:hover { text-decoration: none; color: var(--ink-muted); }

@media (max-width: 1023px) {
  .nav-center { display: none; }
  .hamburger { display: inline-flex; }
  .header-actions .btn-text { display: none; }
}

/* ---------- 媒体舞台（油画 + 窗口叠放） ---------- */
.stage {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-face);
  padding: 40px;
  overflow: hidden;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
/* 油画底 */
.stage-canvas {
  position: absolute; inset: 0;
  border-radius: var(--r-face);
  overflow: hidden;
}
.stage-canvas .oil {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* 内联 SVG 油画兜底：19 世纪风景画的柔和赭绿与金色调 */
  background:
    radial-gradient(120% 90% at 22% 18%, rgba(232, 214, 176, .95) 0%, transparent 55%),
    radial-gradient(100% 80% at 78% 12%, rgba(214, 186, 138, .8) 0%, transparent 60%),
    radial-gradient(140% 120% at 50% 108%, rgba(74, 82, 58, .92) 0%, transparent 62%),
    linear-gradient(170deg, #C9AE7E 0%, #A98D5E 32%, #6E7355 68%, #454B3C 100%);
}
/* 油画上压一层极淡暖罩，保证窗口可读 */
.stage-canvas::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(38,37,30,.05) 0%, rgba(38,37,30,.05) 100%);
}
/* 细画框 */
.stage-frame {
  position: absolute; inset: 12px;
  border: 1px solid rgba(255, 252, 240, .22);
  border-radius: 2px;
  pointer-events: none;
}

/* 白色产品窗口模型 */
.window {
  position: relative; z-index: 2;
  background: var(--card-white);
  border-radius: var(--r-face);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  width: 100%;
}
.window-bar {
  height: 36px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-inner);
  background: var(--card-white);
}
.window-bar .lights { display: flex; gap: 6px; }
.window-bar .lights i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #DEDDD7; display: block;
}
.window-bar .lights i:nth-child(1) { background: #E5A79B; }
.window-bar .lights i:nth-child(2) { background: #E8CE9A; }
.window-bar .lights i:nth-child(3) { background: #A8C9A6; }
.window-title {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted);
  margin: 0 auto; padding-right: 24px;
}
.window-body { padding: 16px; }

/* 舞台内窗口叠放：错位 8-24px，层级递增 */
.stage .window + .window {
  margin-top: -18px;
  width: 92%;
  margin-left: 4%;
}
.stage .window:nth-child(3) { width: 84%; margin-left: 8%; }

/* 窗口内列表行 */
.win-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 3px;
  font-size: 13.5px;
}
.win-row:hover { background: var(--bg); }
.win-row .k { color: var(--ink); }
.win-row .v { margin-left: auto; color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; }

/* ---------- 分栏特性区 ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.reverse .split-media { order: 2; }
  .split.reverse .split-copy { order: 1; }
}
.split-copy { max-width: 65ch; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { font-size: var(--fs-body); line-height: 1.6; margin-bottom: 20px; }

/* ---------- Logo 花园 ---------- */
.logo-garden {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 40px; padding: 34px 0;
}
.logo-garden span {
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  color: var(--ink-faint); letter-spacing: .01em;
  filter: grayscale(1);
  transition: color var(--t-fast) var(--ease);
}
.logo-garden span:hover { color: var(--ink-muted); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 100px 0; }
.final-cta h2 {
  font-size: var(--fs-cta);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 32px;
}

/* ---------- 页脚：最下面那张纸 ---------- */
.site-footer {
  background: var(--surface);
  padding: 67.2px 0 32px;
  border-top: 1px solid var(--border-hairline);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin-bottom: 52px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-col h4 {
  font-size: 12.5px; font-weight: 400; color: var(--ink-muted);
  margin-bottom: 14px; letter-spacing: normal;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span {
  font-size: var(--fs-sm); color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--ink-muted); text-decoration: none; }
.footer-bar {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  font-size: 12.5px; color: var(--ink-muted);
}
.footer-bar .mono { font-size: 12px; }

/* 主题切换胶囊组 */
.theme-group {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-deep); border-radius: var(--r-pill);
  padding: 3px;
}
.theme-group button {
  width: 28px; height: 28px; border-radius: var(--r-pill);
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.theme-group button:hover { color: var(--ink); }
.theme-group button[aria-pressed="true"] { background: var(--card-white); color: var(--ink); }

/* ---------- 表单 ---------- */
.field { display: block; }
.field-label {
  font-size: 12.5px; color: var(--ink-muted);
  display: block; margin-bottom: 7px;
}
.input {
  width: 100%; height: 44px;
  padding: 0 16px;
  font-family: var(--font-sans); font-size: var(--fs-body);
  color: var(--ink);
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);   /* 胶囊，与按钮体系一致 */
  transition: border-color var(--t-fast) var(--ease);
}
.input::placeholder { color: var(--ink-faint); }
/* 聚焦：描边变墨色，无外发光环 */
.input:focus { outline: none; border-color: var(--ink); }
.input-shell { position: relative; }
.input-shell .input { padding-right: 52px; }

/* 输入框内清空按钮 */
.clear-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: var(--r-pill);
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-faint); font-size: 17px; line-height: 1;
  display: none; align-items: center; justify-content: center;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.clear-btn:hover { color: var(--ink); background: rgba(38,37,30,.05); }
.clear-btn.is-visible { display: flex; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-face);
  padding: 24px;
}
.card-flat { background: var(--surface); border-color: transparent; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 68px; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink); color: var(--ink-invert);
  font-size: var(--fs-sm); padding: 10px 20px;
  border-radius: var(--r-pill);
  z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  max-width: min(90vw, 460px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 模态框 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(38, 37, 30, .32);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card-white);
  border-radius: var(--r-face);
  box-shadow: rgba(0,0,0,.06) 0 0 32px, rgba(0,0,0,.02) 0 0 16px;
  width: 100%; max-width: 560px; max-height: 86vh;
  display: flex; flex-direction: column;
  animation: fadeSlideUp var(--t-base) var(--ease);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border-inner);
}
.modal-head h3 { font-size: var(--fs-body); font-weight: 500; }
.modal-x {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-muted); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.modal-x:hover { background: var(--surface-deep); color: var(--ink); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--border-inner);
}

/* ---------- 加载指示 ---------- */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border);
  border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
.spinner-lg { width: 28px; height: 28px; border-width: 2px; }

/* ---------- 空态 / 错误 ---------- */
.notice {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--r-face);
  padding: 14px 18px; font-size: var(--fs-sm);
}
.notice.is-active { display: block; }
.notice-error { color: var(--error); border-color: rgba(176, 65, 62, .3); background: rgba(176, 65, 62, .04); }
.notice-info { color: var(--ink-muted); background: var(--surface); }

/* ---------- 动画 ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tilePopIn {
  from { opacity: 0; transform: scale(.7) translateY(3px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* 入场：IntersectionObserver 触发 */
.reveal { opacity: 0; }
.reveal.in { animation: fadeSlideUp var(--t-slow) var(--ease) forwards; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-deep); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: #D5D4CE; }

/* ---------- 可访问性 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  :root {
    --sp-hero: 56px;
    --sp-section: 40px;
  }
  .container { padding: 0 16px; }
  .stage { padding: 20px; min-height: 240px; }
  .stage .window + .window { width: 100%; margin-left: 0; }
  .stage .window:nth-child(3) { display: none; }   /* 移动端只留 1-2 扇 */
  .final-cta { padding: 64px 0; }
  .split { gap: 28px; }
  .btn-lg { height: 42px; }
  /* 朱砂橙链接移动端加大点击区 */
  .link-accent { padding: 8px 0; }
}

/* ==========================================================================
   深色模式（可选）
   把三层纸底换成 #1A1915 系，墨色反转为纸色，胶囊体系不变
   ========================================================================== */
body.is-dark {
  --bg:             #1A1915;
  --surface:        #201F1A;
  --surface-deep:   #272621;
  --ink:            #F2F1ED;
  --ink-invert:     #1A1915;
  --ink-muted:      rgba(242, 241, 237, .58);
  --ink-faint:      rgba(242, 241, 237, .36);
  --accent:         #E0714A;
  --border:         rgba(242, 241, 237, .2);
  --border-hairline:rgba(242, 241, 237, .045);
  --border-inner:   rgba(242, 241, 237, .08);
  --card-white:     #262521;
  --success:        #7FB98A;
  --error:          #E08D89;
  --shadow-float: rgba(0,0,0,.3) 0 0 16px, rgba(0,0,0,.16) 0 0 8px;
}
body.is-dark .stage-canvas .oil {
  filter: brightness(.62) saturate(.85);
}
body.is-dark .window-bar .lights i { background: #4A4842; }
body.is-dark .window-bar .lights i:nth-child(1) { background: #8C5A52; }
body.is-dark .window-bar .lights i:nth-child(2) { background: #8C7A52; }
body.is-dark .window-bar .lights i:nth-child(3) { background: #5A7A58; }
body.is-dark .btn-primary:hover { background: #FFFFFF; }
body.is-dark .theme-group button[aria-pressed="true"] { background: var(--surface-deep); }
body.is-dark ::-webkit-scrollbar-thumb { background: #35342E; }
body.is-dark ::-webkit-scrollbar-thumb:hover { background: #45443C; }
