/* =========================================================
   universe · 个人网页导航
   基座：rjshkhr/startpage（MIT）—— 结构、类名、交互全部保留，
   只替换「设计令牌 + 排版 + 质感」三件事，与憩想·摄影博客对齐。
   ========================================================= */

/* ---------------------------------------------------------
   ★ 配色令牌：原版用 RGB 三元组而非十六进制，因为 hover 要写
     rgba(var(--x-rgb), .05) 做低透明度叠色。所以本文件同样保留
     三元组写法 —— 换成十六进制会让那些 rgba() 全部失效。
     每个值后面标出它对应 blog 的哪个 CSS 变量。
   --------------------------------------------------------- */
:root {
  /* 页面底 = blog --bg(#0f0f0f)；卡片 = blog --card(#181818)。
     ⚠️ 原版是「页底色比卡片亮」(页 #242B2D / 卡 #1D2326)，方向相反。
     这里翻过来跟 blog 一致：底更深、卡片浮起来。 */
  --bg-alt-rgb: 15, 15, 15;    /* 页底    ← blog --bg      */
  --bg-rgb: 24, 24, 24;        /* 卡片    ← blog --card    */
  --bg-2-rgb: 33, 33, 33;      /* 卡片加深 ← blog --card-2 */

  --fg-rgb: 242, 241, 237;     /* 主文字  ← blog --ink     */
  --fg-alt-rgb: 181, 180, 174; /* 次级    ← blog --ink-2   */
  /* 弱：原 145,144,137。经逐像素实测（7 视口 × 6 时段，采样最亮 20% 区），
     `.visits-label` 在横屏矮视口（844×390 / 740×360 / 667×375）压在较亮天空上
     只有 3.79–4.41（需 4.5）。提到 165,164,157 后最差 4.84，且仍低于
     --fg-alt 的 181，保留「主/次/弱」三档层次。 */
  --fg-weak-rgb: 165, 164, 157;/* 弱       ← blog --ink-3   */

  /* ★ 原版的三色（雾蓝 #7E9AAB / 陶土 #BC8F7D / 鼠尾草 #96B088）是
     「反差」的根源：blog 的界面零彩度，颜色全部来自照片和色卡本身。
     所以这里把三色降成同一暖灰系的三个明度档，只靠「明度」区分分类。
     三元组形式保留，hover 叠色照旧能算。 */
  --primary-rgb: 242, 241, 237;   /* 分类一 ← blog --ink    */
  --secondary-rgb: 181, 180, 174; /* 分类二 ← blog --ink-2  */
  --tertiary-rgb: 130, 129, 122;  /* 分类三 ← blog --ink-3  */

  /* 分隔线：原版没有描边，只靠阴影。blog 大量使用发丝线，补上。 */
  --line-rgb: 255, 255, 255;

  /* 反色（选中/悬停底色）← blog --hl / --hl-ink。
     blog 的 ::selection 就是这一对，悬停沿用同一语义。 */
  --hl-rgb: 242, 241, 237;
  --hl-ink-rgb: 15, 15, 15;

  /* 圆角：原版 1em / 0.5em 偏圆润；blog 控件是 5px、照片 2px */
  --r: 5px;
  --r-sm: 4px;

  /* 阴影：原版是极轻的近距投影；blog 是更深更散的 */
  --shadow: 0 18px 44px -22px rgba(0, 0, 0, .85);
  --shadow-rest: 0 10px 26px -16px rgba(0, 0, 0, .6);

  /* 版心与留白 ← blog --max / --pad */
  --max: 1180px;
  --pad: clamp(20px, 5vw, 72px);

  /* 字族 ← blog 的同名变量。
     注意 blog 的层级是「正文无衬线 + 标题衬线」，不是整站衬线。 */
  --f-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --f-serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --f-serif-d: "QX Serif", "Songti SC", "STSong", "SimSun", serif;
  --f-script: "Great Vibes", "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------
   浅色主题：数值全部取自 blog 的 html[data-theme="light"] 块，
   同样换算成三元组。明度梯在浅色下方向不变 —— primary 取最强对比
   （浅色下是近黑），这样「分类一最显眼」的层级关系两个主题一致。
   --------------------------------------------------------- */
html[data-theme="light"] {
  color-scheme: light;

  --bg-alt-rgb: 240, 238, 234;   /* 页底  ← blog --bg   #f0eeea */
  --bg-rgb: 251, 250, 248;       /* 卡片  ← blog --card #fbfaf8 */
  --bg-2-rgb: 227, 224, 217;     /* ← blog --card-2   #e3e0d9 */

  --fg-rgb: 22, 22, 22;          /* ← blog --ink      #161616 */
  --fg-alt-rgb: 85, 84, 79;      /* ← 提深一档（原 #5c5b56 在浅色 dusk 天空上只有 4.42，现 #55544f 得 4.92） */
  --fg-weak-rgb:  95,  94,  87;   /* ← blog --ink-3（原 104,103,95 在实测最差底色 231,228,222 上只有 4.48，现 5.13） */

  --primary-rgb: 22, 22, 22;
  --secondary-rgb: 92, 91, 86;
  --tertiary-rgb: 104, 103, 95;

  --line-rgb: 20, 20, 20;

  --hl-rgb: 22, 22, 22;
  --hl-ink-rgb: 255, 255, 255;

  --shadow: 0 18px 44px -24px rgba(0, 0, 0, .35);
  --shadow-rest: 0 10px 26px -18px rgba(0, 0, 0, .22);
}

/* 颗粒与顶部提亮在浅色下要反过来，否则白底上叠白噪点看不见、叠黑又太重 */
html[data-theme="light"] body::after { opacity: .065; }
html[data-theme="light"] body {
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(0, 0, 0, .02), transparent 60%);
}

/* ---------------------------------------------------------
   重置
   ⚠️ 原版这里是 * { transition: 0.2s ease-in-out } —— 全属性过渡。
   那会让 width/height/box-shadow 也参与过渡，悬停时触发布局与重绘，
   而且和 blog「只过渡颜色」的做法不一致。这里收窄到三个颜色属性。
   --------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
/* 媒体元素自身不变色，摘掉过渡（照 blog 的处理） */
img, svg, video, canvas { transition: none; }

body {
  background-color: rgb(var(--bg-alt-rgb));
  color: rgb(var(--fg-rgb));
  font-family: var(--f-cn);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  /* 顶部极淡的一层提亮 ← blog body */
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, .02), transparent 60%);
}

/* 全站胶片颗粒 ← blog body::after。
   静态 SVG 纹理 + pointer-events:none，无性能开销，不是动画。 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: .05;
}

/* =========================================================
   背景场景（2026-10-07）
   随**现实时间**与**定位天气**变化：破晓 → 清晨 → 正午 → 黄昏 → 入夜 → 深夜。

   设计约束（先读了探针才这么写）：
     ① 探针验 `body` 的 backgroundColor 必须等于 blog 的 --bg(#0f0f0f)，
        所以场景**不能改 body 背景色** —— 它是独立的 fixed overlay。
     ② 探针把 `.ico svg` 当界面图标统计（要求 iconsTooSmall===0、
        hiddenOutsideHints===0），所以这层的元素**不带 .ico 类**。
     ③ 用 z-index:-1 而不是 0/1 —— 这样 .container / footer 这些
        **未定位（static）** 的元素才能正常盖在场景之上。
        （static 元素的绘制顺序低于任何定位元素，若场景用 z-index:0
          就会压住卡片。）
     ④ `body` 不加 isolation —— 那会创建层叠上下文，把 z-index:-1
        锁在 body 内部，场景就跑到 body 背景色之下了。

   UI 零彩度的家族铁律仍然成立：**有颜色的是场景（它算内容），
   卡片与文字照旧是纯灰阶。**
   ========================================================= */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* 首帧不可见 —— JS 会先把 data-daypart / data-weather 填对，
     再加 .is-ready 淡入。否则会「先闪一下默认的深夜色、再跳到正午」。
     （HTML 里同时有 hidden，双保险：JS 没跑起来时场景完全不出现。） */
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.scene.is-ready { opacity: 1; }

.scene[hidden] { display: none; }

