/* 星梦Staream · 晴蓝樱粉梦境
   取色参考：奶油白底、晴蓝发与樱粉发的水彩晕染、斜向逆光、飘落花瓣。
   玻璃降低白色填充、加大透色与折射高光，让天空的水彩能透进来。
   暖黄比上一版更明确：以大面积雾晕托底 + 胖星柔光 + 模糊流星的黄光，
   仍然不做高饱和实体色块。全站星形统一为圆角五角星 SVG（symbol #puffy-star）。
   性能：静态水彩全部改用渐变烘焙，去掉全屏 backdrop-filter 与大面积 filter；
   星星 / 白花动画只用 transform+opacity，滚动监听用 requestAnimationFrame 节流。
   本版：漂移改四点弧线并加大位移与旋转；新增偶尔掠过、留下渐隐光迹的流星；
   蜜金雾晕面积放大并用多段渐变柔化边缘；星夜底色压暗一档托住亮色文字。
   流星统一从右上掠向左下，头部飞出屏幕才熄灭；光迹细线两端收透明、外叠宽雾。
   本版：流星飞行段略放宽（稍慢）、光迹更快淡出；极小小星改为静态只留明暗层次；
   背景爱心由淡蓝改为樱粉，晴空与星夜分别取色。
   本版：流星再放慢一点；光迹右端锚定头部、只向走过的后方延伸，慢速流星的头部改到行进前方；
   全站星形统一为圆角五角星（移除四角星芒）；按评审补对比度、移动端减负、窄屏断点与 SVG 主题图标。
   本版：星星生成时随机一个朝向、之后只平移不旋转；白花旋转幅度加大；花/星/爱心位移再放大一档。
   本版：星夜的蓝色小字与符号改近白冷调并加极淡暗描边，玻璃面板由透白改透深蓝紫，
   让 12–14px 的细笔画在夜空里也站得住；白天模式配色完全不动。
   本版：内容区铺满屏宽并给正文留舒适行宽；导航换行不裁切；强调色文字改用深色版过 AA；
   补无脚本兜底与分享元信息；窄屏关闭实时毛玻璃；新增版本日志文章与关于页 HTML 预览。 */

:root {
  /* 天空：明亮奶蓝 → 雾紫 → 樱粉 → 奶油白 */
  --sky-top: #cfe2fb;
  --sky-mid: #e0e5fb;
  --sky-low: #f6dfef;
  --sky-floor: #fff6f8;

  --wash-blue: rgba(150, 193, 246, .46);
  --wash-pink: rgba(247, 183, 212, .40);
  --wash-cream: rgba(255, 250, 242, .72);
  --haze-a: rgba(226, 220, 249, .44);
  --haze-b: rgba(250, 215, 233, .38);
  --warm-mist: rgba(255, 222, 152, .24);
  --warm-mist-2: rgba(255, 216, 158, .17);
  --gold-a: rgba(255, 210, 124, .26);
  --gold-b: rgba(255, 222, 152, .20);
  --gold-c: rgba(255, 216, 138, .16);

  --ink: #4c5476;
  --ink-strong: #39436a;
  /* 次要文字提到 WCAG AA：对纯白与浅粉底均 >= 4.5:1 */
  --muted: #525d84;
  --faint: #64708f;

  --accent: #7897dc;
  --accent-2: #ab8bd4;
  --accent-3: #e096bd;
  /* 文字专用深色版：对纯白 6.5:1、对最深的晴蓝底仍 >= 4.9:1；装饰色保持原值 */
  --accent-text: #3f5c9c;
  --accent-2-text: #6b4a9f;
  --accent-3-text: #934268;
  --accent-soft: rgba(140, 165, 225, .15);
  --heart-fill: #f3b4d2;
  --line: rgba(255, 255, 255, .74);

  /* 通透玻璃：白色填充压得很低，靠折射高光与边缘描边勾出厚度 */
  --glass: linear-gradient(140deg, rgba(255, 255, 255, .44) 0%, rgba(255, 255, 255, .16) 46%, rgba(255, 255, 255, .30) 100%);
  --glass-strong: linear-gradient(140deg, rgba(255, 255, 255, .60), rgba(255, 255, 255, .34));
  --glass-line: rgba(255, 255, 255, .72);
  --glass-shadow: 0 14px 40px rgba(112, 138, 190, .10), 0 2px 12px rgba(112, 138, 190, .05);
  --glass-blur: blur(10px) saturate(128%);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, .86), inset 0 -1px 0 rgba(255, 255, 255, .20);
  --glass-sheen: linear-gradient(118deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .12) 100%);

  /* 代码块改为雾白玻璃，与整体浅色调统一 */
  --code-bg: rgba(255, 255, 255, .30);
  --code-ink: #4a5175;
  --code-line: rgba(120, 140, 190, .22);

  /* 蜜金：比奶油白更明确的黄色，但仍靠雾与柔光散开，不做硬色块 */
  --star: #f7d189;
  --star-soft: rgba(250, 214, 140, .90);
  --star-mist: rgba(255, 214, 132, .42);
  --star-halo: rgba(255, 220, 148, .38);
  --star-fade: rgba(255, 226, 166, .14);
  --star-glow: rgba(255, 208, 120, .55);
  --star-dot: rgba(255, 244, 214, .94);
  --puffy-mark: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'><path%20fill='%23f7d189'%20d='M%2044.3%2014.0%20Q%2050.0%206.0%2055.7%2014.0%20L%2061.1%2021.5%20Q%2065.9%2028.2%2073.7%2030.6%20L%2082.5%2033.4%20Q%2091.8%2036.4%2086.0%2044.3%20L%2080.5%2051.8%20Q%2075.7%2058.3%2075.7%2066.5%20L%2075.8%2075.8%20Q%2075.9%2085.6%2066.6%2082.5%20L%2057.8%2079.6%20Q%2050.0%2077.0%2042.2%2079.6%20L%2033.4%2082.5%20Q%2024.1%2085.6%2024.2%2075.8%20L%2024.3%2066.5%20Q%2024.3%2058.3%2019.5%2051.8%20L%2014.0%2044.3%20Q%208.2%2036.4%2017.5%2033.4%20L%2026.3%2030.6%20Q%2034.1%2028.2%2038.9%2021.5%20L%2044.3%2014.0%20Z'/></svg>");

  --radius: 20px;
  --radius-lg: 28px;

  /* 排版尺度：外层通栏，导航占满整行；搜索与内容收进居中定宽栏 */
  --gutter: clamp(16px, 3.4vw, 64px);
  --shell: 1080px;
  --search-w: 560px;

  /* 夜空下整体压暗，日光层与薄雾层的透明度单独可调 */
  --frost-opacity: .30;
  --sunbeam-opacity: .70;
}

/* 星夜：仍是蓝调夜空，不压成黑；底色压暗一档，亮色文字更清楚。
   小字 / 蓝色符号统一提到近白冷调，玻璃面板由透白改透深蓝紫，
   让 12–14px 的细笔画在夜空里也站得住（实测对比度 >= 4.5:1）。 */
:root[data-theme="night"] {
  --sky-top: #4d6aa9;
  --sky-mid: #6572b2;
  --sky-low: #8d70ac;
  --sky-floor: #bb90b3;

  --wash-blue: rgba(146, 186, 246, .32);
  --wash-pink: rgba(242, 168, 208, .29);
  --wash-cream: rgba(255, 244, 236, .18);
  --haze-a: rgba(176, 172, 232, .26);
  --haze-b: rgba(232, 180, 212, .23);
  --warm-mist: rgba(255, 222, 152, .20);
  --warm-mist-2: rgba(255, 216, 158, .14);
  --gold-a: rgba(255, 210, 124, .28);
  --gold-b: rgba(255, 222, 152, .22);
  --gold-c: rgba(255, 216, 138, .18);

  --frost-opacity: .10;
  --sunbeam-opacity: .26;

  /* 近白冷调：保留一点蓝味，但不再用会糊在玻璃里的中亮蓝 */
  --ink: #f4f7ff;
  --ink-strong: #ffffff;
  --muted: #e6eeff;
  --faint: #d4e1fc;

  --accent: #dbe9ff;
  --accent-2: #e2cdfb;
  --accent-3: #ffd2e9;
  /* 星夜里文字仍用近白冷调 */
  --accent-text: #dbe9ff;
  --accent-2-text: #e2cdfb;
  --accent-3-text: #ffd2e9;
  --accent-soft: rgba(126, 162, 226, .22);
  --heart-fill: #f8bedb;
  --line: rgba(226, 236, 255, .32);

  /* 半透深蓝紫玻璃：仍是亚克力，但给亮色文字足够深的底 */
  --glass: linear-gradient(140deg,
    rgba(18, 28, 72, .64) 0%, rgba(14, 22, 62, .68) 46%, rgba(24, 30, 78, .66) 100%);
  --glass-strong: linear-gradient(140deg, rgba(22, 34, 84, .72), rgba(14, 22, 62, .68));
  --glass-line: rgba(208, 226, 255, .34);
  --glass-shadow: 0 18px 50px rgba(12, 22, 58, .34);
  --glass-inner: inset 0 1px 0 rgba(226, 238, 255, .22), inset 0 -1px 0 rgba(226, 238, 255, .07);
  --glass-sheen: linear-gradient(118deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .04) 100%);

  --code-bg: rgba(16, 26, 66, .36);
  --code-ink: #f6f8ff;
  --code-line: rgba(206, 224, 255, .24);

  --star: #ffdf9c;
  --star-soft: rgba(255, 231, 173, .94);
  --star-mist: rgba(255, 220, 145, .40);
  --star-halo: rgba(255, 224, 156, .34);
  --star-fade: rgba(255, 228, 172, .13);
  --star-glow: rgba(255, 216, 138, .62);
  --star-dot: rgba(255, 248, 224, .94);

  /* 细笔画的极淡暗描边：只托底，不改变字色观感 */
  --night-ink-halo: 0 1px 2px rgba(8, 16, 44, .60);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--sky-top);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color .5s ease, background-color .5s ease;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 背景：水彩天空 ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  contain: layout paint;
  isolation: isolate;
  transform: translateZ(0);
}

.sky-base {
  position: absolute; inset: 0;
  background: linear-gradient(176deg,
    var(--sky-top) 0%, var(--sky-mid) 34%,
    var(--sky-low) 72%, var(--sky-floor) 100%);
  transition: background .6s ease;
}

/* 水彩晕染：不规则大色块，边缘全部化开 */
.wash { position: absolute; border-radius: 48% 52% 43% 57% / 55% 43% 57% 45%; }
.wash-blue { width: 76vw; height: 62vw; left: -20vw; top: -20vw; background: radial-gradient(circle at 55% 50%, var(--wash-blue), transparent 70%); }
.wash-pink { width: 72vw; height: 56vw; right: -18vw; top: 6vh; background: radial-gradient(circle at 45% 50%, var(--wash-pink), transparent 72%); }
.wash-cream { width: 88vw; height: 50vw; left: 4vw; bottom: -22vw; background: radial-gradient(circle at 50% 40%, var(--wash-cream), transparent 72%); }

