/* =========================================================
   home.css —— 首页完整样式表（设计令牌 v1）
   字体：Inter Variable（OFL-1.1，本地自托管）
   本文件只被首页引用；其他页面继续使用 site.css。
   ========================================================= */

/* ---------- 字体（Inter Variable，OFL-1.1 本地自托管；2026-09-03 替换 Wotfard） ---------- */
@font-face {
  font-family: "Inter Variable";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Variable";
  src: url("fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- 设计令牌：亮色 ---------- */
html[data-theme="light"] {
  --color-text: #0a0c10;
  --color-background: #fff;
  --color-blurred-background: hsla(0, 0%, 95%, 0.75);
  --color-muted-background: rgba(166, 203, 221, 0.85);
  --color-action: #4242fa;
  --color-primary: #4242fa;
  --color-secondary: #e60067;
  --color-tertiary: #2c0b8e;
  --color-decorative: #63bce9;
  --color-cloud-100: #ebf4fa;
  --color-cloud-300: #ddeef8;
  --color-cloud-400: #c6e2f1;
  --color-cloud-500: #b1dff6;
  --color-cloud-700: #6a8caf;
  --color-puff: rgba(255, 255, 255, 0.6);
  --color-sky-from: #a0d4ee;
  --color-sky-to: #7dc4e8;
  --color-sky-subtle: #c5eafc;
  --color-gray-50: #f1f3f9;
  --color-gray-100: #e6e8f0;
  --color-gray-200: #d6d8e1;
  --color-gray-300: #c8cad0;
  --color-gray-400: #acafb9;
  --color-gray-500: #9295a0;
  --color-gray-600: #6c7693;
  --color-gray-700: #5a6072;
  --color-gray-800: #3d455c;
  --color-gray-900: #262d40;
  --color-gray-1000: #21232c;
  --color-error: #c20544;
  --color-success: #008a39;
  --color-warning: #ff9d00;
  --color-info: #43f;
  --selection-background-color: #ffec8f;
  --selection-text-color: #000;
  --sky-text: #294e60;
  --sky-link: #2c0b8e;
  --color-scheme: light;
  color-scheme: light;
}

/* ---------- 设计令牌：暗色 ---------- */
html[data-theme="dark"] {
  --color-text: #e3e6e8;
  --color-background: #0d0f12;
  --color-blurred-background: rgba(13, 15, 18, 0.75);
  --color-muted-background: rgba(24, 38, 53, 0.85);
  --color-action: #4242fa;
  --color-primary: #809fff;
  --color-secondary: #ff1981;
  --color-tertiary: #e6b3ff;
  --color-decorative: #6ac;
  --color-cloud-100: #0d0f12;
  --color-cloud-300: #0e1620;
  --color-cloud-400: #0f1824;
  --color-cloud-500: #121d2b;
  --color-cloud-700: #2a4a63;
  --color-puff: rgba(255, 255, 255, 0.07);
  --color-sky-from: #111b27;
  --color-sky-to: #265973;
  --color-sky-subtle: #182939;
  --color-gray-50: #13171b;
  --color-gray-100: #1a1f23;
  --color-gray-200: #272e35;
  --color-gray-300: #454d54;
  --color-gray-400: #5d666f;
  --color-gray-500: #75808a;
  --color-gray-600: #7e8c9a;
  --color-gray-700: #9ca8b4;
  --color-gray-800: #b9c4d0;
  --color-gray-900: #d9e0e8;
  --color-gray-1000: #f2f5f7;
  --color-error: #fa3879;
  --color-success: #0c8;
  --color-warning: #fa0;
  --color-info: #99b3ff;
  --selection-background-color: rgba(139, 133, 173, 0.35);
  --selection-text-color: #fff;
  --sky-text: #afcfde;
  --sky-link: #e6f5ff;
  --color-scheme: dark;
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: calc(0.95 + 0.62rem);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--selection-background-color);
  color: var(--selection-text-color);
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  box-shadow: none;
  border-radius: 0;
}
button {
  cursor: pointer;
}
input::placeholder {
  opacity: 1;
}
a {
  color: inherit;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img, svg {
  vertical-align: middle;
}

/* ---------- 布局容器（1100px + 32px 边距） ---------- */
.wrap {
  width: 100%;
  max-width: 68.75rem;
  margin-inline: auto;
  padding-inline: 32px;
}

/* 主页加宽实验（2026-09-02，owner 试效果；回退 = 删 body.home-page 规则 + 模板 body 类） */
body.home-page .wrap {
  max-width: 80rem; /* 1100px -> 1280px */
}

/* ---------- 顶部导航（3rem 高、无底色、轻字重） ---------- */
.topnav {
  position: relative;
  z-index: 10;
  background: transparent;
  border: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.0625rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.brand-mark svg { width: 1.625rem; height: 1.625rem; display: block; }
.brand-tagline { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-gray-500); }
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 3rem;
  padding: 0 0.5rem;
  color: var(--color-text);
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  flex: none;
}
.nav-links a:hover {
  color: var(--color-primary);
}
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}
.nav-actions a.active {
  color: var(--color-primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- 按钮（2.625rem 高、4px 圆角） ---------- */
.btn {
  --height: 2.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--height);
  padding: 0 1.25rem;
  border: none;
  border-radius: 4px;
  background: var(--color-gray-900);
  color: var(--color-background);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
}
.btn:hover {
  background: var(--color-gray-800);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--color-gray-900);
  color: var(--color-background);
}
.btn-primary:hover {
  background: var(--color-gray-800);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-gray-100);
}
.btn-sm {
  --height: 2.375rem;
  padding: 0 0.75rem;
  font-size: 0.9375rem;
}
#theme-toggle {
  width: 2.375rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#theme-toggle svg {
  display: block;
}