/* ── 天空：一次线性渐变铺满，颜色由下面的时段变量决定 ──
   🔴 结构是「天空 → 地平线 → 地面」，不是简单的「上深下浅」。
      为什么必须有**地面**这一段：
        最初的版本让地平线（最亮处）落在页面底部，而页脚的小字
        （12–17px，需 4.5 对比度）正好在那里 —— 实测正午只有 1.09，
        等于看不见。
        把底部改成「地面」（暗）之后：天光该亮的地方亮（中段，多被卡片挡住），
        文字该清的地方清（顶部时钟、底部页脚都落在暗区）。
        这既符合真实视觉（站在地上看天，脚边是暗的），也顺带解决了可读性。 */
.scene-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    var(--sky-mid) 38%,
    var(--sky-horizon) 62%,
    var(--ground) 80%,
    var(--ground) 100%
  );
  transition: background 2.4s var(--ease);
}

/* ── 日辉 / 月晕：一团柔和的径向光，位置与颜色随时段走 ──
     用 --glow-x / --glow-y 定位（百分比），JS 按时间算太阳高度。
     太阳落山后这层变成月晕（更小更冷）。 */
.scene-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 14%),
    var(--glow-color) 0%,
    transparent var(--glow-size, 42%)
  );
  transition: background 2.4s var(--ease);
  opacity: var(--glow-opacity, 1);
}

/* ── 星空：深夜才出现，用 repeating radial 做低密度星点 ──
     不用位图，纯 CSS，零请求。 */
.scene-stars {
  position: absolute;
  inset: 0;
  opacity: var(--stars-opacity, 0);
  transition: opacity 2.4s var(--ease);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, .85), transparent 55%),
    radial-gradient(1px 1px at 34% 9%, rgba(255, 255, 255, .7), transparent 55%),
    radial-gradient(1.4px 1.4px at 58% 22%, rgba(255, 255, 255, .8), transparent 55%),
    radial-gradient(1px 1px at 76% 12%, rgba(255, 255, 255, .65), transparent 55%),
    radial-gradient(1.1px 1.1px at 88% 26%, rgba(255, 255, 255, .75), transparent 55%),
    radial-gradient(1px 1px at 22% 33%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(1.3px 1.3px at 46% 38%, rgba(255, 255, 255, .7), transparent 55%),
    radial-gradient(1px 1px at 68% 44%, rgba(255, 255, 255, .6), transparent 55%),
    radial-gradient(1.2px 1.2px at 5% 46%, rgba(255, 255, 255, .6), transparent 55%),
    radial-gradient(1px 1px at 92% 52%, rgba(255, 255, 255, .5), transparent 55%);
  background-repeat: no-repeat;
}

/* ── 云层：用两三团柔和的模糊椭圆叠出层次，密度由天气决定 ──
     晴天几乎看不见，阴雨天明显。 */
.scene-clouds {
  position: absolute;
  inset: 0;
  opacity: var(--clouds-opacity, 0);
  transition: opacity 2.4s var(--ease);
  background-image:
    radial-gradient(38% 22% at 22% 30%, var(--cloud-color) 0%, transparent 70%),
    radial-gradient(46% 26% at 62% 22%, var(--cloud-color) 0%, transparent 72%),
    radial-gradient(32% 18% at 86% 36%, var(--cloud-color) 0%, transparent 70%),
    radial-gradient(50% 24% at 44% 44%, var(--cloud-color) 0%, transparent 74%);
  filter: blur(14px);
}

/* ── 遮罩（veil）：场景与内容之间的一层，**保证文字可读性** ──
   🔴 为什么必须有：正午的亮蓝天空下，浅色文字实测对比度只有 1.09
      （WCAG 要求 ≥4.5），等于看不见。实测数据：
        noon  .foot-name 1.09 / #clockDate 1.80
        morning .foot-name 1.26 / #clockDate 1.78
      而 body 背景色**不能改**（探针验它必须等于 blog 的 --bg），
      所以只能在场景内部压一层。

   为什么用「渐变」而不是「统一透明度」：
     · 上半屏只有时钟（80px 大字，只需 3.0）→ 遮罩可以轻，
       让天空的色相与亮度尽量保留
     · 下半屏是 12–17px 的小字（需 4.5）→ 必须压得更重
     一条从上到下递增的渐变正好对应这个需求。

   夜间本来就地暗，这层对它几乎无影响 —— 所以不必按时段切换。 */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 🔴 分带压制，而不是「整体匀压一层」：
       ① 顶部暗带（0–26%）—— 时钟与日期在这里，必须够暗
       ② 中段轻遮罩（40–68%）—— 天空的色相与亮度主要留在这里
       ③ 底部暗带（80–100%）—— 页脚小字在这里

     为什么不匀压：顶部那行 15px 的日期要达标需压到约 0.58，
     匀压会把中段天空一起压灰 —— 正午看起来像阴天，失去时段辨识度。
     只压内容真正所在的两条带，中段颜色就保住了。
     （黄昏那档本来就偏暗，匀压也能过，所以问题只在正午/清晨这类亮天空上暴露。） */
  /* 🔴 两条暗带的**下边界必须跟着内容走，不能只写百分比**。
       事故：0–26% 是视口高度的百分比，而顶部那簇文字（时钟 / 日期 /
       天气）是固定 px 排下来的。视口一变矮，26% 跟着变矮，文字就滑出
       平带、落进 26%→40% 的渐隐区 —— 底色立刻变亮。
       实测（2026-10-28，视口 × 7 时段 × 2 主题 = 1020 条）：
         900px 高 0 条不达标；768/700/640 高共 33 条，
         最差 2.16:1（weather-city 在 640 高、正午/清晨/下午）。
       ⚠️ 顶部那簇文字的实测下沿最大 239px，故平带取 max(26%, 260px)：
          高视口仍按比例（1080 高时 281px），矮视口钉死在 260px。
       ⚠️ 必须留一条只用百分比的兜底声明 —— 浏览器若不认 max()，
          整条 background 会失效，那层遮罩会**整个消失**，文字直接
          压在亮天空上（比现在更糟）。 */
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / var(--veil-top, 0)) 0%,
    rgb(0 0 0 / var(--veil-top, 0)) 26%,
    rgb(0 0 0 / var(--veil, 0)) 40%,
    rgb(0 0 0 / var(--veil, 0)) 68%,
    rgb(0 0 0 / var(--veil-bottom, 0)) 80%,
    rgb(0 0 0 / var(--veil-bottom, 0)) 100%
  );
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / var(--veil-top, 0)) 0,
    rgb(0 0 0 / var(--veil-top, 0)) max(26%, 260px),
    rgb(0 0 0 / var(--veil, 0)) max(40%, 380px),
    rgb(0 0 0 / var(--veil, 0)) 68%,
    rgb(0 0 0 / var(--veil-bottom, 0)) 80%,
    rgb(0 0 0 / var(--veil-bottom, 0)) 100%
  );
  transition: background 2.4s var(--ease);
}

/* ---------------------------------------------------------
   时段色板 —— JS 只负责把 data-daypart 写到 .scene 上，
   颜色全部留在这里，改配色不必动 JS。

   ⚠️ 色相只在场景里出现（天光/日辉），**卡片与文字仍是灰阶**。
      这是「场景算内容、UI 零彩度」的分界。
   --------------------------------------------------------- */

/* 深夜（0–4）*/
.scene[data-daypart="night"] {
  --sky-top: #05060b;
  --sky-mid: #0a0d16;
  --sky-low: #10141f;
  --sky-horizon: #161b28;
  --ground: #04050a;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: 0;  --veil-top: 0;  --veil-bottom: 0;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(150, 170, 210, .10);
  --glow-size: 34%;
  --glow-x: 76%;
  --glow-y: 18%;
  --glow-opacity: .9;
  --stars-opacity: .75;
  --clouds-opacity: .10;
  --cloud-color: rgba(150, 165, 195, .16);
}

/* 破晓（4–6）：地平线泛出冷蓝紫 */
.scene[data-daypart="dawn"] {
  --sky-top: #0a1020;
  --sky-mid: #1b2440;
  --sky-low: #3b3f5c;
  --sky-horizon: #6b5a63;
  --ground: #0b0d16;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: .10;  --veil-top: .34;  --veil-bottom: .34;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(255, 170, 120, .30);
  --glow-size: 46%;
  --glow-x: 22%;
  --glow-y: 64%;
  --glow-opacity: 1;
  --stars-opacity: .18;
  --clouds-opacity: .26;
  --cloud-color: rgba(255, 190, 160, .20);
}