/* 斜向逆光光柱：让蓝与粉在光里相互渗透 */
.sunbeam {
  position: absolute; inset: -22% -32%;
  background: linear-gradient(118deg,
    transparent 32%, rgba(255, 255, 255, .30) 44%,
    rgba(255, 244, 249, .28) 51%, rgba(255, 255, 255, .18) 58%, transparent 70%);
  opacity: var(--sunbeam-opacity, .70);
}

/* 雾蒙：所有颜色交界处的大范围柔化 */
.haze {
  position: absolute; left: -12%; right: -12%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.haze-one { top: 25vh; height: 50vh; background: linear-gradient(180deg, transparent, var(--haze-a) 46%, var(--haze-b) 72%, transparent); }
.haze-two { top: 62vh; height: 44vh; opacity: .58; background: linear-gradient(180deg, transparent, var(--haze-b) 55%, transparent); }

/* 暖黄第一层：大面积模糊 + 柔光混合，把金色融进蓝粉里 */
.warm-mist {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 50% at 68% 22%, var(--warm-mist), transparent 78%),
    radial-gradient(50% 44% at 20% 76%, var(--warm-mist-2), transparent 76%),
    radial-gradient(38% 34% at 88% 66%, var(--warm-mist-2), transparent 80%);
  opacity: .82;
}

/* 暖黄第二层：可见的蜜金雾光，仍然是化开的，没有边界 */
.gold-mist {
  position: absolute; inset: 0;
  background:
    radial-gradient(48% 42% at 70% 18%, var(--gold-a), transparent 80%),
    radial-gradient(40% 34% at 22% 68%, var(--gold-b), transparent 82%),
    radial-gradient(32% 28% at 86% 72%, var(--gold-c), transparent 84%),
    radial-gradient(66% 58% at 56% 44%, var(--star-fade), transparent 86%);
  opacity: .86;
}

/* 亚克力薄雾：只轻轻揉一层，保留天空的通透感，之后的元素保持清晰 */
.frost {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 46%, rgba(255, 255, 255, .22));
  opacity: var(--frost-opacity, .30);
}

/* ---------- 静态装饰：小白花 / 樱粉心 / 五角星 ---------- */
.blooms { position: absolute; inset: 0; }
.sky-deco {
  position: absolute; height: auto; aspect-ratio: 1;
  animation: deco-drift var(--dur, 64s) ease-in-out var(--delay, 0s) infinite;
}
/* 白花 / 爱心 / 五角星：各自不同方向与周期的缓慢游走；只有白花明显旋转 */
.blooms .sky-deco:nth-child(1) { --dx: 40px;  --dy: -26px; --spin: 18deg;  --dur: 68s; --delay: -7s; }
.blooms .sky-deco:nth-child(2) { --dx: -34px; --dy: 30px;  --spin: -22deg; --dur: 76s; --delay: -23s; }
.blooms .sky-deco:nth-child(3) { --dx: 29px;  --dy: 36px;  --spin: 26deg;  --dur: 62s; --delay: -35s; }
.blooms .sky-deco:nth-child(4) { --dx: -44px; --dy: -20px; --spin: -15deg; --dur: 84s; --delay: -12s; }
.blooms .sky-deco:nth-child(5) { --dx: 25px;  --dy: -33px; --spin: 21deg;  --dur: 71s; --delay: -46s; }
.blooms .sky-deco:nth-child(6) { --dx: -31px; --dy: 25px;  --spin: -19deg; --dur: 79s; --delay: -29s; }
.blooms .sky-deco:nth-child(7) { --dx: 38px;  --dy: 19px;  --spin: 29deg;  --dur: 57s; --delay: -18s; }
.blooms .sky-deco:nth-child(8) { --dx: -23px; --dy: -36px; --spin: -24deg; --dur: 88s; --delay: -41s; }
/* 白花旋转幅度单独放大；五角星装饰只保留生成时的初始朝向，之后不再旋转 */
.blooms .sky-deco.bloom { --spin-boost: 1.45; }
.blooms .sky-deco.sparkle { --spin-boost: 0; }
.blooms .sky-deco.sparkle:nth-child(7) { --dir0: -16deg; }
.blooms .sky-deco.sparkle:nth-child(8) { --dir0: 24deg; }
.bloom { opacity: .52; filter: blur(.5px); }
.heart { fill: var(--heart-fill, #f3b4d2); opacity: .42; filter: blur(.8px); }
/* 装饰五角星：与胖星共用 #puffy-star 轮廓，站点内不再出现四角星芒 */
.sparkle { fill: var(--star-soft); opacity: .56; filter: blur(.6px) drop-shadow(0 0 6px var(--star-glow)); }
:root[data-theme="night"] .bloom { opacity: .34; }
:root[data-theme="night"] .heart { opacity: .34; }

/* ---------- 星星：全站统一圆角五角星，不使用四角星 ---------- */
.stars { position: absolute; inset: 0; contain: layout paint; }

.star {
  position: absolute; border-radius: 50%;
  background: var(--star-dot);
  box-shadow: 0 0 10px 3px var(--star-mist);
  animation: star-drift var(--dur, 34s) ease-in-out var(--delay, 0s) infinite;
}
/* 极小小星：不位移、不旋转，只保留静态明暗层次；动感交给大胖星与暖光星 */
.star.is-still { animation: none; opacity: var(--sop, .72); }
/* 少量暖金光点：把黄色光效散到整片天空里 */
.star.is-warm {
  background: var(--star-soft);
  box-shadow: 0 0 12px 4px var(--star-mist), 0 0 32px 12px var(--gold-c);
}
.star.is-puffy {
  width: var(--size, 14px); height: var(--size, 14px);
  background: none; box-shadow: none; border-radius: 0;
  animation: star-drift var(--dur, 46s) ease-in-out var(--delay, 0s) infinite;
}
/* 每颗胖星自带两层化开的暖雾，越往外越淡 */
.star.is-puffy::before {
  content: ''; position: absolute; inset: -210%;
  background: radial-gradient(circle,
    var(--star-mist) 0%, var(--star-halo) 22%,
    var(--star-fade) 46%, transparent 76%);
  opacity: .72;
}
.star.is-puffy svg {
  position: relative; display: block; width: 100%; height: 100%;
  fill: var(--star-soft); opacity: .90;
  filter: drop-shadow(0 0 10px var(--star-glow));
}

/* 飘落花瓣 */
.petals { position: absolute; inset: 0; }
.petal {
  position: absolute; width: var(--size, 13px); height: auto; aspect-ratio: 4 / 5;
  animation: petal-fall var(--dur, 26s) linear var(--delay, 0s) infinite;
}
.petal svg { display: block; width: 100%; height: 100%; fill: var(--petal-fill, rgba(250, 205, 225, .72)); }

/* 少量模糊流星：头部在行进前方（左端 / 左下），光迹只留在走过的后方（右上） */
.meteors { position: absolute; inset: 0; }
.meteor {
  position: absolute;
  width: var(--len, 170px); height: 2px;
  border-radius: 999px;
  /* 0% 为头部侧最亮，沿来路逐渐化进背景 */
  background: linear-gradient(90deg,
    rgba(255, 246, 214, .86) 0%, rgba(255, 230, 170, .62) 22%,
    var(--star-halo) 66%, transparent 100%);
  filter: blur(2.2px);
  opacity: 0;
  transform: rotate(var(--angle, -26deg));
  animation: meteor var(--dur, 24s) linear var(--delay, 0s) infinite;
}
/* 宽而淡的雾蒙光晕：同样只在头部侧更浓 */
.meteor::before {
  content: ''; position: absolute; inset: -16px -12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--star-mist), transparent 74%);
  opacity: .58;
}
/* 蜜金色发光头部：圆心落在 x=0，与光迹 0% 的亮端严丝合缝 */
.meteor::after {
  content: ''; position: absolute; left: -6px; top: -5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0%, var(--star) 46%, transparent 74%);
  box-shadow: 0 0 14px 5px var(--star-glow), 0 0 34px 13px var(--star-mist);
}
.meteor-a { top: 14%; left: 72%; --len: 180px; --angle: -26deg; --tx: -370px; --ty: 185px; --dur: 21s; --delay: 5s; --peak: .76; }
.meteor-b { top: 40%; left: 90%; --len: 140px; --angle: -21deg; --tx: -300px; --ty: 135px; --dur: 29s; --delay: 14s; --peak: .56; }
.meteor-c { top: 7%;  left: 46%; --len: 120px; --angle: -31deg; --tx: -280px; --ty: 175px; --dur: 37s; --delay: 24s; --peak: .44; }

/* ---------- 偶尔掠过的流星：从右上到左下，头部出屏后才熄灭 ----------
   光迹右端永远锚在头部（left:-tlen + width:tlen => 右端在 x=0），
   随头部同步平移；scaleX 以右端为原点只向左（来路）拉伸，
   因此轨迹只出现在流星走过的地方，且与头部之间不留间隙。 */
.shoots { position: absolute; inset: 0; }
.shoot {
  position: absolute;
  width: 0; height: 2px;
  /* 旋转 150–160deg，让局部 +x 指向左下；起点固定在右上天空 */
  transform: rotate(var(--sangle, 156deg));
  transform-origin: 0 50%;
}
/* 光迹：右端最亮接头部，向左（来路）渐隐到透明；外叠极淡宽雾 */
.shoot::before {
  content: ''; position: absolute;
  left: calc(-1 * var(--tlen, 32vw)); top: -7px;
  width: var(--tlen, 32vw); height: 16px; border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent 0%, var(--star-fade) 18%,
      rgba(255, 222, 160, .22) 52%, rgba(255, 238, 196, .46) 84%,
      rgba(255, 248, 224, .58) 100%) center / 100% 2px no-repeat,
    radial-gradient(ellipse 62% 100% at 84% 50%, var(--star-fade), transparent 82%);
  filter: blur(1.4px);
  transform: translate3d(0, 0, 0) scaleX(.02); transform-origin: 100% 50%;
  opacity: 0;
  animation: shoot-trail var(--scycle, 19s) linear var(--sdelay, 0s) infinite;
}
/* 蜜金头部：圆心落在 x=0，与光迹 100% 亮端相接；飞出屏幕才熄灭 */
.shoot::after {
  content: ''; position: absolute; left: -6px; top: -5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #fff9e8 0%, var(--star) 42%, transparent 76%);
  box-shadow: 0 0 12px 4px var(--star-glow), 0 0 28px 10px var(--star-fade);
  opacity: 0;
  /* 只给 3 个头部提层，避免合成层爆炸 */
  will-change: transform, opacity;
  animation: shoot-head var(--scycle, 19s) linear var(--sdelay, 0s) infinite;
}
.shoot-a { top: 10%; left: 84%; --sangle: 156deg; --tlen: 36vw; --sdist: 124vw; --scycle: 19s; --sdelay: -2s; --speak: .92; --shold: .66; }
.shoot-b { top: 34%; left: 96%; --sangle: 150deg; --tlen: 32vw; --sdist: 122vw; --scycle: 27s; --sdelay: -9s; --speak: .76; --shold: .52; }
.shoot-c { top: 4%;  left: 68%; --sangle: 160deg; --tlen: 28vw; --sdist: 108vw; --scycle: 34s; --sdelay: -5s; --speak: .62; --shold: .42; }

