/* =========================================================
   没节操网址导航 · 中性极简
   设计令牌全部变量化，支持 浅色 / 深色 / 跟随系统
   材质纪律：内容卡片=实色+细边框；毛玻璃只留顶栏与下拉浮层
   ========================================================= */

/* ===== 设计令牌（浅色 · 冷调科技绿） ===== */
:root {
  --bg: #edf3f3;
  --surface: #f6f9f9;
  --surface-raised: #fbfdfd;
  --surface-2: #e5eeee;
  --border: rgba(30, 70, 69, 0.09);
  --border-strong: rgba(30, 70, 69, 0.17);
  --text: #172322;
  --text-soft: #526463;
  --text-mute: #819392;
  --accent: #07c160;
  --accent-press: #06ad56;
  --accent-weak: rgba(7, 193, 96, 0.1);
  /* 主题绿亮度高（白底对比度仅 2.5:1），故拆两档：
     --accent-ink 用于文字/图标（可读），--on-accent 用于实色填充上的前景 */
  --accent-ink: #057a3d;
  /* 浮层毛玻璃：对角渐变拉开层次，叠加更深的模糊与高光 */
  --pop-glass-bg: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.66) 46%,
    rgba(231, 243, 239, 0.74) 100%
  );
  --pop-glass-border: rgba(255, 255, 255, 0.85);
  --pop-glass-hi: rgba(255, 255, 255, 0.62);
  --pop-glass-shadow: 0 30px 70px -24px rgba(15, 40, 38, 0.5);
  --on-accent: #05271d;

  /* 圆角刻度：4 档，不再乱 */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* 阴影：近距、染色、不外扩成雾 */
  --shadow-sm: 0 1px 2px rgba(20, 57, 56, 0.025);
  --shadow:
    0 1px 2px rgba(20, 57, 56, 0.03), 0 10px 28px -20px rgba(20, 57, 56, 0.24);

  /* 缓动：强化 ease-out，UI 默认曲线 */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans:
    "LXGW WenKai Screen", "LXGW WenKai", "Microsoft YaHei", "PingFang SC",
    sans-serif;

  /* 背景保持纯净，纹理仅用于深色模式兼容 */
  --grid-line: transparent;

  /* 浮层材质（仅顶栏 / 下拉 / 弹窗使用） */
  --glass-bg: rgba(246, 250, 250, 0.86);
  --glass-border: rgba(255, 255, 255, 0.62);
  --glass-shadow: 0 12px 32px -20px rgba(20, 57, 56, 0.3);
  --glass-blur: 16px;
  --glass-saturate: 170%;
  --search-mask: rgba(0, 0, 0, 0);
  --search-submit-bg: var(--accent);
  --search-submit-bg-hover: var(--accent-press);
  --search-submit-color: #f2fff6;
  --engine-name-color: var(--text);
  --engine-option-color: var(--text-soft);
  --category-title-color: var(--text);
  --category-icon-mask: transparent;
  --fav-icon-mask: transparent;
  --weather-filter: none;

  /* 常用站点图标默认底 */
  --fav-tile: linear-gradient(155deg, #f4f9f8 0%, #e1ecea 100%);
  --fav-glass: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.82),
    rgba(234, 247, 241, 0.34)
  );
  --fav-glass-border: rgba(255, 255, 255, 0.78);
  --fav-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(7, 193, 96, 0.06),
    0 7px 16px -10px rgba(9, 74, 45, 0.34),
    0 14px 28px -17px rgba(7, 193, 96, 0.24);
  --fav-glass-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(7, 193, 96, 0.08),
    0 10px 22px -12px rgba(9, 74, 45, 0.4),
    0 18px 34px -18px rgba(7, 193, 96, 0.3);
}

/* ===== 设计令牌（深色 · 显式切换） ===== */
:root[data-theme="dark"] {
  --bg: #0d0f13;
  --surface: #14171d;
  --surface-raised: #111820;
  --surface-2: #1b1f27;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #e8eaee;
  --text-soft: #a3abb8;
  --text-mute: #7c8593;
  --accent: #07c160;
  --accent-press: #20cc73;
  --accent-weak: rgba(7, 193, 96, 0.14);
  --accent-ink: #35d783;
  /* 浮层毛玻璃：近不透明深色叠层，模糊后内容沉得下去 */
  --pop-glass-bg: linear-gradient(
    155deg,
    rgba(40, 46, 58, 0.85) 0%,
    rgba(22, 26, 34, 0.86) 46%,
    rgba(15, 20, 27, 0.9) 100%
  );
  --pop-glass-border: rgba(255, 255, 255, 0.16);
  --pop-glass-hi: rgba(255, 255, 255, 0.13);
  --pop-glass-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
  --on-accent: #0c1a13;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.36), 0 8px 24px -16px rgba(0, 0, 0, 0.7);
  --grid-line: rgba(255, 255, 255, 0.022);
  --glass-bg: rgba(16, 19, 25, 0.74);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7);
  --search-mask: rgba(0, 0, 0, 0.2);
  --search-submit-bg: #232831;
  --search-submit-bg-hover: #2b313b;
  --search-submit-color: var(--text);
  --engine-name-color: #7b8492;
  --engine-option-color: #a3abb8;
  --category-title-color: var(--text-soft);
  --category-icon-mask: rgba(13, 15, 19, 0.24);
  --fav-icon-mask: rgba(13, 15, 19, 0.44);
  --weather-filter: invert(1) hue-rotate(180deg) brightness(0.92) saturate(0.82);
  --fav-tile: linear-gradient(155deg, #2a303c 0%, #171b22 100%);
  --fav-glass: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0.035)
  );
  --fav-glass-border: rgba(255, 255, 255, 0.13);
  --fav-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px -12px rgba(0, 0, 0, 0.8),
    0 14px 28px -20px rgba(7, 193, 96, 0.26);
  --fav-glass-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 12px 26px -14px rgba(0, 0, 0, 0.9),
    0 18px 34px -20px rgba(7, 193, 96, 0.32);
}

/* ===== 设计令牌（深色 · 跟随系统） ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0d0f13;
    --surface: #14171d;
    --surface-raised: #111820;
    --surface-2: #1b1f27;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #e8eaee;
    --text-soft: #a3abb8;
    --text-mute: #7c8593;
    --accent: #07c160;
    --accent-press: #20cc73;
    --accent-weak: rgba(7, 193, 96, 0.14);
    --accent-ink: #35d783;
    /* 浮层毛玻璃（与显式深色保持一致） */
    --pop-glass-bg: linear-gradient(
      155deg,
      rgba(40, 46, 58, 0.85) 0%,
      rgba(22, 26, 34, 0.86) 46%,
      rgba(15, 20, 27, 0.9) 100%
    );
    --pop-glass-border: rgba(255, 255, 255, 0.16);
    --pop-glass-hi: rgba(255, 255, 255, 0.13);
    --pop-glass-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
    --on-accent: #0c1a13;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:
      0 1px 2px rgba(0, 0, 0, 0.36), 0 8px 24px -16px rgba(0, 0, 0, 0.7);
    --grid-line: rgba(255, 255, 255, 0.022);
    --glass-bg: rgba(16, 19, 25, 0.74);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7);
    --search-mask: rgba(0, 0, 0, 0.2);
    --search-submit-bg: #232831;
    --search-submit-bg-hover: #2b313b;
    --search-submit-color: var(--text);
    --engine-name-color: #7b8492;
    --engine-option-color: #a3abb8;
    --category-title-color: var(--text-soft);
    --category-icon-mask: rgba(13, 15, 19, 0.24);
    --fav-icon-mask: rgba(13, 15, 19, 0.44);
    --weather-filter: invert(1) hue-rotate(180deg) brightness(0.92)
      saturate(0.82);
    --fav-tile: linear-gradient(155deg, #2a303c 0%, #171b22 100%);
    --fav-glass: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.11),
      rgba(255, 255, 255, 0.035)
    );
    --fav-glass-border: rgba(255, 255, 255, 0.13);
    --fav-glass-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.13),
      inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 8px 20px -12px rgba(0, 0, 0, 0.8),
      0 14px 28px -20px rgba(7, 193, 96, 0.26);
    --fav-glass-shadow-hover:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 12px 26px -14px rgba(0, 0, 0, 0.9),
      0 18px 34px -20px rgba(7, 193, 96, 0.32);
  }
}

/* 常用站点图标蒙层由主题变量控制。 */
.fav-grid li a::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--fav-icon-mask);
  transform: translateX(-50%);
  pointer-events: none;
}

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