/* 清晨（6–9）：暖白偏金，天光亮起来 */
.scene[data-daypart="morning"] {
  --sky-top: #4b6a92;
  --sky-mid: #8aa3bd;
  --sky-low: #c9b79f;
  --sky-horizon: #e8d3ae;
  --ground: #141519;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: .16;  --veil-top: .64;  --veil-bottom: .62;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(255, 226, 170, .42);
  --glow-size: 52%;
  --glow-x: 18%;
  --glow-y: 62%;
  --glow-opacity: 1;
  --stars-opacity: 0;
  --clouds-opacity: .30;
  --cloud-color: rgba(255, 255, 255, .28);
}

/* 正午（9–16）：高而亮的蓝，日辉移到顶部 */
.scene[data-daypart="noon"] {
  --sky-top: #3d6ea8;
  --sky-mid: #6f9ecb;
  --sky-low: #a8c4dd;
  --sky-horizon: #d6e2ea;
  --ground: #17181d;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: .20;  --veil-top: .66;  --veil-bottom: .66;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(255, 250, 225, .5);
  --glow-size: 58%;
  --glow-x: 50%;
  --glow-y: -12%;
  --glow-opacity: 1;
  --stars-opacity: 0;
  --clouds-opacity: .34;
  --cloud-color: rgba(255, 255, 255, .34);
}

/* 午后（16–18）：开始偏暖 */
.scene[data-daypart="afternoon"] {
  --sky-top: #4a76a4;
  --sky-mid: #86a6c0;
  --sky-low: #c4b49c;
  --sky-horizon: #e3c9a2;
  --ground: #16161a;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: .18;  --veil-top: .64;  --veil-bottom: .62;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(255, 236, 190, .46);
  --glow-size: 54%;
  --glow-x: 66%;
  --glow-y: 40%;
  --glow-opacity: 1;
  --stars-opacity: 0;
  --clouds-opacity: .30;
  --cloud-color: rgba(255, 250, 240, .30);
}

/* 黄昏（18–20）：最绚的一段，橙红压在地平线 */
.scene[data-daypart="dusk"] {
  --sky-top: #24304f;
  --sky-mid: #4a4a6e;
  --sky-low: #a5645f;
  --sky-horizon: #e08a52;
  --ground: #121118;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: .12;  --veil-top: .50;  --veil-bottom: .46;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(255, 150, 80, .46);
  --glow-size: 56%;
  --glow-x: 82%;
  --glow-y: 64%;
  --glow-opacity: 1;
  --stars-opacity: .10;
  --clouds-opacity: .32;
  --cloud-color: rgba(255, 170, 120, .26);
}

/* 入夜（20–22）：蓝调时刻，余晖未尽 */
.scene[data-daypart="evening"] {
  --sky-top: #101828;
  --sky-mid: #1d2b45;
  --sky-low: #33415e;
  --sky-horizon: #5b4f62;
  --ground: #070910;          /* 地面（页面底部）—— 必须够暗，页脚小字靠它 */

  --veil: .06;  --veil-top: .20;  --veil-bottom: .22;   /* 中段 / 顶带 / 底带：分带压制，中段留色相 */  --glow-color: rgba(200, 160, 170, .20);
  --glow-size: 42%;
  --glow-x: 88%;
  --glow-y: 62%;
  --glow-opacity: .95;
  --stars-opacity: .30;
  --clouds-opacity: .20;
  --cloud-color: rgba(180, 190, 215, .18);
}

/* ---------------------------------------------------------
   🔴 短视口：天空渐变改成 px 锚定（不是百分比）
   为什么：上面那串文字是固定 px 排的（时钟 80–168 / 日期 164–197 / 天气 194–239），
   而 `.scene-sky` 的停点是百分比（38% / 62% / 80%）。在 360–430px 高的横屏视口里，
   62% 的地平线恰好落在 y=214–223（天气那行），于是**最亮的天光直接压在最小的字后面**。
   实测（屏幕各 6 时段全枚举）：正午 1.49:1、早上 1.34:1，需 4.5。

   为什么不直接加重遮罩：短视口下 `--veil-top` 要提到 0.72
   才够（实际需求：正午 0.686 / 早上 0.669 / 午后 0.657 / 黄昏 0.558），
   而遮罩平带是 0–max(26%,260px)，在 360px 高的屏里那就是 72% 的屏幕
   —— 为了一行 4.5:1 把整个天空压成灰黑，不值得。
   改地平线的位置反而更对：地平线本来就不该在文字背后。

   数值来源：在 13 个视口（含 320/330/340/350/360/375/390/420/470/520/568/740/844 高）
   × 6 时段 × 深色主题下，把遮罩全置 0 量出真实天空取色，
   再用 sRGB 合成 + 二分精确反解「刚好 4.5:1 所需的 veil」，不是试出来的。
   --------------------------------------------------------- */
@media (max-height: 480px) {
  /* 地平线锚在 300px：天气那行（下沿 239px）已落在中段色     而不是最亮处；地面锚在 420px（长视口下就是 80%）     —— 长视口走原来的百分比，只有短视口才走这套。 */
  .scene-sky {
    background: linear-gradient(
      to bottom,
      var(--sky-top) 0,
      var(--sky-mid) 200px,
      var(--sky-horizon) 300px,
      var(--ground) 420px,
      var(--ground) 100%
    );
  }
}

/* ---------------------------------------------------------
   天气叠加（在时段色板之上再做一层修正）
   · 晴天：云几乎没了、日辉更强
   · 多云：云量中等
   · 阴/雾：云铺满、日辉压暗、整体降饱和
   · 雨雪：云更沉、天光更冷更灰
   ⚠️ 只覆盖变量，不新增元素 —— 保持 DOM 简单。
   --------------------------------------------------------- */
.scene[data-weather="clear"] {
  --clouds-opacity: .06;
  --glow-opacity: 1;
}
.scene[data-weather="partly"] {
  --clouds-opacity: .34;
}
.scene[data-weather="overcast"] {
  --clouds-opacity: .72;
  --glow-opacity: .45;
  --cloud-color: rgba(190, 195, 205, .30);
}
.scene[data-weather="fog"] {
  --clouds-opacity: .85;
  --glow-opacity: .30;
  --cloud-color: rgba(200, 205, 212, .34);
}
.scene[data-weather="rain"] {
  --clouds-opacity: .80;
  --glow-opacity: .22;
  --cloud-color: rgba(150, 160, 175, .30);
}
.scene[data-weather="snow"] {
  --clouds-opacity: .66;
  --glow-opacity: .32;
  --cloud-color: rgba(225, 230, 240, .38);
}


/* ---------------------------------------------------------
   浅色主题的**淡色天空**（v2，由 _cleanup/gen_light_palette.py 生成）

   🔑 为什么不是「深色色板 + 高遮罩」：
       实测过三版都失败 —— multiply 14 项不达标 / opacity .20 时 10 项 /
       opacity .55+veil .86 时 7 项；而把遮罩提到 .96 勉强全过，
       却发现天空偏离纸色仅 4/255，**等于看不见**。
       根因：浅色主题是「深字压亮底」，任何压暗都在吃掉
       --fg-weak 那点余量（它在纸色上只有 4.91，需 4.5）。

   🔑 v2 的做法是**分带定标**（先量了文字的真实位置）：
       · --ground 正好等于纸色 → 页脚（89–93%）拿回原始基准，不受天空影响
       · 三个天空停靠点只受**日期**那条约束（--fg-alt 基准 5.77，余量宽 3 倍）
         → 可以保留 13% 的原天空色，得到可辨的色相
       · 站点卡片（45–75.7%）自身不透明，它背后的天空无约束
     即：把有限的可读性预算花在文字真正所在的两条带上，中段留给颜色。
   --------------------------------------------------------- */
html[data-theme="light"] .scene[data-daypart="night"] {
  --sky-top: #dbd9d6;
  --sky-mid: #dbdad7;
  --sky-horizon: #dcdad8;
  --ground: #f0eeea;
}

html[data-theme="light"] .scene[data-daypart="dawn"] {
  --sky-top: #d9d8d6;
  --sky-mid: #dbdad9;
  --sky-horizon: #dedcdc;
  --ground: #f0eeea;
}

html[data-theme="light"] .scene[data-daypart="morning"] {
  --sky-top: #c8ced5;
  --sky-mid: #d8dcdf;
  --sky-horizon: #e7e1d8;
  --ground: #f0eeea;
}

html[data-theme="light"] .scene[data-daypart="noon"] {
  --sky-top: #c7d1db;
  --sky-mid: #d2dce3;
  --sky-horizon: #dfe4e7;
  --ground: #f0eeea;
}