@keyframes shoot-head {
  0%, 43.9%   { opacity: 0; transform: translate3d(0, 0, 0) scale(.8); }
  44%         { opacity: var(--speak, .9); transform: translate3d(0, 0, 0) scale(1); }
  53%         { opacity: var(--speak, .9); transform: translate3d(var(--sdist, 120vw), 0, 0) scale(1); }
  53.1%, 100% { opacity: 0; transform: translate3d(var(--sdist, 120vw), 0, 0) scale(.6); }
}
@keyframes shoot-trail {
  0%, 43.9%   { opacity: 0; transform: translate3d(0, 0, 0) scaleX(.02); }
  44%         { opacity: var(--speak, .9); transform: translate3d(0, 0, 0) scaleX(.02); }
  53%         { opacity: var(--speak, .9); transform: translate3d(var(--sdist, 120vw), 0, 0) scaleX(1); }
  56%         { opacity: var(--shold, .55); transform: translate3d(var(--sdist, 120vw), 0, 0) scaleX(1); }
  61%         { opacity: 0; transform: translate3d(var(--sdist, 120vw), 0, 0) scaleX(1); }
  61.1%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scaleX(.02); }
}

/* 星星生成时随机一个朝向（--spin0），此后全程恒定不旋转，只做四点弧线平移与明暗呼吸；
   白花 / 爱心仍缓慢旋转，白花用 --spin-boost 放大，五角星装饰 boost=0 只留初始朝向。
   只走 transform / opacity 合成；中途点由脚本注入（装饰用放大后的默认兜底）。 */
@keyframes star-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--spin0, 0deg)); opacity: .30; }
  25%  { transform: translate3d(var(--dx2, 12px), var(--dy2, 8px), 0) rotate(var(--spin0, 0deg)); opacity: .64; }
  50%  { transform: translate3d(var(--dx, 24px), var(--dy, -20px), 0) rotate(var(--spin0, 0deg)); opacity: .94; }
  75%  { transform: translate3d(var(--dx3, 9px), var(--dy3, -24px), 0) rotate(var(--spin0, 0deg)); opacity: .66; }
  100% { transform: translate3d(0, 0, 0) rotate(var(--spin0, 0deg)); opacity: .30; }
}
@keyframes deco-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--dir0, 0deg)); }
  25%  { transform: translate3d(var(--dx2, 18px), var(--dy2, 10px), 0) rotate(calc(var(--dir0, 0deg) + var(--spin2, 9deg) * var(--spin-boost, 1))); }
  50%  { transform: translate3d(var(--dx, 32px), var(--dy, -22px), 0) rotate(calc(var(--dir0, 0deg) + var(--spin, 20deg) * var(--spin-boost, 1))); }
  75%  { transform: translate3d(var(--dx3, 14px), var(--dy3, -27px), 0) rotate(calc(var(--dir0, 0deg) + var(--spin3, 14deg) * var(--spin-boost, 1))); }
  100% { transform: translate3d(0, 0, 0) rotate(var(--dir0, 0deg)); }
}
@keyframes puff { from { opacity: .44; transform: scale(.92); } to { opacity: .82; transform: scale(1.06); } }
@keyframes petal-fall {
  0% { transform: translate3d(0, -14vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--op, .5); }
  88% { opacity: var(--op, .5); }
  100% { transform: translate3d(7vw, 112vh, 0) rotate(240deg); opacity: 0; }
}
@keyframes meteor {
  0%   { opacity: 0; transform: translate(0, 0) rotate(var(--angle, -26deg)); }
  4%   { opacity: var(--peak, .7); }
  15%  { opacity: 0; transform: translate(var(--tx, -340px), var(--ty, 170px)) rotate(var(--angle, -26deg)); }
  100% { opacity: 0; transform: translate(var(--tx, -340px), var(--ty, 170px)) rotate(var(--angle, -26deg)); }
}

/* ---------- 通用玻璃 ---------- */
.glass {
  background: var(--glass-sheen), var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner);
  border-radius: var(--radius-lg);
}

a { color: var(--accent-text); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent-3-text); text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 8px; }

/* 外层只负责撑满视口；导航整行铺开，搜索/正文/页脚各自收进 --shell 居中栏 */
.wrap { position: relative; z-index: 1; width: 100%; max-width: none;
  margin: 0 auto; padding: 0; }
.shell { width: 100%; max-width: var(--shell); margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter); }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 40;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 12px rgba(171, 139, 212, .42);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .10s linear;
  will-change: transform;
}

/* ---------- 头部：导航独占整行且通栏；搜索与内容另起居中定宽栏 ---------- */
.site-head {
  margin-top: 0; padding: 0;
  border-radius: 0; border-left: 0; border-right: 0; border-top: 0;
  box-shadow: 0 8px 26px rgba(112, 138, 190, .10), var(--glass-inner);
}
.head-inner { width: 100%; max-width: var(--shell); margin: 0 auto;
  padding: 12px var(--gutter); display: flex; align-items: center; gap: 14px; }
.head-bar { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.brand-wrap { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }

/* 圆润胖星标：蜜金柔光托底，边缘化在雾里 */
.puffy-mark { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; }
.puffy-mark::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, var(--star-mist) 0%, var(--star-halo) 30%, var(--star-fade) 56%, transparent 78%);
  filter: blur(9px); opacity: .9;
}
.puffy-mark svg {
  position: relative; width: 26px; height: 26px;
  fill: var(--star-soft); opacity: .94;
  filter: drop-shadow(0 0 5px var(--star-glow)) drop-shadow(0 0 13px var(--star-mist));
  animation: puff 5.5s ease-in-out infinite alternate;
}

.site-title { font-size: 19px; font-weight: 650; letter-spacing: 1px; line-height: 1.3; white-space: nowrap; }
.site-title a {
  background: linear-gradient(100deg, #3f5c9c 0%, #6b4a9f 52%, #934268 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
:root[data-theme="night"] .site-title a { background-image: linear-gradient(100deg, #b6d0ff 0%, #ddbdfa 52%, #f9bddb 100%); }
.site-title a:hover { filter: brightness(1.08); }

.icon-btn {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 17px; color: var(--accent-text);
  background: var(--glass-sheen), var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-inner);
  
  transition: transform .3s ease, box-shadow .3s ease, color .3s ease;
}
.icon-btn:hover { transform: rotate(-18deg) scale(1.08); color: var(--accent-3-text); box-shadow: 0 0 18px rgba(171, 139, 212, .28), var(--glass-inner); }
.icon-btn svg { display: block; width: 18px; height: 18px; }

.nav { display: flex; gap: 2px; font-size: 13px; margin-left: auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); padding: 6px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink-strong); background: rgba(255, 255, 255, .26); }
.nav a.active {
  color: var(--ink-strong); font-weight: 600;
  background: var(--glass-sheen), var(--glass-strong);
  border-color: var(--glass-line);
  
  box-shadow: 0 5px 16px rgba(110, 136, 188, .12), var(--glass-inner);
}
.nav a.active::after {
  content: ''; display: inline-block; vertical-align: middle;
  width: 9px; height: 9px; margin-left: 6px;
  background-image: var(--puffy-mark);
  background-size: contain; background-repeat: no-repeat;
  opacity: .58;
}

.search-bar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: var(--search-w);
  margin: 22px auto 6px; padding: 10px 20px;
  border-radius: 999px;
  color: var(--muted);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.search-bar:focus-within { border-color: rgba(171, 139, 212, .6); box-shadow: 0 0 18px rgba(171, 139, 212, .20), var(--glass-inner); }
.search-bar input {
  flex: 1 1 auto; width: 100%; min-width: 0;
  border: 0; outline: 0; background: none;
  color: var(--ink); font: inherit; font-size: 13.5px;
}
.search-bar input::placeholder { color: var(--faint); }
.search-bar input::-webkit-search-cancel-button { cursor: pointer; }
.search-tip { flex: 0 0 auto; font-size: 11px; letter-spacing: .8px; color: var(--faint); }

main { min-height: 320px; }

.page-note { color: var(--muted); font-size: 14px; margin: 20px 4px 6px; letter-spacing: .3px; }

/* ---------- 文章列表：全屏后按可用宽度自动分栏 ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 18px; align-items: start; margin-top: 18px; }
.post-list .post-item { margin: 0; }

/* 列表卡片：限制布局影响范围，滚动时少算一层 */
.post-item, .x-card, .friend-card { contain: layout style; }

/* ---------- 文章列表卡片 ---------- */
.post-item {
  position: relative; overflow: hidden;
  margin: 18px 0; padding: 25px 30px;
  border-radius: var(--radius);
  background: var(--glass-sheen), var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner);
  transition: transform .38s cubic-bezier(.2, .8, .3, 1), box-shadow .38s ease;
}
.post-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: .62;
}
.post-item:hover { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(112, 138, 190, .20), var(--glass-inner); }

.post-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.post-title { display: block; margin: 9px 0 9px; font-size: 20px; font-weight: 650; line-height: 1.45; color: var(--ink-strong); }
.post-title:hover { color: var(--accent-text); }
.post-summary { margin: 0; color: var(--muted); font-size: 14.5px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--glass-sheen), var(--glass-strong); color: var(--accent-text);
  border: 1px solid var(--glass-line);
  font-size: 12px; line-height: 1.7;
  
  transition: transform .28s ease, box-shadow .28s ease, color .28s ease, border-color .28s ease;
}
.tag:hover { color: var(--accent-3-text); border-color: rgba(224, 150, 189, .55); box-shadow: 0 0 16px rgba(224, 150, 189, .24); transform: translateY(-2px); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 11px; margin: 26px 0 40px; padding: 26px 28px; border-radius: var(--radius); background: var(--glass-sheen), var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), var(--glass-inner); }
.tag-cloud .tag { font-size: 14px; padding: 6px 17px; }
.tag-count { color: var(--muted); font-size: 12px; margin-left: 7px; }

