/* ============================================================
   云光 · 冷调设计系统  v1
   空气感光晕 + 玻璃质感 + 钢青蓝 男性化技术风
   - 晨雾冷白底，缓慢呼吸的冷光晕 + 极细噪点颗粒
   - 钢青蓝主强调 + 琥珀金点缀
   - 卡片统一玻璃质感（毛玻璃 + 细描边 + 轻投影）
   - 默认浅色（html[data-theme="light"]），保留深色方案
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 底色：中性晨雾，微冷 */
  --bg: #f4f5f6;
  --bg-soft: #eef2f6;
  --bg-panel: #ffffff;

  --ink: #16212b;
  --ink-2: #34434f;
  --ink-3: #6b7c8c;
  --ink-4: #9aaab9;

  --line: rgba(20, 30, 40, 0.09);
  --line-2: rgba(20, 30, 40, 0.16);

  /* 强调：钢青蓝（沉稳男性化）+ 琥珀金 */
  --accent: #3a6ea1;
  --accent-deep: #2a547f;
  --accent-hover: #2f5f8e;
  --accent-soft: rgba(58, 110, 161, 0.12);
  --accent-softer: rgba(58, 110, 161, 0.06);
  --accent-ink: #ffffff;
  --warm: #c9832c;
  --warm-soft: rgba(201, 131, 44, 0.16);

  /* 玻璃/材质 */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-weak: rgba(255, 255, 255, 0.42);

  --code-bg: #16212b;
  --code-ink: #e6edf5;

  --shadow-glass: 0 1px 1px rgba(20, 30, 40, 0.04), 0 14px 42px -16px rgba(45, 70, 105, 0.30);
  --shadow-lift: 0 2px 4px rgba(20, 30, 40, 0.05), 0 30px 74px -22px rgba(45, 70, 105, 0.44);
  --shadow-sm: 0 1px 2px rgba(20, 30, 40, 0.05);
  --shadow-md: 0 14px 44px -18px rgba(45, 70, 105, 0.42);
  --shadow-lg: 0 30px 84px -22px rgba(45, 70, 105, 0.48);

  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --maxw: 1420px;
  --sidebar-w: 300px;
  --read-w: 860px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 深色方案 */
[data-theme="dark"] {
  --bg: #0d131b;
  --bg-soft: #111a25;
  --bg-panel: #101826;

  --ink: #e7ecf2;
  --ink-2: #b6c0cc;
  --ink-3: #7c8a99;
  --ink-4: #54616f;

  --line: rgba(231, 236, 242, 0.08);
  --line-2: rgba(231, 236, 242, 0.15);

  --accent: #6fa2d6;
  --accent-deep: #8ab4e0;
  --accent-hover: #83acd9;
  --accent-soft: rgba(111, 162, 214, 0.16);
  --accent-softer: rgba(111, 162, 214, 0.08);
  --accent-ink: #0b1220;
  --warm: #e0a45e;
  --warm-soft: rgba(224, 164, 94, 0.18);

  --glass: rgba(18, 27, 40, 0.6);
  --glass-strong: rgba(20, 31, 46, 0.82);
  --glass-weak: rgba(255, 255, 255, 0.04);

  --code-bg: #05080d;
  --code-ink: #d7e0ec;

  --shadow-glass: 0 1px 1px rgba(0, 0, 0, 0.2), 0 16px 46px -16px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.25), 0 34px 80px -22px rgba(0, 0, 0, 0.7);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

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