html,
body,
ul,
ol,
dl,
dd,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
figure,
fieldset,
blockquote {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
input,
button,
textarea,
svg {
  border: 0;
  outline: 0;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-gutter: stable;
}

html::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

html::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb {
  min-height: 40px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

/* ===== 视口底部清新背景 ===== */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.ambient-sun {
  position: absolute;
  top: 94px;
  right: 6vw;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 36% 34%,
    rgba(255, 250, 214, 0.94) 0 8%,
    rgba(255, 205, 92, 0.78) 36%,
    rgba(255, 181, 69, 0.42) 70%
  );
  box-shadow:
    0 0 0 18px rgba(255, 193, 75, 0.07),
    0 0 64px 14px rgba(255, 181, 69, 0.14);
  animation: ambient-sun-breathe 8s ease-in-out infinite;
}

.ambient-cloud {
  position: absolute;
  width: 104px;
  height: 23px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 28px -16px rgba(45, 93, 72, 0.22);
  filter: blur(0.2px);
}

.ambient-cloud::before,
.ambient-cloud::after {
  content: "";
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: inherit;
}

.ambient-cloud::before {
  left: 20px;
  width: 38px;
  height: 38px;
}

.ambient-cloud::after {
  right: 17px;
  width: 51px;
  height: 51px;
}

.ambient-cloud-one {
  top: 112px;
  left: 7vw;
  transform: scale(0.78);
  animation: ambient-cloud-drift 16s ease-in-out -4s infinite alternate;
}

.ambient-cloud-two {
  top: 174px;
  left: 38vw;
  opacity: 0.6;
  transform: scale(0.56);
  animation: ambient-cloud-drift 22s ease-in-out -10s infinite alternate-reverse;
}

.ambient-cloud-three {
  top: 88px;
  left: 61vw;
  opacity: 0.72;
  transform: scale(0.68);
  animation: ambient-cloud-drift 19s ease-in-out -7s infinite alternate;
}

.ambient-birds {
  position: absolute;
  top: 68px;
  left: -140px;
  width: 112px;
  height: 48px;
  color: rgba(40, 89, 67, 0.42);
  animation: ambient-birds-fly 28s linear -9s infinite;
}

.ambient-bird {
  position: absolute;
  width: 22px;
  height: 10px;
  animation: ambient-bird-bob 1.6s ease-in-out infinite alternate;
}

.ambient-bird::before,
.ambient-bird::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 12px;
  height: 7px;
  border-top: 2px solid currentcolor;
  border-radius: 50%;
}

.ambient-bird::before {
  right: 50%;
  transform: rotate(12deg);
}

.ambient-bird::after {
  left: 50%;
  transform: rotate(-12deg);
}

.ambient-bird-one {
  top: 5px;
  left: 0;
}

.ambient-bird-two {
  top: 22px;
  left: 43px;
  transform: scale(0.78);
  animation-delay: -0.6s;
}

.ambient-bird-three {
  top: 8px;
  left: 82px;
  transform: scale(0.62);
  animation-delay: -1.1s;
}

.ambient-grass {
  position: absolute;
  left: -3%;
  bottom: 0;
  width: 106%;
  height: 78px;
  transform-origin: center bottom;
  background:
    repeating-linear-gradient(
      76deg,
      transparent 0 13px,
      rgba(7, 193, 96, 0.19) 14px 16px,
      transparent 17px 30px
    ),
    repeating-linear-gradient(
      104deg,
      transparent 0 18px,
      rgba(5, 122, 61, 0.14) 19px 21px,
      transparent 22px 35px
    ),
    linear-gradient(
      to top,
      rgba(7, 193, 96, 0.14),
      rgba(7, 193, 96, 0.04) 48%,
      transparent 76%
    );
  -webkit-mask-image: linear-gradient(to top, #000 0 56%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0 56%, transparent 100%);
}

.ambient-grass-back {
  bottom: 9px;
  height: 66px;
  opacity: 0.5;
  filter: blur(0.7px);
  animation: ambient-grass-sway 9s ease-in-out infinite;
}

.ambient-grass-front {
  animation: ambient-grass-sway 6.5s ease-in-out -2s infinite reverse;
}

.ambient-ground {
  position: absolute;
  right: -5%;
  bottom: -18px;
  left: -5%;
  height: 44px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 193, 96, 0.18),
    rgba(5, 122, 61, 0.1)
  );
  filter: blur(1px);
}

.ambient-scarecrow {
  position: absolute;
  left: max(8px, calc((100vw - 1240px) / 2 - 92px));
  bottom: 13px;
  width: 104px;
  height: 132px;
  opacity: 0.62;
  transform-origin: 52px 128px;
  animation: ambient-scarecrow-sway 5.5s ease-in-out infinite;
}

.scarecrow-pole {
  position: absolute;
  top: 42px;
  left: 50px;
  width: 4px;
  height: 90px;
  border-radius: 3px;
  background: #8c6848;
}

.scarecrow-arm {
  position: absolute;
  top: 61px;
  left: 13px;
  width: 78px;
  height: 5px;
  border-radius: 5px;
  background: #9d754f;
  transform: rotate(-4deg);
}

.scarecrow-arm::before,
.scarecrow-arm::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 13px;
  height: 14px;
  border-top: 2px solid rgba(148, 104, 59, 0.7);
  border-bottom: 2px solid rgba(148, 104, 59, 0.7);
}

.scarecrow-arm::before {
  left: -7px;
  transform: rotate(-18deg);
}

.scarecrow-arm::after {
  right: -7px;
  transform: rotate(18deg);
}

.scarecrow-body {
  position: absolute;
  top: 54px;
  left: 32px;
  width: 40px;
  height: 53px;
  border-radius: 8px 8px 13px 13px;
  background: linear-gradient(
    145deg,
    rgba(7, 193, 96, 0.72),
    rgba(5, 122, 61, 0.5)
  );
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.scarecrow-head {
  position: absolute;
  top: 25px;
  left: 38px;
  width: 29px;
  height: 31px;
  border-radius: 46% 54% 50% 48%;
  background: #d7aa70;
  box-shadow: inset -4px -3px 0 rgba(117, 79, 43, 0.08);
}

.scarecrow-head::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(75, 55, 39, 0.72);
  box-shadow: 12px 1px 0 rgba(75, 55, 39, 0.72);
}

.scarecrow-head::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 7px;
  width: 11px;
  height: 4px;
  border-bottom: 1.5px solid rgba(75, 55, 39, 0.55);
  border-radius: 50%;
}

.scarecrow-hat {
  position: absolute;
  top: 20px;
  left: 27px;
  width: 52px;
  height: 7px;
  border-radius: 50%;
  background: #81603f;
  transform: rotate(-5deg);
}

.scarecrow-hat::before {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 3px;
  width: 28px;
  height: 19px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(145deg, #a27b50, #765538);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

/* ↓↓↓ 底部木牌样式（HTML 已注释下线，样式保留备用，恢复时直接取消 HTML 注释即可） ↓↓↓ */
.ambient-checkin-sign {
  position: absolute;
  right: max(5px, calc((100vw - 1240px) / 2 - 104px));
  bottom: -9px;
  width: 116px;
  height: 146px;
  opacity: 0.78;
  transform: rotate(7deg);
  transform-origin: 58px 142px;
  animation: ambient-sign-sway 7s ease-in-out -2s infinite;
}

.checkin-post {
  position: absolute;
  top: 59px;
  left: 55px;
  z-index: 0;
  width: 7px;
  height: 91px;
  border-radius: 2px;
  background: linear-gradient(90deg, #795338, #b18359 48%, #68452f);
  box-shadow: 2px 2px 5px rgba(74, 49, 31, 0.14);
}

.checkin-post::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 10px;
  background: #795338;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.checkin-board {
  position: absolute;
  inset: 8px 0 auto;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  width: 116px;
  min-height: 68px;
  padding: 9px 12px 8px;
  color: #46372e;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.7), transparent 44%), #fff9e9;
  border: 3px solid #765136;
  border-radius: 7px 10px 8px 6px;
  box-shadow:
    inset 0 0 0 2px rgba(166, 118, 71, 0.12),
    0 8px 18px -11px rgba(74, 49, 31, 0.42);
  font-family: var(--sans);
  line-height: 1.05;
}

.checkin-board::before,
.checkin-board::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9f7958;
  box-shadow: inset 0 1px 1px rgba(73, 47, 29, 0.35);
}

.checkin-board::before {
  left: 6px;
}

.checkin-board::after {
  right: 6px;
}

.checkin-board small {
  font-size: 11px;
  font-weight: 600;
}

.checkin-board strong {
  color: #057a3d;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.checkin-board em {
  grid-column: 1 / -1;
  margin-top: 5px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.checkin-heart {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  background: #ff8d79;
  transform: rotate(45deg);
}

.checkin-heart::before,
.checkin-heart::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: inherit;
}

.checkin-heart::before {
  left: -4px;
}

.checkin-heart::after {
  top: -4px;
}
/* ↑↑↑ 底部木牌样式保留结束 ↑↑↑ */

/* ===== 底部风力发电机（原位替换木牌；三叶片绕轴匀速旋转） ===== */
.ambient-windmill {
  position: absolute;
  right: max(5px, calc((100vw - 1240px) / 2 - 104px));
  bottom: -9px;
  width: 96px;
  height: 146px;
  opacity: 0.9;
}

.ambient-windmill *,
.ambient-windmill > * {
  position: absolute;
  box-sizing: border-box;
}

/* 塔筒：白色微锥形，顶细底宽 */
.windmill-stick {
  left: 50%;
  top: 42px;
  width: 20px;
  height: 102px;
  margin-left: -10px;
  background: linear-gradient(
    90deg,
    #d2dbd5 0%,
    #fdfefd 42%,
    #ffffff 55%,
    #c8d3cc 100%
  );
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  box-shadow: 3px 0 6px -4px rgba(60, 84, 75, 0.25);
  z-index: 0;
}

/* 叶轮机舱：轮毂后方的小椭圆舱体（不随叶片旋转） */
.windmill-nacelle {
  top: 40px;
  left: 50%;
  width: 17px;
  height: 9px;
  margin-left: -8.5px;
  border-radius: 60% 45% 45% 60% / 50%;
  background: linear-gradient(180deg, #ffffff, #dbe4de);
  border: 1px solid rgba(150, 168, 159, 0.55);
  box-shadow: 0 1px 3px rgba(60, 84, 75, 0.2);
  z-index: 1;
}

/* 风轮：固定 92px 圆，整体绕中心旋转 */
.windmill-head {
  top: -2px;
  left: 50%;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  z-index: 2;
  animation: windmill-spin 7s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* 三片细长叶片：根部收在圆心、尖端圆钝，互成 120° */
.windmill-blade {
  left: 50%;
  top: 2px;
  width: 9px;
  height: 44px;
  margin-left: -4.5px;
  border-radius: 50% 50% 45% 45% / 78% 78% 18% 18%;
  background: linear-gradient(
    90deg,
    #cfd9d2 0%,
    #f6faf8 42%,
    #ffffff 58%,
    #c3cfc7 100%
  );
  transform-origin: 50% 100%;
  box-shadow:
    inset -1px 0 1px rgba(120, 140, 131, 0.25),
    0 0 2px rgba(255, 255, 255, 0.6);
}

.blade-a {
  transform: rotate(0deg);
}

.blade-b {
  transform: rotate(120deg);
}

.blade-c {
  transform: rotate(240deg);
}

/* 轮毂：三片叶片交汇处的小圆轴 */
.windmill-hub {
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d4ddd7 75%);
  border: 1.5px solid #aebbb3;
  box-shadow: 0 1px 2px rgba(60, 84, 75, 0.28);
}

/* 塔筒脚下的草丛 */
.windmill-grass {
  left: 50%;
  bottom: 4px;
  z-index: 1;
  width: 30px;
  height: 11px;
  margin-left: -15px;
}

.windmill-grass i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 70% 70% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
    to top,
    rgba(5, 122, 61, 0.42),
    rgba(7, 193, 96, 0.6)
  );
  transform-origin: 50% 100%;
}