/* ---------- 文章正文 ---------- */
.article {
  margin: 26px 0 0; padding: 38px 40px 34px;
  border-radius: var(--radius-lg);
  background: var(--glass-sheen), var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner);
}
.article h1 { font-size: 28px; font-weight: 650; line-height: 1.4; margin: 0 0 14px; color: var(--ink-strong); letter-spacing: .5px; }
.article .post-meta { margin-bottom: 26px; }
.article h2 {
  font-size: 22px; font-weight: 650; margin: 40px 0 16px;
  padding-left: 14px; color: var(--ink-strong);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--accent-3)) 1;
}
.article h3 { font-size: 17px; font-weight: 650; margin: 28px 0 10px; }
/* 文章页：整篇收进一个统一栏，栏宽用 rem 固定，不随各块自身字号变化；
   标题、署名、标签、目录、正文共享同一左右边界，观感匀称。 */
.article-inner { width: 100%; max-width: 46rem; margin: 0 auto; }
.article .article-inner > * { max-width: none; }
.article .article-body > * { max-width: 100%; }
.article .article-body > table,
.article .article-body > pre { width: 100%; max-width: 100%; }
.article-byline { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.article-byline .article-author { margin-bottom: 0; }
.article-date { font-size: 12.5px; color: var(--muted); letter-spacing: .4px;
  font-variant-numeric: tabular-nums; }
.article p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.9; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 20px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 650; color: var(--ink-strong); }
.article blockquote {
  margin: 22px 0; padding: 14px 20px;
  border-left: 3px solid var(--accent-2);
  background: var(--accent-soft); color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  
}
.article blockquote p:last-child { margin-bottom: 0; }
.article hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 36px 0; }

.article :not(pre) > code {
  background: var(--accent-soft); padding: 2px 7px; border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px; color: var(--accent-text);
}

/* 目录 */
.toc { margin: 24px 0 32px; padding: 17px 22px; border-radius: var(--radius); background: var(--glass-sheen), var(--glass-strong);  border: 1px solid var(--glass-line); box-shadow: var(--glass-inner); }
.toc-title { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.toc-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.toc-item { border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--accent-text); font: inherit; font-size: 13px; text-align: left; }
.toc-item::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 10px; height: 10px; margin-right: 7px;
  background-image: var(--puffy-mark);
  background-size: contain; background-repeat: no-repeat;
  opacity: .55;
}
.toc-item:hover { color: var(--accent-3-text); }

/* 代码块：雾白玻璃，行号不可选中 */
pre {
  position: relative;
  display: flex; align-items: stretch; gap: 0;
  background: var(--code-bg); color: var(--code-ink);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius); padding: 18px 0; margin: 22px 0;
  overflow-x: auto; font-size: 13px; line-height: 1.75;
  
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .60), 0 10px 30px rgba(112, 138, 190, .10);
}
.line-numbers {
  flex: 0 0 auto; padding: 0 14px 0 18px; white-space: pre;
  text-align: right; color: var(--faint);
  border-right: 1px solid var(--code-line);
  user-select: none; -webkit-user-select: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}
pre > code {
  flex: 1 1 auto; padding: 0 18px; white-space: pre;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--code-ink); background: none;
}
.copy-btn {
  position: absolute; right: 10px; top: 9px;
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .34);
  border: 1px solid var(--glass-line);
  opacity: 0; transition: opacity .25s ease, background .25s ease;
}
pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, .78); color: var(--accent-text); }
.copy-btn.done { color: var(--accent-3-text); }

/* 表格：全部居中 */
.article table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 14px; overflow: hidden; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .14); }
.article th, .article td { border-bottom: 1px solid var(--glass-line); padding: 10px 12px; text-align: center; }
.article tr:last-child td { border-bottom: none; }
.article th { background: rgba(255, 255, 255, .22); font-weight: 650; color: var(--ink-strong); }

.back-link { display: inline-block; margin-top: 34px; font-size: 14px; padding: 7px 16px; border-radius: 999px; background: var(--glass-sheen), var(--glass-strong);  border: 1px solid var(--glass-line); }
.back-link:hover { box-shadow: 0 0 18px rgba(171, 139, 212, .22); }

.about-card { background: var(--glass-sheen), var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); padding: 30px 34px; margin: 30px 0; box-shadow: var(--glass-shadow), var(--glass-inner); }
.about-card p:last-child { margin-bottom: 0; }

/* ---------- 页脚与悬浮控件 ---------- */
.site-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin: 52px 0 40px; padding: 15px 24px;
  border-radius: 999px;
  color: var(--muted); font-size: 12.5px;
}

.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 30;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--glass-sheen), var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease;
}
.to-top .puffy-mark { width: 30px; height: 30px; }
.to-top .puffy-mark svg { width: 23px; height: 23px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 0 24px rgba(171, 139, 212, .32), var(--glass-inner); transform: translateY(-3px); }

/* ---------- 星夜：小字与符号的清晰度 ----------
   只作用于夜间，白天一行不动。蓝色小字改近白冷调并加极淡暗描边；
   搜索 / 主题 / 星标 / 条纹等符号同步提亮；胶囊与代码块换深蓝底，
   避免亮字压在亮底上。 */
:root[data-theme="night"] .profile-bio,
:root[data-theme="night"] .p-stat span,
:root[data-theme="night"] .search-tip,
:root[data-theme="night"] .nav a,
:root[data-theme="night"] .page-note,
:root[data-theme="night"] .post-meta,
:root[data-theme="night"] .article-author,
:root[data-theme="night"] .article-date,
:root[data-theme="night"] .post-summary,
:root[data-theme="night"] .toc-title,
:root[data-theme="night"] .tag-count,
:root[data-theme="night"] .site-foot,
:root[data-theme="night"] .line-numbers,
:root[data-theme="night"] .copy-btn,
:root[data-theme="night"] .search-bar input::placeholder {
  text-shadow: var(--night-ink-halo);
}
:root[data-theme="night"] .search-bar,
:root[data-theme="night"] .icon-btn { color: var(--accent-text); }
:root[data-theme="night"] .nav a:hover { color: #ffffff; background: rgba(18, 30, 74, .42); }
:root[data-theme="night"] .nav a.active { color: #ffffff; }
:root[data-theme="night"] .nav a.active::after { opacity: .92; }
:root[data-theme="night"] .toc-item::before { opacity: .88; }
:root[data-theme="night"] .post-item::before { opacity: .92; }
:root[data-theme="night"] .tag,
:root[data-theme="night"] .toc-item,
:root[data-theme="night"] .back-link,
:root[data-theme="night"] .article :not(pre) > code {
  color: var(--accent-text);
  text-shadow: var(--night-ink-halo);
}
:root[data-theme="night"] .tag { border-color: rgba(208, 226, 255, .30); }
:root[data-theme="night"] .tag-count { color: var(--accent-text); }
:root[data-theme="night"] .copy-btn { background: rgba(18, 30, 74, .60); }
:root[data-theme="night"] .copy-btn:hover { background: rgba(38, 54, 112, .82); color: #ffffff; }
:root[data-theme="night"] .article table { background: rgba(16, 26, 66, .28); }
:root[data-theme="night"] .article th { background: rgba(30, 44, 98, .44); }
:root[data-theme="night"] pre { box-shadow: inset 0 1px 0 rgba(226, 238, 255, .16), 0 10px 30px rgba(8, 16, 44, .22); }

/* ============================================================
   功能扩展层：全部沿用上面的主题变量与 .glass，不改动任何既有 UI 规则。
   新增页面：首页名片 / 项目 / 归档 / 照片墙 / 相册 / 说说 / 杂谈 / 友链 / 关于 /
   全局搜索 / 创作台；新增特效：滚动渐显、卡片指针高光、光标柔光、
   夜间流萤、启动闪屏、图片灯箱。
   ============================================================ */

/* ---------- 头像 ---------- */
.avatar { display: block; object-fit: cover; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--glass-line); box-shadow: var(--glass-shadow), var(--glass-inner); }
.avatar-brand { width: 48px; height: 48px; }
.avatar-sm { width: 30px; height: 30px; border-width: 1px; }
.avatar-lg { width: 92px; height: 92px; border-width: 3px; }

/* ---------- 首页名片：仿参考站结构，配色沿用本站晴蓝樱粉 ---------- */
.profile-card {
  --stat-1: var(--accent-text); --stat-2: var(--accent-2-text); --stat-3: var(--accent-3-text);
  position: relative; overflow: hidden;
  margin: 12px 0 2px; padding: 22px 28px 20px;
  border-radius: var(--radius-lg);
}
.profile-card::before {
  content: ''; position: absolute; top: -50%; right: -12%; width: 62%; height: 170%;
  pointer-events: none; opacity: .72;
  background: radial-gradient(closest-side, var(--star-mist), var(--star-fade) 58%, transparent 78%),
              radial-gradient(closest-side at 72% 34%, var(--wash-pink), transparent 74%);
}
.profile-card > * { position: relative; z-index: 1; }
.profile-top { display: flex; align-items: center; gap: 26px; }
.profile-avatar-wrap {
  flex: 0 0 auto; padding: 3px; border-radius: 27px;
  background: linear-gradient(140deg, #93b6f0, #b79ae2 52%, #f0aecf);
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 10px 30px rgba(112,138,190,.22);
}
.profile-avatar {
  display: block; width: 92px; height: 92px; border-radius: 21px;
  object-fit: cover; border: 2px solid rgba(255,255,255,.78);
}
.profile-id { min-width: 0; }
.profile-name {
  /* 站名与全站一致，用 body 的默认无衬线字体，不再单独套衬线体 */
  margin: 0 0 6px; font-family: inherit;
  font-size: 30px; font-weight: 650; letter-spacing: .8px; line-height: 1.3;
  color: var(--ink-strong);
}
.profile-bio { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--muted); letter-spacing: .2px; }
.profile-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.profile-stats { display: flex; align-items: stretch; }
.p-stat { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 74px; padding: 0 12px; text-align: center; color: inherit; }
.p-stat + .p-stat { border-left: 1px solid var(--line); }
.p-stat b { font-size: 25px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums;
  color: var(--stat-1); }
.p-stat:nth-child(2) b { color: var(--stat-2); }
.p-stat:nth-child(3) b { color: var(--stat-3); }
.p-stat span { font-size: 11.5px; letter-spacing: .8px; color: var(--muted); margin-top: 3px; }
.p-stat:hover b { filter: brightness(1.06); }
.p-links { display: flex; gap: 9px; margin-left: auto; flex-wrap: wrap; }
.p-link { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: var(--accent-text); background: var(--glass-sheen), var(--glass-strong);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-inner);
  transition: transform .3s ease, box-shadow .3s ease, color .3s ease; }
.p-link:hover { transform: translateY(-3px); color: var(--accent-3-text);
  box-shadow: 0 10px 22px rgba(112,138,190,.20), var(--glass-inner); }
.p-link svg { display: block; width: 20px; height: 20px; }
.p-link.is-accent { color: #fff; border-color: rgba(255,255,255,.62);
  background: linear-gradient(135deg, #4f74b4, #7a5aac 54%, #b06896);
  box-shadow: 0 8px 22px rgba(171,139,212,.30), var(--glass-inner); }
.p-link.is-accent:hover { color: #fff; }
:root[data-theme="night"] .profile-card { --stat-1: #b6d0ff; --stat-2: #ddbdfa; --stat-3: #f9bddb; }
:root[data-theme="night"] .profile-name,
:root[data-theme="night"] .p-stat b { text-shadow: 0 2px 10px rgba(8,16,44,.48); }
:root[data-theme="night"] .profile-avatar-wrap {
  box-shadow: 0 0 0 1px rgba(208,226,255,.40), 0 10px 30px rgba(8,16,44,.32); }
:root[data-theme="night"] .p-link { color: var(--accent-text); }

/* ---------- 通用页头与统计 ----------
   全站每个分页统一用 .page-head：小标 → 大标题 → 副标题 → 一条化开的渐变分隔线，
   首页与标签页的 .section-head 复用同一套字重与渐变竖条，观感一致。 */
.page-head { position: relative; margin: 26px 0 20px; padding-bottom: 16px; }
.page-head::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 38%, transparent 76%);
  opacity: .4;
}
.page-kicker { font-size: 11px; letter-spacing: 2.6px; color: var(--accent-text); opacity: .9; margin-bottom: 7px; }
.page-title { font-size: 27px; font-weight: 650; letter-spacing: .8px; color: var(--ink-strong); margin: 0; line-height: 1.4; }
.page-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 2px; font-size: 19px; font-weight: 650;
  letter-spacing: .6px; line-height: 1.5; color: var(--ink-strong);
}
.section-head::before {
  content: ''; flex: 0 0 auto; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}
.stat-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  border-radius: var(--radius); padding: 16px 10px; margin: 30px 0 8px; border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); }
.stat-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-cell b { font-size: 21px; font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.stat-cell span { font-size: 11.5px; color: var(--muted); letter-spacing: .4px; }

/* ---------- 滚动渐显（只走 opacity / transform） ---------- */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .62s ease, transform .62s cubic-bezier(.22,.68,.28,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 卡片指针高光 ---------- */
.sheen { position: relative; }
.sheen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 68%);
  opacity: 0; transition: opacity .32s ease; }