/* ---------- Hero（sky 渐变 + 漂浮波浪 + 弧线分隔） ---------- */
.site-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 260px;
  background: linear-gradient(to bottom, var(--color-sky-from), var(--color-sky-to));
}
/* 2026-09-02 重设计：页首=完整长方形天空（去掉弧形切割），底部以云线收尾 */
.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--color-cloud-700);
}
.squiggle {
  position: absolute;
  width: 160px;
  height: auto;
  opacity: 0.85;
  animation: squiggle-float 9s ease-in-out infinite;
}
.sq-1 { top: 18%; left: 8%; transform: rotate(-8deg); animation-delay: 0s; }
.sq-2 { top: 55%; right: 10%; transform: rotate(12deg) scale(0.8); animation-delay: -3s; }
.sq-3 { top: 30%; right: 32%; transform: rotate(4deg) scale(0.6); animation-delay: -6s; opacity: 0.55; }
@keyframes squiggle-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.home-head {
  padding: 3.5rem 0 3rem;
  color: var(--color-text);
}
.home-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.story-card {
  margin-top: 0;
  padding: 1.5rem 1.625rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-background) 82%, transparent);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.06);
}
.story-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--color-primary);
}
.story-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.story-card p.story-body {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-gray-700);
}
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-primary);
}
.story-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.intro-meta {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--color-gray-500);
}
.intro-title {
  margin: 0 0 2.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
}
.intro-title .accent {
  color: var(--color-primary);
}
.intro-accent {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-primary);
}
.intro-sub {
  margin: 0 0 2.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--color-gray-700);
}


