/* ============================================================
   S3 macOS 桌面壳（≥768px）
   ============================================================ */

.macos { display: none; }
@media (min-width: 768px) {
  .macos { display: block; }
  .ios { display: none !important; }
}

/* 桌面区 */
.desktop {
  position: fixed; inset: 0;
  padding-top: 40px; padding-bottom: 90px;
  overflow: hidden;
}

/* 粒子字标：桌面中央的 Like Memo（Harbor Tab 式 particle wordmark） */
.wordmark {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: auto; z-index: 0;
}

/* —— 搜索：嵌进桌面舞台（沉浸式嵌入，无弹窗） —— */
.sec-search { max-width: 680px; margin: 0 auto; }
.sec-search-box { margin: 6px 0 10px; }
.sec-search-input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: var(--serif); font-size: 30px; text-align: center;
  color: var(--label); padding: 12px 8px; letter-spacing: 0.04em;
}
.sec-search-input::placeholder { color: var(--label-3); }
.sec-search-results { margin-top: 10px; }
.sec-search-results a.sel { background: rgba(120, 100, 80, 0.08); border-radius: 12px; }
.sec-search-results a.sel .n-title { color: #a97c4f; }
.sec-no-result { list-style: none; text-align: center; color: var(--label-3); padding: 34px 0; font-size: 14px; }
.sec-search-hint {
  display: flex; gap: 18px; justify-content: center;
  margin-top: 28px; font-size: 12px; letter-spacing: 0.1em; color: var(--label-3);
}



/* 窗口层 */
.window-layer {
  position: absolute; inset: 0;
  pointer-events: none;
}
.app-window {
  position: absolute;
  min-width: 340px;
  max-height: calc(100vh - 140px);
  display: flex; flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  pointer-events: auto;
  background: rgba(253, 251, 247, 0.88);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-clay-window);
  animation: win-in var(--dur-med) var(--ease-spring);
}
@keyframes win-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: none; }
}
.win-titlebar {
  display: flex; align-items: center;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: grab; user-select: none;
  flex-shrink: 0;
}
/* 红绿灯：视觉 14px（对齐 macOS Tahoe），点击区 22×36px（无缝拼接不重叠） */
.win-traffic { display: flex; gap: 8px; align-items: center; }
.win-traffic .tl {
  width: 22px; height: 36px; /* 点击区：22 = 14 + 8 间距，横向无缝 */
  display: grid; place-items: center;
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.win-traffic .tl i {
  width: 14px; height: 14px; border-radius: 50%;
  display: block; pointer-events: none;
  position: relative;
  box-shadow: var(--shadow-clay-dot);
  transition: transform 0.12s ease;
}
.win-traffic .tl:active i { transform: scale(0.88); }
/* 陶土圆珠：左上受光的径向渐变 */
.tl-close i { background: radial-gradient(circle at 35% 30%, #ff9a8a, #FF5F57 55%, #e04a42); }
.tl-min i { background: radial-gradient(circle at 35% 30%, #ffd97a, #FEBC2E 55%, #e8a41a); }
.tl-zoom i { background: radial-gradient(circle at 35% 30%, #6fe07e, #28C840 55%, #1da832); }
/* macOS 式 hover 符号：× / − / + */
.win-traffic .tl i::after {
  content: ""; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; line-height: 1;
  color: rgba(0,0,0,0.55); opacity: 0;
}
.win-traffic:hover .tl i::after { opacity: 1; }
.tl-close i::after { content: "×"; }
.tl-min i::after { content: "−"; }
.tl-zoom i::after { content: "+"; }
.win-title {
  flex: 1; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--label-2);
}
.win-close { cursor: pointer; }
.win-body {
  padding: 24px; overflow-y: auto;
  font-size: var(--fs-body); line-height: 1.7;
}

/* 窗口拉伸手柄：右下角隐形，hover 显示斜箭头光标 */
.win-resize {
  position: absolute; right: 0; bottom: 0;
  width: 20px; height: 20px;
  cursor: nwse-resize;
  z-index: 5;
  /* macOS 式斜线 hint，仅 hover 窗口时隐约可见 */
  opacity: 0; transition: opacity var(--dur-fast);
  background: linear-gradient(135deg, transparent 50%, var(--label-3) 50%);
  background-size: 10px 10px; background-repeat: no-repeat;
  background-position: bottom right;
  border-bottom-right-radius: var(--r-lg);
}
.app-window:hover .win-resize { opacity: 0.35; }

/* —— 窗口动画 ——
   默认只过渡 transform/opacity（最小化/还原）。
   left/top/width/height 不加 transition，否则拖拽/拉伸每一帧都被延迟 0.3s，
   窗口追着光标跑 = 迟钝的根源。zoom 动画用 .anim-zoom 临时开启。 */
.app-window {
  transition: transform 0.38s var(--ease-spring), opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: 50% 100%;
}
.app-window.anim-zoom {
  transition: transform 0.38s var(--ease-spring), opacity 0.3s ease,
              width 0.3s var(--ease-ios), height 0.3s var(--ease-ios),
              left 0.3s var(--ease-ios), top 0.3s var(--ease-ios);
}
.app-window.minimizing {
  transform: translateY(30vh) scale(0.08);
  opacity: 0;
  pointer-events: none;
}
.app-window.minimized { display: none; }

/* Dock 状态圆点 */
.dock-app { position: relative; }
.dock-app::before {
  content: ""; position: absolute;
  bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--label-3);
  opacity: 0; transition: opacity var(--dur-fast);
}
.dock-app.has-win::before { opacity: 1; }
.dock-app.is-min::before { opacity: 0.45; }

/* —— 3D 打字机 Hero（B方案首屏） —— */
#hero3d {
  position: fixed; inset: 0; z-index: 500;
  background: #f5f1ea;
  transition: opacity 0.45s ease;
}
#hero3d.fading { opacity: 0; }
#hero3dCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero3d-ui {
  position: absolute; bottom: 48px; left: 0; right: 0;
  text-align: center; pointer-events: none;
}
.hero3d-hint {
  font-size: 14px; color: #8a8478; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.hero3d-hint kbd {
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(0,0,0,0.06); border-radius: 5px; padding: 2px 8px;
}
.hero3d-credit {
  margin-top: 10px; font-size: 11px; letter-spacing: 0.06em; color: #a39c8d;
}
.hero3d-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.hero3d-skip {
  pointer-events: auto;
  border: 1px solid rgba(0,0,0,0.12); background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  font-size: 13px; color: #5c564a; padding: 8px 20px; border-radius: 999px;
  cursor: pointer; transition: transform 0.2s ease;
}
.hero3d-skip:hover { transform: scale(1.04); }
/* 揭示时的白色幕布 */
.hero3d-wipe {
  position: absolute; inset: 0; background: #faf8f4;
  transform: scaleY(0); transform-origin: bottom;
  pointer-events: none;
}
#hero3d.reveal .hero3d-wipe { animation: hero-wipe 0.9s var(--ease-ios) forwards; }
#hero3d.reveal { animation: hero-fade 0.9s ease 0.55s forwards; }
@keyframes hero-wipe {
  0% { transform: scaleY(0); }
  45%, 60% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: top; }
}
@keyframes hero-fade { to { opacity: 0; visibility: hidden; } }
/* 移动端直接跳过 Hero */
@media (max-width: 767px) {
  #hero3d { display: none; }
}

/* —— macOS 开机画面 —— */
#macboot {
  position: fixed; inset: 0; z-index: 600;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 42px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease;
}
#macboot.show { opacity: 1; visibility: visible; }
#macboot.hide { opacity: 0; }
.boot-logo { width: 84px; height: auto; animation: boot-logo-in 0.8s ease; }
@keyframes boot-logo-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
.boot-bar {
  width: 210px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.boot-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: #f5f5f7;
}
@media (max-width: 767px) {
  #macboot { display: none; }
}

[data-theme="dark"] .app-window { background: rgba(38, 34, 30, 0.85); }

/* ============ P2: 按钮 hover 动态效果包 ============ */

/* 红绿灯：单个悬停时提亮+微放大 */
.win-traffic .tl { transition: transform 0.15s var(--ease-spring); }
.win-traffic .tl:hover { transform: scale(1.15); }
.win-traffic .tl:hover i { filter: brightness(1.12); }
.win-traffic .tl:active { transform: scale(0.95); }

/* Dock 图标：悬停时加柔光 */
.dock-app .dock-icon { transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-fast); }
.dock-app:hover .dock-icon { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25)) brightness(1.06); }
.dock-app:active .dock-icon { transform: scale(0.92); transition-duration: 0.1s; }