.sheen:hover::after { opacity: 1; }

/* ---------- 项目 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; margin: 22px 0 40px; }
.x-card { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); transition: transform .35s ease, box-shadow .35s ease; }
.x-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(112,138,190,.20), var(--glass-inner); }
.x-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-card-top time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.x-badge { display: inline-block; font-size: 11.5px; letter-spacing: .6px; color: var(--accent-text);
  padding: 3px 11px; border-radius: 999px; border: 1px solid var(--glass-line); }
.x-card h2 { font-size: 18px; font-weight: 650; color: var(--ink-strong); margin: 14px 0 8px; }
.x-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.x-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.x-chips span { font-size: 11.5px; color: var(--accent-text); padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--glass-line); }
.x-link { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--accent-3-text); }
.x-link:hover { filter: brightness(1.12); }

/* ---------- 筛选与排序 ---------- */
.filter-row, .sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 24px; }
.sort-row > span { margin-right: auto; font-size: 13px; color: var(--muted); }
.filter { font: inherit; font-size: 12.5px; cursor: pointer; padding: 5px 14px; border-radius: 999px;
  color: var(--muted); background: var(--glass-strong); border: 1px solid var(--glass-line);
  transition: color .25s ease, transform .25s ease, box-shadow .25s ease; }
.filter i { font-style: normal; opacity: .7; font-size: 11px; margin-left: 3px; }
.filter:hover { color: var(--ink-strong); transform: translateY(-2px); }
.filter.on { color: var(--ink-strong); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-soft); }

/* ---------- 归档时间轴 ---------- */
.timeline { margin-bottom: 40px; }
.tl-group { display: grid; grid-template-columns: 116px 1fr; gap: 18px; margin-bottom: 22px; }
.tl-month { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; position: relative; }
.tl-month::before { content: ''; position: absolute; right: 0; top: 14px; bottom: -22px; width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent); opacity: .55; }
.tl-month b { font-size: 16px; color: var(--ink-strong); letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.tl-month span { font-size: 12px; color: var(--muted); }
.tl-items { display: grid; gap: 9px; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 10px;
  padding: 11px 16px; border-radius: 14px; border: 1px solid var(--glass-line);
  transition: transform .3s ease, box-shadow .3s ease; }
.tl-item:hover { transform: translateX(5px); box-shadow: 0 10px 26px rgba(112,138,190,.16); }
.tl-item time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item b { font-size: 14.5px; font-weight: 600; color: var(--ink-strong); line-height: 1.6; }
.tl-item > span { grid-column: 2; font-size: 11.5px; color: var(--accent-text); }

/* ---------- 照片墙 / 相册 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 26px 0 40px; }
.album-card { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); transition: transform .38s ease, box-shadow .38s ease; }
.album-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(112,138,190,.22); }
.album-cover { position: relative; height: 186px; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.album-card:hover .album-cover img { transform: scale(1.07); }
.album-count { position: absolute; right: 12px; bottom: 12px; font-size: 11.5px; color: var(--ink-strong);
  background: var(--glass-strong); border: 1px solid var(--glass-line); padding: 3px 11px; border-radius: 999px; }
.album-info { padding: 16px 20px 20px; }
.album-info h2 { margin: 0 0 5px; font-size: 17px; font-weight: 650; color: var(--ink-strong); }
.album-info p { margin: 0 0 9px; font-size: 13px; color: var(--muted); }
.album-info time { font-size: 11.5px; color: var(--faint); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.photo-tile { display: block; padding: 0; overflow: hidden; cursor: zoom-in; text-align: left; font: inherit;
  border-radius: var(--radius); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); transition: transform .35s ease, box-shadow .35s ease; }
.photo-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(112,138,190,.22); }
.photo-tile img { display: block; width: 100%; height: 190px; object-fit: cover; }
.photo-cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 15px; }
.photo-cap b { font-size: 14px; color: var(--ink-strong); font-weight: 600; }
.photo-cap i { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 说说 ---------- */
.moment-list { display: grid; gap: 18px; margin-bottom: 40px; }
.moment { border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); }
.moment-head { display: flex; align-items: center; gap: 11px; }
.moment-head > div { display: flex; flex-direction: column; line-height: 1.4; }
.moment-head b { font-size: 14px; color: var(--ink-strong); font-weight: 650; }
.moment-head time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mood { margin-left: auto; font-size: 12px; color: var(--accent-3-text); }
.moment-text { margin: 14px 0 0; font-size: 14.5px; line-height: 1.9; color: var(--ink); white-space: pre-wrap; }
.moment-imgs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.moment-imgs img { width: 132px; height: 100px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--glass-line); }
.moment-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.place { font-size: 11.5px; color: var(--faint); }
.like { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit; font-size: 12px;
  color: var(--muted); background: none; border: 0; padding: 3px 6px; border-radius: 999px;
  transition: color .25s ease, transform .25s ease; }
.like:hover { transform: scale(1.1); }
.like svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 6; }
.like.on { color: var(--accent-3-text); }
.like.on svg { fill: var(--accent-3); stroke: var(--accent-3); }

/* ---------- 杂谈 ---------- */
.chatter-list { display: grid; gap: 16px; margin-bottom: 40px; }
.chatter-card { border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); transition: transform .35s ease; }
.chatter-card:hover { transform: translateY(-4px); }
.chatter-meta { display: flex; align-items: center; gap: 12px; }
.chatter-meta time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chatter-title { display: block; margin: 12px 0 7px; font-size: 18px; font-weight: 650; color: var(--ink-strong); }
.chatter-title:hover { color: var(--accent-text); }
.chatter-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 友链 ---------- */
.friend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; margin: 26px 0 40px; }
.friend-card { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-radius: var(--radius);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), var(--glass-inner);
  transition: transform .32s ease, box-shadow .32s ease; }
.friend-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(112,138,190,.20); }
.friend-initial { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  font-size: 13px; font-weight: 650; color: var(--ink-strong); background: var(--glass-strong);
  border: 1px solid var(--glass-line); }
.friend-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.friend-body b { font-size: 14px; color: var(--ink-strong); font-weight: 650; }
.friend-body i { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.friend-status { margin-left: auto; font-size: 10.5px; color: var(--accent-3-text); letter-spacing: .4px; }

/* ---------- 关于增强 ---------- */
.about-top { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.about-top h2 { margin: 0 0 4px; font-size: 22px; font-weight: 650; color: var(--ink-strong); }
.about-top p { margin: 0; font-size: 13.5px; color: var(--muted); }
.about-intro p { font-size: 15px; line-height: 1.9; margin: 0 0 15px; }
.about-skills { margin: 18px 0 22px; }
.about-social { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--glass-line); padding-top: 18px; }
.about-social a { display: flex; flex-direction: column; font-size: 13.5px; color: var(--accent-text);
  padding: 7px 15px; border-radius: 12px; background: var(--accent-soft); }
.about-social a i { font-style: normal; font-size: 11px; color: var(--muted); }
.site-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 18px 0 40px;
  padding: 18px 12px; border-radius: var(--radius); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); }
.site-facts div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.site-facts b { font-size: 15px; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.site-facts span { font-size: 11px; color: var(--muted); }

/* ---------- 全局搜索 ---------- */
.search-group { margin: 26px 0; }
.search-group h2 { font-size: 15px; font-weight: 650; color: var(--ink-strong); margin: 0 0 11px; }
.search-group h2 i { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.search-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; margin-bottom: 8px;
  border-radius: 14px; border: 1px solid var(--glass-line); }
.search-row:hover { box-shadow: 0 10px 26px rgba(112,138,190,.16); }
.search-row b { font-size: 14px; color: var(--ink-strong); font-weight: 600; }
.search-row span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 文章增强 ---------- */
.article-author { display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
  font-size: 12.5px; color: var(--muted); }
.article-author i { font-style: normal; opacity: .7; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.soft-btn { display: inline-block; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--glass-line); padding: 7px 16px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease; }
.soft-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(112,138,190,.18); }
.post-nav { display: flex; justify-content: space-between; gap: 14px; margin: 22px 0 40px; }
.pn { display: flex; flex-direction: column; gap: 3px; max-width: 47%; font-size: 13.5px; color: var(--ink-strong);
  padding: 13px 18px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass-strong); }