/* 背景光晕 + 噪点：fixed 全屏层，不随滚动 */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -10%, var(--bg-soft) 0%, var(--bg) 55%),
    radial-gradient(130% 100% at 95% 5%, var(--bg-soft) 0%, transparent 60%);
}
.aurora .orb {
  position: absolute; border-radius: 50%; opacity: .8;
}
.aurora .orb--a {
  width: 560px; height: 560px; left: -130px; top: -150px;
  background: radial-gradient(circle at 40% 40%, rgba(120, 165, 210, 0.5), transparent 68%);
  animation: drift-a 22s var(--ease) infinite alternate;
}
.aurora .orb--b {
  width: 500px; height: 500px; right: -150px; top: 60px;
  background: radial-gradient(circle at 40% 40%, rgba(90, 130, 175, 0.42), transparent 68%);
  animation: drift-b 26s var(--ease) infinite alternate;
}
.aurora .orb--c {
  width: 560px; height: 560px; left: 36%; top: -70px;
  background: radial-gradient(circle at 50% 50%, rgba(205, 150, 80, 0.24), transparent 72%);
  animation: drift-c 30s var(--ease) infinite alternate; opacity: .6;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.028'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,30px,0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-36px,44px,0) scale(1.1); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-28px,-30px,0) scale(1.06); } }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

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

/* ---------- 3. 布局 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container--read { max-width: calc(var(--read-w) + 56px); }

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 38px;
  align-items: start;
}
.layout-split__main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.layout-split__aside { display: grid; gap: 16px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.kicker::before { content: ""; width: 24px; height: 1.5px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
}

/* ---------- 4. 顶部导航（细长悬浮胶囊，通栏） ---------- */
.topnav {
  position: sticky; top: 16px; z-index: 100;
  width: 100%;
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 7px 22px;
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
  transition: box-shadow 0.3s var(--ease);
}
.topnav__inner {
  display: flex; align-items: center; gap: 22px;
  height: 46px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; line-height: 1; }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.brand__logo {
  display: grid; place-items: center;
  width: 29px; height: 29px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #3a6ea1, #2a547f 65%, #c9832c 145%);
  color: #fff; font-weight: 700; font-size: 0.84rem;
  box-shadow: 0 4px 14px -3px rgba(58, 110, 161, 0.55);
}
.brand b { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }
.brand .brand__sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-links a.router-link-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.topnav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass-weak); color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 0 18px; height: 38px;
  color: #fff; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 6px 20px -6px rgba(58, 110, 161, 0.6);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-decoration: none;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -6px rgba(58, 110, 161, 0.7); }

/* ---------- 5. 按钮 / 输入 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 999px; padding: 10px 22px;
  font-size: 0.93rem; font-weight: 600; transition: all 0.2s var(--ease);
}
.btn--accent { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: 0 8px 24px -8px rgba(58, 110, 161, 0.68); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(58, 110, 161, 0.78); }
.btn--ghost { background: var(--glass); color: var(--ink-2); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--accent); background: var(--accent-softer); border-color: transparent; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.input {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--glass-weak); padding: 0 8px 0 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--ink);
}
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.input input { border: none; outline: none; background: transparent; color: var(--ink); font-size: 0.92rem; padding: 11px 0; width: 100%; }
.input input::placeholder { color: var(--ink-3); }

/* ---------- 6. 页头 / 面包屑 ---------- */
.page-head { padding: 40px 0 20px; }
.page-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 690;
  letter-spacing: -0.03em; line-height: 1.16; margin: 16px 0 0; color: var(--ink);
}
.page-head h1 .accent {
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 60%, var(--warm) 125%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { color: var(--ink-2); font-size: 1rem; margin: 12px 0 0; }

.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-4); }
.breadcrumb .cur { color: var(--ink); font-weight: 500; }