/* 打字机工具栏按钮 */

/* 文章列表：悬停时右移+背景 */
.notes-list a { transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-ios); }
.notes-list a:hover { transform: translateX(4px); }
.notes-list a:active { transform: translateX(2px) scale(0.99); }

/* 返回链接 */
.back-link { transition: opacity 0.2s, transform 0.2s; display: inline-block; }
.back-link:hover { opacity: 0.75; transform: translateX(-2px); }

/* 窗口：悬停标题栏时红绿灯组微亮 */
.win-titlebar { transition: background 0.25s; }
.app-window:hover .win-titlebar { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .app-window:hover .win-titlebar { background: rgba(255,255,255,0.03); }

/* 拼贴墙图片：悬停放大 */
.photos-grid figure { transition: transform 0.25s var(--ease-spring); }
.photos-grid figure:hover { transform: scale(1.03); z-index: 2; }
.photos-grid figure:active { transform: scale(0.98); }

/* hero 跳过按钮：已有 scale，加阴影 */
.hero3d-skip { transition: transform 0.2s var(--ease-spring), box-shadow 0.2s; }
.hero3d-skip:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

/* 键盘可访问性：焦点可见 */
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--sys-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ 环境桌面：单一温和氛围 ============
   不再按时间变化。浅色 = 一层温和氛围，深色 = 夜晚。
   切换只跟随主题（data-theme），渐变用两层 opacity 交叉淡入。 */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-sky { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.ambient-sky[data-sky="light"] { background: linear-gradient(180deg, #bccadd 0%, #dfe6ee 45%, #f3ecdc 100%); opacity: 1; }
.ambient-sky[data-sky="night"] { background: linear-gradient(180deg, #131c2b 0%, #232f42 45%, #37332c 100%); }
[data-theme="dark"] .ambient-sky[data-sky="light"] { opacity: 0; }
[data-theme="dark"] .ambient-sky[data-sky="night"] { opacity: 1; }
.ambient-light { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; transition: background-color 2s ease; will-change: transform; }
.ambient-light-a { width: 60vw; height: 60vw; top: -18vw; left: -10vw; animation: ambient-drift-a 70s ease-in-out infinite alternate; background-color: #fff6d8; }
.ambient-light-b { width: 48vw; height: 48vw; bottom: -14vw; right: -8vw; animation: ambient-drift-b 85s ease-in-out infinite alternate; background-color: #a9bed9; }
[data-theme="dark"] .ambient-light-a { background-color: #26354d; }
[data-theme="dark"] .ambient-light-b { background-color: #2e3a52; }
@keyframes ambient-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.12); } }
@keyframes ambient-drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, -3vw) scale(1.08); } }
.ambient-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.10) 100%); }
@media (prefers-reduced-motion: reduce) {
  .ambient-light { animation: none; }
}

/* ============ 桌面嵌入式内容（Spaces）：notes/photos/about 不再弹窗口 ============
   设计语言取自 baothiento.com/bench：零 chrome、居中窄栏、巨大留白、内容直接长在桌面上。 */
.stage {
  position: absolute; inset: 0; z-index: 6;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  filter: blur(18px) brightness(1.7);
  transform: scale(1.05);
  transition: opacity .55s ease, filter .55s ease,
    transform .6s cubic-bezier(.22,1,.36,1), visibility 0s linear .55s;
  pointer-events: none;
}
.stage.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  filter: blur(0) brightness(1);
  transform: none;
  transition: opacity .55s ease, filter .6s ease,
    transform .6s cubic-bezier(.22,1,.36,1);
}
/* 投影幕：居中固定区域，四周留空；无边框——与桌面融为一体，区域只由布局限定。
   滚动条彻底隐藏（用户 2026-10-23：右侧线条破坏融合感）：内容仍可滚轮/触控滚动，
   只是没有任何可见的轨道/滑块长在壁纸上。 */