.pn span { font-size: 11px; color: var(--accent-text); }
.pn-right { text-align: right; }
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.related-title { font-size: 12.5px; color: var(--muted); letter-spacing: .6px; }
.related a { font-size: 13px; color: var(--accent-text); padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--glass-line); }

/* ---------- 创作台 ----------
   全屏布局后把整块收进居中栏，避免表单在宽屏被拉得过长；
   页头 / 标签条 / 表单三层用统一圆角与渐变竖条，和各分页观感一致。 */
.studio-wrap { width: 100%; max-width: 56rem; margin: 0 auto; }
.studio-lock { max-width: 480px; margin: 44px auto; padding: 34px 36px; text-align: center;
  border-radius: var(--radius-lg); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); }
.studio-lock .primary-btn { margin-top: 18px; }
.studio-lock .f-label { text-align: left; }
.lock-star { width: 46px; height: 46px; margin: 0 auto 14px; }
.lock-star svg { width: 100%; height: 100%; fill: var(--star-soft);
  filter: drop-shadow(0 0 10px var(--star-glow)); }
.studio-lock h1 { font-size: 21px; color: var(--ink-strong); margin: 0 0 12px; font-weight: 650; }
.studio-lock p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.lock-foot { margin: 20px 0 0; font-size: 12px !important; color: var(--faint) !important; }
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; margin: 26px 0 16px; padding: 20px 28px 22px; border-radius: var(--radius);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), var(--glass-inner); }
.studio-head::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 38%, transparent 76%);
  opacity: .4;
}
.studio-head h1 { margin: 0; font-size: 23px; font-weight: 650; color: var(--ink-strong); letter-spacing: .6px; }
.studio-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.studio-head .page-kicker { margin-bottom: 6px; }
.studio-head .soft-btn { flex: 0 0 auto; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px;
  padding: 7px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--glass-strong); }
.stab { font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 15px; border-radius: 999px;
  color: var(--muted); background: transparent; border: 1px solid transparent;
  transition: color .25s ease, transform .25s ease, box-shadow .25s ease; }
.stab:hover { color: var(--ink-strong); transform: translateY(-1px); }
.stab.on { color: var(--ink-strong); background: var(--glass-sheen), var(--glass-strong);
  border-color: var(--accent); box-shadow: 0 0 16px var(--accent-soft); }
.studio-msg { min-height: 20px; font-size: 13px; color: var(--accent-text); margin: 0 0 12px; }
.studio-msg.warn { color: var(--accent-3-text); }
.studio-form { border-radius: var(--radius); padding: 26px 30px 30px; margin-bottom: 40px;
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), var(--glass-inner); }
.studio-form h2 { display: flex; align-items: center; gap: 11px;
  margin: 0 0 8px; font-size: 19px; font-weight: 650; color: var(--ink-strong); letter-spacing: .4px; }
.studio-form h2::before {
  content: ''; flex: 0 0 auto; width: 4px; height: 17px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}
.studio-form h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 650; color: var(--ink-strong); }
.f-hint { font-size: 12.5px; color: var(--muted); line-height: 1.85; margin: 0 0 18px; }
.f-hint code { font-size: 12px; color: var(--accent-text); }
.f-label { display: block; font-size: 12.5px; color: var(--muted); margin: 15px 0 6px; letter-spacing: .3px; }
.f-input { display: block; width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--code-bg); border: 1px solid var(--glass-line); border-radius: 12px;
  padding: 9px 13px; outline: none; transition: border-color .25s ease, box-shadow .25s ease; }
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-soft); }
.f-input::placeholder { color: var(--faint); }
.f-area { resize: vertical; line-height: 1.8; }
.f-file { padding: 8px; font-size: 12.5px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.primary-btn { font: inherit; font-size: 13.5px; cursor: pointer; color: #ffffff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 1px solid var(--glass-line); border-radius: 999px; padding: 8px 22px;
  box-shadow: 0 8px 22px rgba(112,138,190,.22); transition: transform .25s ease, box-shadow .25s ease; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(112,138,190,.30); }
.f-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.studio-preview { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--glass-line); }
.studio-preview h3 { font-size: 13px; color: var(--muted); }
.file-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.file-preview img { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-line); }
.manage-list { display: grid; gap: 8px; margin: 16px 0; }
.manage-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px;
  border: 1px solid var(--glass-line); font-size: 13px; }
.manage-row b { color: var(--ink-strong); font-weight: 600; }
.mr-kind { font-size: 11px; color: var(--accent-text); min-width: 32px; }
.mr-id { font-size: 11px; color: var(--faint); margin-left: auto; }
.mini-btn { font: inherit; font-size: 11.5px; cursor: pointer; color: var(--accent-3-text);
  background: none; border: 1px solid var(--glass-line); border-radius: 999px; padding: 3px 11px; }