/* 排序分段 */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0 20px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--glass-weak); padding: 3px; }
.seg button { padding: 8px 20px; background: transparent; border: none; font-size: 0.88rem; color: var(--ink-2); border-radius: 999px; transition: all 0.15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- 7. 首屏 Hero（矮版简介） ---------- */
.hero { padding: 46px 0 28px; }
.hero__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.hero__label::before { content: ""; width: 24px; height: 1.5px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }
.hero h1 {
  margin: 0; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.16;
  font-weight: 690; letter-spacing: -0.03em; color: var(--ink); max-width: 20em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 55%, var(--warm) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 14px 0 0; max-width: 60ch; color: var(--ink-2); font-size: 1rem; }
.hero__cta { display: flex; gap: 12px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.hero h1:not([class]) + .hero__cta { margin-top: 26px; }

.stats { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.stat .n { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat .n em { font-style: normal; color: var(--accent); }
.stat .l { font-size: 0.78rem; color: var(--ink-3); margin-top: 4px; letter-spacing: 0.05em; }

/* ---------- 8. 文章卡片 ---------- */
/* 横向条目（列表/首页/标签统一） */
.post-item {
  display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 24px; padding: 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-item--pinned { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.post-item__thumb {
  display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; position: relative;
  background: linear-gradient(135deg, #3a6ea1, #2a547f);
}
.post-item__thumb::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 40% at 78% 22%, rgba(255,255,255,0.32), transparent 70%); }
.post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item__thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,0.9); }
.post-item__thumb .ph svg { width: 44px; height: 44px; opacity: 0.9; }
.post-item__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.post-item__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 8px; }
.post-item__meta .cat { color: var(--catc, var(--accent)); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; }
.post-item__meta .pin { color: var(--accent); font-weight: 700; font-size: 0.78rem; }
.post-item__meta time { color: var(--ink-3); font-size: 0.8rem; }
.post-item__title { font-size: 1.14rem; font-weight: 660; line-height: 1.42; letter-spacing: -0.015em; color: var(--ink); transition: color 0.15s; }
.post-item:hover .post-item__title, .post-item__title:hover { color: var(--accent); }
.post-item__series-summary { margin: 8px 0 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item__foot { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: 0.82rem; align-items: center; }
.post-item__foot b { color: var(--ink-2); font-weight: 600; }
.post-item__foot .dl { display: inline-flex; align-items: center; gap: 6px; }
.post-item__foot svg { width: 14px; height: 14px; }

/* 卡片式网格（可选区块） */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.big-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.big-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.big-card__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a6ea1, #2a547f); overflow: hidden; position: relative; }
.big-card__thumb::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 40% at 80% 20%, rgba(255,255,255,0.32), transparent 70%); }
.big-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.big-card:hover .big-card__thumb img { transform: scale(1.04); }
.big-card__thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,0.9); }
.big-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.big-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--ink-3); align-items: center; }
.big-card__meta .cat { color: var(--catc, var(--accent)); font-weight: 600; }
.big-card__meta .pin { color: var(--accent); font-weight: 700; }
.big-card__title { font-size: 1.32rem; font-weight: 680; line-height: 1.32; letter-spacing: -0.02em; margin: 0; color: var(--ink); transition: color 0.15s; }
.big-card__title:hover { color: var(--accent); }
.big-card__summary { color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.big-card__foot { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-3); }
.big-card__foot b { color: var(--ink-2); font-weight: 600; }
.big-card__foot .dl { display: inline-flex; align-items: center; gap: 6px; }
.big-card__foot svg { width: 14px; height: 14px; }
.big-card__more { margin-left: auto; color: var(--accent); font-weight: 600; }

/* ---------- 9. 侧边栏 widget ---------- */
.layout-split__aside .widget { position: static; }
.widget {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
}
.layout-split__aside { position: sticky; top: 110px; }
.layout-split__aside .widget { margin-bottom: 16px; }
.widget__title { font-size: 1rem; font-weight: 680; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.widget__title::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--warm)); }

.widget-about { display: flex; flex-direction: column; gap: 14px; }
.widget-about__top { display: flex; gap: 14px; align-items: center; }
.widget-about__avatar { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; flex: none; }
.widget-about__avatar svg { width: 100%; height: 100%; }
.widget-about__name { font-weight: 680; font-size: 1.04rem; }
.widget-about__role { font-size: 0.8rem; color: var(--ink-3); margin-top: 2px; }
.widget-about__desc { font-size: 0.86rem; color: var(--ink-2); line-height: 1.65; margin: 0; }
.widget-about__btns { display: flex; gap: 10px; }
.widget-about__btns .btn { flex: 1; font-size: 0.82rem; padding: 9px 12px; }