.hero-cloud {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 120px;
  color: var(--color-cloud-500);
  opacity: 0.9;
  pointer-events: none;
}
.hero-sun {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 64px;
  height: 64px;
  color: #ffb84d;
  filter: drop-shadow(0 0 14px rgba(255, 184, 77, 0.55)) drop-shadow(0 0 42px rgba(255, 150, 60, 0.28));
  animation: hero-sun-float 9s ease-in-out infinite, hero-sun-glow 6s ease-in-out infinite;
}
.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #ffdd94;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms;
}
/* 纸片质感：剪贴纸式的极轻微色差（黄色系）+ 无模糊硬投影模拟纸张厚度 */
.hero-stars .st-1,
.hero-stars .st-4,
.hero-stars .st-7 { fill: #ffe4a3; }
.hero-stars .st-2,
.hero-stars .st-5 { fill: #f8d183; }
.hero-stars .st-3,
.hero-stars .st-6 { fill: #fdda95; }
.hero-stars circle { fill: #f6cf80; }
.hero-stars path {
  filter: drop-shadow(1.6px 1.8px 0 rgba(20, 12, 4, 0.75));
}
.hero-stars circle {
  filter: drop-shadow(1px 1.2px 0 rgba(20, 12, 4, 0.7));
}
.site-intro--short {
  height: 150px;
}
.site-intro--short .squiggle {
  width: 120px;
}
.site-intro--short .sq-1 { top: 22%; left: 10%; }
.site-intro--short .sq-2 { top: 42%; right: 14%; }
.site-intro--short .hero-cloud {
  height: 96px;
  opacity: 0.8;
}
/* 更长的页头背景（关于页）：天空更高，漂浮云朵 + 太阳/月亮/星星 */
.site-intro--tall {
  height: 320px;
}
.site-intro--tall .hero-cloud {
  height: 140px;
}
.hero-puff {
  position: absolute;
  z-index: -1;
  color: var(--color-puff);
  animation: puff-float 14s ease-in-out infinite;
  pointer-events: none;
}
.puff-1 { top: 12%; left: 6%; width: 130px; animation-delay: 0s; }
.puff-2 { top: 56%; left: 42%; width: 92px; opacity: 0.7; animation-delay: -5s; }
.puff-3 { top: 20%; right: 6%; width: 108px; opacity: 0.85; animation-delay: -9s; }
@keyframes puff-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 14px -10px; }
}
.hero-moon {
  position: absolute;
  top: 13%;
  right: 13%;
  width: 46px;
  height: 46px;
  color: #fff7d6;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 247, 214, 0.45)) drop-shadow(0 0 16px rgba(255, 247, 214, 0.18));
  animation: hero-moon-glow 9s ease-in-out infinite;
  transition: opacity 500ms;
  pointer-events: none;
}
@keyframes hero-sun-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes hero-sun-glow {
  0%, 100% {
    filter: drop-shadow(0 0 14px rgba(255, 184, 77, 0.55)) drop-shadow(0 0 42px rgba(255, 150, 60, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(255, 184, 77, 0.78)) drop-shadow(0 0 60px rgba(255, 150, 60, 0.42));
  }
}
@keyframes hero-moon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 247, 214, 0.45)) drop-shadow(0 0 16px rgba(255, 247, 214, 0.18));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 247, 214, 0.62)) drop-shadow(0 0 24px rgba(255, 247, 214, 0.28));
  }
}
@keyframes hero-stars-drift {
  0%, 100% { translate: 0 0; }
  33% { translate: 7px -5px; }
  66% { translate: -4px -8px; }
}
@keyframes hero-star-twinkle {
  0%, 100% { opacity: 0.92; }
  14% { opacity: 0.6; }
  30% { opacity: 0.88; }
  46% { opacity: 0.7; }
  68% { opacity: 1; }
  86% { opacity: 0.78; }
}
@keyframes hero-dot-twinkle {
  0%, 100% { opacity: 0.85; }
  38% { opacity: 0.62; }
  72% { opacity: 0.95; }
}
html[data-theme="dark"] .hero-sun {
  display: none;
}
html[data-theme="dark"] .hero-stars {
  opacity: 0.9;
  animation: hero-stars-drift 26s ease-in-out infinite;
}
html[data-theme="dark"] .hero-stars .st-1,
html[data-theme="dark"] .hero-stars .st-4,
html[data-theme="dark"] .hero-stars .sc-2 {
  animation: hero-star-twinkle 7s ease-in-out infinite;
}
html[data-theme="dark"] .hero-stars .st-2,
html[data-theme="dark"] .hero-stars .st-6,
html[data-theme="dark"] .hero-stars .sc-4 {
  animation: hero-dot-twinkle 5.2s ease-in-out -1.7s infinite;
}
html[data-theme="dark"] .hero-stars .st-3,
html[data-theme="dark"] .hero-stars .st-7,
html[data-theme="dark"] .hero-stars .sc-1 {
  animation: hero-star-twinkle 8.4s ease-in-out -4s infinite;
}
html[data-theme="dark"] .hero-stars .st-5,
html[data-theme="dark"] .hero-stars .sc-3,
html[data-theme="dark"] .hero-stars .sc-5 {
  animation: hero-dot-twinkle 6s ease-in-out -2.9s infinite;
}
html[data-theme="dark"] .hero-moon {
  opacity: 0.95;
}
@media (prefers-reduced-motion: reduce) {
  .hero-sun,
  .hero-moon,
  html[data-theme="dark"] .hero-stars,
  html[data-theme="dark"] .hero-stars .st-1,
  html[data-theme="dark"] .hero-stars .st-2,
  html[data-theme="dark"] .hero-stars .st-3,
  html[data-theme="dark"] .hero-stars .st-4,
  html[data-theme="dark"] .hero-stars .st-5,
  html[data-theme="dark"] .hero-stars .st-6,
  html[data-theme="dark"] .hero-stars .st-7,
  html[data-theme="dark"] .hero-stars .sc-1,
  html[data-theme="dark"] .hero-stars .sc-2,
  html[data-theme="dark"] .hero-stars .sc-3,
  html[data-theme="dark"] .hero-stars .sc-4,
  html[data-theme="dark"] .hero-stars .sc-5 {
    animation: none;
  }
}

