/* ==========================================================================
   哈哈米 · hhmi.cn — 烟雾玻璃主题
   纯静态：无框架、无外部字体、无第三方资源。
   颜色、圆角、模糊强度都在 :root 里，改一处即可全站生效。
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Segoe UI Variable Text", "Segoe UI", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --bg: #eef0f7;
  --ink: #0b0b0f;
  --ink-soft: #36363c;
  --muted: #6a6a70;
  --muted-2: #8b8b92;
  --line: rgba(12, 12, 26, 0.09);
  --line-strong: rgba(12, 12, 26, 0.14);
  --accent: #4f61f5;
  --accent-2: #9a63ff;

  --glass-bg: linear-gradient(152deg,
      rgba(255, 255, 255, 0.84) 0%,
      rgba(255, 255, 255, 0.52) 52%,
      rgba(255, 255, 255, 0.66) 100%);
  --glass-border: rgba(255, 255, 255, 0.92);
  --glass-shadow:
      0 34px 90px -46px rgba(22, 24, 64, 0.5),
      0 2px 10px rgba(22, 24, 64, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --glass-shadow-hover:
      0 44px 110px -44px rgba(22, 24, 64, 0.55),
      0 2px 12px rgba(22, 24, 64, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 1);

  --nav-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
  --pill-bg: rgba(255, 255, 255, 0.55);
  --pill-bg-active: rgba(255, 255, 255, 0.85);
  --chip-bg: rgba(255, 255, 255, 0.6);
  --chip-border: rgba(255, 255, 255, 0.9);
  --hover-bg: rgba(255, 255, 255, 0.45);

  --btn-bg: #0b0b0f;
  --btn-ink: #ffffff;
  --btn-shadow: 0 16px 34px -16px rgba(10, 10, 24, 0.7);

  --wrap: 1120px;
  --radius: 28px;
  --radius-lg: 34px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050507;
    --ink: #f5f5f7;
    --ink-soft: #d8d8de;
    --muted: #a1a1a8;
    --muted-2: #83838b;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #8fa2ff;
    --accent-2: #c49bff;

    --glass-bg: linear-gradient(152deg,
        rgba(34, 34, 46, 0.78) 0%,
        rgba(20, 20, 30, 0.56) 52%,
        rgba(30, 30, 44, 0.68) 100%);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-shadow:
        0 34px 90px -46px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --glass-shadow-hover:
        0 44px 110px -44px rgba(0, 0, 0, 0.95),
        0 2px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    --nav-bg: linear-gradient(158deg, rgba(32, 32, 44, 0.82), rgba(16, 16, 24, 0.62));
    --pill-bg: rgba(255, 255, 255, 0.07);
    --pill-bg-active: rgba(255, 255, 255, 0.14);
    --chip-bg: rgba(255, 255, 255, 0.07);
    --chip-border: rgba(255, 255, 255, 0.12);
    --hover-bg: rgba(255, 255, 255, 0.06);

    --btn-bg: #f5f5f7;
    --btn-ink: #0b0b0f;
    --btn-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.9);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
}

::selection {
  background: rgba(122, 140, 255, 0.28);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   环境层：雾气、光斑、颗粒
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(125% 88% at 50% -14%,
      #ffffff 0%,
      #f0f2f9 34%,
      #e6e9f3 70%,
      #dde1ee 100%);
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.58;
  animation: blob-float 46s ease-in-out infinite alternate;
  will-change: transform;
}

.ambient__blob--1 {
  width: 62vw;
  height: 62vw;
  left: -16vw;
  top: -22vw;
  background: radial-gradient(circle at 38% 36%,
      rgba(120, 158, 255, 0.95),
      rgba(120, 158, 255, 0) 66%);
}

.ambient__blob--2 {
  width: 56vw;
  height: 56vw;
  right: -16vw;
  top: -6vw;
  background: radial-gradient(circle at 50% 50%,
      rgba(198, 150, 255, 0.9),
      rgba(198, 150, 255, 0) 66%);
  animation-delay: -9s;
}

.ambient__blob--3 {
  width: 70vw;
  height: 56vw;
  left: 12vw;
  bottom: -32vw;
  background: radial-gradient(circle at 50% 50%,
      rgba(122, 226, 214, 0.62),
      rgba(122, 226, 214, 0) 68%);
  animation-delay: -19s;
}

.ambient__blob--4 {
  width: 44vw;
  height: 44vw;
  right: 6vw;
  bottom: -14vw;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 186, 208, 0.5),
      rgba(255, 180, 205, 0) 68%);
  animation-delay: -28s;
}

.ambient__smoke {
  position: absolute;
  inset: -12%;
  background: url("smoke.svg") center / cover no-repeat;
  opacity: 0.44;
  animation: smoke-drift 120s linear infinite;
  will-change: transform;
}

.ambient__smoke::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: url("smoke.svg") center / cover no-repeat;
  opacity: 0.28;
  transform: scale(1.35);
  animation: smoke-drift 190s linear infinite reverse;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  background: url("grain.svg") center / 200px 200px repeat;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(26, 28, 62, 0.08) 100%);
  pointer-events: none;
}

@keyframes blob-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, 4vh, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-4vw, 6vh, 0) scale(0.96);
  }
}

@keyframes smoke-drift {
  0% {
    transform: translate3d(-2%, 0, 0) rotate(0deg) scale(1.05);
  }
  50% {
    transform: translate3d(2%, -3%, 0) rotate(1.5deg) scale(1.1);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) rotate(0deg) scale(1.05);
  }
}

@media (prefers-color-scheme: dark) {
  .ambient {
    background:
      radial-gradient(125% 88% at 50% -14%,
        #191b2b 0%,
        #0c0c13 42%,
        #07070b 80%,
        #050507 100%);
  }

  .ambient__blob {
    opacity: 0.4;
  }

  .ambient__smoke {
    opacity: 0.45;
    mix-blend-mode: soft-light;
  }

  .ambient__smoke::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: url("smoke.svg") center / cover no-repeat;
  opacity: 0.28;
  transform: scale(1.35);
  animation: smoke-drift 190s linear infinite reverse;
}

.ambient__grain {
    opacity: 0.4;
    mix-blend-mode: soft-light;
  }
}

/* --------------------------------------------------------------------------
   玻璃材质
   -------------------------------------------------------------------------- */