.windmill-grass i:nth-child(1) {
  margin-left: -9px;
  transform: rotate(-15deg);
}

.windmill-grass i:nth-child(2) {
  margin-left: -2px;
  height: 11px;
  background: linear-gradient(
    to top,
    rgba(5, 122, 61, 0.5),
    rgba(7, 193, 96, 0.72)
  );
}

.windmill-grass i:nth-child(3) {
  margin-left: 5px;
  height: 7px;
  transform: rotate(14deg);
}

@keyframes windmill-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .windmill-head {
    animation: none;
  }
}

:root[data-theme="dark"] .ambient-scene {
  opacity: 0.28;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .ambient-scene {
    opacity: 0.28;
  }
}

@media (max-width: 700px) {
  .ambient-sun {
    top: 86px;
    right: 5vw;
    width: 64px;
    height: 64px;
  }

  .ambient-cloud-two,
  .ambient-cloud-three,
  .ambient-birds {
    display: none;
  }
}

@media (max-width: 720px) {
  .ambient-scarecrow,
  .ambient-checkin-sign,
  .ambient-windmill {
    display: none;
  }
}

@keyframes ambient-sun-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@keyframes ambient-grass-sway {
  0%,
  100% {
    transform: skewX(-0.7deg) translateX(0);
  }
  50% {
    transform: skewX(0.9deg) translateX(3px);
  }
}

@keyframes ambient-cloud-drift {
  0% {
    translate: -16px 0;
  }
  100% {
    translate: 24px 4px;
  }
}

@keyframes ambient-birds-fly {
  0% {
    transform: translateX(0) translateY(8px);
  }
  45% {
    transform: translateX(calc(50vw + 120px)) translateY(-9px);
  }
  100% {
    transform: translateX(calc(100vw + 260px)) translateY(4px);
  }
}

@keyframes ambient-bird-bob {
  0% {
    margin-top: 0;
  }
  100% {
    margin-top: 3px;
  }
}

@keyframes ambient-sign-sway {
  0%,
  100% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(8.5deg);
  }
}

@keyframes ambient-scarecrow-sway {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.8deg);
  }
}

/* 品牌选区 · 签名细节 */
::selection {
  background: var(--accent-weak);
  color: var(--text);
}

/* 统一焦点环 · 键盘可达且带品牌色 */
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.w {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(var(--glass-saturate))
    blur(var(--glass-blur));
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  overflow: visible;
}

.brand-logo-emblem {
  transform-origin: 38px 38px;
  transition: transform 0.35s var(--ease);
}

.brand-logo-ring-back,
.brand-logo-ring,
.brand-logo-ring-highlight,
.brand-logo-fall-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-ring-back {
  stroke: var(--accent-weak);
  stroke-width: 15;
}

.brand-logo-ring {
  stroke: var(--accent);
  stroke-width: 9;
  filter: drop-shadow(0 3px 3px rgba(7, 85, 48, 0.18));
}

.brand-logo-ring-highlight {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
}

.brand-logo-fall-line {
  stroke: #ffb545;
  stroke-width: 2.2;
}

.brand-logo-fragment-shape,
.brand-logo-domain-dot {
  fill: #ffb545;
}

.brand-logo-fragment {
  transform-origin: 61px 58px;
  transition: transform 0.35s var(--ease);
}

.brand-logo-word {
  fill: var(--text);
  font-family: "ZCOOL KuaiLe", var(--sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-logo-word-accent {
  fill: var(--accent-ink);
}

.brand-logo-domain {
  fill: var(--text-mute);
  font-family: var(--mono);
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.brand:hover .brand-logo-emblem {
  transform: rotate(-4deg);
}

.brand:hover .brand-logo-fragment {
  transform: translateY(3px) rotate(8deg);
}

.header-weather {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 330px;
  width: 330px;
  height: 40px;
  padding: 4px 9px;
  overflow: hidden;
  background: var(--fav-glass);
  border: 1.5px solid var(--fav-glass-border);
  border-radius: var(--r-pill);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.header-weather::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

.header-weather iframe {
  flex: 1 1 auto;
  align-self: center;
  display: block;
  width: 300px;
  min-width: 0;
  max-width: 300px;
  height: 30px;
  border: 0;
  opacity: 0.9;
  filter: var(--weather-filter);
  transition:
    opacity 0.2s var(--ease),
    filter 0.3s var(--ease);
}

.header-weather iframe[data-provider="primary"] {
  margin-top: 10px;
}

.header-weather iframe[data-provider="fallback"] {
  margin-top: 0;
}

@media (max-width: 920px) {
  .header-weather {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    height: 42px;
  }

  .header-inner {
    gap: 10px;
  }

  .quick-links {
    min-width: 0;
  }

  .quick-links a {
    flex: 0 1 32px;
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 36px;
  }

  .header-inner {
    gap: 8px;
  }
}

.header-spacer {
  flex: 1 1 auto;
}

/* 主题切换 */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease),
    transform 0.12s var(--ease);
  flex: 0 0 auto;
}

.theme-toggle:hover {
  background: var(--surface-2);
  color: var(--accent-ink);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle i {
  font-size: 17px;
  line-height: 1;
}

/* 快捷入口 */
.quick-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.quick-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}

.quick-links a:hover {
  background: var(--surface-2);
}

.quick-links a:hover i {
  color: var(--accent-ink);
}

.quick-links i {
  font-size: 18px;
  color: var(--text-soft);
  transition: color 0.16s var(--ease);
}

.clock {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

a.clock-link {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

a.clock-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .clock,
  a.clock-link {
    display: none;
  }
}

/* ===== 搜索区 ===== */
.search {
  padding: 44px 0 8px;
}

.search-shell {
  max-width: 720px;
  margin: 0 auto;
}

/* 搜索区三栏（业界档：sm 576 / md 768 / lg 1024 / xl 1280）
   ≥1024：左入口 / 720 搜索 / 右入口，侧列 min 80px、图标在列内居中
   <1024（平板竖屏 + 手机）：两侧隐藏，.search-shell 居中，窄屏随 max-width 收缩 */
.search-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, 720px) minmax(80px, 1fr);
  column-gap: 32px;
  align-items: center;
  justify-content: center;
}

/* 三栏时铺满中间 720px 列；窄屏仍靠 .search-shell 的 max-width 收缩居中。
   不改 .search-shell 规则本身（保持 max-width: 720px; margin: 0 auto）。 */
.search-layout > .search-shell {
  width: 100%;
  min-width: 0;
}

/* 两侧快捷入口：分层 CSS 图标 + 浮层（不占搜索 720，不撑高搜索行） */
.search-aside {
  position: relative;
  justify-self: center;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aside-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 两侧入口：插在草里的手绘小木牌（与底部田园场景同一画法） ===== */
.signpost {
  --sign-wood-a: #795338;
  --sign-wood-b: #b18359;
  --sign-wood-c: #68452f;
  --sign-board: #eaf7ee;
  --sign-board-sheen: rgba(255, 255, 255, 0.72);
  --sign-border: #765136;
  --sign-ink: #0b6b3d;
  --sign-word-hover: #03552b;
  --sign-nail: #9f7958;
  --sign-paper: #fffef8;
  --sign-paper-2: #f4ead2;
  flex: 0 0 auto;
  align-self: flex-end;
  position: relative;
  display: block;
  width: 50px;
  height: 58px;
  /* 下沉到 .favorites 顶边：search 下内边距 8 + favorites 上外边距 28 */
  margin-bottom: -36px;
  color: var(--accent-ink);
  transform-origin: 50% 97%;
  transition:
    filter 0.26s var(--ease),
    transform 0.26s var(--ease);
  animation: signpost-sway 6.6s var(--ease-io) infinite;
}

.signpost-ai {
  animation-delay: -3s;
}

.signpost > * {
  position: absolute;
  box-sizing: border-box;
}

/* 木桩 */
.sign-post {
  left: 50%;
  top: 17px;
  width: 4px;
  height: 40px;
  margin-left: -2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(
    90deg,
    var(--sign-wood-a),
    var(--sign-wood-b) 48%,
    var(--sign-wood-c)
  );
  box-shadow: 1px 2px 4px rgba(74, 49, 31, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  z-index: 0;
}

/* 邮箱牌：从牌后探出的一封信 */
.sign-letter {
  left: 50%;
  top: -3px;
  width: 14px;
  height: 10px;
  margin-left: -7px;
  border: 1.5px solid var(--sign-border);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--sign-paper), var(--sign-paper-2));
  z-index: 1;
}

.sign-letter::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  left: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--sign-border) 45%, transparent);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--sign-border) 28%, transparent);
}