.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.widget-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-xs); font-size: 0.9rem; color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.widget-list a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.widget-list a:hover { background: var(--accent-softer); color: var(--accent); }
.widget-list a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--wc, var(--accent)) 75%, transparent); }
.widget-list a:nth-child(8n+1)::before { --wc: var(--accent); }
.widget-list a:nth-child(8n+2)::before { --wc: var(--warm); }
.widget-list a:nth-child(8n+3)::before { --wc: var(--accent); }
.widget-list a:nth-child(8n+4)::before { --wc: var(--warm); }
.widget-list .cnt { font-size: 0.78rem; color: var(--cntc, var(--ink-3)); background: var(--accent-softer); border-radius: 99px; padding: 2px 9px; }
.widget-list .num { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); font-weight: 600; }

.widget-rank { display: grid; gap: 2px; }
.widget-rank .rank-item { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: var(--radius-xs); transition: background 0.15s; }
.widget-rank .rank-item:hover { background: var(--accent-softer); }
.widget-rank .rank-no { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--ink-4); min-width: 24px; }
.widget-rank .rank-item:nth-child(1) .rank-no { color: var(--accent); }
.widget-rank a { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; transition: color 0.15s; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-rank .rank-item:hover a { color: var(--accent); }

/* 带缩略图的紧凑列表 */
.widget-media { display: grid; gap: 2px; }
.widget-media a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 11px; align-items: center; padding: 7px 6px; border-radius: var(--radius-xs); transition: background 0.15s; color: var(--ink-2); }
.widget-media a:hover { background: var(--accent-softer); }
.widget-media__thumb {
  width: 46px; height: 46px; border-radius: var(--radius-xs); overflow: hidden; flex: none; position: relative;
  background: linear-gradient(135deg, var(--mc, #3a6ea1), var(--mc2, #2a547f));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.9rem;
}
.widget-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-media__t { font-size: 0.86rem; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s; }
.widget-media a:hover .widget-media__t { color: var(--accent); }
.widget-media__m { font-size: 0.72rem; color: var(--ink-3); margin-top: 3px; }
.widget-media a:nth-child(odd) .widget-media__thumb { --mc: #3a6ea1; --mc2: #2a547f; }
.widget-media a:nth-child(even) .widget-media__thumb { --mc: #c9832c; --mc2: #a86a1f; }

.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-tags a { padding: 5px 12px; border-radius: 99px; font-size: 0.8rem; background: var(--glass-weak); border: 1px solid var(--line); color: var(--ink-2); transition: all 0.16s var(--ease); }
.widget-tags a:hover { color: var(--accent); border-color: transparent; background: var(--accent-soft); transform: translateY(-1px); }

.widget-sub { display: grid; gap: 10px; }
.widget-sub a { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); padding: 9px 12px; border-radius: var(--radius-xs); border: 1px solid var(--line); transition: all 0.15s; }
.widget-sub a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.widget-sub svg { width: 16px; height: 16px; }

.widget-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-xs); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); font-size: 0.86rem; line-height: 1.6; color: var(--ink-2); }
.widget-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }

.widget-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.widget-links a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--glass-weak); color: var(--ink-2); font-size: 0.84rem; transition: all 0.15s; }
.widget-links a:hover { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.widget-links svg { width: 14px; height: 14px; flex: none; }

/* 站点统计 / 订阅 */
.stat-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-mini a { text-align: center; padding: 10px 4px; border-radius: var(--radius-xs); background: var(--glass-weak); border: 1px solid var(--line); transition: all 0.15s; }
.stat-mini a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.stat-mini b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--sc, var(--accent)); }
.stat-mini a:nth-child(2n) b { --sc: var(--accent); }
.stat-mini a:nth-child(3n) b { --sc: var(--warm); }
.stat-mini span { font-size: 0.72rem; color: var(--ink-3); }