.glass {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(38px) saturate(170%);
  backdrop-filter: blur(38px) saturate(170%);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  :root {
    --glass-bg: linear-gradient(152deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --glass-bg: linear-gradient(152deg, rgba(26, 26, 36, 0.98), rgba(16, 16, 24, 0.96));
    }
  }
}

/* --------------------------------------------------------------------------
   导航
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 20px 0;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  height: 58px;
  margin: 0 auto;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 18px 40px -26px rgba(22, 24, 64, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
    conic-gradient(from 210deg, #a9bcff, #c9a4ff, #8fe3d5, #7f95ff, #a9bcff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px -6px rgba(40, 40, 90, 0.45),
    0 8px 18px -10px rgba(79, 97, 245, 0.9);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.9), transparent 58%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__domain {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a:hover {
  background: var(--pill-bg);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  background: var(--pill-bg-active);
  color: var(--ink);
  font-weight: 500;
}

.nav-links .nav-cta {
  margin-left: 6px;
  padding: 9px 16px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 500;
  box-shadow: var(--btn-shadow);
}

.nav-links .nav-cta:hover {
  background: var(--btn-bg);
  color: var(--btn-ink);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   通用排版
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--btn-shadow);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--glass-border);
  background: var(--pill-bg);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.btn--ghost:hover {
  background: var(--pill-bg-active);
  transform: translateY(-1px);
}

.arrow {
  font-family: var(--font-sans);
}

/* --------------------------------------------------------------------------
   首页 · Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 54px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 92px 24px 30px;
}

.hero__copy {
}

.hero__title {
  margin: 18px 0 0;
  text-wrap: balance;
  font-size: clamp(46px, 5.9vw, 78px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  background: linear-gradient(100deg, #3f4fe0 0%, #8b5cf6 46%, #4aa8c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .hero__title-accent {
    background: linear-gradient(100deg, #a7b6ff 0%, #d3b0ff 48%, #8fe3d5 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.hero__lede {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
  letter-spacing: 0.005em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.hero__panel {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 11.5px;
}

.panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.16);
}

.panel__rows {
  margin: 16px 0 0;
}

.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.panel__row:first-child {
  border-top: 0;
}

.panel__row dt {
  flex: none;
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.panel__row dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  line-height: 1.55;
}

.panel__quote {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12.5px;
}

.panel__foot a {
  color: var(--accent);
  text-decoration: none;
}

.panel__foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel__foot span {
  color: var(--muted-2);
}

/* 数据条 */