/* AI 牌：牌顶长出的两片嫩芽 */
.sign-sprout {
  left: 50%;
  top: 5px;
  z-index: 3;
  width: 0;
  height: 0;
}

.sign-sprout i {
  position: absolute;
  bottom: -1px;
  width: 6px;
  height: 5px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.12);
}

.sign-sprout i:first-child {
  right: 0;
  transform: rotate(-26deg);
}

.sign-sprout i:last-child {
  left: 0;
  transform: scaleX(-1) rotate(-26deg);
}

/* 手写木牌牌面：描边/圆角/木纹内圈/钉帽与底部 checkin-board 同款 */
.sign-board {
  left: 50%;
  top: 2px;
  width: 47px;
  height: 25px;
  margin-left: -23.5px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  color: var(--sign-ink);
  font-family: var(--sans);
  background:
    linear-gradient(105deg, var(--sign-board-sheen), transparent 44%),
    var(--sign-board);
  border: 2.5px solid var(--sign-border);
  border-radius: 6px 8px 6px 5px;
  box-shadow:
    inset 0 0 0 1.5px rgba(166, 118, 71, 0.12),
    0 6px 14px -9px rgba(74, 49, 31, 0.42);
  transition:
    border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.sign-board::before,
.sign-board::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sign-nail);
  box-shadow: inset 0 1px 1px rgba(73, 47, 29, 0.35);
}

.sign-board::before {
  left: 5px;
}

.sign-board::after {
  right: 5px;
}

.sign-glyph {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
}

.sign-word {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.24s var(--ease);
}

/* 木桩脚下的草丛 */
.sign-grass {
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 23px;
  height: 8px;
  margin-left: -11.5px;
}

.sign-grass i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 70% 70% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
    to top,
    rgba(5, 122, 61, 0.42),
    rgba(7, 193, 96, 0.6)
  );
  transform-origin: 50% 100%;
}

.sign-grass i:nth-child(1) {
  margin-left: -6px;
  transform: rotate(-15deg);
}

.sign-grass i:nth-child(2) {
  margin-left: -1.5px;
  height: 8px;
  background: linear-gradient(
    to top,
    rgba(5, 122, 61, 0.5),
    rgba(7, 193, 96, 0.72)
  );
}

.sign-grass i:nth-child(3) {
  margin-left: 3px;
  height: 5px;
  transform: rotate(14deg);
}

/* 深色主题：木牌转暖木色暗调 */
:root[data-theme="dark"] .signpost {
  --sign-wood-a: #5a3d27;
  --sign-wood-b: #8a6747;
  --sign-wood-c: #432d1d;
  --sign-board: #15271e;
  --sign-board-sheen: rgba(190, 255, 220, 0.07);
  --sign-border: #8a6747;
  --sign-ink: #d6f0df;
  --sign-word-hover: #f2fff7;
  --sign-nail: #a6835e;
  --sign-paper: #3a2f24;
  --sign-paper-2: #2c231a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .signpost {
    --sign-wood-a: #5a3d27;
    --sign-wood-b: #8a6747;
    --sign-wood-c: #432d1d;
    --sign-board: #15271e;
    --sign-board-sheen: rgba(190, 255, 220, 0.07);
    --sign-border: #8a6747;
    --sign-ink: #d6f0df;
    --sign-word-hover: #f2fff7;
    --sign-nail: #a6835e;
    --sign-paper: #3a2f24;
    --sign-paper-2: #2c231a;
  }
}

.aside-trigger:hover .signpost,
.aside-trigger:focus-visible .signpost {
  animation-play-state: paused;
  transform: translateY(-3px) rotate(0deg);
  filter: drop-shadow(0 9px 9px rgba(7, 193, 96, 0.28));
}

.aside-trigger:hover .sign-board,
.aside-trigger:focus-visible .sign-board {
  border-color: var(--accent-ink);
  box-shadow:
    inset 0 0 0 1.5px rgba(166, 118, 71, 0.12),
    0 12px 20px -11px rgba(5, 122, 61, 0.5);
}

.aside-trigger:hover .sign-word,
.aside-trigger:focus-visible .sign-word {
  color: var(--sign-word-hover);
}

.aside-trigger:active .signpost {
  transform: translateY(-1px) scale(0.95);
}

.aside-trigger:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 5px;
}

@keyframes signpost-sway {
  0%,
  100% {
    transform: rotate(-1.7deg);
  }
  50% {
    transform: rotate(1.9deg);
  }
}

/* 浮层标题内的小图标 */
.aside-pop-title > i {
  width: 17px;
  font-size: 14px;
  text-align: center;
  color: var(--accent-ink);
}

/* 浮层：绝对定位叠加，不参与文档流，故不撑高页面 */
.aside-pop {
  position: absolute;
  top: calc(100% + 12px);
  width: 266px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--pop-glass-bg);
  border: 1px solid var(--pop-glass-border);
  box-shadow:
    var(--pop-glass-shadow),
    inset 0 1px 0 var(--pop-glass-hi),
    inset 0 -1px 0 rgba(7, 193, 96, 0.05),
    var(--glass-shadow);
  -webkit-backdrop-filter: blur(30px) saturate(220%) brightness(1.02);
  backdrop-filter: blur(30px) saturate(220%) brightness(1.02);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.94);
  transition:
    opacity 0.2s var(--ease),
    transform 0.24s var(--ease),
    visibility 0s linear 0.24s;
}

.search-aside-left .aside-pop {
  left: 0;
  transform-origin: top left;
}

.search-aside-right .aside-pop {
  right: 0;
  transform-origin: top right;
}

.aside-pop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.2s var(--ease),
    transform 0.24s var(--ease);
}

/* 浮层头部 */
.aside-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 2px 2px 11px;
  border-bottom: 1px solid var(--glass-border);
}

.aside-pop-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--category-title-color);
}

.aside-pop-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-mute);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}

.aside-pop-close:hover {
  background: var(--accent-weak);
  color: var(--accent-ink);
}

/* 快捷入口：2 列网格 */
.quick-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.quick-grid a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13px;
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.quick-grid a:hover {
  background: var(--accent-weak);
  color: var(--accent-ink);
  transform: translateX(2px);
}

.quick-grid i {
  width: 17px;
  font-size: 14px;
  text-align: center;
  color: var(--accent-ink);
}

/* 末尾「更多」：通栏页脚收住两列网格，避免奇数条目留单格 */
.quick-grid li:last-child {
  grid-column: 1 / -1;
}

.quick-grid li:last-child a {
  justify-content: center;
  flex-direction: row-reverse;
  gap: 6px;
  margin-top: 3px;
  padding: 11px 10px 2px;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--text-mute);
  font-size: 12.5px;
}

.quick-grid li:last-child a i {
  width: auto;
  font-size: 11px;
  color: inherit;
  transition: transform 0.16s var(--ease);
}

.quick-grid li:last-child a:hover {
  background: transparent;
  color: var(--accent-ink);
  transform: none;
}

.quick-grid li:last-child a:hover i {
  transform: translateX(3px);
}

/* 浮层展开时：条目逐条淡入上浮 */
.aside-pop.open .quick-grid li {
  animation: aside-item-in 0.32s var(--ease) backwards;
}
.aside-pop.open .quick-grid li:nth-child(1) {
  animation-delay: 0.03s;
}
.aside-pop.open .quick-grid li:nth-child(2) {
  animation-delay: 0.06s;
}
.aside-pop.open .quick-grid li:nth-child(3) {
  animation-delay: 0.09s;
}
.aside-pop.open .quick-grid li:nth-child(4) {
  animation-delay: 0.12s;
}
.aside-pop.open .quick-grid li:nth-child(5) {
  animation-delay: 0.15s;
}
.aside-pop.open .quick-grid li:nth-child(6) {
  animation-delay: 0.18s;
}
.aside-pop.open .quick-grid li:nth-child(7) {
  animation-delay: 0.21s;
}
.aside-pop.open .quick-grid li:nth-child(8) {
  animation-delay: 0.24s;
}
.aside-pop.open .quick-grid li:nth-child(9) {
  animation-delay: 0.27s;
}
.aside-pop.open .quick-grid li:nth-child(10) {
  animation-delay: 0.3s;
}
.aside-pop.open .quick-grid li:nth-child(11) {
  animation-delay: 0.33s;
}