html[data-theme="light"] .scene[data-daypart="afternoon"] {
  --sky-top: #c5cfd8;
  --sky-mid: #d4dbdf;
  --sky-horizon: #e5dfd6;
  --ground: #f0eeea;
}

html[data-theme="light"] .scene[data-daypart="dusk"] {
  --sky-top: #d5d5d6;
  --sky-mid: #dad9da;
  --sky-horizon: #e6dcd8;
  --ground: #f0eeea;
}

html[data-theme="light"] .scene[data-daypart="evening"] {
  --sky-top: #dad9d7;
  --sky-mid: #dbdada;
  --sky-horizon: #dddddc;
  --ground: #f0eeea;
}

/* 浅色主题关掉深色遮罩：色板自己就够淡，再加遮罩会把色相也洗掉。
   同时把云/星改成适合浅底的形态（白点白云在浅底上等于看不见）。 */
html[data-theme="light"] .scene {
  opacity: 1;
  --veil: 0;
  --veil-top: 0;
  --veil-bottom: 0;
  --glow-opacity: .55;
  --stars-opacity: 0;                       /* 浅底上不该有星星 */
  --cloud-color: rgba(150, 158, 172, .30);  /* 灰调云，白点在浅底看不见 */
}

/* 🔴 浅色主题下要把日辉**裁掉下半部分**。
   为什么：光晕是径向渐变、有半径（--glow-size 最大 58%）。
   只把中心压到地平线以内（--glow-y: 64%）还不够 —— 半径仍会延伸进
   页脚所在的地面带（89–93%），把纸色染成暖橙。
   实测（_tools/probe_layer_isolation.js，浅色 · dusk · .foot-note）：
     全部图层                        4.26 ✗  底色 rgb(241,219,203)
     隐藏日辉                        4.82 ✓  底色 rgb(238,236,232)
     --glow-y 从 82% 压到 64% 之后   4.45 ✗（还差 0.05）
   所以用 mask 让它在地面带之前淡出 —— 物理上也对：
   阳光照在地平线以上，不会照到脚边。
   （深色主题不需要这层：那里文字是浅色，暖光只会**增加**对比度。） */
html[data-theme="light"] .scene-glow {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 74%);
}

/* ── 明暗主题联动 ──
   🔴 浅色主题**不能用 mix-blend-mode: multiply**，也不能靠「降低不透明度」或
      「加纸色遮罩」。实测四版都失败（浅色 · 有场景 vs 无场景 · 逐项对比）：
        multiply + opacity .30        → 14 项不达标
        去掉 multiply，仅 opacity .20  → 10 项
        opacity .55 + 纸色遮罩 .86     →  7 项
        opacity .50 + 纸色遮罩 .96     →  0 项，但天空偏离纸色仅 4/255（等于看不见）
      根因：浅色主题是「深字压亮底」，而 --fg-weak 在纸色上只有 4.91
      （需 4.5）—— 只剩 0.41 余量，任何压暗都会吃掉它。

   🔑 最终方案（见上方 `html[data-theme="light"] .scene[data-daypart=...]` 色板）：
      改成**向白混**生成淡色天空 —— 底色比纸色更亮，对比度**不降反升**，
      同时保留各时段的色相差异。所以这里的遮罩归零。
      深浅两套色板是分别求解的，不是同一套加不同遮罩。 */

/* 系统偏好「减少动效」时，场景直接静态呈现（不做 2.4s 渐变） */
@media (prefers-reduced-motion: reduce) {
  .scene, .scene-sky, .scene-glow, .scene-stars, .scene-clouds {
    transition: none;
  }
}

::selection {
  background: rgb(var(--hl-rgb));
  color: rgb(var(--hl-ink-rgb));
}

/* 版心：原版 main 直接 flex 居中、无最大宽度下限，窄屏会把卡片挤扁。
   ★ 2026-10-07 收回**单栏**（「关于本站」改成左上角弹窗、
     「联系方式」挪进页脚，所以 main 里只剩「站点」）。
     窄栏里放不下「站名 + 域名」并排，所以条目是两行堆叠（见 .container a）。
   ★ 2026-10-08 先加「外站」成两列（30em → 46em）；
     再加「Git 项目」成三列，版心随之放到 70em。
     70em 是**量出来的**不是拍脑袋：把三块卡片设成 width:max-content 量固有宽度，
     最宽那块 356px（外站，因为 "WorldVectorLogo + 世界矢量 Logo 库" 最长），
     3 × 356 + 2 × 22.4(gap) ≈ 1113px ≈ 70em。
     窄了会把长域名挤断。窄屏仍逐级折行（见下面的媒体查询）。 */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1.4em;
  margin-top: 3em;
  max-width: 70em;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* 三个板块并列：等宽三列，各自内部仍是纵向链接列表。
   ⚠️ 用 grid 而不是 flex —— flex 下各 .container 的内容长度不一（站点 3 条 /
      外站 4 条 / Git 2 条），卡片高度会被内容撑得不一样，看起来参差不齐。
      grid 的 stretch（默认）让同一行的各格等高，视觉上才是「一组」。
   ⚠️ minmax(0,1fr) 而不是 1fr：1fr 的最小尺寸是 auto，长域名会把列顶宽、
      撑出横向滚动（本项目在别处踩过一次，见 .lb-bottom 的同类处理）。 */
.boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4em;
  align-items: stretch;
}

/* 外站卡片：沿用 .container 的版式（同一套卡片语言），
   标题色改成次级明度，与「站点」那块形成主次区分。 */
.ext-container h2 { color: rgb(var(--fg-rgb)); opacity: .82; }
/* 外站条目的第二行是**说明**而不是域名，字号略收一点，避免误读成网址 */
.ext-container a .hint { letter-spacing: .04em; }

/* Git 项目卡片：同样用次级标题色（它和外站一样不是「我的主站」）。
   第二行也是说明而非域名（当前两项都还没有线上 demo），所以同 .ext-container 处理。 */
.git-container h2 { color: rgb(var(--fg-rgb)); opacity: .82; }
.git-container a .hint { letter-spacing: .04em; }

/* ---------------------------------------------------------
   时钟 —— 原版 5rem 无衬线。这里换成衬线 QX Serif，
   呼应 blog 的「月份日期」大字距衬线数字。字号加 clamp，
   否则 5rem 在窄屏会顶出横向滚动条（原版没有处理这点）。
   --------------------------------------------------------- */
.clock {
  text-align: center;
  margin-top: 5em;
}

.clock-time {
  font-family: var(--f-serif-d);
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.1;
  color: rgb(var(--fg-rgb));
}

.clock-date {
  font-family: var(--f-serif);
  font-size: .95rem;
  margin-top: .5em;
  letter-spacing: .24em;             /* ← blog 的 eyebrow 字距 */
  text-transform: uppercase;
  color: rgb(var(--fg-alt-rgb));
}

/* 🔴 浅色 + dusk：日期改用主字色。
   ---------------------------------------------------------------
   问题：`--fg-alt-rgb`（92,91,86）落在浅色 dusk 的天空上只有 **4.44**，
        低于 WCAG AA 正文线 4.5 —— 而这行字 15.2px，正是正文档。

   为什么只有 dusk 这一档出事：其余六档的底色都比它亮，余量最大的是
   evening（4.73）。dusk 的天空最暗、最暖（`--sky-top:#d5d5d6` 一路到
   `--sky-horizon:#e6dcd8`），再叠上夕阳日辉（rgba(255,150,80,.46)），
   正好把日期所在的这条带压到线以下。

   为什么改字色而不是改场景（实测过，都不行）：
     · 提亮天空：要跨过 4.5 需把天空提亮约 **16 个灰阶** —— 那是肉眼可见
       的改色，且余量只剩 +0.04，比栅格抖动（±0.05）还小，等于没修。
     · 调低日辉：`--glow-opacity` 降到 .30 才到 4.54，同样是贴线，而且会
       把**所有**浅色场景的日辉一起削弱 —— 日辉正是黄昏的时段标志。
     · 改字色：余量 **+7.30**，是抖动幅度的上百倍，且只动这一档。

   `--fg-alt` 本身没问题（页脚 `.foot-name` 用它拿到 15.48），问题只在
   它落在了日辉最亮的那个位置。主次层级本来就靠字号建立
   （80px 的时间 vs 15.2px 的日期），不靠这两级灰的差别。

   ⚠️ 别把这里的选择器写成 `.scene[data-daypart="dusk"] .clock-date` ——
      `.clock` 与 `.scene` 是**兄弟**不是父子（`.clock-date` 的祖先链是
      SPAN#clockDate < DIV.clock-date < DIV.clock），后代选择器一个都匹配
      不到，而且**不报错**：改了半天颜色不变，很容易被当成「这个变量没用」。
      这里用 `~` 兄弟组合器，从 `.scene` 走到 `.clock` 里的日期。 */