.stats {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 10px;
  border-radius: 24px;
}

.stat {
  padding: 4px 22px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat__num {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat__num small {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.stat__label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   区块
   -------------------------------------------------------------------------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 82px 24px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section__title {
  margin: 10px 0 0;
  text-wrap: balance;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.section__more:hover {
  color: var(--accent);
}

/* 精选 */

.featured {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.featured__main {
  padding: 38px 40px 34px;
}

.featured__meta,
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.featured__meta .dot,
.card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.featured__title {
  margin: 16px 0 0;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.featured__title a {
  color: var(--ink);
  text-decoration: none;
}

.featured__title a:hover {
  color: var(--accent);
}

.featured__excerpt {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}

.featured__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.featured__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 38px 34px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(154, 99, 255, 0.12), transparent 70%),
    var(--chip-bg);
}

.featured__aside .quote-mark {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  line-height: 0.55;
  opacity: 0.5;
}

.featured__aside p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.featured__aside span {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* 卡片 */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 24px;
  border-radius: 26px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow-hover);
}

.card__title {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent);
  font-size: 13px;
}

/* 关于条 */

.about-band {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 44px;
  padding: 40px 42px;
  border-radius: var(--radius-lg);
}

.about-band h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-band p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-band p:last-child {
  margin-bottom: 0;
}

.about-band a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.about-band__side {
  margin: 0;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.about-band__side div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.about-band__side div:first-child {
  border-top: 0;
}

.about-band__side dt {
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.about-band__side dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  max-width: var(--wrap);
  margin: 100px auto 0;
  padding: 36px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 0.5fr;
  gap: 32px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.site-footer__brand .brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.site-footer__brand strong {
  font-size: 14.5px;
  font-weight: 600;
}

.site-footer__brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-footer__desc {
  max-width: 42ch;
  margin: 16px 0 0;
  line-height: 1.8;
}

.site-footer__col h2 {
  margin: 2px 0 10px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--ink);
}

.site-footer__legal {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 12px;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__bottom a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: var(--ink);
}

.beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.beian a {
  color: var(--muted);
  text-decoration: none;
}

.beian a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   内页 · 页头
   -------------------------------------------------------------------------- */

.page-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 76px 24px 0;
}

.page-hero__title {
  margin: 12px 0 0;
  text-wrap: balance;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero__sub {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.page-body {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.page-hero--narrow {
  max-width: 820px;
}

.archive-list {
  max-width: 900px;
}

/* --------------------------------------------------------------------------
   归档
   -------------------------------------------------------------------------- */

.year-label {
  margin: 40px 0 12px;
  padding-left: 4px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.year-label:first-child {
  margin-top: 0;
}

.archive-list {
  padding: 8px 10px;
  border-radius: 26px;
}

.archive-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.archive-item:first-child {
  border-top: 0;
}

.archive-item:hover {
  background: var(--hover-bg);
}

.archive-item__date {
  color: var(--muted-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.archive-item__title {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.archive-item__cat {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.archive-item:hover .archive-item__title {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   文章
   -------------------------------------------------------------------------- */

.post-head {
  max-width: 860px;
  margin: 0 auto;
  padding: 62px 24px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.breadcrumb a {
  color: var(--muted-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.post-title {
  margin: 18px 0 0;
  text-wrap: balance;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.post-deck {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.78;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.post-shell {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.post-body {
  padding: 44px 52px 40px;
  border-radius: var(--radius-lg);
}

.prose {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.92;
  letter-spacing: 0.002em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.38em;
}

.prose h2 {
  margin: 2.1em 0 0.72em;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}

.prose h2 + p {
  margin-top: 0;
}

.prose a {
  color: var(--accent);
  text-decoration-color: rgba(79, 97, 245, 0.35);
  text-underline-offset: 4px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose blockquote {
  margin: 1.9em 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--chip-bg);
  color: var(--ink-soft);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post-foot {
  max-width: 860px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 22px;
}

.author-card .brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.author-card__name {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.author-card__meta {
  margin: 3px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.author-card__link {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.post-license {
  margin: 16px 2px 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.pager__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pager__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}

.pager__label {
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.pager__title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.pager__item--next {
  text-align: right;
}

.pager__item--empty {
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   关于 / 隐私
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 0 24px;
  align-items: start;
}

.about-card {
  padding: 38px 40px;
  border-radius: var(--radius-lg);
}

.about-card h2 {
  margin: 2em 0 0.7em;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-card h2:first-child {
  margin-top: 0;
}

.about-card p {
  margin: 0 0 1.2em;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card a {
  color: var(--accent);
  text-underline-offset: 4px;
}

.info-card {
  position: sticky;
  top: 92px;
  padding: 26px 28px;
  border-radius: 26px;
}

.info-card h2 {
  margin: 0 0 14px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-card dl {
  margin: 0;
}

.info-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.info-card div:first-child {
  border-top: 0;
}

.info-card dt {
  color: var(--muted-2);
  font-size: 12.5px;
  white-space: nowrap;
}

.info-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: right;
  line-height: 1.6;
}

.info-card dd a {
  color: var(--ink-soft);
}

.colophon {
  max-width: var(--wrap);
  margin: 24px auto 0;
  padding: 0 24px;
}

.colophon__inner {
  padding: 28px 32px;
  border-radius: 24px;
}

.colophon p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.privacy {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.privacy .glass {
  padding: 40px 46px;
  border-radius: var(--radius-lg);
}

.privacy .prose {
  font-size: 15.5px;
  line-height: 1.9;
}

.privacy .prose h2 {
  font-size: 21px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  padding: 40px 24px;
}

.notfound__card {
  width: 100%;
  max-width: 620px;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.notfound__code {
  margin: 0;
  font-size: clamp(76px, 12vw, 128px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #4f61f5, #9a63ff 55%, #4aa8c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__title {
  margin: 18px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.notfound__text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   动画
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ambient__blob,
  .ambient__smoke {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 70px;
  }

  .hero__copy {
    max-width: 620px;
  }

  .hero__panel {
    max-width: 520px;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .featured__aside {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 26px 40px 32px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .featured__aside .quote-mark {
    font-size: 44px;
  }

  .about-band {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px;
  }

  .about-band__side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    position: static;
    order: -1;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 10px 12px 0;
  }

  .site-nav__inner {
    height: 54px;
    padding: 0 8px 0 12px;
  }

  .brand__domain {
    display: none;
  }

  .nav-links a {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .nav-links a.nav-hide-sm {
    display: none;
  }

  .hero {
    padding: 52px 20px 24px;
  }

  .hero__lede {
    font-size: 16.5px;
  }

  .hero__title {
    letter-spacing: -0.03em;
  }

  .stats {
    padding: 0 20px;
  }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 10px 6px;
  }

  .stat {
    padding: 14px 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-top: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .section {
    padding: 60px 20px 0;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section__more {
    padding-bottom: 0;
  }

  .featured__main {
    padding: 28px 24px 26px;
  }

  .featured__aside {
    padding: 22px 24px 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 22px 20px;
  }

  .about-band {
    padding: 26px 24px;
  }

  .about-band h3 {
    font-size: 22px;
    line-height: 1.45;
  }

  .page-hero {
    padding: 54px 20px 0;
  }

  .page-body {
    padding: 30px 20px 0;
  }

  .archive-item {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 14px;
  }

  .archive-item__date {
    grid-column: 1;
    font-size: 11.5px;
  }

  .archive-item__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 15.5px;
  }

  .archive-item__cat {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .post-head {
    padding: 46px 20px 0;
  }

  .post-shell,
  .post-foot {
    padding: 0 20px;
  }

  .post-body {
    padding: 28px 24px 26px;
  }

  .author-card__link {
    display: none;
  }

  .page-hero__title {
    font-size: 34px;
  }

  .prose {
    font-size: 16.5px;
    line-height: 1.88;
  }

  .prose h2 {
    font-size: 21px;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager__item--next {
    text-align: left;
  }

  .about-grid {
    padding: 0 20px;
  }

  .about-card {
    padding: 28px 24px;
  }

  .privacy {
    padding: 0 20px;
  }

  .privacy .glass {
    padding: 28px 24px;
  }

  .ambient__blob {
    filter: blur(64px);
  }

  .ambient__smoke::after {
    display: none;
  }

  .site-footer {
    margin-top: 70px;
    padding: 28px 20px 32px;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .notfound__card {
    padding: 40px 26px;
  }

  .eyebrow {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .nav-links a.nav-hide-xs {
    display: none;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__actions .btn {
    padding: 13px 20px;
    font-size: 14px;
  }
}