:root[data-theme="night"] .primary-btn { color: #1d2a56; }
:root[data-theme="night"] .stab.on,
:root[data-theme="night"] .filter.on { color: #ffffff; }

/* ---------- 设置：画质档位 ----------
   沿用 .glass 卡片，三档用一组等宽卡片单选；选中态用星标与渐变描边，
   与标签、筛选胶囊的选中语言保持一致。 */
.settings-card { padding: 26px 30px 24px; margin: 24px 0 40px; border-radius: var(--radius-lg); }
.settings-block { display: flex; flex-wrap: wrap; gap: 24px 34px; align-items: flex-start; }
.settings-info { flex: 1 1 240px; min-width: 0; }
.settings-info h2 { display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; font-size: 19px; font-weight: 650; color: var(--ink-strong); letter-spacing: .4px; }
.settings-info h2::before {
  content: ''; flex: 0 0 auto; width: 4px; height: 17px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}
.settings-info p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.quality-group { flex: 2 1 420px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quality-item {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px 16px; text-align: left; cursor: pointer; font: inherit;
  border-radius: var(--radius); border: 1px solid var(--glass-line);
  background: var(--glass-sheen), var(--glass-strong);
  box-shadow: var(--glass-inner);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.quality-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(112, 138, 190, .18), var(--glass-inner); }
.quality-item b { font-size: 21px; font-weight: 650; color: var(--ink-strong); line-height: 1.3; }
.quality-item small { font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.quality-item.on { border-color: rgba(171, 139, 212, .72);
  box-shadow: 0 0 0 1px rgba(171, 139, 212, .34), 0 12px 30px rgba(171, 139, 212, .18), var(--glass-inner); }
.q-mark { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px;
  opacity: .28; transition: opacity .3s ease, transform .3s ease; }
.q-mark svg { display: block; width: 100%; height: 100%; fill: var(--star-soft);
  filter: drop-shadow(0 0 5px var(--star-glow)); }
.quality-item.on .q-mark { opacity: .95; transform: rotate(-12deg) scale(1.08); }
.settings-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--glass-line);
  font-size: 12px; line-height: 1.9; color: var(--muted); }
.settings-foot b { color: var(--accent-text); font-weight: 650; }
:root[data-theme="night"] .quality-item.on { border-color: rgba(226, 205, 251, .66); }
:root[data-theme="night"] .settings-info p,
:root[data-theme="night"] .quality-item small,
:root[data-theme="night"] .settings-foot,
:root[data-theme="night"] .q-spec th,
:root[data-theme="night"] .q-spec td { text-shadow: var(--night-ink-halo); }

/* 档位效果对照表：与三张档位卡片同属一张玻璃卡 */
.q-spec-wrap { margin: 22px 0 0; overflow-x: auto; }
.q-spec { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 420px; }
.q-spec th, .q-spec td { padding: 9px 12px; text-align: left;
  border-bottom: 1px solid var(--glass-line); color: var(--muted); }
.q-spec thead th { font-size: 11.5px; font-weight: 650; letter-spacing: .6px;
  color: var(--ink-strong); background: var(--accent-soft); }
.q-spec thead th:first-child { border-radius: 10px 0 0 0; }
.q-spec thead th:last-child { border-radius: 0 10px 0 0; }
.q-spec tbody th { font-weight: 600; color: var(--ink-strong); white-space: nowrap; }
.q-spec tbody tr:last-child th, .q-spec tbody tr:last-child td { border-bottom: none; }
.q-spec tbody tr:hover td { background: var(--accent-soft); }

/* ---------- 画质档位：高 = 完整效果，中 / 低 逐层减负 ----------
   只作用于根节点带 data-quality 的情况，高画质（默认、无该属性）一行都不改。
   CSS 负责静态装饰与渲染开销，脚本负责跳过逐帧的光幕与卡片高光。 */
/* 中：星星 72→36、花瓣 12→6；常驻流星与快速流星各留 1、流萤留 4 */
:root[data-quality="mid"] .stars .star.q-high { display: none; }
:root[data-quality="mid"] .petals .petal.q-high { display: none; }
:root[data-quality="mid"] .meteor-b,
:root[data-quality="mid"] .meteor-c,
:root[data-quality="mid"] .shoot-b,
:root[data-quality="mid"] .shoot-c,
:root[data-quality="mid"] .fireflies .firefly:nth-child(n+5) { display: none; }
/* 中：花朵 / 爱心 / 装饰星停止旋转与移动，保留静态摆位 */
:root[data-quality="mid"] .blooms .sky-deco {
  animation: none !important;
  transform: rotate(var(--dir0, 0deg)) !important;
}
/* 中 / 低：取消跟随鼠标的光幕，以及鼠标停在卡片上时发出的高光 */
:root[data-quality="mid"] .cursor-glow,
:root[data-quality="low"] .cursor-glow { display: none !important; }
:root[data-quality="mid"] .sheen::after,
:root[data-quality="low"] .sheen::after { display: none !important; }

/* 低：星星 36→18 且全部静止；装饰、花瓣、流星、流萤整体隐去 */
:root[data-quality="low"] .stars .star.q-high,
:root[data-quality="low"] .stars .star.q-mid { display: none; }
:root[data-quality="low"] .stars .star {
  animation: none !important; opacity: var(--sop, .82);
}
:root[data-quality="low"] .blooms,
:root[data-quality="low"] .petals,
:root[data-quality="low"] .meteors,
:root[data-quality="low"] .shoots,
:root[data-quality="low"] .fireflies { display: none !important; }
/* 低：关闭实时毛玻璃、入场动效与启动闪屏，只留静态水彩天空 */
:root[data-quality="low"] { --glass-blur: none; }
:root[data-quality="low"] .reveal {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
:root[data-quality="low"] .splash,
:root[data-quality="low"] .puffy-mark svg { animation: none !important; }
:root[data-quality="low"] .splash { display: none !important; }

/* ---------- 启动闪屏 / 光标柔光 / 流萤 ---------- */
.splash { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  pointer-events: none;
  background: linear-gradient(150deg, var(--sky-top), var(--sky-mid) 48%, var(--sky-low));
  transition: opacity .68s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: splash-in .7s ease both; }
.splash-star { width: 46px; height: 46px; fill: var(--star-soft);
  filter: drop-shadow(0 0 16px var(--star-glow)); }
.splash-name { font-size: 19px; letter-spacing: 4px; color: var(--ink-strong); }
.splash-note { font-size: 11.5px; letter-spacing: 1.6px; color: var(--muted); }
@keyframes splash-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cursor-glow { position: fixed; left: 0; top: 0; width: 340px; height: 340px; margin: -170px 0 0 -170px;
  z-index: 0; pointer-events: none; border-radius: 50%; opacity: .32;
  background: radial-gradient(circle, var(--star-halo), transparent 70%); }
.fireflies { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
:root[data-theme="night"] .fireflies { opacity: 1; }
.firefly { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--star-dot);
  box-shadow: 0 0 8px 3px var(--star-glow); opacity: .7;
  animation: firefly-drift var(--fdur, 18s) ease-in-out var(--fdelay, 0s) infinite; }
.firefly:nth-child(1) { left: 12%; top: 24%; --fdur: 19s; --fdelay: -3s; }
.firefly:nth-child(2) { left: 28%; top: 68%; --fdur: 23s; --fdelay: -11s; }
.firefly:nth-child(3) { left: 41%; top: 16%; --fdur: 17s; --fdelay: -7s; }
.firefly:nth-child(4) { left: 58%; top: 78%; --fdur: 25s; --fdelay: -15s; }
.firefly:nth-child(5) { left: 72%; top: 34%; --fdur: 21s; --fdelay: -5s; }
.firefly:nth-child(6) { left: 86%; top: 62%; --fdur: 20s; --fdelay: -13s; }
.firefly:nth-child(7) { left: 7%;  top: 82%; --fdur: 24s; --fdelay: -9s; }
.firefly:nth-child(8) { left: 64%; top: 12%; --fdur: 18s; --fdelay: -17s; }
@keyframes firefly-drift {
  0%   { transform: translate3d(0,0,0); opacity: .18; }
  50%  { transform: translate3d(34px,-26px,0); opacity: .78; }
  100% { transform: translate3d(0,0,0); opacity: .18; }
}

/* ---------- 图片灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s ease; }
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 40, .86); }
.lb-img { position: relative; max-width: min(88vw, 1100px); max-height: 74vh; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28); box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.lb-btn { position: absolute; z-index: 2; cursor: pointer; font: inherit; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; width: 42px; height: 42px; font-size: 20px; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 24px; top: 50%; margin-top: -21px; }
.lb-next { right: 24px; top: 50%; margin-top: -21px; }
.lb-cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); text-align: center;
  color: #fff; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.lb-cap i { font-style: normal; font-size: 11.5px; opacity: .72; }
.lb-cap span:last-child { font-size: 11px; opacity: .6; margin-top: 4px; }

/* ---------- 页脚的小门 ---------- */
.owner-door { cursor: pointer; opacity: .42; font-size: 13px; margin-left: 10px;
  transition: opacity .3s ease, transform .3s ease; }
.owner-door:hover { opacity: .9; transform: rotate(24deg); }
.uptime { font-size: 11.5px; color: var(--faint); margin-left: auto; }

/* ---------- 无脚本兜底 ---------- */
.noscript-card { margin: 30px 0; padding: 28px 32px; border-radius: var(--radius-lg);
  background: var(--glass-sheen), var(--glass-strong); border: 1px solid var(--glass-line);
  color: var(--ink); }
.noscript-card h1 { margin: 0 0 10px; font-size: 26px; color: var(--ink-strong); }
.noscript-card ul { padding-left: 20px; line-height: 2; }
.noscript-card a { color: var(--accent-text); }

/* ---------- 关于页：内嵌 HTML 版本日志预览 ---------- */
.changelog-preview { margin: 26px 0 40px; padding: 26px 28px; }
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cl-head h2 { margin: 0 0 6px; font-size: 23px; color: var(--ink-strong); font-weight: 650; }
.cl-sub { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.cl-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.cl-frame {
  display: block; width: 100%; height: 620px; min-height: 340px;
  margin-top: 20px; border: 1px solid var(--glass-line); border-radius: 14px;
  background: transparent; color-scheme: light dark;
}
:root[data-theme="night"] .cl-frame { border-color: rgba(208,226,255,.28); background: rgba(18,28,72,.28); }

@media (max-width: 640px) {
  .changelog-preview { padding: 20px 16px; }
  .cl-frame { height: 520px; }
  .noscript-card { padding: 20px 18px; }
}

/* ---------- 扩展层的响应式 ---------- */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; justify-content: center; width: 100%; overflow: visible; }
  .nav a { flex: 0 0 auto; }
  .stat-bar { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .site-facts { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .tl-group { grid-template-columns: 1fr; gap: 8px; }
  .tl-month::before { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 3px; }
  .tl-item > span { grid-column: 1; }
  .f-row { grid-template-columns: 1fr; }
  .studio-form { padding: 20px 18px; }
  .studio-head { flex-direction: column; align-items: flex-start; }
  .studio-tabs { border-radius: var(--radius); }
  .quality-group { grid-template-columns: 1fr; }
  .settings-card { padding: 20px 18px; }
  .settings-block { gap: 18px; }
  .cursor-glow { display: none; }
  .photo-tile img { height: 160px; }
}
@media (max-width: 400px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .avatar-lg { width: 74px; height: 74px; }
}

/* ---------- 名片响应式 ---------- */
@media (max-width: 640px) {
  .profile-card { padding: 24px 20px 22px; border-radius: 22px; }
  .profile-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profile-avatar { width: 82px; height: 82px; border-radius: 19px; }
  .profile-avatar-wrap { border-radius: 22px; }
  .profile-name { font-size: 26px; }
  .profile-bio { font-size: 13px; line-height: 1.8; }
  .profile-foot { margin-top: 20px; gap: 14px; }
  .p-stat { min-width: 60px; padding: 0 9px; }
  .p-stat b { font-size: 21px; }
  .p-links { margin-left: 0; width: 100%; }
  .p-link { width: 38px; height: 38px; border-radius: 12px; }
}

/* 中等宽度：头栏放不下时，导航换到同一块玻璃里的第二行 */
@media (max-width: 780px) {
  .head-bar { flex-wrap: wrap; }
  .brand-wrap { flex: 1 1 auto; }
  .icon-btn { margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; margin-left: 0;
    flex-wrap: wrap; justify-content: center; overflow: visible; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .head-inner { padding: 12px var(--gutter); }
  .head-bar { flex-wrap: wrap; gap: 10px; }
  .brand-wrap { flex: 1 1 auto; }
  .icon-btn { margin-left: auto; }
  .site-title { font-size: 18px; }
  .puffy-mark { width: 29px; height: 29px; }
  .puffy-mark svg { width: 22px; height: 22px; }
  .nav { order: 3; flex: 1 1 100%; }
  .nav a { padding: 6px 11px; }
  .search-bar { margin: 16px auto 4px; padding: 10px 16px; }
  .search-tip { display: none; }
  .post-item { padding: 20px 20px; }
  .post-title { font-size: 18px; }
  .article { padding: 26px 20px; border-radius: 22px; }
  .article h1 { font-size: 23px; }
  .article p { font-size: 15px; }
  .tag-cloud, .about-card { padding: 20px; }
  .site-foot { flex-direction: column; border-radius: 18px; padding: 14px 20px; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .bloom { opacity: .36; }
  .heart, .sparkle { opacity: .26; }
  /* 移动端减负：玻璃模糊减半、粒子与常驻动画节点减半 */
  :root { --glass-blur: none; }
  .stars .star:nth-child(n+37),
  .petals .petal:nth-child(n+7),
  .shoot-c, .meteor-c { display: none; }
}

/* 更窄的屏幕：继续收窄卡片内边距，保住正文有效行宽 */
@media (max-width: 400px) {
  :root { --gutter: 12px; }
  .head-inner { padding: 10px var(--gutter); }
  .post-item { padding: 18px 16px; }
  .article { padding: 22px 16px; }
  .tag-cloud, .about-card { padding: 18px 16px; }
  .site-foot { padding: 12px 16px; }
  .nav a { padding: 6px 9px; }
}

/* 低性能设备 / 系统偏好：去掉实时毛玻璃，保留渐变与描边的玻璃观感 */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-blur: none; }
}
@media (max-width: 780px) and (pointer: coarse) {
  :root { --glass-blur: none; }
}

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

/* ---------- 创作台：写文章工作台 ----------
   参考站的「左侧沉浸编辑 + 右侧属性设置」，配色仍用本站晴蓝樱粉玻璃；
   只有写文章这一页临时放宽内容栏，其它分页保持 1080px 定宽。 */
.shell.is-wide { max-width: 1440px; }
.studio-wrap.is-desk { max-width: 1440px; }
.studio-desk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px;
  align-items: stretch; margin-bottom: 40px; min-height: 620px; }
.desk-editor, .desk-meta { display: flex; flex-direction: column; min-width: 0; min-height: 620px;
  border-radius: var(--radius-lg); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), var(--glass-inner); overflow: hidden; }
.desk-editor { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.desk-title-row { display: flex; align-items: center; gap: 16px; padding: 22px 30px 14px; flex: 0 0 auto; }
.desk-title { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 30px; font-weight: 650;
  letter-spacing: .4px; color: var(--ink-strong); background: none; border: none; outline: none; }
.desk-title::placeholder { color: var(--faint); opacity: .62; }
.desk-saved { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.desk-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 0 0 auto;
  padding: 9px 18px; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line);
  background: var(--glass-strong); }
.md-tools { display: flex; flex-wrap: wrap; gap: 3px; flex: 1 1 auto; min-width: 0; }
.md-tool { font: inherit; font-size: 12.5px; line-height: 1; min-width: 30px; height: 29px;
  padding: 0 7px; cursor: pointer; border-radius: 9px; color: var(--muted);
  background: transparent; border: 1px solid transparent; transition: color .2s ease, background .2s ease; }
.md-tool:hover { color: var(--ink-strong); background: var(--glass-sheen), var(--glass-strong);
  border-color: var(--glass-line); }
.md-tool:active { transform: translateY(1px); }
.mode-switch { display: flex; gap: 2px; flex: 0 0 auto; padding: 3px; border-radius: 999px;
  background: var(--code-bg); border: 1px solid var(--glass-line); }
.mode-switch button { font: inherit; font-size: 11.5px; cursor: pointer; padding: 4px 11px;
  border-radius: 999px; border: none; background: transparent; color: var(--muted); }
.mode-switch button.on { color: var(--ink-strong); background: var(--glass-strong);
  box-shadow: 0 2px 10px rgba(112, 138, 190, .14); }
.desk-body { display: flex; flex: 1 1 auto; min-height: 0; }
.desk-textarea { flex: 1 1 auto; min-width: 0; width: 100%; resize: none; border: none; outline: none;
  padding: 26px 30px 60px; font: inherit; font-size: 15px; line-height: 1.95;
  color: var(--ink); background: transparent; tab-size: 2; }
.desk-textarea::placeholder { color: var(--faint); opacity: .72; }
.desk-preview { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 24px 30px 60px; }
.desk-body[data-mode="write"] .desk-preview,
.desk-body[data-mode="preview"] .desk-textarea { display: none; }
.desk-body[data-mode="split"] .desk-preview { border-left: 1px solid var(--glass-line); }
.desk-preview > :first-child { margin-top: 0; }
.desk-preview h1 { font-size: 25px; margin: 22px 0 14px; color: var(--ink-strong); }
.desk-preview h2 { font-size: 21px; margin: 30px 0 13px; padding-left: 12px; color: var(--ink-strong);
  border-left: 3px solid var(--accent); }
.desk-preview h3 { font-size: 17px; margin: 24px 0 10px; color: var(--ink-strong); }
.desk-preview p { margin: 0 0 16px; font-size: 15px; line-height: 1.9; }
.desk-preview ul, .desk-preview ol { padding-left: 22px; margin: 0 0 18px; }
.desk-preview li { margin-bottom: 7px; }
.desk-preview blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--accent-2);
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.desk-preview hr { border: none; height: 1px; background: var(--glass-line); margin: 26px 0; }
.desk-preview table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.desk-preview th, .desk-preview td { border: 1px solid var(--glass-line); padding: 8px 11px; }
.desk-preview th { background: var(--glass-strong); color: var(--ink-strong); }
.desk-preview img { max-width: 100%; border-radius: 12px; }
.desk-preview :not(pre) > code { background: var(--accent-soft); color: var(--accent-text);
  padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.desk-foot { display: flex; align-items: center; gap: 14px; flex: 0 0 auto;
  padding: 10px 20px; border-top: 1px solid var(--glass-line);
  font-size: 11.5px; color: var(--muted); }
.desk-foot #word-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.tex-help { padding: 14px 20px 18px; border-top: 1px solid var(--glass-line); background: var(--glass-strong); }
.tex-help b { display: block; font-size: 12px; color: var(--ink-strong); margin-bottom: 10px; }
.tex-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tex-list button { font: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--code-bg); color: var(--muted); font-size: 11px; }
.tex-list button:hover { border-color: var(--accent); color: var(--accent-text); }
.tex-list code { font-size: 11.5px; color: var(--accent-text); }

/* 右侧：属性设置 */
.meta-head { flex: 0 0 auto; padding: 20px 24px 16px; border-bottom: 1px solid var(--glass-line);
  background: var(--glass-strong); }
.meta-head > span { font-size: 10px; letter-spacing: 2.4px; font-weight: 700; color: var(--accent-text); }
.meta-head h2 { margin: 5px 0 0; font-size: 19px; font-weight: 650; color: var(--ink-strong); }
.meta-scroll { flex: 1 1 auto; overflow-y: auto; padding: 22px 24px 8px; }
.meta-group { margin-bottom: 26px; }
.meta-label { font-size: 10px; font-weight: 700; letter-spacing: 1.3px; color: var(--muted);
  padding-left: 11px; border-left: 3px solid var(--accent); margin-bottom: 12px; }
.meta-label.l-pink { border-left-color: var(--accent-3); }
.meta-label.l-violet { border-left-color: var(--accent-2); }
.meta-label.l-green { border-left-color: #70b79c; }
.meta-label.l-amber { border-left-color: #d9a854; }
.cover-box { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
  margin-bottom: 10px; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px dashed var(--glass-line); background: var(--code-bg); text-align: center; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { font-size: 11.5px; color: var(--faint); padding: 0 16px; }
.cover-box:hover { border-color: var(--accent); }
.meta-group .f-input { font-size: 12.5px; margin-bottom: 8px; }
.meta-group .f-file { padding: 7px; font-size: 11.5px; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-bottom: 9px;
  padding: 7px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--glass-line); }
.zb-tag-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--glass-line); }
.zb-tag-pill button { border: none; background: none; cursor: pointer; color: inherit;
  font: inherit; line-height: 1; padding: 0 1px; }
.zb-tag-pill button:hover { color: var(--accent-3-text); }
.tag-empty { font-size: 11px; color: var(--faint); }
.tag-history, .cat-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag-history-btn, .cat-pills button { font: inherit; font-size: 11px; cursor: pointer;
  padding: 4px 9px; border-radius: 999px; color: var(--muted);
  background: var(--glass-strong); border: 1px solid var(--glass-line); }
.tag-history-btn:hover, .cat-pills button:hover { color: var(--accent-text); border-color: var(--accent); }
.tag-history-btn.on, .cat-pills button.on { color: var(--ink-strong); border-color: var(--accent-2);
  background: var(--accent-soft); }
.meta-note { font-size: 10.5px; color: var(--faint); margin: 7px 0 0; }
.meta-foot { flex: 0 0 auto; padding: 16px 24px 20px; border-top: 1px solid var(--glass-line);
  background: var(--glass-strong); }
.meta-status { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.meta-status b { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.meta-actions { display: flex; gap: 9px; }
.meta-actions button { flex: 1 1 0; padding: 9px 8px; font-size: 12.5px; }
.meta-foot .primary-btn { color: #ffffff; }
.meta-hint { font-size: 10.5px; line-height: 1.7; color: var(--faint); margin: 10px 0 0; }
:root[data-theme="night"] .meta-foot .primary-btn { color: #1d2a56; }
:root[data-theme="night"] .desk-toolbar,
:root[data-theme="night"] .meta-head,
:root[data-theme="night"] .meta-foot { background: rgba(18, 28, 66, .34); }
@media (max-width: 980px) {
  .studio-desk { grid-template-columns: 1fr; }
  .desk-editor, .desk-meta { min-height: 0; }
  .desk-editor { height: 620px; }
  .desk-body[data-mode="split"] { flex-direction: column; }
  .desk-body[data-mode="split"] .desk-preview { border-left: none; border-top: 1px solid var(--glass-line); }
  .desk-title { font-size: 24px; }
  .desk-title-row { padding: 18px 20px 12px; flex-wrap: wrap; }
}

/* ZB-MATH:START */
/* 公式排版：站点文章、创作台预览、无 JS 静态镜像共用这一段，
   build.mjs 会原样抽进 posts/*.html 的内联样式。 */
.zb-math { font-family: "Cambria Math", "Times New Roman", Georgia, serif;
  line-height: 1.55; color: var(--ink-strong, #39436a); }
.zb-math-inline { display: inline; }
.zb-math-block { display: block; margin: 22px 0; padding: 15px 18px; overflow-x: auto;
  text-align: center; font-size: 18px; border-radius: 14px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, .72));
  background: var(--code-bg, rgba(255, 255, 255, .30)); }
.zb-var { font-style: italic; }
.zb-digit, .zb-num, .zb-text, .zb-textchar, .zb-func, .zb-sym { font-style: normal; }
.zb-op { margin: 0 .1em; }
.zb-frac { display: inline-flex; flex-direction: column; align-items: center;
  vertical-align: middle; margin: 0 .18em; font-size: .92em; line-height: 1.2; }
.zb-frac > .zb-num { display: block; padding: 0 .3em .08em; border-bottom: 1px solid currentColor; }
.zb-frac > .zb-den { display: block; padding: .08em .3em 0; }
.zb-binom .zb-frac > .zb-num { border-bottom: none; }
.zb-sqrt { display: inline-flex; align-items: stretch; vertical-align: middle; margin: 0 .1em; }
.zb-radical { font-size: 1.25em; line-height: 1; }
.zb-radicand { border-top: 1px solid currentColor; padding: .06em .18em 0 .06em; }
.zb-root-deg { font-size: .62em; align-self: flex-start; margin-right: -.25em; }
.zb-script { display: inline-flex; align-items: stretch; vertical-align: middle; }
.zb-base { display: inline-flex; align-items: center; }
.zb-scripts { display: inline-flex; flex-direction: column; justify-content: center;
  font-size: .68em; line-height: 1.05; margin-left: .05em; }
.zb-sup, .zb-sub { display: block; min-height: .7em; }
.zb-bigop { display: inline-flex; flex-direction: column; align-items: center;
  vertical-align: middle; margin: 0 .16em; line-height: 1.05; }
.zb-bigop > .zb-op { font-size: 1.7em; }
.zb-bigop .zb-over, .zb-bigop .zb-under { font-size: .66em; }
.zb-bb { font-weight: 700; }
.zb-bold { font-weight: 700; }
.zb-cal { font-family: "Segoe Script", "Brush Script MT", cursive; }
.zb-quad { display: inline-block; width: 1em; }
.zb-qquad { display: inline-block; width: 2em; }
.zb-thinspace { display: inline-block; width: .17em; }
.zb-nbsp { display: inline-block; width: .3em; }
.zb-delim { font-size: 1.12em; }
.zb-unknown { font-style: normal; color: #b0456b; }
.zb-group { display: inline; }
.zb-accent { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.zb-accent-mark { font-size: .7em; height: .55em; }
.zb-accent-underline { flex-direction: column-reverse; }
.zb-aligned { display: inline-flex; flex-direction: column; align-items: center; gap: .35em; }
.zb-line, .zb-cell { display: inline-flex; }
.zb-mtable { display: inline-flex; flex-direction: column; }
.zb-mrow { display: inline-flex; }
.zb-mcell { padding: .1em .4em; text-align: center; }
.zb-matrix { display: inline-flex; align-items: center; vertical-align: middle; }
.zb-matrix-pmatrix::before, .zb-matrix-pmatrix::after { font-size: 1.8em; }
.zb-matrix-pmatrix::before { content: '('; }
.zb-matrix-pmatrix::after { content: ')'; }
.zb-matrix-bmatrix::before { content: '['; font-size: 1.8em; }
.zb-matrix-bmatrix::after { content: ']'; font-size: 1.8em; }
.zb-matrix-cases::before { content: '\7B'; font-size: 2em; }
.zb-break { display: block; height: 0; }
.zb-alignmark { display: inline-block; width: .5em; }
.zb-task { margin-right: 7px; color: var(--accent-text, #3f5c9c); }
.zb-task.done { color: var(--accent-3-text, #934268); }
.zb-code .zb-lang { position: absolute; right: 12px; bottom: 7px; font-size: 10px;
  letter-spacing: .8px; color: var(--faint, #64708f); pointer-events: none; }
:root[data-theme="night"] .zb-math { color: #e8f0ff; }
:root[data-theme="night"] .zb-unknown { color: #ffb0c8; }
/* ZB-MATH:END */