html[data-theme="light"] .scene[data-daypart="dusk"] ~ * .clock-date,
html[data-theme="light"] .scene[data-daypart="dusk"] ~ * .clock-date i {
  color: rgb(var(--fg-rgb));
}

/* 描边图标靠 1px 细线表达细节，比实心图标更容易被背景吃掉。
   原版 clock-date i 与 search-icon 都写着 --fg-alt 再加 opacity:.7，
   等于在次强灰上又压一层 —— 细线会直接消失。这里取掉那层 opacity。 */
.clock-date i {
  margin-right: .5em;
  color: rgb(var(--fg-alt-rgb));
}

/* ---------------------------------------------------------
   搜索框
   --------------------------------------------------------- */
.search {
  position: relative;
  width: min(550px, calc(100% - 2 * var(--pad)));
  margin: 2.6em auto 4.2em;
}

.search-input {
  width: 100%;
  padding: .85em 1.2em;
  font-family: var(--f-cn);
  font-size: 1rem;
  color: rgb(var(--fg-rgb));
  background: rgb(var(--bg-rgb));
  border: 1px solid rgba(var(--line-rgb), .13);   /* ← blog --line */
  border-radius: var(--r);
  outline: none;
  box-shadow: var(--shadow-rest);
}

.search-input::placeholder {
  color: rgb(var(--fg-alt-rgb));
  opacity: .7;
  letter-spacing: .04em;
}

.search-input:hover {
  border-color: rgba(var(--line-rgb), .22);
}

.search-input:focus {
  border-color: rgba(var(--line-rgb), .34);
  box-shadow: var(--shadow);
}

.search-icon {
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(var(--fg-alt-rgb));
  pointer-events: none;
}

/* 快捷键提示条 */
.shortcut-hints {
  position: absolute;
  top: calc(100% + .6em);
  left: 0;
  right: 0;
  padding: .8em;
  background: rgb(var(--bg-rgb));
  border: 1px solid rgba(var(--line-rgb), .13);
  border-radius: var(--r);
  display: none;
  flex-wrap: wrap;
  gap: .6em;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 100;
}

.shortcut-hints span {
  display: inline-flex;
  align-items: center;
  padding: .35em .7em;
  font-size: .82rem;
  letter-spacing: .05em;
  border-radius: var(--r-sm);
  color: rgb(var(--fg-alt-rgb));
  background: rgba(var(--line-rgb), .05);
}

.search-input:focus ~ .shortcut-hints {
  display: flex;
}

/* ---------------------------------------------------------
   三栏容器
   --------------------------------------------------------- */
.container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.4em 1.4em 1em;
  border-radius: var(--r);
  background-color: rgb(var(--bg-rgb));
  border: 1px solid rgba(var(--line-rgb), .13);
  box-shadow: var(--shadow-rest);
}

.container:hover {
  border-color: rgba(var(--line-rgb), .2);
  box-shadow: var(--shadow);
}

/* 分类标题：衬线 + 大字距 ← blog .sec-title 的处理，
   三级明度梯代替原版的三色。 */
.container h2 {
  display: flex;
  align-items: center;
  gap: .5em;
  font-family: var(--f-serif-d);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: .2em 0 .9em;
  padding-bottom: .7em;
  width: 100%;
  border-bottom: 1px solid rgba(var(--line-rgb), .09);
}

.social-container h2 { color: rgb(var(--primary-rgb)); }
/* 注：原 .dev-container / .general-container 的标题色随三栏一并移除
   （2026-10-07 收回单栏，那两个容器已不存在，留着是死代码）。 */

/* 链接：默认与正文同色；悬停铺一块反色 <-- blog 的 --hl / --hl-ink
   （blog 的 ::selection 就是这一对，所以悬停读起来是同一套语言）。
   原版的 ::before 结构原样保留，只是把「低透明度叠色」换成「反色填充」。

   ★ 2026-10-07 改回三栏后，一行式（站名 …… 右域名）在约 280px 的窄栏里放不下：
     站名会被压成竖排、域名会顶出卡片。改成**两行堆叠**：
       第一行  图标 + 站名
       第二行        域名（缩进对齐站名）
     这正是 blog 卡片在窄栏时的做法。 */
.container a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1em .7em;
  width: 100%;
  padding: .72em .8em;
  margin: .1em 0;
  color: rgb(var(--fg-rgb));
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .03em;
  border-radius: var(--r-sm);
  position: relative;
  z-index: 1;
}

/* 站名不参与压缩（它是这一行的主体） */
.container a > span:first-of-type {
  flex: 0 1 auto;
  min-width: 0;
}

/* 域名换到第二行，与站名左对齐（缩进 = 图标宽 + gap） */
.container a .hint {
  flex: 1 0 100%;
  margin-left: calc(1.05em + .7em);
  font-family: var(--f-serif);
  font-size: .72rem;
  letter-spacing: .04em;
  color: rgb(var(--fg-alt-rgb));
  overflow-wrap: anywhere;
}

.container a:hover .hint,
.container a:focus-visible .hint { color: rgb(var(--hl-ink-rgb)); opacity: .7; }

/* 「筹备中」弱化项：这里的说明才用最弱那一档 */
.soon .hint { color: rgb(var(--fg-weak-rgb)); }

.container a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  border-radius: var(--r-sm);
  background: rgb(var(--hl-rgb));
  transition: width .22s var(--ease);
}

.container a:hover::before,
.container a:focus-visible::before { width: 100%; }

.container a:hover,
.container a:focus-visible { color: rgb(var(--hl-ink-rgb)); }

.container a:focus-visible {
  outline: 1px solid rgba(var(--line-rgb), .34);
  outline-offset: 2px;
}

/* 图标：原版靠 Font Awesome 字体图标（还走 cdnjs 外部 CDN）。
   这里改成内联线性 SVG —— 无外部请求，且与 blog 的零追踪一致。
   注意 .ico 是包在外面的 <i>，描边属性要落在里面的 <svg> 上。 */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.ico svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* 1.5px 细线在小尺寸下会被压缩观感，靠不透明度补偿会直接糊掉，
     所以这里不动它 —— 对比度由父元素选色负责（见下方注释）。 */
}

/* 个别图标需要实心点（如「关于」的 i 字上点）。CSS 的 fill:none 会盖掉
   表现属性 fill="currentColor"，所以必须走类选择器。 */
.ico .dot {
  fill: currentColor;
  stroke: none;
}

.container h2 .ico {
  width: .95em;
  height: .95em;
}

.shortcut-hints .ico {
  width: .95em;
  height: .95em;
}

/* 未上线的站点：不可点，且明显比可点的弱一档。
   结构与 .container a 保持一行式，只是没有 href。 */
.soon {
  display: flex;
  align-items: center;
  gap: .7em;
  width: 100%;
  padding: .72em .8em;
  margin: .1em 0;
  font-size: .95rem;
  letter-spacing: .03em;
  color: rgb(var(--fg-weak-rgb));
  border-radius: var(--r-sm);
  cursor: default;
  opacity: .62;
}

.soon > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
}

/* 注：原 .about-text（「关于本站」栏的说明文字）随三栏一并移除 ——
   该栏 2026-10-07 改成了左上角弹窗，文字用的是 .modal-text。 */

/* 联系方式：图标 + 文本，**一行**（2026-10-07 第二轮）。
   作者要求去掉「点击复制」这类说明，所以不再需要两行堆叠 ——
   整条改成 flex 不换行，图标与文字垂直居中。 */