@keyframes aside-item-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* < lg(1024)：宽度不够稳定放下 720 + 两侧，隐藏两侧 */
@media (max-width: 1023px) {
  .search-layout {
    grid-template-columns: minmax(0, 720px);
  }
  .search-aside {
    display: none;
  }
}

/* < md(768)：平板竖屏 / 大手机，收紧搜索区留白 */
@media (max-width: 767px) {
  .search {
    padding: 32px 0 6px;
  }
  .w {
    padding: 0 20px;
  }
}

/* 减弱动效：浮层与条目不再做位移动画 */
@media (prefers-reduced-motion: reduce) {
  .aside-trigger,
  .aside-trigger .signpost,
  .aside-pop,
  .quick-grid a,
  .quick-grid li {
    transition: none !important;
    animation: none !important;
  }
}

#search {
  position: relative;
  width: 100%;
}

#search [hidden] {
  display: none !important;
}

/* 统一搜索条：玻璃材质 + 高光细边框，聚焦才给品牌环 */
.search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 52px;
  background:
    linear-gradient(var(--search-mask), var(--search-mask)), var(--fav-glass);
  border: 1.5px solid var(--fav-glass-border);
  border-radius: var(--r);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  transition:
    background 0.3s var(--ease),
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}
.search-bar.focus {
  border-color: var(--accent-ink);
  box-shadow:
    0 0 0 4px var(--accent-weak),
    0 8px 24px -16px rgba(16, 24, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

/* 引擎触发按钮 */
.engine-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  border-right: 1px solid var(--border);
  border-radius: var(--r) 0 0 var(--r);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s var(--ease);
}
.engine-trigger:hover {
  color: var(--accent-ink);
}

.engine-name {
  color: var(--engine-name-color);
  font-weight: 600;
}

.engine-trigger:hover .engine-name {
  color: var(--accent-ink);
}

.engine-caret {
  font-size: 11px;
  color: var(--text-mute);
  transition: transform 0.2s var(--ease);
}
.engine-trigger[aria-expanded="true"] .engine-caret {
  transform: rotate(180deg);
}

/* 输入区 */
.search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-leading {
  position: absolute;
  left: 15px;
  font-size: 15px;
  color: var(--text-mute);
  pointer-events: none;
}

#search-text {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 44px 0 40px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--sans);
}
#search-text::placeholder {
  color: var(--text-mute);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease);
}
.search-clear:hover {
  color: var(--accent-ink);
  background: var(--surface-2);
}

/* 提交按钮 */
.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 20px;
  border: 0;
  background:
    linear-gradient(var(--search-mask), var(--search-mask)),
    var(--search-submit-bg);
  color: var(--search-submit-color);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  cursor: pointer;
  border-radius: 0 var(--r) var(--r) 0;
  flex-shrink: 0;
  transition:
    background 0.16s var(--ease),
    transform 0.1s var(--ease);
}
.search-submit:hover {
  background:
    linear-gradient(var(--search-mask), var(--search-mask)),
    var(--search-submit-bg-hover);
}
.search-submit:active {
  transform: scale(0.98);
}
.search-submit .fa-magnifying-glass {
  font-size: 16px;
}

/* 引擎下拉面板（浮层 → 保留玻璃） */
.engine-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--glass-shadow);
  backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(var(--glass-saturate))
    blur(var(--glass-blur));
  z-index: 10001;
  padding: 12px 14px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-gutter: stable;
}

.engine-panel::-webkit-scrollbar {
  width: 9px;
}

.engine-panel::-webkit-scrollbar-track {
  background: transparent;
}

.engine-panel::-webkit-scrollbar-thumb {
  min-height: 40px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  background-clip: padding-box;
}

.engine-panel::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}

.engine-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin: 14px 2px 8px;
}
.engine-cat:first-child {
  margin-top: 2px;
}
.engine-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.engine-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--engine-option-color);
  cursor: pointer;
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.engine-chip:hover {
  color: var(--accent-ink);
  background: var(--surface-2);
}
.engine-chip.active {
  color: var(--accent-ink);
  background: var(--accent-weak);
  border-color: var(--accent-ink);
  font-weight: 600;
}

/* 自动补全 / 搜索历史（浮层 → 保留玻璃） */
.autocomplete-container {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--glass-shadow);
  backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(var(--glass-saturate))
    blur(var(--glass-blur));
  z-index: 10002;
  overflow: hidden;
  padding: 6px;
}
.autocomplete-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
  transition:
    background 0.14s var(--ease),
    color 0.14s var(--ease);
}
.sg-item:hover,
.sg-item.hover {
  background: var(--accent-weak);
  color: var(--text);
}
.sg-ico {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-mute);
}
.sg-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-del {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  transition:
    color 0.14s var(--ease),
    background 0.14s var(--ease);
}
.sg-del:hover {
  color: var(--accent-ink);
  background: var(--surface-2);
}
.sg-footer {
  padding: 4px 12px 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.sg-footer button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--sans);
  transition: color 0.14s var(--ease);
}
.sg-footer button:hover {
  color: var(--accent-ink);
}

/* < sm(576)：手机端压缩搜索条 */
@media (max-width: 575px) {
  .search {
    padding: 28px 0 6px;
  }
  .search-bar {
    height: 48px;
  }
  .engine-trigger {
    padding: 0 11px;
  }
  .search-submit {
    padding: 0 14px;
  }
  .search-submit .search-t {
    display: none;
  }
  #search-text {
    padding-left: 36px;
  }
  .search-leading {
    left: 12px;
  }
  .w {
    padding: 0 16px;
  }
}

/* ===== 常用站点（原生 details 折叠） ===== */
.favorites {
  margin-top: 28px;
  background: var(--fav-glass);
  border: 1.5px solid var(--fav-glass-border);
  border-radius: var(--r);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 1px 0 0 rgba(255, 255, 255, 0.14),
    inset -1px 0 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  overflow: hidden;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

@media (max-width: 640px) {
  .favorites {
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
  }
}

.fav-summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-bottom: 1px solid var(--border);
}

.favorites:not([open]) .fav-summary {
  border-bottom-color: transparent;
}

/* 首屏渲染前应用已保存的收起状态，避免详情内容先展开再收起造成抖动 */
:root[data-favorites-open="false"] .favorites > :not(.fav-summary) {
  display: none;
}

:root[data-favorites-open="false"] .favorites .fav-summary {
  border-bottom-color: transparent;
}

.fav-summary::-webkit-details-marker {
  display: none;
}

.fav-summary::after {
  content: "";
  /* 窄屏下 .quick-tools 横向溢出会触发 flex 收缩，箭头必须固定尺寸，
     否则 8px 盒子被压到 ~2px，旋转后的箭头显示不全 */
  flex: 0 0 auto;
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-mute);
  border-bottom: 1.5px solid var(--text-mute);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.favorites:not([open]) .fav-summary::after {
  transform: rotate(-45deg) translate(-2px, -2px);
}

:root[data-favorites-open="false"] .favorites .fav-summary::after {
  transform: rotate(-45deg) translate(-2px, -2px);
}

/* 分区标题：字重 + 字距建立层级，无竖线装饰 */
.fav-title {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.fav-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 1px 1px;
  border-radius: 50%;
  background: var(--accent);
}

/* 快捷工具：紧随标题，极细边框、透明底 */
.quick-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  padding: 4px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.quick-tools a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-soft);
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--border);
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.quick-tools a:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--accent-ink);
}

.quick-tools::-webkit-scrollbar {
  height: 6px;
}
.quick-tools::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
}
.quick-tools::-webkit-scrollbar-track {
  background: transparent;
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 2px;
  padding: 12px 14px 18px;
}

.fav-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px 9px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  position: relative;
  isolation: isolate;
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}

.fav-grid li a:hover {
  background: var(--accent-weak);
  color: var(--text);
}

/* 图标玻璃底座：半透明高光 + 柔和多层投影 */
.fav-grid li a::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--fav-glass-border);
  border-radius: 15px;
  background: var(--fav-glass);
  box-shadow: var(--fav-glass-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  transform: translateX(-50%);
  pointer-events: none;
  transition:
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.fav-grid li a:hover::before {
  box-shadow: var(--fav-glass-shadow-hover);
  transform: translate(-50%, -2px);
}

.fav-grid li a img {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--fav-tile);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 6px -3px rgba(16, 24, 40, 0.28);
  transition:
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.fav-grid li a:hover img {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 10px -4px rgba(16, 24, 40, 0.34);
}

/* 记忆点：站点名下方主色细线，从中心向两侧展开 */
.fav-grid li span {
  position: relative;
  font-size: 12px;
  max-width: 76px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fav-grid li span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}

.fav-grid li a:hover span::after {
  transform: scaleX(1);
}

/* ===== 分类卡片 ===== */
.category {
  margin-top: 16px;
  background: var(--fav-glass);
  border: 1.5px solid var(--fav-glass-border);
  border-radius: var(--r);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 0 18px 16px;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

/* 分区头：贯穿细线 + 字距，替代左侧竖条 */
.category-head {
  padding: 15px 4px 12px;
  border-bottom: 1px solid var(--border);
}

.category-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.category-head h2::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-top: 7px;
}

.cat-col {
  padding: 2px 4px;
}

.cat-col li {
  position: relative;
  height: 38px;
  line-height: 38px;
}

.cat-col li a {
  display: inline-block;
  max-width: 100%;
  color: var(--text-soft);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease);
}

