@charset "utf-8";
/* ============================================================
   合适网 HE4.CN — 全站样式（本地化，无外部依赖）
   ============================================================ */

/* ---------- 1. 变量与主题 ---------- */
:root {
  --brand: #3b5bff;
  --brand-2: #7a3aff;
  --brand-soft: rgba(59, 91, 255, 0.1);
  --accent: #f2a33c;
  --accent-2: #ff7ab8;

  --bg: #f4f6fc;
  --bg-2: #eaeefb;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --line: rgba(18, 22, 48, 0.09);
  --line-strong: rgba(18, 22, 48, 0.16);

  --ink: #12162a;
  --ink-2: #454c6b;
  --muted: #7b839f;

  --shadow-sm: 0 2px 10px rgba(18, 24, 60, 0.06);
  --shadow: 0 10px 30px rgba(18, 24, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(18, 24, 60, 0.14);
  --shadow-brand: 0 16px 40px rgba(59, 91, 255, 0.28);

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --max: 1220px;
  --header-h: 74px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui,
    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia,
    "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --brand: #6b86ff;
  --brand-2: #a06bff;
  --brand-soft: rgba(107, 134, 255, 0.16);
  --accent: #ffb95e;

  --bg: #080b17;
  --bg-2: #0d1224;
  --surface: #111731;
  --surface-2: #161d3c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --ink: #eef1ff;
  --ink-2: #b9c1e2;
  --muted: #8a93b8;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 18px 44px rgba(80, 110, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}

button,
input,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 10px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- 3. 布局与通用 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 163, 60, 0.22);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.section-title small {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-desc {
  max-width: 460px;
  color: var(--ink-2);
  font-size: 15px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(59, 91, 255, 0.38); }
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* 标签 chip */
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

/* 揭示动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 4. 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header.is-stuck {
  height: 64px;
  background: var(--bg); /* 不支持 color-mix 时的兜底 */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 8px 30px rgba(12, 18, 44, 0.08);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(59, 91, 255, 0.35);
  overflow: hidden;
  flex: none;
}
.brand__mark img { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.brand__domain { font-size: 11px; letter-spacing: 0.22em; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav__link:hover { color: var(--brand); background: var(--brand-soft); }
.nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }

[data-theme="dark"] .icon-sun { display: none; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle { display: none; }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: calc(var(--header-h) + 22px) 24px 40px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer__link {
  display: block;
  padding: 16px 4px;
  font-size: 19px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.drawer__link:hover { color: var(--brand); }
.drawer__meta { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ---------- 5. 首屏 Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 76px) 0 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
}
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero__bg::before {
  width: 640px; height: 640px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%);
}
.hero__bg::after {
  width: 620px; height: 620px;
  top: 60px; right: -140px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  opacity: 0.32;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: url("../images/grid.svg");
  background-size: 42px 42px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 45%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: 17px;
  color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero__stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__stat span { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }

/* Hero 右侧视觉 */
.hero__visual { position: relative; min-height: 460px; }
.stack-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card--a {
  width: 66%;
  aspect-ratio: 4 / 3;
  top: 0; left: 0;
  animation: float 9s ease-in-out infinite;
}
.stack-card--b {
  width: 58%;
  aspect-ratio: 4 / 3;
  right: 0; bottom: 10px;
  animation: float 11s ease-in-out infinite reverse;
}
.stack-card__label {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 32, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 700;
}
.float-badge--1 { right: 4%; top: 12%; animation: float 8s ease-in-out infinite; }
.float-badge--2 { left: -2%; bottom: 20%; animation: float 10s ease-in-out infinite 1s; }
.float-badge .ico {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
}
.float-badge .ico.gold { background: rgba(242, 163, 60, 0.16); color: var(--accent); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- 6. 精选文章 ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 26px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.feature-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature-card:hover .feature-card__media img { transform: scale(1.06); }
.feature-card__body { padding: 30px 32px 34px; }
.feature-card__title { font-size: clamp(22px, 2.4vw, 30px); }
.feature-card__excerpt { margin: 14px 0 20px; color: var(--ink-2); font-size: 15px; }
.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

.feature-list { display: grid; gap: 22px; }
.feature-mini {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature-mini:hover {
  transform: translateX(6px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.feature-mini img {
  width: 104px; height: 84px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
}
.feature-mini h4 { font-size: 15.5px; line-height: 1.5; }
.feature-mini .meta { margin-top: 8px; }

/* ---------- 7. 文章卡片网格 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.post-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.07); }
.post-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(9, 13, 30, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 18.5px; line-height: 1.45; }
.post-card:hover .post-card__title { color: var(--brand); }
.post-card__excerpt {
  margin: 12px 0 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.read-more { color: var(--brand); font-weight: 700; }

/* ---------- 8. 分类 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cat-card {
  padding: 26px 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.cat-card__ico {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(242, 163, 60, 0.14));
}
.cat-card h4 { font-size: 16px; }
.cat-card p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 9. 关于我 ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 54px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -160px; bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.16;
}
.about__visual { position: relative; }
.about__visual img.art { border-radius: var(--r-lg); width: 100%; box-shadow: var(--shadow-lg); }
.about__card {
  position: absolute;
  left: 18px; bottom: -26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.about__card img { width: 48px; height: 48px; border-radius: 50%; }
.about__card b { display: block; font-size: 15px; }
.about__card span { font-size: 12.5px; color: var(--muted); }
.about__text h3 { font-size: clamp(26px, 3vw, 34px); }
.about__text p { margin: 18px 0 0; color: var(--ink-2); }
.skills { margin-top: 26px; display: grid; gap: 14px; }
.skill { display: grid; gap: 7px; }
.skill__top {
  display: flex; justify-content: space-between;
  font-size: 13.5px; font-weight: 700;
}
.skill__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}
.skill__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 1.4s var(--ease);
}

/* ---------- 10. 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), transparent);
}
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
}
.timeline time { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 0.08em; }
.timeline h4 { margin: 4px 0 4px; font-size: 17px; }
.timeline p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 11. 订阅条 ---------- */
.subscribe {
  position: relative;
  padding: 58px 54px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2a3ea8, #5b3ad6 55%, #8a3aff);
  box-shadow: var(--shadow-lg);
}
.subscribe::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 90, 0.55), transparent 68%);
}
.subscribe::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/grid.svg");
  background-size: 40px 40px;
  opacity: 0.22;
}
.subscribe__inner { position: relative; z-index: 1; max-width: 620px; }
.subscribe h3 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.subscribe p { margin: 14px 0 26px; color: rgba(255, 255, 255, 0.82); }
.sub-form { display: flex; gap: 12px; flex-wrap: wrap; }
.sub-form input {
  flex: 1 1 260px;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sub-form input::placeholder { color: rgba(255, 255, 255, 0.72); }
.sub-form input:focus { border-color: #fff; background: rgba(255, 255, 255, 0.22); }
.sub-form .btn { background: #fff; color: #2a3ea8; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22); }
.sub-form .btn:hover { transform: translateY(-3px); }
.sub-note { margin: 16px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.sub-note a { text-decoration: underline; }

/* ---------- 12. 页脚 ---------- */
.footer {
  margin-top: 40px;
  padding: 72px 0 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer h5 { font-size: 15px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 14.5px; color: var(--ink-2); }
.footer ul a:hover { color: var(--brand); }
.footer__about p { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 320px; }
.footer__contact { display: grid; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.footer__contact a { color: var(--brand); font-weight: 600; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.social-row a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--brand); }
.footer__beian { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 13. 归档页 ---------- */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + 62px) 0 46px;
  text-align: center;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto 0;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, var(--brand-soft), transparent 70%);
}
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.page-head p { margin: 14px auto 0; max-width: 620px; color: var(--ink-2); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.search-box { position: relative; flex: 0 1 260px; }
.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  outline: none;
}
.search-box input:focus { border-color: var(--brand); }
.search-box .ico { position: absolute; left: 16px; top: 13px; color: var(--muted); font-size: 15px; }

.archive-list { display: grid; gap: 18px; }
.archive-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.archive-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.archive-item img {
  width: 100%; height: 130px;
  object-fit: cover;
  border-radius: var(--r);
}
.archive-item h3 { font-size: 19px; }
.archive-item p {
  margin: 8px 0 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-item__date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.empty-tip { padding: 50px; text-align: center; color: var(--muted); }

.pager { display: flex; justify-content: center; gap: 10px; margin-top: 46px; }
.pager a, .pager span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}
.pager a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 14. 文章详情页 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.post-hero { padding: calc(var(--header-h) + 40px) 0 0; }
.post-hero__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow-lg);
}
.post-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.post-hero__title {
  max-width: 880px;
  margin: 40px auto 0;
  font-size: clamp(28px, 4.2vw, 48px);
  text-align: center;
  line-height: 1.2;
}
.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.post-hero__meta img { width: 34px; height: 34px; border-radius: 50%; }

.post-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 54px 0 20px;
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc h5 { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.toc a {
  display: block;
  padding: 8px 14px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.toc a:hover { color: var(--brand); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 700; background: var(--brand-soft); }

.article {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 760px;
}
.article h2 {
  margin: 46px 0 16px;
  font-size: 26px;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.article h3 { margin: 32px 0 12px; font-size: 20px; color: var(--ink); scroll-margin-top: 100px; }
.article p { margin: 0 0 20px; }
.article ul { margin: 0 0 22px; padding-left: 20px; list-style: none; }
.article ul li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.article ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.article blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface-2);
  color: var(--ink);
  font-style: normal;
}
.article img { border-radius: var(--r); margin: 28px 0; box-shadow: var(--shadow); }
.article pre {
  margin: 26px 0;
  padding: 22px;
  border-radius: var(--r);
  background: #10142a;
  color: #dbe4ff;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.article code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}
.article pre code { background: none; color: inherit; padding: 0; }
.article hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.post-share { display: flex; align-items: center; gap: 12px; margin-top: 30px; }

.author-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px;
  margin-top: 46px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.author-card img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.author-card h4 { font-size: 18px; }
.author-card p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- 15. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 400px; order: 2; }
  .featured { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; padding: 38px; gap: 40px; }
  .about__card { left: 24px; bottom: -20px; }
  .post-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .subscribe { padding: 44px 32px; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__stats { gap: 22px; }
  .hero__stat b { font-size: 25px; }
  .archive-item { grid-template-columns: 1fr; gap: 14px; }
  .archive-item img { height: 180px; }
  .archive-item__date { text-align: left; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .subscribe { padding: 36px 22px; }
  .about { padding: 26px; }
  .about__card { position: static; margin-top: 18px; }
  .float-badge--2 { display: none; }
  .feature-card__body { padding: 24px 22px 28px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 34px; }
  .brand__domain { display: none; }
  .stack-card--a { width: 78%; }
  .stack-card--b { width: 62%; }
  .hero__visual { min-height: 340px; }
  .article { font-size: 16px; }
}