.sub-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sub-btns a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--glass-weak); color: var(--ink-2); font-size: 0.74rem; transition: all 0.15s; }
.sub-btns a:hover { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.sub-btns svg { width: 16px; height: 16px; }

/* ---------- 10. 文章正文 prose ---------- */
.prose { font-size: 1.04rem; line-height: 1.9; color: var(--ink); max-width: var(--read-w); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 1.5em 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 1.9em 0 0.8em; scroll-margin-top: 108px; }
.prose h2 { font-size: 1.5rem; padding-bottom: 0.4em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.24rem; }
.prose h4 { font-size: 1.08rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-2); background: var(--accent-softer); border-radius: 0 12px 12px 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: 0.45em 0; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--accent-softer); padding: 0.15em 0.45em; border-radius: 6px; }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 20px 22px; border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.75; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prose pre code { background: none; padding: 0; border: none; font-size: 1em; color: inherit; }
.prose img { border-radius: var(--radius-sm); margin: 1.8em auto; box-shadow: var(--shadow-md); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--glass-weak); font-weight: 600; }

/* ---------- 11. 文章详情 ---------- */
.article-head { padding: 26px 0 22px; }
.article-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 720; line-height: 1.28; letter-spacing: -0.02em; margin: 18px 0 18px; color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; color: var(--ink-3); align-items: center; }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-meta .dl { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); padding: 18px 20px; box-shadow: var(--shadow-glass); }
.toc nav { display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: var(--radius-xs); font-size: 0.88rem; color: var(--ink-2); transition: background 0.15s, color 0.15s; }
.toc a:hover { background: var(--accent-softer); color: var(--accent); }
.toc a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.toc a.lv3 { padding-left: 28px; font-size: 0.82rem; }

.article-tags { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }
.article-tags a { padding: 6px 13px; border-radius: 99px; font-size: 0.84rem; background: var(--glass-weak); color: var(--ink-2); border: 1px solid var(--line); transition: all 0.15s; }
.article-tags a:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-nav a { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--glass); transition: all 0.18s var(--ease); }
.post-nav a:hover { border-color: transparent; background: var(--accent-softer); transform: translateY(-2px); }
.post-nav .dir { font-size: 0.74rem; color: var(--ink-3); display: block; margin-bottom: 8px; letter-spacing: 0.04em; }
.post-nav .t { font-weight: 660; font-size: 0.94rem; line-height: 1.45; }
.post-nav a.next { text-align: right; }

.share-bar { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.share-bar__label { font-size: 0.82rem; color: var(--ink-3); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-weak); font-size: 0.86rem; color: var(--ink-2); transition: all 0.15s var(--ease); }
.share-btn:hover { border-color: transparent; color: var(--accent); background: var(--accent-soft); }
.share-btn.is-active { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.share-btn svg { width: 15px; height: 15px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related-card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); transition: all 0.18s var(--ease); }
.related-card:hover { border-color: transparent; background: var(--accent-softer); transform: translateY(-3px); }
.related-card .cat { font-size: 0.76rem; color: var(--catc, var(--accent)); font-weight: 600; }
.related-grid .related-card:nth-child(2n) .cat { --catc: var(--warm); }
.related-card .t { font-size: 1rem; font-weight: 650; line-height: 1.5; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.related-card .t:hover { color: var(--accent); }
.related-card time { font-size: 0.78rem; color: var(--ink-3); }

.comments { margin-top: 44px; }
.comments__head { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 1.3rem; font-weight: 700; }
.comments__count { font-size: 0.84rem; color: var(--ink-3); font-weight: 500; }
.comment-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--glass); box-shadow: var(--shadow-glass); }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form label { display: grid; gap: 8px; font-size: 0.84rem; color: var(--ink-2); margin-bottom: 14px; }
.comment-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--glass-weak); color: var(--ink); font-size: 0.94rem; padding: 13px; resize: vertical; min-height: 104px; outline: none; font-family: inherit; line-height: 1.6; }
.comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.comment-form__hint { font-size: 0.8rem; color: var(--ink-3); }