.contact-btn,
.contact-a {
  /* position:relative 在这条规则末尾已经有一份（早前为 ::before 加的），热区伪元素共用。 */
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .6em;
  padding: .5em .7em;
  margin: 0;
  color: rgb(var(--fg-rgb));
  font-family: inherit;
  font-size: .95rem;
  letter-spacing: .03em;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.contact-btn .c-val,
.contact-a .c-val {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 注：原 `.contact-a .c-val.long`（邮箱降一档字号以免截断）随两行布局一并移除 ——
   现在页脚是整行铺开，25 字符的邮箱放得下。 */

/* 右侧说明（「点击复制」之类）：换到第二行，与值左对齐 */
.contact-btn .hint,
.contact-a .hint {
  flex: 1 0 100%;
  margin-left: calc(1.05em + .7em);
  font-family: var(--f-serif);
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgb(var(--fg-alt-rgb));
}

/* ---------------------------------------------------------
   天气（★ 2026-10-08 从「站点」卡片内**移到时钟下方**）
   数据来自 Open-Meteo（免费、无需 key）；定位优先、失败落成都。
   ★ 未取到数据时整个块 hidden，不占位、不显示 «--»
     （宁可没有，也不要一个「--°」的空壳）。

   为什么移：作者反馈放在卡片里与站点列表**不和谐** —— 那栏里其它项都是
   **可点的站**，它是唯一不可点的环境信息，混在一起确实是异类。
   放时钟下方后与日期同属「此刻的环境」，语义连贯。
   ⚠️ 另一个候选位置「左上角」**实测手机放不下**：390px 视口下
      「关于」右缘到右上控件左缘只剩 112px，而天气自然宽 303px。

   移过来后三条样式跟着改（原写法是为卡片行设计的）：
     · 去掉 border-top 分隔线（不再需要与上一条目分隔）
     · 居中 + 收窄 margin-top（跟着日期，与 .clock-date 同一视觉轴）
     · 城市名去掉 margin-left:auto —— 那是为把城市名推到卡片右缘而写的；
       在 flex 居中里它会把城市名推离温度，改成普通间距自然跟随。
   --------------------------------------------------------- */
.weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  margin-top: .55em;
  font-size: .88rem;
  letter-spacing: .03em;
  color: rgb(var(--fg-alt-rgb));
}

.weather[hidden] { display: none; }

.weather-ico {
  width: 1.25em;
  height: 1.25em;
  color: rgb(var(--fg-rgb));
}

.weather-temp {
  font-family: var(--f-serif-d);
  font-size: 1.05rem;
  color: rgb(var(--fg-rgb));
}

.weather-city {
  font-size: .78rem;
  letter-spacing: .08em;
  /* 城市名落在**天空**上而不是卡片上：深色天空最暗处 rgb(40,49,65) 上
     --fg-weak 只有 3.34。改用 --fg-alt（深色 6.29 / 浅色 4.92）。 */
  color: rgb(var(--fg-alt-rgb));
}

/* 悬停：与站点栏一致的反色块（复用 --hl / --hl-ink 那一对） */
.contact-btn::before,
.contact-a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  border-radius: var(--r-sm);
  background: rgb(var(--hl-rgb));
  transition: width .22s var(--ease);
}

.contact-btn:hover::before,
.contact-btn:focus-visible::before,
.contact-a:hover::before,
.contact-a:focus-visible::before { width: 100%; }

.contact-btn:hover,
.contact-btn:focus-visible,
.contact-a:hover,
.contact-a:focus-visible { color: rgb(var(--hl-ink-rgb)); }

.contact-btn:focus-visible,
.contact-a:focus-visible {
  outline: 1px solid rgba(var(--line-rgb), .34);
  outline-offset: 2px;
}

/* 页脚：落款 + 联系方式**融为一体**（2026-10-07 第二轮）。
   作者要求：页脚内部不要分割线、联系方式不要「点击复制」这类说明文字。
   所以 .foot-contact 去掉了 border-top 与 margin-top，靠 gap 与对齐自然分层。

   ⚠️ 2026-10-28 补：页脚一直是「透明底直接压在天空上」。.scene 是
   position:fixed，天空渐变按**视口**分布、不随页面滚动，所以页脚落在
   文档哪个位置，就吃到天空哪一段。实测在矮视口（844×390 / 740×360 /
   667×375 / 568×320）页高 1831–1871px ≈ 视口的 4–5 倍，滚到底时页脚
   正好压在地平线最亮的那段天上：`.foot-note`（12.48px）底色 rgb(184,206,225)
   对 rgb(165,164,157) 只有 1.45:1。
   仅靠提亮字色救不回来（字色提到最亮 #f2f1ed 也只有 1.45），必须局部压暗；
   但又不能去调 --veil-bottom —— 那会把每个视口底部 20% 的天空都压掉，
   对以天空为主体的页面是明显视觉损失。
   故给页脚自己一层作用域内渐晕：只影响页脚这一块，天空保持原样。 */
.foot {
  max-width: var(--max);
  margin: 5em auto 0;
  padding: 1.6em var(--pad) 3.4em;
  border-top: 1px solid rgba(var(--line-rgb), .07);
  position: relative;
  z-index: 2;
}

/* 页脚自身渐晕：顶部透明（不切断天空、接得上上方内容），
   到第 20% 处已足够暗（桌面端 .foot-note 在 20% 位置，矮视口在 32%），
   之后维持到页脚底。z-index:-1 落在 .foot 自己的层叠上下文里，
   仍画在 fixed 天空之上、文字之下。 */
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, .78) 20%,
    rgba(0, 0, 0, .82) 100%);
}

/* 浅色主题不需要（天空本来就是浅的，压暗反而脏） */
html[data-theme="light"] .foot::before { background: none; }

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: .6em 1.4em;
  align-items: baseline;
  justify-content: space-between;
}

/* 联系方式：与落款同一平面，无上边框、无额外内距 */
.foot-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .1em 2.6em;
  margin-top: .9em;
  padding-top: 0;
  border-top: 0;
}

.foot-name {
  font-family: var(--f-serif-d);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .14em;             /* ← blog .foot-name */
}

.foot-note {
  font-family: var(--f-serif);
  font-size: .78rem;
  letter-spacing: .12em;
  color: rgb(var(--fg-weak-rgb));
}

/* 英文态署名走花体 ← blog 只用它做「英文站名的签名」。
   ⚠️ 只给 .foot-name（内容固定是 latin 的 "universe"）。
   绝不能再套到 .clock-date 上 —— 两个原因：
     ① Great Vibes 只含 latin 字形，日期里一旦出现中文会掉字形；
     ② 日期是要读的信息，花体（尤其再叠 letter-spacing/uppercase）直接读不出来。
   这条曾经写错过，探针里有一条守卫专门盯它。 */
html[lang="en"] .foot-name {
  font-family: var(--f-script);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .02em;
}

/* ---------------------------------------------------------
   访客记录（左下角固定徽标，2026-10-10 作者要求新增）

   定位：position:fixed 固定在视窗左下角，**不随滚动移动**（这是作者明确要求）。

   ★ 为什么不写 bottom:0 —— 见 _tools/probe_visits.js 的实测：
     本站内容**垂直居中且铺满视窗**，左下角在**任何**视口下都压着东西。
     逐个量过（1440/1280/1180/1024/900/820/390）：
       · 1440 只压到 skip-link（平时在视窗外，无害）
       · 多数视口压到 main/container（纯容器，无自身文字）
       · **滚到底时压到页脚文字** ← 唯一真冲突
     所以本设计用「页脚可见即淡出」来消解那一处冲突（见下面 .visits.is-off），
     而不是硬把它挪到一个不存在空位的地方。

   ★ 零彩度（家族铁律）：只用 --fg-* 灰阶 + 半透明底，不引任何强调色。
     它要和「关于本站」弹窗、右上工具条看起来是同一套东西。

   ★ 视觉语言对齐现有控件：圆角用 --r-sm、描边用 --line-rgb、
     字族用 --f-cn、阴影用 --shadow-rest。
   --------------------------------------------------------- */
.visits {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 20;                 /* 高于卡片(1/2)，低于「关于」弹窗(100) */

  display: inline-flex;
  align-items: center;
  gap: .45em;

  padding: 6px 11px 6px 9px;
  border: 1px solid rgba(var(--line-rgb), .10);
  border-radius: 999px;        /* 胶囊 —— 与 .contact-btn 的圆角语言一致 */
  background: rgba(var(--bg-2-rgb), .72);

  /* 毛玻璃：与「关于」弹窗同款处理。加 -webkit- 前缀兜底（Safari）。 */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-rest);

  font-family: var(--f-cn);
  font-size: .72rem;
  letter-spacing: .04em;
  color: rgb(var(--fg-alt-rgb));
  white-space: nowrap;

  /* 不进 Tab 序列、不挡点击：它是纯展示信息，不是控件。
     ⚠️ 与「不挡住内容」直接相关 —— pointer-events:none 之后，
        即使它视觉上压在某个链接上，鼠标事件也会**穿透**到下面的链接上。
        也就是说「视觉重叠」不再等于「不可点」。（探针有断言验这条。） */
  pointer-events: none;
  user-select: none;

  opacity: 1;
  /* 只过渡透明度 —— 位置由 position:fixed 钉死，不做位移动画
     （曾经有过 bottom 过渡，那是「抬升让位」时代的东西，已移除） */
  transition: opacity .22s var(--ease);
}