.stage-inner {
  width: min(1020px, 90vw); height: min(680px, 74vh);
  overflow-y: auto; overflow-x: hidden;
  padding: 10px 34px 60px;
  scrollbar-width: none;
}
.stage-inner::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* 内容展开时字标虚化淡出，与幕布对焦同步 */
.wordmark { transition: opacity .5s ease, transform .6s ease, filter .6s ease; }
.desktop.section-open .wordmark { opacity: 0; transform: scale(1.06); filter: blur(10px); pointer-events: none; }
/* 分节：Bao To 式极简节头；节内切换用对焦式显现，不再滑动 */
.sec { animation: secFocus .5s ease; }
@keyframes secFocus {
  from { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.sec-head { text-align: center; margin: 26px 0 34px; user-select: none; }
.sec-kicker { font-size: 14px; letter-spacing: .5em; text-indent: .5em; color: var(--label-2); font-weight: 600; }
.sec-sub { margin-top: 12px; font-size: 12px; letter-spacing: .3em; text-indent: .3em; color: var(--label-3); }
/* 文章列表沿用 notes-list；正文沿用 article-head/article-body */
.sec-article { max-width: 680px; margin: 0 auto; }
.sec-back {
  display: inline-block; margin: 8px 0 26px; cursor: pointer;
  font-family: inherit; font-size: 14px; letter-spacing: .12em; color: var(--label-2);
  background: none; border: 1px solid var(--line, rgba(120,100,80,.25));
  padding: 8px 18px 8px 14px; border-radius: 999px;
  transition: background .2s ease;
}
.sec-back:hover { background: rgba(120,100,80,.08); }
/* 关于：窄栏居中 */
.sec-about .about-body { max-width: 640px; margin: 0 auto; }
/* 拼贴墙：晾衣绳板在桌面中央 */
.sec-photos .cl-board { margin-top: 6px; }
/* ——— 无痕：去卡片化，内容直接长在桌面上（只作用于桌面 stage，移动端 sheet 不动） ——— */
.stage .notes-list { gap: 2px; }
.stage .notes-list a {
  background: none; border: none; border-radius: 0; box-shadow: none;
  padding: 18px 6px; border-bottom: 1px solid rgba(120,100,80,.14);
}
.stage .notes-list li:last-child a { border-bottom: none; }
.stage .notes-list a:hover { background: none; box-shadow: none; }
.stage .notes-list a:hover .n-title { color: #a97c4f; }
[data-theme="dark"] .stage .notes-list a { background: none; border-bottom-color: rgba(255,255,255,.1); }
[data-theme="dark"] .stage .notes-list a:hover { background: none; }
.sec-photos .cl-board,
[data-theme="dark"] .sec-photos .cl-board {
  background: none; border: none; border-radius: 0;
}
.stage .next-card,
[data-theme="dark"] .stage .next-card {
  background: none; border: none; border-radius: 0; box-shadow: none;
  padding: 18px 6px; border-top: 1px solid rgba(120,100,80,.14);
}
.stage .next-card:hover { transform: translateY(-2px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .stage, .wordmark { transition: none; }
  .sec { animation: none; }
  .stage, .stage.open { filter: none; }
}

/* —— 拼贴墙杂志：macOS 风格（SF 字体、无装饰线、照片严格网格） —— */
.mag-wrap { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100%; padding:6px 0 2px;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif; }
.mag-book { position:relative; width:720px; height:600px; flex:0 0 auto; }
.mag-book { touch-action:pan-y; cursor:grab; }
.mag-book img, .mag-book video { -webkit-user-drag:none; user-select:none; -webkit-user-select:none; }
.mag-spread { position:absolute; inset:0; display:flex; visibility:hidden; transform-style:preserve-3d; }
.mag-spread.is-current { visibility:visible; }
/* 跨页内层：保持左图右文 flex 排版（外层 .mag-spread 在 pf 模式下由 StPageFlip 管理） */
.mag-spread-in { display:flex; height:100%; width:100%; }
/* StPageFlip 模式：页面显隐由库的 display 控制，我们的 visibility 让位 */
.mag-book.pf-on .mag-spread { visibility:visible; }
/* StPageFlip 基础样式（page-flip@2.0.7, MIT © Nodlik；其 css 原为单独文件，这里并入） */
.stf__parent { position:relative; display:block; box-sizing:border-box; transform:translateZ(0); -ms-touch-action:pan-y; touch-action:pan-y; }
.sft__wrapper { position:relative; width:100%; box-sizing:border-box; }
.stf__parent canvas { position:absolute; width:100%; height:100%; left:0; top:0; }
.stf__block { position:absolute; width:100%; height:100%; box-sizing:border-box; perspective:2000px; }
.stf__item { display:none; position:absolute; transform-style:preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position:absolute; left:0; top:0; }
/* 与桌面融为一体（第一约束）：页面无白色、无卡片阴影，照片与文字直接落在壁纸上 */
.mag-pg { position:relative; height:100%; background:transparent; overflow:hidden; }
.mag-pg, .mag-pg * { box-sizing:border-box; }
/* 左图:右文严格 2:1（480:240），显式 basis，不随内容浮动 */
.mag-pgL { flex:0 0 480px; min-width:0; border-radius:18px 8px 8px 18px; }
.mag-pgR { flex:0 0 240px; min-width:0; border-radius:8px 18px 18px 8px; background:transparent; }
/* 左页：E 网格（12栏×8行，16px 间隙，18px 圆角，零文字） */
.egrid { position:absolute; inset:16px; display:grid; gap:16px;
  grid-template-columns:repeat(12, 1fr); grid-template-rows:repeat(8, 1fr); }
.egrid .ecell { position:relative; overflow:hidden; border-radius:18px; background:#f2f2f5; }
.egrid .ecell { box-shadow:0 2px 10px rgba(60,60,70,.10); }
.egrid .ecell img, .egrid .ecell video { display:block; width:100%; height:100%; object-fit:cover; }
/* 1张：整页通栏 */
.egrid.e1 .ecell { grid-column:1 / 13; grid-row:1 / 9; }
/* 2张：7:5 单行 */
.egrid.e2 .ecell:nth-child(1) { grid-column:1 / 8; grid-row:1 / 9; }
.egrid.e2 .ecell:nth-child(2) { grid-column:8 / 13; grid-row:1 / 9; }
/* 3张：7:5 + 下行通栏 */
.egrid.e3 .ecell:nth-child(1) { grid-column:1 / 8; grid-row:1 / 5; }
.egrid.e3 .ecell:nth-child(2) { grid-column:8 / 13; grid-row:1 / 5; }
.egrid.e3 .ecell:nth-child(3) { grid-column:1 / 13; grid-row:5 / 9; }
/* 4张：镜像 7:5 / 5:7（E 基准） */
.egrid.e4 .ecell:nth-child(1) { grid-column:1 / 8; grid-row:1 / 5; }
.egrid.e4 .ecell:nth-child(2) { grid-column:8 / 13; grid-row:1 / 5; }
.egrid.e4 .ecell:nth-child(3) { grid-column:1 / 6; grid-row:5 / 9; }
.egrid.e4 .ecell:nth-child(4) { grid-column:6 / 13; grid-row:5 / 9; }
/* 5张+：7:5 / 5:7 交替纵向顺延，页内滚动（滚动条同样隐藏，只留滚动本身） */
.egrid.ex { grid-template-columns:1fr; grid-template-rows:none; grid-auto-rows:auto;
  overflow-y:auto; align-content:start; scrollbar-width:none; }
.egrid.ex::-webkit-scrollbar { display:none; width:0; height:0; }
.exrow { display:grid; gap:16px; }
.exrow.f75 { grid-template-columns:7fr 5fr; }
.exrow.f57 { grid-template-columns:5fr 7fr; }
.exrow .ecell { aspect-ratio:4 / 3; }
.exrow .ecell:only-child { grid-column:1 / -1; }
/* 右页：日志窄栏 */
.mag-pgR { padding:40px 26px; }
.meyebrow { font-size:12px; font-weight:600; color:#8e8e93; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.mag-pgR h3 { font-size:21px; font-weight:700; letter-spacing:-.01em; color:#1c1c1e; margin:0 0 8px; }
.mdate { font-size:12.5px; color:#8e8e93; margin-bottom:18px; }
.mbody { font-size:14.5px; line-height:1.8; color:#3a3a3c; margin:0 0 18px; }
.mquote { font-size:16px; font-weight:600; line-height:1.6; color:#1c1c1e; margin:0;
  padding-left:12px; border-left:3px solid #e8e8ec; }
/* 封面 */
.mag-cover { display:flex; flex-direction:column; justify-content:center; padding:40px 26px; }
.mcover-k { font-size:12px; font-weight:600; color:#8e8e93; margin-bottom:12px; }
.mag-cover h1 { font-size:42px; font-weight:800; letter-spacing:-.02em; color:#1c1c1e; margin:0 0 22px; }
.mcover-thumbs { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:26px; }
.mthumb { border-radius:12px; overflow:hidden; aspect-ratio:4/3; position:relative; background:#f2f2f5; }
.mthumb { box-shadow:0 2px 10px rgba(60,60,70,.10); }
.mthumb img, .mthumb video { display:block; width:100%; height:100%; object-fit:cover; }
.mcover-date { font-size:12.5px; color:#8e8e93; }
/* 空白页 / 结束页 */
.mag-end-inner { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:36px; font-size:14px; line-height:2.2; color:#8e8e93; }
.mag-end-inner .mend { font-size:30px; font-weight:700; color:#1c1c1e; margin:0 0 6px; }
.mag-inside-mark { font-size:13px; color:#c7c7cc; }
/* 翻页渲染由 StPageFlip 接管（卷曲 + 自带动态阴影）；背面隐藏与库的
   分层渲染在原型实测中兼容（2026-10-20），保持不动 */
.mag-spread { backface-visibility:hidden; -webkit-backface-visibility:hidden; }
/* 导航：iOS 式页面点 */
.mag-nav { display:flex; align-items:center; gap:16px; margin-top:16px; }
.mag-nav button { width:32px; height:32px; border-radius:50%; border:none;
  background:rgba(255,255,255,.7); color:#8e8e93; font-size:15px; cursor:pointer; line-height:1;
  box-shadow:0 2px 8px rgba(60,60,70,.12); }
.mag-nav button:disabled { opacity:.35; cursor:default; }
.mag-dots { display:flex; gap:7px; }
.mdot { width:7px; height:7px; border-radius:50%; background:rgba(120,120,130,.35); transition:background .3s; }
.mdot.on { background:rgba(60,60,70,.85); }
/* 深色 */
[data-theme="dark"] .mag-pg { background:transparent; box-shadow:none; }
[data-theme="dark"] .mag-pgR { background:transparent; }
[data-theme="dark"] .mhead h2, [data-theme="dark"] .mag-pgR h3,
[data-theme="dark"] .mag-cover h1, [data-theme="dark"] .mag-end-inner .mend { color:#f2f2f4; }
[data-theme="dark"] .mbody { color:#c9c9cf; }
[data-theme="dark"] .mquote { border-color:#3a3a3e; color:#f2f2f4; }
[data-theme="dark"] .egrid .ecell, [data-theme="dark"] .mthumb { background:#2c2c2e; }
[data-theme="dark"] .egrid .ecell { box-shadow:0 2px 10px rgba(0,0,0,.40); }
[data-theme="dark"] .mag-nav button { background:rgba(40,40,44,.8); color:#aeaeb4; }
[data-theme="dark"] .mdot { background:rgba(160,160,170,.35); }
[data-theme="dark"] .mdot.on { background:rgba(220,220,228,.9); }