/* 搜索框：无框，底线下滑 */
.intro-search {
  position: relative;
  max-width: 36rem;
  margin-bottom: 3rem;
}
.searchbox {
  width: 100%;
  padding: 0.625rem 0 0.625rem 2.25rem;
  border-bottom: 2px solid var(--color-gray-300);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1.125rem;
  outline: none;
  transition: border-color 200ms;
}
.searchbox::placeholder {
  color: var(--color-gray-500);
}
.searchbox:focus {
  border-bottom-color: var(--color-primary);
}
.search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  color: var(--color-gray-500);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 8px;
  border-radius: 8px;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  max-height: min(70vh, 460px);
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.search-results a:hover {
  background: var(--color-gray-100);
}

/* 快速入口：无卡片无描边，hover 浮现装饰块 */
.quick-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin: 0;
}
.qr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  isolation: isolate;
  padding: 0.3125rem 0.75rem;
  margin: -0.3125rem -0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
}
.qr-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--color-cloud-500);
  opacity: 0;
  transform: scale(0.9);
  transform-origin: center;
  transition: opacity 200ms, transform 200ms cubic-bezier(0.17, 0.67, 0.34, 1);
}
.qr-card:hover::before {
  opacity: 0.9;
  transform: scale(1);
}
.qr-name {
  font-size: 1rem;
  font-weight: 600;
}
.qr-card:hover .qr-name {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.qr-desc {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ---------- 首页三区 grid（2fr 1fr） ---------- */
.home-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem 4rem;
  align-items: start;
  padding: 0 0 2rem;
}
.col-newest {
  min-width: 0;
}

/* 区域标题（小号大写粉字） */
.section-title,
.side-title {
  margin: 0 0 2.25rem;
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
}
.section-lead {
  margin: -1.5rem 0 2.25rem;
  font-size: 0.9375rem;
  color: var(--color-gray-500);
}
.section-lead a {
  color: var(--color-primary);
  text-decoration: none;
}
.section-lead a:hover {
  text-decoration: underline;
}

/* ---------- 最新收录条目（无框无卡） ---------- */
.entry {
  position: relative;
  display: block;
  margin: 0 0 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.entry-title {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding-inline: 4px;
  margin-inline: -4px;
  border-radius: 2px;
  color: inherit;
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 600;
  outline-offset: 4px;
}
.entry-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.entry-summary {
  margin-block: 16px;
  font-size: 1rem;
  color: var(--color-gray-700);
  white-space: normal;
}
.entry-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.entry-meta {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--color-gray-500);
  transform: translateY(1.5px);
}
.entry-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.entry-more:hover {
  text-decoration: none;
}
.entry-arrow {
  position: relative;
  margin-left: 8px;
  transform: translateY(-5px);
}
.entry-arrow path {
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 125ms;
}
.entry-arrow path:nth-child(2) { transition-delay: 0ms; }
.entry-arrow path:nth-child(3) { transition-delay: 125ms; }
.entry-arrow path:nth-child(4) { transition-delay: 250ms; }
.entry-more:hover .entry-arrow path { opacity: 1; }
.entry-more:hover .entry-arrow path:nth-child(1) { opacity: 1; }

/* Show more（250px 居中深色按钮） */
#latest-more {
  margin: 0;
}
.show-more {
  --button-bg: var(--color-gray-900);
  --button-bg-highlight: var(--color-gray-800);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 250px;
  max-width: 100%;
  margin: 1rem auto 0;
  height: 2.625rem;
  padding: 0 1rem;
  border: none;
  border-radius: 4px;
  box-shadow: none;
  background: var(--button-bg);
  color: var(--color-background);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms;
}
.show-more:hover {
  background: var(--button-bg-highlight);
}
.show-more svg {
  display: block;
  transition: transform 200ms;
}
.show-more:hover svg {
  transform: translateY(2px);
}