/* 兼容：旧版用 .is-off 淡出，现在改成「抬升让位」（见 app.js）。
   保留这条是为了万一别处还在打这个类时不至于没样式 —— 但它不再是主路径。 */
.visits.is-off { opacity: 0; }

.visits .ico {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: rgb(var(--fg-weak-rgb));
}
.visits .ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 数字用衬线（与时钟、脚注同族），等宽数字避免逐位跳动 */
.visits-num {
  font-family: var(--f-serif);
  font-size: .95em;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--fg-rgb));
}

.visits-label { color: rgb(var(--fg-weak-rgb)); }

/* 今日新增：更弱一档，作为「次要信息」跟在后面 */
.visits-today {
  color: rgb(var(--fg-weak-rgb));
  /* 原来这里还有 opacity: .72 —— 它把 --fg-weak 再压一档，
     实测 dark 2.91 / light 2.72，任何 token 都救不回来。
     层次改由 font-size(.94em) + 「+N」前缀表达即可。 */
  font-size: .94em;
}
.visits-today:empty { display: none; }

/* 窄屏：缩小内距，省横向空间（位置仍是固定的左下角，不随滚动移动） */
@media (max-width: 620px) {
  .visits {
    left: 10px;
    bottom: 10px;
    padding: 5px 9px 5px 8px;
    font-size: .68rem;
    gap: .38em;
  }
  /* 手机上「今日 +N」省掉 —— 横向空间紧张，且当日数字在手机上意义弱 */
  .visits-today { display: none; }
}

/* 降低动效偏好：不做位移动画，只保留透明度 */
@media (prefers-reduced-motion: reduce) {
  .visits { transition: opacity .15s linear; }
}

/* ---------------------------------------------------------
   无障碍两件套（2026-10-08 补）：跳到主内容 + 仅供读屏的文本。
   --------------------------------------------------------- */

/* 「跳到主内容」：Tab 第一站。
   ⚠️ 藏法必须用 transform/裁剪，**不能用 display:none 或 visibility:hidden**
      —— 那两种都会把它移出可聚焦树，等于没有这个链接（这是最常见的假实现）。
   聚焦时滑回左上角，做成一块与 .tool-btn 同语言的实体按钮。 */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 14px;
  font-family: var(--f-cn);
  font-size: 13px;
  letter-spacing: .08em;
  color: rgb(var(--fg-rgb));
  background: rgb(var(--bg-2-rgb));
  border: 1px solid rgba(var(--line-rgb), .3);
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  transform: translateY(-200%);
  transition: transform .15s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 1px solid rgba(var(--line-rgb), .5);
  outline-offset: 2px;
}

/* 仅供读屏的文本（页面 H1 用）。
   标准 visually-hidden：1px 盒 + 裁掉 —— 仍在可访问树里、仍能被读屏朗读，
   但占不到视觉空间。**不要**改成 color:transparent 或 font-size:0：
   前者在浅色态下仍可能露字，后者在部分读屏里会被当成不可读内容跳过。 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 右上角主题/语言小按钮（与 blog 同位置、同尺寸感） */
/* 顶部工具条：**左右两个分区**（2026-10-07）
     左上 .tools-left  → 「关于」按钮（点开弹窗）
     右上 .tools-right → 语言 + 明暗
   两侧对称，中间留白给时钟。 */
.tools {
  position: fixed;
  top: 18px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.tools-left { left: 18px; }
.tools-right { right: 18px; }

/* 按钮：磁贴感 —— 悬停抬起、按下沉下去，同时变色。
   ★ 2026-10-07 第二轮：右上角加了 Github，作者要求「三个图标加大一点」，
     所以整体放大约 20%（字号 11.5→13px、内距 7/12→9/14px、图标 1.25→1.45em）。 */
.tool-btn {
  position: relative;            /* 伪元素热区要锚在按钮上，见文件末 pointer:coarse 段 */
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--f-cn);
  font-size: 13px;
  letter-spacing: .08em;
  color: rgb(var(--fg-rgb));
  background: rgb(var(--bg-2-rgb));
  border: 1px solid rgba(var(--line-rgb), .18);
  border-radius: var(--r);
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;         /* Github 是 <a> */
  /* 磁贴阴影：小、硬、贴地 */
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  transition: transform .12s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .12s var(--ease);
}

/* 按钮里的图标比正文图标大一档（作者：图标可以大一点） */
.tool-btn .ico {
  width: 1.45em;
  height: 1.45em;
}

/* 悬停：抬起 2px、阴影加深、描边变亮 */
.tool-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--line-rgb), .34);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .5);
}

/* 按下：沉下去 2px、阴影收掉、底色反色（位移 + 变色同时发生） */
.tool-btn:active {
  transform: translateY(2px);
  background: rgb(var(--hl-rgb));
  color: rgb(var(--hl-ink-rgb));
  border-color: rgb(var(--hl-rgb));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.tool-btn:focus-visible {
  outline: 1px solid rgba(var(--line-rgb), .5);
  outline-offset: 2px;
}

/* 右上角工具按钮。
   ⚠️ 对比度：字号只有 11.5px，属小字，AA 门槛 4.5:1。
   原来用 --fg-alt（ink-2）压在半透明底上，实测浅色态只有 2.78 —— 不达标。
   两处一起改：① 文字提到 --fg（ink，最强档）；
             ② 底色从 rgba(...,.8) 改为不透明 —— 半透明会与页面底色混合，
                对比度随滚动位置变化，无法保证。 */
/* ---------------------------------------------------------
   404 页（src/404.html）—— 与首页同一套令牌，别让它长得像另一个站。
   --------------------------------------------------------- */
.notfound {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 62vh;
  gap: 1.2em;
  margin-top: 0;
}

.nf-code {
  font-family: var(--f-serif-d);
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1;
  color: rgb(var(--fg-weak-rgb));
}

.nf-text {
  max-width: 30em;
  color: rgb(var(--fg-alt-rgb));
  font-size: .95rem;
  line-height: 1.9;
}

.nf-back {
  display: inline-flex;
  align-items: center;
  padding: .55em 1.4em;
  border: 1px solid rgba(var(--line-rgb), .18);
  border-radius: var(--r);
  color: rgb(var(--fg-rgb));
  font-size: .9rem;
  letter-spacing: .12em;
}

.nf-back:hover {
  background: rgb(var(--hl-rgb));
  color: rgb(var(--hl-ink-rgb));
  border-color: transparent;
}

/* ---------------------------------------------------------
   响应式：原版在 880px 以下把三栏竖排。
   补一条 —— 竖排后 max-width:15em 会让卡片变成窄长条，
   这里放开宽度让它撑满版心。
   --------------------------------------------------------- */
/* ★ 三列 → 两列：三列需要约 1113px 版心（量出来的，见上面 .boards 的说明），
   视口不够时先折成两列，而不是直接掉到一列 —— 一列在 900~1100px 这段
   会显得卡片过宽、两侧空白很大。
   阈值取 1180px：1113 + 版心两侧 padding（--pad 各约 22px）+ 一点余量。 */
@media (max-width: 1180px) {
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  main {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
    margin-top: 2em;
  }

  /* 再窄就一列上下堆叠（两列并排时各自只剩 ~150px，站名要竖排） */
  .boards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2em;
  }

  .container {
    max-width: none;
    width: 100%;
  }

  .clock { margin-top: 4em; }
  /* .foot 现在是上下两块（.foot-top / .foot-contact），不再是 flex 容器 */
  .foot-top { flex-direction: column; align-items: flex-start; gap: .3em; }
  .foot-contact { gap: .4em 1.6em; }
}