/* hover 只换色与底色，不改字重（避免文字宽度跳动） */
.cat-col li a:hover {
  color: var(--accent-ink);
  background: var(--accent-weak);
}

.cat-col li:first-child a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  line-height: 1;
  color: var(--category-title-color);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 9px 0 4px;
}

.cat-col li:first-child {
  display: flex;
  align-items: center;
}

.cat-col li:first-child .cat-ico {
  position: relative;
  left: auto;
  top: auto;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  font-size: 15px;
  color: var(--accent);
  transition: color 0.16s var(--ease);
}

.cat-col li:first-child .cat-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--category-icon-mask);
  pointer-events: none;
}

.cat-col li:last-child a {
  color: var(--text-mute);
  white-space: nowrap;
}

.cat-col li:last-child a .cat-more-ico {
  margin-left: 4px;
  font-size: 0.8em;
  transition: transform 0.16s var(--ease);
}

.cat-col li:last-child a:hover .cat-more-ico {
  transform: translateX(2px);
}

@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 实用工具 ===== */
.utility {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--fav-glass);
  border: 1.5px solid var(--fav-glass-border);
  border-radius: var(--r);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 0 16px 14px;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.tool-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--category-title-color);
  padding: 13px 2px 10px;
  border-bottom: 1px solid var(--border);
}

.tool-card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tool-card ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding-top: 4px;
}

.tool-card li {
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.tool-card li a {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: var(--r-sm);
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease);
}

.tool-card li a:hover {
  color: var(--accent-ink);
  background: var(--accent-weak);
}

@media (max-width: 640px) {
  .search-bar {
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
  }

  .category,
  .tool-card {
    -webkit-backdrop-filter: blur(9px) saturate(130%);
    backdrop-filter: blur(9px) saturate(130%);
  }
}

@media (max-width: 900px) {
  .utility {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .utility {
    grid-template-columns: 1fr;
  }
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 44px;
  padding: 0 24px 32px;
  color: var(--text-mute);
  font-size: 12px;
}

.footer-inner {
  max-width: 1192px;
  margin: 0 auto;
  padding: 20px 4px 0;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-soft);
  transition: color 0.16s var(--ease);
}

.site-footer a:hover {
  color: var(--accent-ink);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand-link {
  flex: 0 0 auto;
}

.footer-brand-link .brand-logo {
  height: 34px;
}

.footer-tagline {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-disclaimer {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.9;
}

.footer-disclaimer strong {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
}

.site-footer .footer-icp {
  color: var(--text-mute);
}

.site-footer .footer-privacy {
  color: var(--text-mute);
  margin-left: auto;
}

@media (max-width: 520px) {
  .site-footer {
    padding: 0 14px 28px;
  }

  .footer-inner {
    padding-top: 16px;
  }

  .footer-brand {
    gap: 10px;
  }

  .footer-tagline {
    flex-basis: 100%;
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-disclaimer {
    font-size: 11.5px;
    line-height: 1.8;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom .footer-privacy {
    margin-left: 0;
  }
}

/* ===== 轻提示 toast ===== */
#app-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
  z-index: 10000;
}

#app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 回到顶部 · 荷叶青蛙 =====
   按钮本身就是一汪水塘：荷叶浮在水面，青蛙蹲在叶上。
   点击 → 下蹲蓄力 → 腾空 → 扎进水里 → 水花 + 涟漪 → 从水里跃回荷叶。
   编排总时长 1.15s，与 js/app.js 里的 LAUNCH_MS(1500) 配套。 */
.tops {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 60;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  /* 插画色板：浅色 / 深色各一套 */
  --pond-hi: #86d6ea;
  --pond-mid: #4fa9d0;
  --pond-low: #2f88b6;
  --pad-hi: #82d871;
  --pad-mid: #4cb055;
  --pad-low: #2f8c43;
  --frog-hi: #7ad478;
  --frog-mid: #47ab55;
  --frog-low: #2f8a45;
}

:root[data-theme="dark"] .tops {
  --pond-hi: #5fa2c0;
  --pond-mid: #3a7a9d;
  --pond-low: #235872;
  --pad-hi: #5cb464;
  --pad-mid: #388348;
  --pad-low: #215e36;
  --frog-hi: #5cb763;
  --frog-mid: #3a9349;
  --frog-low: #24693c;
}

.tops:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 50%;
}

/* ---- 水塘 ---- */
.tops .pond {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 64px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      58% 78% at 50% 118%,
      rgba(11, 84, 118, 0.42),
      transparent 72%
    ),
    linear-gradient(
      180deg,
      var(--pond-hi) 0%,
      var(--pond-mid) 52%,
      var(--pond-low) 100%
    );
  box-shadow:
    inset 0 3px 7px rgba(8, 66, 96, 0.28),
    inset 0 -4px 9px rgba(255, 255, 255, 0.24),
    0 9px 20px -12px rgba(9, 71, 104, 0.55);
  transition: filter 0.18s var(--ease);
}

/* 水面反光，缓慢横移 */
.tops .pond-shine {
  position: absolute;
  left: -34%;
  top: 16%;
  width: 44%;
  height: 32%;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(1.6px);
  opacity: 0.55;
  animation: pond-shimmer 4.8s var(--ease-io) infinite;
}

@keyframes pond-shimmer {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(165%);
    opacity: 0.9;
  }
}

/* 涟漪：a/b 是入水点，c 是青蛙跃出水面的位置 */
.tops .pond-ring {
  position: absolute;
  left: calc(50% + var(--sx, 0px));
  top: 50%;
  width: 26px;
  height: 11px;
  margin: -5.5px 0 0 -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.22);
  pointer-events: none;
}

.tops .pond-ring-a {
  --sx: -17px;
}
.tops .pond-ring-b {
  --sx: -17px;
}

.tops.is-launching .pond-ring-a {
  animation: pond-ripple 0.62s var(--ease) 0.75s forwards;
}
.tops.is-launching .pond-ring-b {
  animation: pond-ripple 0.58s var(--ease) 0.87s forwards;
}
.tops.is-launching .pond-ring-c {
  animation: pond-ripple 0.42s var(--ease) 1.02s forwards;
}

@keyframes pond-ripple {
  0% {
    opacity: 0;
    transform: scale(0.22);
  }
  22% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

/* 入水水花：三颗水珠，先冲起再落回水面 */
.tops .pond-drop {
  position: absolute;
  left: calc(50% + var(--sx, 0px));
  top: 44%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  pointer-events: none;
}

.tops .pond-drop-a {
  --sx: -17px;
  --dx: -13px;
}
.tops .pond-drop-b {
  --sx: -17px;
  --dx: 1px;
}
.tops .pond-drop-c {
  --sx: -17px;
  --dx: 15px;
}

.tops.is-launching .pond-drop-a {
  animation: pond-drop 0.5s cubic-bezier(0.3, 0.62, 0.36, 1) 0.75s forwards;
}
.tops.is-launching .pond-drop-b {
  animation: pond-drop 0.54s cubic-bezier(0.3, 0.62, 0.36, 1) 0.79s forwards;
}
.tops.is-launching .pond-drop-c {
  animation: pond-drop 0.48s cubic-bezier(0.3, 0.62, 0.36, 1) 0.82s forwards;
}

@keyframes pond-drop {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.35), -7px) scale(0.9);
  }
  62% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.78), -13px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), 3px) scale(0.45);
  }
}

/* ---- 荷叶 ---- */
.tops .pad {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 54px;
  height: 20px;
  z-index: 2;
  transform: translateX(-50%);
  animation: pad-bob 3.6s var(--ease-io) infinite;
}

/* 叶面：conic 遮罩切出荷叶的经典缺口，放射叶脉 + 内缘高光 */
.tops .pad::before {
  content: "";
  position: absolute;
  left: 0;
  top: -17px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      transparent 58%,
      rgba(255, 255, 255, 0.17) 67%,
      transparent 77%
    ),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(255, 255, 255, 0.11) 0deg 0.9deg,
      transparent 0.9deg 18deg
    ),
    radial-gradient(
      115% 108% at 34% 26%,
      var(--pad-hi) 0%,
      var(--pad-mid) 46%,
      var(--pad-low) 100%
    );
  -webkit-mask: conic-gradient(
    from 11deg at 50% 50%,
    #000 0 338deg,
    transparent 338deg
  );
  mask: conic-gradient(
    from 11deg at 50% 50%,
    #000 0 338deg,
    transparent 338deg
  );
  transform: scaleY(0.375) rotate(126deg);
}

/* 叶在水面上的投影 */
.tops .pad::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 50px;
  height: 10px;
  margin-left: -25px;
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(6, 78, 108, 0.32),
    transparent 70%
  );
}

@keyframes pad-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-0.8deg);
  }
  50% {
    transform: translateX(-50%) translateY(-1.5px) rotate(0.8deg);
  }
}

/* ---- 青蛙 ---- */
.tops .frog {
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 28px;
  height: 23px;
  z-index: 3;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform 0.2s var(--ease);
}