/* ---------- 侧栏 ---------- */
.col-side {
  min-width: 0;
}
.side-block {
  margin-bottom: 4.5rem;
}
.side-popular {
  position: sticky;
  top: calc(5rem + 32px);
}

/* 分类：胶囊（装饰块） */
.domain-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.domain-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  isolation: isolate;
  padding: 0.4375rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
}
.domain-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--color-cloud-500);
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center;
  transition: opacity 200ms, transform 250ms cubic-bezier(0.17, 0.67, 0.34, 1);
}
.domain-item:hover {
  color: var(--color-primary);
}
.domain-item:hover .domain-count {
  color: inherit;
}
.domain-item .pop-arrow {
  margin-top: 0;
  margin-right: 10px;
  transition: transform 200ms;
}
.domain-item:hover .pop-arrow {
  transform: translateX(4px);
}
.domain-item:hover::before {
  opacity: 1;
  transform: scale(1);
}
.domain-bar {
  display: none;
}
.domain-count {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}
.domain-more {
  font-weight: 500;
}
.domain-more::before {
  background: var(--color-gray-100);
}

/* 高频问题：宽松无框列表 */
.pop-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pop-list a.pop-item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4375rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
}
.pop-list a.pop-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--color-cloud-500);
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center;
  transition: opacity 200ms, transform 250ms cubic-bezier(0.17, 0.67, 0.34, 1);
}
.pop-list a.pop-item:hover {
  color: var(--color-primary);
}
.pop-list a.pop-item:hover::before {
  opacity: 1;
  transform: scale(1);
}
.pop-list a.pop-item:hover .pop-arrow {
  transform: translateX(4px);
}
.pop-arrow {
  flex: none;
  margin-top: 0;
  margin-right: 10px;
  transition: transform 200ms;
}

/* ---------- 页脚（波浪曲线过渡 + 三列分组 + 版权行） ---------- */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 0;
  background: linear-gradient(to bottom, var(--color-sky-from), var(--color-sky-to));
  color: var(--sky-text);
}
.footer-wave {
  display: block;
  width: 100%;
  height: 90px;
  color: var(--color-cloud-500);
  opacity: 0.95;
  margin-bottom: 2.75rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border: none;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.footer-col h4 {
  display: block;
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-text);
  border-bottom: 1px solid color-mix(in srgb, var(--sky-text) 20%, transparent);
}
.footer-col a {
  display: inline-block;
  padding-inline: 4px;
  margin-inline: -4px;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 2px;
}
.footer-col a:hover {
  font-weight: 500;
  color: var(--color-text);
}
.footer-brand {
  max-width: 22rem;
}
.footer-brand .brand {
  color: var(--sky-text);
  margin-bottom: 0.5rem;
}
.footer-brand .brand-mark {
  background: var(--color-gray-900);
  color: var(--color-background);
}
.footer-brand p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}
.footer-blurb {
  margin-top: 3rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0.5rem 2rem;
  align-content: start;
}
.footer-links a {
  display: inline-block;
  padding-inline: 4px;
  margin-inline: -4px;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 2px;
}
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--sky-text) 25%, transparent);
  font-size: 0.75rem;
  color: var(--sky-text);
  opacity: 0.9;
}

/* ---------- 左侧锚点圆点导航（dot-nav：竖线 + 4 点快速下拉） ---------- */
.dot-nav {
  position: fixed;
  left: 28px;
  top: 50%;
  translate: 0 -50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 14px 6px;
}
.dot-nav::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  translate: -50% 0;
  width: 2px;
  border-radius: 2px;
  background: var(--color-gray-300);
}
.dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gray-300);
  transition: background 200ms, transform 200ms, box-shadow 200ms;
}
.dot:hover {
  background: var(--color-primary);
  transform: scale(1.3);
}
.dot.active {
  background: var(--color-primary);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent);
}
.dot:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--color-gray-900);
  color: var(--color-background);
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms;
}
.dot:hover::after {
  opacity: 1;
}