/* ---------------------------------------------------------
   关于本站弹窗（左上角按钮打开）
   遮罩 + 居中卡片；关闭有三条路径：× 按钮 / 遮罩 / Esc。
   --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}

.modal[hidden] { display: none; }

.modal-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim, rgba(12, 12, 12, .86));
  /* 遮罩用深色半透明（与 blog 的 --scrim 同源） */
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(30em, 100%);
  background: rgb(var(--bg-rgb));
  border: 1px solid rgba(var(--line-rgb), .16);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 2em 1.8em 1.8em;
}

.modal-title {
  font-family: var(--f-serif-d);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .14em;
  margin: 0 0 .9em;
  padding-bottom: .8em;
  border-bottom: 1px solid rgba(var(--line-rgb), .09);
}

.modal-text {
  font-size: .9rem;
  line-height: 1.9;
  letter-spacing: .02em;
  color: rgb(var(--fg-alt-rgb));
  margin: 0 0 .8em;
}

.modal-text:last-child { margin-bottom: 0; }

.modal-x {
  position: absolute;
  top: .8em;
  right: .8em;
  width: 1.9em;
  height: 1.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--fg-alt-rgb));
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.modal-x svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.modal-x:hover {
  color: rgb(var(--hl-ink-rgb));
  background: rgb(var(--hl-rgb));
}

/* ---------------------------------------------------------
   设置弹窗（2026-10-14）
   复用上面的 .modal / .modal-card 骨架，这里只加「设置项」的排版。
   ★ 家族铁律「界面零彩度」同样适用：成功/失败反馈**不用红绿**，
     只用灰阶明度差 + 文案区分（见 .setting-msg 的两档）。
   --------------------------------------------------------- */
.setting {
  margin: 0 0 1.3em;
}

.setting:last-child { margin-bottom: 0; }

.setting-label {
  display: block;
  font-family: var(--f-serif-d);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgb(var(--fg-rgb));
  margin: 0 0 .35em;
}

.setting-desc {
  font-size: .82rem;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgb(var(--fg-weak-rgb));
  margin: 0 0 .8em;
}

/* 输入 + 确认一行。窄屏折行（输入框给一个能用的最小宽度，
   否则 390px 下会被确认按钮压成一条缝）。 */
.setting-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55em;
}

.setting-input {
  flex: 1 1 12em;
  min-width: 0;
  font-family: var(--f-cn);
  font-size: .9rem;
  letter-spacing: .06em;
  color: rgb(var(--fg-rgb));
  background: rgb(var(--bg-alt-rgb));
  border: 1px solid rgba(var(--line-rgb), .18);
  border-radius: var(--r-sm);
  padding: .6em .75em;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

/* 占位符要能看清但仍弱于正文 —— 浅色下 --fg-weak 在 --bg-alt 上约 4.5+，
   与站内其它 11–13px 灰字同一档。 */
.setting-input::placeholder {
  color: rgb(var(--fg-weak-rgb));
  letter-spacing: .04em;
}

.setting-input:focus {
  outline: none;
  border-color: rgba(var(--line-rgb), .5);
  background: rgb(var(--bg-rgb));
}

.setting-input:focus-visible {
  outline: 1px solid rgba(var(--line-rgb), .5);
  outline-offset: 2px;
}

.setting-submit {
  flex: 0 0 auto;
  font-family: var(--f-cn);
  font-size: .85rem;
  letter-spacing: .1em;
  color: rgb(var(--fg-rgb));
  background: rgb(var(--bg-2-rgb));
  border: 1px solid rgba(var(--line-rgb), .18);
  border-radius: var(--r-sm);
  padding: .6em 1.1em;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease);
}

.setting-submit:hover {
  border-color: rgba(var(--line-rgb), .34);
}

.setting-submit:active {
  background: rgb(var(--hl-rgb));
  color: rgb(var(--hl-ink-rgb));
  border-color: rgb(var(--hl-rgb));
}

.setting-submit:focus-visible {
  outline: 1px solid rgba(var(--line-rgb), .5);
  outline-offset: 2px;
}

/* 反馈行：默认空着，用 :empty 收掉，不留一条空白占位。
   ⚠️ 是 :empty 而不是 hidden —— 文案由 JS 写 textContent，
      一旦写过就不再是 :empty，所以要清空时**必须写回空串**
      （写成 " " 一个空格就不匹配 :empty 了，会留一条空白）。
   两档反馈只用灰阶：成功提亮到 --fg，失败压到 --fg-weak。 */
.setting-msg {
  font-size: .8rem;
  line-height: 1.7;
  letter-spacing: .03em;
  color: rgb(var(--fg-rgb));
  margin: .7em 0 0;
}

.setting-msg:empty { display: none; }

.setting-msg.is-miss {
  color: rgb(var(--fg-weak-rgb));
}

/* ---------------------------------------------------------
   ★ 两个必须显式写出来的 [hidden] 规则（2026-10-14）

   为什么不能只靠浏览器的 [hidden]{display:none}：
   它来自 UA 样式表，**优先级最低**，任何作者样式里的 display
   都会把它盖掉。本站已经因为这条踩过三次坑，各自补了一条：
     .scene[hidden]   （.scene 是 flex 定位容器）
     .weather[hidden] （.weather 是 flex）
     .modal[hidden]   （.modal 是 flex）
   这次新增的两处同样是 flex 容器，所以同样必须补：

   ① .container a[hidden] —— gis 入口。.container a 是 display:flex，
      不补这条「隐藏」实际不生效（元素照常显示），而且**不会有任何报错**
      —— 是最难发现的那种失败：看起来像「代码没写」，实际是写了被盖掉。
   ② .soon[hidden] —— .soon 也是 flex，一并补上，防止以后有人给
      「未上线」条目加隐藏时不生效。
   --------------------------------------------------------- */
.container a[hidden],
.soon[hidden] {
  display: none;
}

/* 神秘码解锁后，gis 入口才出现。
   用属性选择器挂在 <html data-gis="on"> 上，而不是由 JS 直接改
   element.hidden —— 因为解锁状态要在**首帧**（app.js 还没加载时）就生效，
   见 index.html 的 <head> 内联脚本。
   ⚠️ 这两条要放在 .container a[hidden] **之后**：两者特异性相同
      （0,2,1 vs 0,2,1 —— html[data-gis] #gisEntry 是 1 元素+1 属性+1 id，
      .container a[hidden] 是 2 类+1 属性），后者更高，所以这里需要
      用同样的 [hidden] 把 display 再改回来，靠**顺序**取胜。 */
html[data-gis="on"] .container a#gisEntry[hidden] {
  display: flex;
}

/* ---------------------------------------------------------
   顶部图标放大（作者：图标可以大一点）
   时钟与搜索框的图标各放大一档 —— 只动尺寸，不动描边宽度，
   与 blog「细线放大反而更清楚」的处理一致。
   --------------------------------------------------------- */
.search-icon { width: 1.3em; height: 1.3em; }
.clock-date .ico { width: 1.15em; height: 1.15em; }

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .tool-btn:hover, .tool-btn:active { transform: none; }
}

/* ── 触控热区（2026-11-28）────────────────────────────────
   视觉尺寸不动，用伪元素把点到区撑到 44（四站同一套做法，探针
   D:\dsh_blog_proj\_probe_touch_hit.js）。
   实测：.tool-btn 高 39、宽 44–83；.contact-btn 高 34、.contact-a 高 42。
     · ⚠️ inset 参照内边距盒：这些按钮都有 1px 边框，39 高的按钮内边距盒
       只有 37，-4 出来是 45（够了）；-3 只有 43，差 1px 就是不合格。
       横向 44+8=52 ≥ 44，.tools 的 gap 8 ≤ 8，两颗热区相接不重叠。
     · 联系方式两颗只补纵向（inset 左右写 0）：它们上下叠着，横向撑开
       会互抢，而宽度本来就 140 / 271。纵向 -6：34.2 的按钮内边距盒 32.2
       → 44.2，刚够；两颗之间的行距必须 > 12，否则上下热区会相交。
   只写在 pointer:coarse 里：桌面用鼠标不需要，伪元素还会盖住相邻链接。 */
@media (pointer: coarse){
  /* 联系方式两行原本只隔 .1em（≈1.4px）—— 两颗 44 热区上下必然互压，
     所以行距必须给足：6+6 = 12 ≤ 14，相接不重叠。 */
  .foot-contact{ row-gap:14px; }
  .tool-btn::after{ content:""; position:absolute; inset:-4px; }
  .contact-btn::after,
  .contact-a::after{ content:""; position:absolute; inset:-6px 0; }
}