.comment-list { display: grid; gap: 0; margin-top: 4px; }
.comment-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-item__avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.comment-item__name { font-weight: 600; font-size: 0.94rem; }
.comment-item__time { font-size: 0.78rem; color: var(--ink-3); }
.comment-item__content { color: var(--ink-2); font-size: 0.96rem; line-height: 1.7; margin: 0 0 10px; }
.comment-item__reply { font-size: 0.82rem; color: var(--accent); cursor: pointer; background: none; border: none; padding: 0; }
.comment-item__reply:hover { text-decoration: underline; }
.comment-children { margin-left: 48px; }
.comment-empty { color: var(--ink-3); font-size: 0.92rem; }

/* ---------- 12. 栏目头 / 归档 / 标签 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 40px 0 20px; }
.section-head h2 { font-size: 1.3rem; font-weight: 680; letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--warm)); }
.section-head a { font-size: 0.88rem; color: var(--ink-3); transition: color 0.15s; }
.section-head a:hover { color: var(--accent); }

.tl { display: grid; gap: 14px; }
.tl-year { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-glass); }
.tl-year__label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.tl-year__label b { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.tl-year__label span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.12em; }
.tl-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); border-radius: var(--radius-xs); transition: background 0.15s; }
.tl-item:last-child { border-bottom: none; }
.tl-item:hover { background: var(--accent-softer); }
.tl-item__date { font-size: 0.8rem; color: var(--ink-3); }
.tl-item__link { font-weight: 600; transition: color 0.15s; }
.tl-item:hover .tl-item__link { color: var(--accent); }

.tag-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-wall a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  font-size: 0.98rem; font-weight: 600; color: var(--ink-2); transition: all 0.16s var(--ease);
}
.tag-wall a:nth-child(odd) { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-softer); color: var(--accent); }
.tag-wall a:nth-child(even) { border-color: color-mix(in srgb, var(--warm) 30%, transparent); background: var(--warm-soft); color: var(--warm); }
.tag-wall a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tag-wall a small { font-family: var(--font-mono); font-size: 0.74rem; opacity: 0.7; }

/* ---------- 13. 分页 / 骨架 / 空态 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.pagination .pages { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-3); }
.pagination .btn { padding: 0 18px; height: 42px; }

.skeleton { border-radius: var(--radius-xs); background: linear-gradient(100deg, var(--line-2) 10%, var(--line) 30%, var(--line-2) 50%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { padding: 70px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--glass-weak); }
.empty p { color: var(--ink-3); margin: 0; }
.empty p:first-child { font-size: 1.4rem; color: var(--ink-2); margin-bottom: 10px; }

/* ---------- 14. 页脚 ---------- */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--glass-strong); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.footer h4 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 14px; }
.footer__desc { color: var(--ink-2); font-size: 0.9rem; line-height: 1.75; margin: 12px 0 0; max-width: 36ch; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 0.9rem; color: var(--ink-2); width: fit-content; transition: color 0.15s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: center; justify-content: center; gap: 8px 22px; flex-wrap: wrap; padding: 18px 0 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-3); text-align: center; }
.footer__bottom a { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 15. 回顶 ---------- */
.backtop {
  position: fixed; right: 30px; bottom: 30px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
.backtop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.backtop:hover { border-color: transparent; color: var(--accent); background: var(--accent-soft); }
.backtop svg { width: 19px; height: 19px; }

/* ---------- 16. reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .layout-split { grid-template-columns: 1fr; }
  .layout-split__aside { position: static; }
  .card-grid { grid-template-columns: 1fr; }
  .topnav { border-radius: 24px; }
}
@media (max-width: 760px) {
  .container, .topnav {
    padding-left: 20px; padding-right: 20px;
  }
  .topnav { padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .brand .brand__sub { display: none; }
  .post-item { grid-template-columns: 1fr; gap: 16px; }
  .post-item__thumb { aspect-ratio: 16/9; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .post-nav { grid-template-columns: 1fr; }
  .comment-form .row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .hero h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
}

/* ---------- 18. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora .orb { animation: none; }
  .skeleton { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}