/* ---------- 响应式（窄屏：单列） ---------- */
@media (max-width: 1200px) {
  .dot-nav { display: none; }
}

@media (max-width: 1080px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .col-newest {
    margin-top: 0;
  }
  .side-popular {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding-inline: 20px;
  }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 0.6rem;
    gap: 0.5rem;
  }
  .nav-actions {
    margin-left: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-actions .btn {
    padding: 0.42rem 0.55rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar,
  .nav-actions::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    height: 2.25rem;
    flex: 0 0 auto;
  }
  .quick-routes {
    gap: 1rem;
  }
  .site-intro {
    height: 96px;
  }
  .site-intro--short {
    height: 72px;
  }
  .site-intro--tall {
    height: 128px;
  }
  /* 移动端背景缩短：整套背景等比缩小保留——太阳/月亮/星星/飘线不删除只缩小 */
  .hero-sun {
    width: 30px;
    height: 30px;
    top: 12%;
    right: 7%;
  }
  .hero-moon {
    width: 22px;
    height: 22px;
    top: 16%;
    right: 9%;
  }
  .hero-puff {
    width: 52px;
    opacity: 0.5;
  }
  .puff-1 { top: 8%; left: 4%; }
  .puff-2 { top: 38%; left: 34%; width: 38px; }
  .puff-3 { top: 10%; right: 3%; width: 42px; }
  .squiggle {
    width: 64px;
  }
  .site-intro--short .squiggle {
    width: 52px;
  }
  .intro-bg .hero-cloud {
    height: 52px;
    bottom: 0;
  }
  .site-intro--short .hero-cloud {
    height: 40px;
  }
  .site-intro--tall .hero-cloud {
    height: 60px;
  }
  .home-head {
    padding: 2.5rem 0 2rem;
  }
  .home-head-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-card {
    margin-top: 0;
  }
  .footer {
    padding-top: 0;
  }
  .footer-wave {
    height: 56px;
    margin-bottom: 2rem;
  }
  /* 全站移动端（2026-09-02 首轮）：数据表横滚（display:block 保留列布局）+ 行内长代码断行 */
  table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  :not(pre) > code {
    overflow-wrap: anywhere;
  }
}