/* 折叠的后腿（蛙的髂骨隆起） */
.tops .frog-thigh {
  position: absolute;
  bottom: 0;
  width: 13px;
  height: 10px;
  border-radius: 62% 38% 46% 54% / 70% 62% 38% 30%;
  background: linear-gradient(
    155deg,
    var(--frog-hi) 0%,
    var(--frog-mid) 55%,
    var(--frog-low) 100%
  );
  box-shadow:
    inset -1px -1.5px 2px rgba(10, 66, 34, 0.35),
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.22);
  z-index: 1;
}

.tops .frog-thigh-l {
  left: 0;
  transform: rotate(-18deg);
}

.tops .frog-thigh-r {
  right: 0;
  transform: rotate(18deg);
}

.tops .frog-body {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 24px;
  height: 17px;
  margin-left: -12px;
  overflow: hidden;
  border-radius: 48% 48% 46% 46% / 58% 58% 42% 42%;
  background:
    /* 背部斑点 */
    radial-gradient(
      2.4px 2.4px at 26% 32%,
      rgba(22, 82, 40, 0.24) 55%,
      transparent 62%
    ),
    radial-gradient(
      2px 2px at 68% 24%,
      rgba(22, 82, 40, 0.2) 55%,
      transparent 62%
    ),
    radial-gradient(
      1.6px 1.6px at 47% 15%,
      rgba(22, 82, 40, 0.16) 55%,
      transparent 62%
    ),
    radial-gradient(
      98% 88% at 34% 26%,
      var(--frog-hi) 0%,
      var(--frog-mid) 48%,
      var(--frog-low) 100%
    );
  box-shadow:
    inset 0 -2px 3px rgba(10, 66, 34, 0.28),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.34),
    0 2px 4px -2px rgba(5, 62, 36, 0.5);
  z-index: 2;
}

/* 嘴 */
.tops .frog-body::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 9px;
  height: 4px;
  margin-left: -4.5px;
  border-bottom: 1.2px solid rgba(15, 58, 32, 0.48);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* 肚皮（随 overflow 裁进身体轮廓内） */
.tops .frog-body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 15px;
  height: 9px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    rgba(240, 253, 230, 0.85),
    rgba(216, 245, 206, 0.45)
  );
}

/* 搭在身前的小前爪 */
.tops .frog-arm {
  position: absolute;
  bottom: 0;
  width: 7px;
  height: 5px;
  border-radius: 50% 50% 45% 55% / 60% 60% 40% 40%;
  background: linear-gradient(165deg, var(--frog-hi), var(--frog-mid));
  box-shadow: 0 1px 1.5px rgba(5, 62, 36, 0.28);
  z-index: 3;
}

.tops .frog-arm-l {
  left: 6px;
  transform: rotate(-8deg);
}

.tops .frog-arm-r {
  right: 6px;
  transform: rotate(8deg);
}

/* 圆润的眼睛：与头顶融为一体的绿色小鼓包，大黑眼珠 + 两点高光 */
.tops .frog-eye {
  position: absolute;
  top: -1px;
  width: 7.5px;
  height: 6.5px;
  border-radius: 50% 50% 45% 45% / 58% 58% 42% 42%;
  background: radial-gradient(
    92% 90% at 36% 24%,
    var(--frog-hi) 0%,
    var(--frog-mid) 55%,
    var(--frog-low) 100%
  );
  box-shadow:
    inset 0 -1px 1.5px rgba(10, 66, 34, 0.22),
    0 1px 1.5px rgba(5, 62, 36, 0.18);
  z-index: 4;
  transform-origin: 50% 80%;
  animation: frog-blink 5.6s var(--ease-io) infinite;
}

.tops .frog-eye-l {
  left: 5.5px;
}
.tops .frog-eye-r {
  right: 5.5px;
}

/* 大黑眼珠 + 两点高光 */
.tops .frog-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 4.2px;
  height: 4.2px;
  margin: -2.1px 0 0 -2.1px;
  border-radius: 50%;
  background:
    radial-gradient(0.75px 0.75px at 30% 26%, #ffffff 72%, transparent 76%),
    radial-gradient(
      0.4px 0.4px at 64% 56%,
      rgba(255, 255, 255, 0.62) 50%,
      transparent 54%
    ),
    radial-gradient(circle at 42% 38%, #3d6b4a, #142f1f);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.22);
}

/* 眼皮顶部柔光 */
.tops .frog-eye::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    74% 42% at 50% 18%,
    rgba(255, 255, 255, 0.3),
    transparent 72%
  );
  pointer-events: none;
}

@keyframes frog-blink {
  0%,
  93%,
  100% {
    transform: scaleY(1);
  }
  95.5% {
    transform: scaleY(0.18);
  }
  98% {
    transform: scaleY(1);
  }
}

/* ---- 交互状态 ---- */
@media (hover: hover) and (pointer: fine) {
  .tops:hover .pond {
    filter: brightness(1.07) saturate(1.05);
  }
  .tops:hover .frog {
    transform: translateX(-50%) translateY(-3px);
  }
  .tops:active .frog {
    transform: translateX(-50%) translateY(1px) scale(0.97);
  }
}

/* ---- 起跳编排 ---- */
.tops.is-launching {
  pointer-events: none;
}

/* 荷叶：被蹬沉 → 回弹 → 落地再沉一下 */
.tops.is-launching .pad {
  animation: pad-dip 1.15s var(--ease) forwards;
}

@keyframes pad-dip {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  10% {
    transform: translateX(-50%) translateY(2.5px);
  }
  18% {
    transform: translateX(-50%) translateY(4.5px);
  }
  30% {
    transform: translateX(-50%) translateY(-3px);
  }
  46% {
    transform: translateX(-50%) translateY(1.2px);
  }
  60% {
    transform: translateX(-50%) translateY(-0.6px);
  }
  74% {
    transform: translateX(-50%) translateY(0);
  }
  94% {
    transform: translateX(-50%) translateY(0);
  }
  97% {
    transform: translateX(-50%) translateY(3px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* 青蛙：蓄力 → 腾空 → 入水 → 潜回 → 跃回荷叶 */
.tops.is-launching .frog {
  animation: frog-dive 1.15s var(--ease) forwards;
}

@keyframes frog-dive {
  0% {
    opacity: 1;
    transform: translate(calc(-50% + 0px), 0) scale(1, 1) rotate(0deg);
  }
  10% {
    transform: translate(calc(-50% + 0px), 3px) scale(1.14, 0.84) rotate(0deg);
  }
  18% {
    transform: translate(calc(-50% + -1px), -5px) scale(0.94, 1.1) rotate(-5deg);
  }
  32% {
    transform: translate(calc(-50% + -7px), -22px) scale(1.02, 0.98)
      rotate(-16deg);
  }
  44% {
    transform: translate(calc(-50% + -12px), -28px) scale(1.05, 0.95)
      rotate(-8deg);
  }
  56% {
    transform: translate(calc(-50% + -15px), -18px) scale(0.99, 1.01)
      rotate(12deg);
  }
  66% {
    transform: translate(calc(-50% + -17px), 2px) scale(0.88, 1.08)
      rotate(26deg);
  }
  72% {
    opacity: 0.9;
    transform: translate(calc(-50% + -18px), 9px) scale(0.72, 0.82)
      rotate(24deg);
  }
  80% {
    opacity: 0;
    transform: translate(calc(-50% + -18px), 14px) scale(0.5, 0.6) rotate(22deg);
  }
  88% {
    opacity: 0;
    transform: translate(calc(-50% + 0px), 14px) scale(0.5, 0.6) rotate(0deg);
  }
  90% {
    opacity: 1;
    transform: translate(calc(-50% + 0px), 6px) scale(0.8, 0.9) rotate(0deg);
  }
  94% {
    opacity: 1;
    transform: translate(calc(-50% + 0px), -16px) scale(0.93, 1.09) rotate(0deg);
  }
  97% {
    opacity: 1;
    transform: translate(calc(-50% + 0px), 2px) scale(1.07, 0.92) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translate(calc(-50% + 0px), 0) scale(1, 1) rotate(0deg);
  }
}

@media (max-width: 520px) {
  .tops {
    right: 12px;
    bottom: 16px;
    transform: scale(0.88);
    transform-origin: 100% 100%;
  }
}

/* ===== 降落伞随机礼包 ===== */
.parachute-gift-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.parachute-gift {
  --gift-left: 50%;
  --gift-duration: 16s;
  position: absolute;
  top: 0;
  left: var(--gift-left);
  width: 72px;
  height: 112px;
  padding: 0;
  color: inherit;
  background: transparent;
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
}

.parachute-gift.is-falling {
  animation: parachute-fall var(--gift-duration) linear both;
}

.gift-rig {
  position: relative;
  display: block;
  width: 72px;
  height: 108px;
  filter: drop-shadow(0 7px 8px rgba(14, 39, 38, 0.2));
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease);
}

.parachute-gift:hover .gift-rig,
.parachute-gift:focus-visible .gift-rig {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 9px 11px rgba(16, 135, 104, 0.3));
}

.parachute-gift:active .gift-rig {
  transform: scale(0.96);
}

.gift-canopy {
  position: absolute;
  top: 0;
  left: 3px;
  width: 66px;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50% 50% 13% 13% / 92% 92% 18% 18%;
  background: linear-gradient(
    90deg,
    #329dca 0 32%,
    #55c5ad 32% 68%,
    #329dca 68%
  );
  box-shadow: inset 0 -5px 9px rgba(8, 71, 83, 0.14);
}

.gift-canopy::after {
  content: "";
  position: absolute;
  inset: 0 21px;
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.gift-lines {
  position: absolute;
  top: 29px;
  left: 19px;
  width: 34px;
  height: 43px;
  border-right: 1px solid rgba(74, 105, 103, 0.65);
  border-left: 1px solid rgba(74, 105, 103, 0.65);
}

.gift-box {
  position: absolute;
  top: 68px;
  left: 20px;
  width: 32px;
  height: 29px;
  border: 1px solid rgba(137, 70, 28, 0.2);
  border-radius: 4px 4px 6px 6px;
  background: #ed9d56;
  box-shadow: inset 0 -5px 8px rgba(128, 57, 23, 0.13);
}

.gift-box::before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: 0;
  left: 11px;
  width: 8px;
  background: #ffe7a6;
}

.gift-box::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  width: 36px;
  height: 7px;
  border-radius: 3px;
  background: #f2ae67;
  box-shadow: inset 0 -2px 3px rgba(128, 57, 23, 0.12);
}