/* ---------- 状态页表格（细分隔线、hover 行、等宽代码列） ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
th, td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-gray-200);
}
th {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}
td code {
  font-size: 0.875rem;
}
tr:hover td {
  background: var(--color-cloud-100);
}

/* 时效标签（首页最新收录条目：新鲜/临期/待重测） */
.freshness {
  font-size: .82rem;
  font-weight: 600;
}
.f-fresh { color: #3ddc84; }
.f-warn  { color: #ad6800; }
.f-stale { color: #c73e3e; }
html[data-theme="dark"] .f-fresh { color: #3ddc84; }
html[data-theme="dark"] .f-warn  { color: #fbbf24; }
html[data-theme="dark"] .f-stale { color: #f87171; }

/* ---- 全库搜索增强（L79）：类型徽章 + 各类计数 + 命中高亮 ---- */
.search-counts {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  padding: 2px 10px 8px;
  border-bottom: 1px solid var(--color-gray-100);
  margin-bottom: 4px;
}
.search-results .hit {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.search-results .hit:hover,
.search-results .hit[aria-selected="true"] {
  background: var(--color-gray-100);
}
.search-results .search-msg {
  margin: 6px 10px;
}
.search-results .search-empty {
  margin: 2px 10px;
  padding-top: 6px;
}
.search-results .search-more {
  margin: 4px 2px 0;
  padding-top: 4px;
  border-top: 1px solid var(--color-gray-100);
  font-size: 0.875rem;
}
.hit-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0 8px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: 1px;
  background: var(--color-gray-100);
  color: var(--color-text);
}
.b-experience { background: var(--color-cloud-300); }
.b-tool { background: var(--color-cloud-100); }
.b-combo { background: var(--color-gray-200); }
.search-results mark {
  background: #ffd54d;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
html[data-theme="dark"] .search-results mark {
  background: #8a6d00;
  color: #fff;
}


/* ---------- 代码块一键复制按钮（全局；与 GitHub 代码块配色同源，明暗自适应） ---------- */
.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
  font-family: inherit;
  color: #57606a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d0d7de;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(27, 31, 36, 0.06);
  transition: background 150ms, border-color 150ms, color 150ms;
}
.copy-btn:hover {
  background: #fff;
  border-color: #afb8c1;
  color: #1f2328;
}
.copy-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
html[data-theme="dark"] .copy-btn {
  color: #c9d1d9;
  background: #21262d;
  border-color: #30363d;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .copy-btn:hover {
  background: #30363d;
  border-color: #454c54;
  color: #fff;
}
pre.has-copy {
  position: relative;
  padding-top: 2.6rem;
}


/* ---------- 移动端 R1（2026-09-02）：抽屉导航。html.js 才启用；无 JS 回退为原两行导航 ---------- */
/* 桌面：抽屉容器 display:contents 不产生盒子，导航顺序/布局与改前一致 */
html.js .nav-drawer { display: contents; }
html.js .drawer-head { display: none; }
html.js .drawer-close { display: none; }
html.js .drawer-actions { display: none; }
html.js .nav-burger { display: none; }
html.js .nav-backdrop { display: none; }

@media (max-width: 720px) {
  /* 顶栏单行：品牌 + 主题 + 汉堡 */
  html.js .nav-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-block: 0.45rem;
  }
  html.js .nav-actions {
    margin-left: auto;
    flex-wrap: nowrap;
    overflow: visible;
  }
  /* 顶栏只留主题切换；Agent/语言/GitHub 以副本进抽屉底部 */
  html.js .nav-actions .btn:not(#theme-toggle) { display: none; }
  html.js .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.625rem;
    height: 2.625rem;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--color-text);
    cursor: pointer;
  }
  html.js .nav-burger:hover { color: var(--color-primary); }
  html.js .nav-burger:focus-visible,
  html.js .drawer-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
  }

  /* 抽屉本体：左侧滑入 */
  html.js .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(85vw, 21rem);
    margin: 0;
    padding: 0.75rem 0.875rem 1.5rem;
    background: var(--color-background);
    border-right: 1px solid var(--color-gray-200);
    box-shadow: 0 0 2.5rem rgba(13, 15, 18, 0.28);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-106%);
    visibility: hidden;
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 260ms;
  }
  body.nav-open .nav-drawer {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  html.js .drawer-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 0.25rem;
  }
  html.js .drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--color-text);
    cursor: pointer;
  }
  html.js .drawer-close:hover { color: var(--color-primary); }

  /* 主栏目竖排大行 */
  html.js .nav-drawer .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    order: 0;
    width: 100%;
    gap: 0.125rem;
    overflow: visible;
    margin: 0;
  }
  html.js .nav-drawer .nav-links a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.125rem;
    height: auto;
    padding: 0.55rem 0.875rem;
    font-size: 1.0625rem;
    font-weight: 500;
    white-space: normal;
    border-radius: 8px;
  }
  html.js .nav-drawer .nav-links a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
  }
  html.js .nav-drawer .nav-links a.active {
    color: var(--color-primary);
    background: var(--color-gray-100);
  }

  /* 抽屉底部：Agent / 语言切换 / GitHub */
  html.js .drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
  }
  html.js .drawer-actions .btn { width: 100%; }

  /* 遮罩 + 背景滚动锁 */
  html.js .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(13, 15, 18, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  html.js body.nav-open { overflow: hidden; }
}


/* 首页整块可点 hover 提示（2026-09-02 增补：仅交互态，静态视觉不变；与侧栏胶囊同款主题蓝） */
.story-card[data-href],
article.entry[data-href] { cursor: pointer; }
.story-card[data-href]:hover h2,
.story-card[data-href]:hover .story-link,
article.entry[data-href]:hover .entry-title,
article.entry[data-href]:hover .entry-more,
.story-card[data-href]:focus-within h2,
article.entry[data-href]:focus-within .entry-title { color: var(--color-primary); }
.story-card[data-href]:hover .story-link,
article.entry[data-href]:hover .entry-title {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