@keyframes parachute-fall {
  0% {
    opacity: 0;
    transform: translate3d(calc(-50% - 18px), -18vh, 0) rotate(-5deg);
  }
  8% {
    opacity: 0.92;
  }
  32% {
    transform: translate3d(calc(-50% + 18px), 25vh, 0) rotate(4deg);
  }
  62% {
    transform: translate3d(calc(-50% - 12px), 63vh, 0) rotate(-3deg);
  }
  92% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + 14px), 112vh, 0) rotate(4deg);
  }
}

/* 空礼包：点击位置的爆炸与烟雾 */
.gift-explosion {
  position: fixed;
  z-index: 10020;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.gift-explosion::before,
.gift-explosion::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.gift-explosion::before {
  width: 34px;
  height: 34px;
  background: radial-gradient(
    circle,
    #fff6c7 0 18%,
    #ffb257 38%,
    rgba(255, 126, 51, 0.18) 68%,
    transparent 72%
  );
  animation: gift-flash 0.5s var(--ease) forwards;
}

.gift-explosion::after {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 171, 80, 0.8);
  animation: gift-shockwave 0.7s var(--ease) forwards;
}

.gift-blast {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffcb6b;
  box-shadow:
    0 -22px 0 -8px #ff9a4a,
    20px -10px 0 -8px #ff9a4a,
    20px 12px 0 -8px #ff9a4a,
    0 22px 0 -8px #ff9a4a,
    -20px 12px 0 -8px #ff9a4a,
    -20px -10px 0 -8px #ff9a4a;
  animation: gift-blast 0.58s ease-out forwards;
}

.gift-smoke {
  --smoke-x: 0px;
  --smoke-y: -60px;
  --smoke-size: 28px;
  --smoke-scale: 1.5;
  --smoke-delay: 0s;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--smoke-size);
  height: var(--smoke-size);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #e7eceb 0 16%,
    #899394 40%,
    rgba(54, 64, 66, 0.45) 68%,
    transparent 72%
  );
  filter: blur(0.4px);
  opacity: 0;
  animation: gift-smoke 1.2s ease-out var(--smoke-delay) forwards;
}

@keyframes gift-flash {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

@keyframes gift-shockwave {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5);
  }
}

@keyframes gift-blast {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3) rotate(0);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2) rotate(24deg);
  }
}

@keyframes gift-smoke {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  18% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--smoke-x)),
        calc(-50% + var(--smoke-y))
      )
      scale(var(--smoke-scale));
  }
}

@media (max-width: 640px) {
  .parachute-gift:nth-child(n + 3) {
    display: none;
  }
}

/* ===== 动效降级：更少更温和，保留颜色与透明度过渡 ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .parachute-gift-layer {
    display: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== 全局自定义光标：默认 a.cur，移入链接/可点击元素 b.cur ===== */
html,
body,
body * {
  cursor: url("../img/a.cur"), default !important;
}

html body a,
html body a *,
html body button,
html body button *,
html body summary,
html body summary *,
html body label,
html body select,
html body [role="button"],
html body [role="button"] *,
html body [role="link"],
html body [role="link"] *,
html body [role="menuitem"],
html body [role="tab"],
html body [onclick],
html body input[type="button"],
html body input[type="submit"],
html body input[type="reset"],
html body input[type="checkbox"],
html body input[type="radio"],
html body input[type="range"],
html body input[type="color"],
html body input[type="file"] {
  cursor: url("../img/b.cur"), pointer !important;
}

html body input[type="text"],
html body input[type="search"],
html body input[type="url"],
html body input[type="email"],
html body input[type="password"],
html body input[type="number"],
html body input[type="tel"],
html body textarea,
html body [contenteditable="true"] {
  cursor: url("../img/a.cur"), text !important;
}

html body [disabled],
html body [aria-disabled="true"] {
  cursor: url("../img/a.cur"), not-allowed !important;
}

/* =========================================================
   消息通知铃铛（头部文章更新下拉）
   数据源：posts/js/posts-data.js；交互：js/post-notify.js
   ========================================================= */
:root {
  --notify-red: #f2455d;
  /* 通知浮层玻璃底：浅下高不透明白底保证文字可读，仅边缘微透 + backdrop 模糊保玻璃感 */
  --notify-bg: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(250, 253, 252, 0.94) 48%,
    rgba(236, 245, 242, 0.96) 100%
  );
}

:root[data-theme="dark"] {
  --notify-red: #ff5a70;
  --notify-bg: linear-gradient(
    160deg,
    rgba(40, 46, 57, 0.9) 0%,
    rgba(21, 25, 32, 0.9) 48%,
    rgba(13, 17, 23, 0.92) 100%
  );
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --notify-red: #ff5a70;
    --notify-bg: linear-gradient(
      160deg,
      rgba(40, 46, 57, 0.9) 0%,
      rgba(21, 25, 32, 0.9) 48%,
      rgba(13, 17, 23, 0.92) 100%
    );
  }
}

.notify-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.notify-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-soft);
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease),
    transform 0.12s var(--ease);
}

.notify-trigger:hover {
  background: var(--surface-2);
  color: var(--accent-ink);
}

.notify-trigger:active {
  transform: scale(0.94);
}

.notify-trigger i {
  font-size: 18px;
  line-height: 1;
}

/* 未读红点：仅在 .has-unread 时显示（JS 依据 localStorage 控制） */
.notify-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--notify-red);
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

.notify-trigger.has-unread .notify-dot {
  display: block;
}

/* 下拉浮层：毛玻璃（与顶栏/下拉材质纪律一致） */
.notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: min(460px, calc(100dvh - 88px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pop-glass-border);
  border-radius: var(--r);
  background: var(--notify-bg);
  box-shadow:
    var(--pop-glass-shadow),
    inset 0 1px 0 var(--pop-glass-hi),
    inset 0 -1px 0 rgba(7, 193, 96, 0.05),
    var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(220%) brightness(1.02);
  -webkit-backdrop-filter: blur(30px) saturate(220%) brightness(1.02);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: 100% 0;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.notify-panel[hidden] {
  display: none;
}

.notify-panel.is-open {
  opacity: 1;
  transform: none;
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.notify-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.notify-head-title i {
  color: var(--accent-ink);
}

.notify-readall {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  color: var(--text-mute);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.notify-readall:hover {
  background: var(--surface-2);
  color: var(--accent-ink);
}

.notify-list {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 选择器带 .notify-panel 前缀，权重高于头部 .quick-links a / i 通用规则，
   避免文章链接被压成 36x36 的图标格 */
.notify-panel .notify-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: auto;
  height: auto;
  flex: none;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  place-items: initial;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}

.notify-panel .notify-item:last-child {
  border-bottom: 0;
}

.notify-panel .notify-item:hover {
  background: var(--accent-weak);
}

.notify-panel .notify-item-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--fav-tile);
  color: var(--accent-ink);
  font-size: 14px;
}

.notify-panel .notify-item-icon i {
  font-size: 14px;
  line-height: 1;
}

.notify-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notify-item-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.notify-item-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mute);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notify-item-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-weak);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-ink);
}

.notify-item-date {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.notify-item-summary {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 未读：标题加粗加深、图标右上角红点 */
.notify-item.is-unread .notify-item-title {
  font-weight: 700;
  color: var(--text);
}

.notify-item-dot {
  display: none;
  position: absolute;
  top: 9px;
  left: 39px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--notify-red);
  box-shadow: 0 0 0 2px var(--surface-raised);
  pointer-events: none;
}

.notify-item.is-unread .notify-item-dot {
  display: block;
}

.notify-item:not(.is-unread) .notify-item-icon {
  opacity: 0.62;
}

.notify-item:not(.is-unread) .notify-item-summary {
  color: var(--text-mute);
}

/* 分页条 */
.notify-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

.notify-pager[hidden] {
  display: none;
}

.notify-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 12px;
  color: var(--text-soft);
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.notify-page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent-ink);
}

.notify-page-btn:disabled {
  opacity: 0.42;
}

.notify-page-info {
  font-size: 11.5px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.notify-empty {
  padding: 34px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}

.notify-empty i {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  opacity: 0.6;
}

@media (max-width: 520px) {
  .notify-wrap {
    flex: 0 1 32px;
    min-width: 0;
  }

  .notify-trigger {
    width: 32px;
    height: 32px;
  }

  .notify-panel {
    position: fixed;
    top: 62px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: min(70vh, 460px);
  }
}
