/* ============================================================================
   卍解 · Bankai Site — style.css
   暗色戏剧化主题：灵压粒子 / 金光卍解 / 能量分隔 / 卡片辉光 / 响应式
   ========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. Design Tokens
 * ------------------------------------------------------------------------ */
:root {
  --bg-0: #04060b;
  --bg-1: #080c14;
  --panel: rgba(13, 18, 30, 0.72);
  --line: rgba(148, 163, 184, 0.14);
  --ink: #e8ecf4;
  --muted: #8b98ab;
  --gold: #f0b429;
  --gold-2: #ffd978;
  --blue: #54c8ff;
  --crimson: #e64545;
  --glow-gold: 0 0 22px rgba(240, 180, 41, 0.35);
  --glow-blue: 0 0 22px rgba(84, 200, 255, 0.2);

  --font-body: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  --font-latin: "Arial Black", "Arial Bold", Impact, Haettenschweiler,
    "PingFang SC", "Microsoft YaHei", sans-serif;

  --nav-h: 68px;
  --maxw: 1120px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.22, 0.7, 0.22, 1);
}

/* ---------------------------------------------------------------------------
 * 2. Reset & Base
 * ------------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(84, 200, 255, 0.07), transparent 60%),
    radial-gradient(1000px 620px at -10% 12%, rgba(240, 180, 41, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 42%);
  background-color: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

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

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

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code,
kbd {
  font-family: Consolas, "Courier New", monospace;
}

::selection {
  background: rgba(240, 180, 41, 0.85);
  color: #1a1206;
}

/* 细滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.55), rgba(84, 200, 255, 0.4));
  border-radius: 99px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--blue));
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 无障碍跳转 */
.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--bg-1);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------------------------
 * 3. 背景层：灵压粒子
 * ------------------------------------------------------------------------ */
.reishi {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#reishi-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------------------
 * 4. 顶部能量进度条
 * ------------------------------------------------------------------------ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 3px;
  pointer-events: none;
}
.progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--blue));
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.8);
  transition: width 0.08s linear;
}

/* ---------------------------------------------------------------------------
 * 5. 吸顶导航
 * ------------------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(4, 6, 11, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px -20px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
}
/* 移动端全屏菜单打开时：移除 header 的 backdrop-filter，
   避免其成为 fixed 后代 .site-nav 的包含块导致菜单定位失效 */
body.menu-open .header.is-scrolled {
  backdrop-filter: none;
  background: rgba(4, 6, 11, 0.92);
}

.header__inner {
  position: relative;
  max-width: var(--maxw);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0.04));
  border: 1px solid rgba(240, 180, 41, 0.5);
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--glow-gold);
  text-shadow: 0 0 12px rgba(240, 180, 41, 0.8);
}
.brand__word {
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand__jp {
  margin-left: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--muted);
  vertical-align: 3px;
}

.nav-btn {
  display: none;
  position: relative;
  z-index: 132;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.nav-btn__line {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .nav-btn__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .nav-btn__line:nth-child(2) {
  opacity: 0;
}
body.menu-open .nav-btn__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 44px;
  padding: 4px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-link__no {
  font-family: var(--font-latin);
  font-size: 11px;
  color: var(--gold);
  opacity: 0.75;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(240, 180, 41, 0.07);
}
.nav-link.is-active {
  color: var(--gold-2);
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.8);
}

/* ---------------------------------------------------------------------------
 * 6. 通用版式
 * ------------------------------------------------------------------------ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 96px 0 84px;
}
.section--contact {
  padding-bottom: 120px;
}
/* 分区能量分隔线 */
.section + .section {
  border-top: 1px solid var(--line);
}
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 82%);
  height: 2px;
  background: conic-gradient(from 90deg at 50% 50%,
      transparent 0deg 30deg,
      rgba(240, 180, 41, 0.85) 45deg,
      rgba(84, 200, 255, 0.75) 60deg,
      transparent 75deg 180deg,
      rgba(84, 200, 255, 0.7) 245deg,
      rgba(240, 180, 41, 0.8) 265deg,
      transparent 285deg);
  filter: blur(0.4px);
  opacity: 0.85;
  pointer-events: none;
}

.section-head {
  margin-bottom: 52px;
}
.section-head::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  margin-top: 20px;
  background: conic-gradient(from 0deg at 50% 50%,
      transparent, var(--gold), transparent);
  opacity: 0.6;
}

.overline {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.overline--hero {
  margin-bottom: 26px;
  opacity: 0.9;
}
.overline--certs {
  margin-bottom: 18px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 0.82em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: var(--glow-gold);
}

/* ---------------------------------------------------------------------------
 * 7. 通用卡片 & 按钮 & 徽章
 * ------------------------------------------------------------------------ */
.panel {
  background:
    radial-gradient(130% 100% at 15% 0%, rgba(84, 200, 255, 0.06), transparent 42%),
    radial-gradient(120% 100% at 100% 100%, rgba(240, 180, 41, 0.05), transparent 45%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.hoverable {
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease,
    box-shadow 0.4s ease, background-color 0.4s ease;
}
@media (hover: hover) {
  .hoverable:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 180, 41, 0.42);
    box-shadow: var(--glow-gold), 0 22px 44px -24px rgba(0, 0, 0, 0.8);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #221703;
  box-shadow: var(--glow-gold);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(240, 180, 41, 0.55);
}
.btn--ghost {
  border-color: rgba(148, 163, 184, 0.32);
  color: var(--ink);
  background: rgba(8, 12, 20, 0.4);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(84, 200, 255, 0.55);
  box-shadow: var(--glow-blue);
  color: var(--blue);
}

/* ---------------------------------------------------------------------------
 * 8. 英雄区（masthead）
 * ------------------------------------------------------------------------ */
.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 24px 110px;
  text-align: center;
  overflow: hidden;
}

/* 超大半透明卍底纹 */
.masthead__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(300px, 62vw, 760px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.09);
  font-weight: 900;
  user-select: none;
  pointer-events: none;
  z-index: -1;
}

/* 侧边竖排装饰 */
.masthead__rail {
  position: absolute;
  top: calc(var(--nav-h) + 34px);
  bottom: 40px;
  z-index: -1;
  writing-mode: vertical-rl;
  white-space: nowrap;
  letter-spacing: 0.5em;
  font-size: 13px;
  font-weight: 700;
  color: rgba(139, 152, 171, 0.45);
}
.masthead__rail--l {
  left: 30px;
  text-orientation: upright;
}
.masthead__rail--r {
  right: 30px;
  text-orientation: mixed;
}

.masthead__inner {
  width: 100%;
  max-width: 920px;
  will-change: transform;
}

/* 卍解主标题：逐字 clip 展开 + 金光扫过 + 辉光呼吸 */
.masthead__title {
  margin-bottom: 22px;
  line-height: 1.06;
}
.masthead__seal {
  position: relative;
  display: inline-block;
}
.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.masthead__seal .char {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(92px, 19vw, 230px);
  line-height: 1.08;
  color: var(--ink);
  text-shadow: 0 0 46px rgba(240, 180, 41, 0.28);
  transform: translateY(118%);
  animation: charIn 0.95s var(--ease-out) 0.25s forwards,
    goldBreath 4.2s ease-in-out 2s infinite;
}
.masthead__seal .char-mask:nth-child(2) .char {
  animation-delay: 0.4s, 2.1s;
}
@keyframes charIn {
  to {
    transform: translateY(0);
  }
}
@keyframes goldBreath {
  0%,
  100% {
    text-shadow: 0 0 46px rgba(240, 180, 41, 0.22);
  }
  50% {
    text-shadow: 0 0 84px rgba(240, 180, 41, 0.6), 0 0 18px rgba(240, 180, 41, 0.5);
  }
}
/* 金色闪光扫过 */
.masthead__seal::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: -70%;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent,
      rgba(255, 217, 120, 0.55), transparent);
  pointer-events: none;
  animation: shineSweep 1.05s ease 1.35s forwards;
}
@keyframes shineSweep {
  0% {
    left: -70%;
  }
  100% {
    left: 140%;
  }
}

.masthead__tagline {
  font-size: clamp(17px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
  max-width: 620px;
  margin: 0 auto;
}
.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-chip + .meta-chip::before {
  content: "·";
  color: var(--gold);
  opacity: 0.7;
}

.masthead__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.masthead__cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.masthead__cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.8), transparent);
  animation: cueDrop 1.9s ease-in-out infinite;
}
@keyframes cueDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------------
 * 9. About：角色档案
 * ------------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: start;
}

.role-card {
  padding: 34px 26px 30px;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.role-card__avatar {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 180, 41, 0.12), transparent 62%),
    var(--bg-1);
  box-shadow: inset 0 0 24px rgba(240, 180, 41, 0.06);
  animation: avatarPulse 3.4s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,
  100% {
    box-shadow: inset 0 0 24px rgba(240, 180, 41, 0.06), 0 0 0 0 rgba(240, 180, 41, 0.16);
  }
  50% {
    box-shadow: inset 0 0 24px rgba(240, 180, 41, 0.1), 0 0 0 16px rgba(240, 180, 41, 0);
  }
}
.role-card__avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg,
      rgba(240, 180, 41, 0.05), var(--gold), var(--blue),
      rgba(240, 180, 41, 0.05) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ringSpin 11s linear infinite;
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}
.role-card__avatar-char {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(240, 180, 41, 0.55));
}

.role-card__name {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.role-card__jp {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.role-card__role {
  margin-top: 14px;
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: rgba(240, 180, 41, 0.06);
}
.role-card__meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.role-card__tags {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  display: grid;
  gap: 10px;
}
.role-card__fact {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  font-size: 13px;
  align-items: baseline;
}
.role-card__fact-k {
  color: var(--muted);
}
.role-card__fact-v {
  color: var(--ink);
  text-align: right;
  font-weight: 600;
}

.about-main {
  min-width: 0;
}
.bio__p {
  margin-bottom: 16px;
  color: #c3cad6;
  font-size: 16px;
}
.bio__p:last-child {
  margin-bottom: 0;
}

/* 关于我：座右铭引言 */
.bio__motto {
  margin: 0 0 24px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--gold);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--gold-2);
  text-shadow: 0 0 20px rgba(240, 180, 41, 0.28);
}

/* 关于我：兴趣标签（金色小徽章） */
.interests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.interests__label {
  margin-right: 6px;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--gold);
  opacity: 0.9;
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.12), rgba(240, 180, 41, 0.04));
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.interest-chip::before {
  content: "✦";
  margin-right: 7px;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.85;
}
@media (hover: hover) {
  .interest-chip:hover {
    border-color: rgba(240, 180, 41, 0.85);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
  }
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.09), rgba(84, 200, 255, 0.05));
  color: var(--ink);
  font-size: 14px;
}
.highlight::before {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.8);
  flex: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.stat {
  padding: 18px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.5);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.stat:hover {
  border-color: rgba(84, 200, 255, 0.45);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}
.stat__value {
  font-family: var(--font-latin);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold-2);
  text-shadow: 0 0 22px rgba(240, 180, 41, 0.35);
}
.stat__suffix {
  margin-left: 2px;
  font-size: 0.58em;
}
.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------------
 * 10. Skills：技能专长
 * ------------------------------------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 28px;
}
.skill-card__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.skill-card__kanji {
  flex: none;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.18), rgba(240, 180, 41, 0.04));
  border: 1px solid rgba(240, 180, 41, 0.38);
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(240, 180, 41, 0.6);
  box-shadow: inset 0 0 18px rgba(240, 180, 41, 0.1);
}
.skill-card__group {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.skill-card__desc {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.skill-card__bars {
  display: grid;
  gap: 14px;
}
.skill-row__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 14px;
}
.skill-row__name {
  color: var(--ink);
  font-weight: 600;
}
.skill-row__level {
  font-family: var(--font-latin);
  font-size: 13px;
  color: var(--gold);
}
.skill-row__track {
  height: 7px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.13);
  overflow: hidden;
}
.skill-row__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.55);
  transition: width 1.2s var(--ease-out);
}

/* ---------------------------------------------------------------------------
 * 11. Projects：项目经历
 * ------------------------------------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
}
/* 角标辉光 */
.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--gold);
  opacity: 0.25;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}
.project-card::before {
  top: 12px;
  left: 12px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 8px;
}
.project-card::after {
  right: 12px;
  bottom: 12px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-bottom-right-radius: 8px;
}
@media (hover: hover) {
  .project-card:hover::before,
  .project-card:hover::after {
    opacity: 0.9;
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 6px rgba(240, 180, 41, 0.9));
  }
}

.project-card__code {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.project-card__kanji {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(240, 180, 41, 0.45);
}
.project-card__roman {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.project-card__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.project-card__desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: #b9c1cf;
  line-height: 1.8;
  flex: 1;
}
.project-card__role {
  align-self: flex-start;
  margin-top: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid rgba(84, 200, 255, 0.42);
  color: var(--blue);
  background: rgba(84, 200, 255, 0.07);
}

.project-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-card__metric {
  text-align: center;
}
.project-card__metric-k {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.project-card__metric-v {
  margin-top: 4px;
  font-family: var(--font-latin);
  font-size: 19px;
  font-weight: 900;
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(240, 180, 41, 0.3);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.07);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.tag:hover {
  border-color: rgba(240, 180, 41, 0.5);
  color: var(--gold-2);
}

/* ---------------------------------------------------------------------------
 * 12. Education：教育背景时间线
 * ------------------------------------------------------------------------ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
}
.timeline__item {
  position: relative;
  padding-left: 52px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--gold-2), var(--gold) 62%);
  box-shadow: 0 0 14px rgba(240, 180, 41, 0.65);
}
.timeline__item--cert::before {
  background: radial-gradient(circle at 34% 28%, #9be1ff, var(--blue) 62%);
  box-shadow: 0 0 14px rgba(84, 200, 255, 0.65);
}
.timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 30px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.55), rgba(84, 200, 255, 0.1));
}

.timeline__card {
  padding: 22px 26px;
}
.timeline__period {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.timeline__title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.timeline__org {
  margin-top: 4px;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.05em;
}
.timeline__desc {
  margin-top: 10px;
  font-size: 14px;
  color: #b9c1cf;
  line-height: 1.8;
}

.certs {
  max-width: 800px;
  margin: 56px auto 0;
}
.certs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(84, 200, 255, 0.3);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(84, 200, 255, 0.07), rgba(240, 180, 41, 0.05));
  color: var(--ink);
  font-size: 13.5px;
}
.cert-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(84, 200, 255, 0.9);
}

/* ---------------------------------------------------------------------------
 * 13. Contact：联系方式
 * ------------------------------------------------------------------------ */
.contact {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact__lead {
  font-size: 18px;
  color: #c3cad6;
  line-height: 1.9;
}
.contact__email {
  display: inline-block;
  margin: 26px auto 4px;
  font-family: var(--font-latin);
  font-size: clamp(24px, 4.6vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--gold-2);
  text-shadow: 0 0 26px rgba(240, 180, 41, 0.35);
  word-break: break-all;
  transition: text-shadow 0.3s ease;
}
.contact__email:hover {
  text-shadow: 0 0 44px rgba(240, 180, 41, 0.65);
}
.contact__row {
  margin-top: 18px;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 230px;
  padding: 16px 22px;
  text-align: left;
}
.contact-link__label {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.contact-link__value {
  font-size: 15px;
  color: var(--ink);
  word-break: break-all;
}
.contact__farewell {
  margin-top: 48px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--ink);
}
.contact__farewell::before,
.contact__farewell::after {
  content: "——";
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 0.1em;
  margin: 0 10px;
}

/* ---------------------------------------------------------------------------
 * 14. Footer / Toast / Noscript
 * ------------------------------------------------------------------------ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}
.footer__text {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 220;
  transform: translate(-50%, 24px);
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(240, 180, 41, 0.6);
  color: var(--gold-2);
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: var(--glow-gold);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out),
    visibility 0.35s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--bg-0);
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------------------
 * 15. Reveal 滚动动画（仅 .js 生效，避免无脚本时内容不可见）
 * ------------------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------------
 * 16. 响应式
 * ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 300px 1fr;
    gap: 26px;
  }
  .role-card {
    padding: 26px 20px;
  }
}

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

@media (max-width: 860px) {
  :root {
    --nav-h: 60px;
  }

  .nav-btn {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 125;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(600px 400px at 50% 20%, rgba(240, 180, 41, 0.06), transparent 60%),
      rgba(4, 6, 11, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
  }
  body.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 430px;
    padding: 0 24px;
  }
  .site-nav__list li {
    width: 100%;
  }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    font-size: 21px;
    letter-spacing: 0.16em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-link__no {
    font-size: 12px;
  }
  .nav-link.is-active {
    color: var(--gold-2);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .role-card {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
  .about-main {
    max-width: 640px;
    margin: 0 auto;
  }

  .masthead__rail {
    display: none;
  }
  .masthead {
    padding-top: calc(var(--nav-h) + 44px);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0 64px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline__item {
    padding-left: 40px;
  }
  .timeline__card {
    padding: 18px 18px;
  }
  .meta-chip + .meta-chip::before {
    content: none;
  }
  .masthead__meta {
    flex-direction: column;
    gap: 6px;
  }
  .contact__links {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-link {
    min-width: 0;
  }
  .header__inner {
    padding: 0 16px;
  }
  .container {
    padding: 0 18px;
  }
}

/* ---------------------------------------------------------------------------
 * 17. 减少动态效果
 * ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .skill-row__fill {
    transition: none;
  }
}

/* ============================================================================
 * 18. 博客专区 — 导航“博客”项 / 页面外壳
 * ========================================================================== */
.site-nav__item--page {
  margin-left: 6px;
}
.nav-link__jp {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  opacity: 0.8;
}
.nav-link__jp--inline {
  margin-left: 2px;
  vertical-align: 2px;
}
.nav-link--page {
  border: 1px solid rgba(240, 180, 41, 0.42);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.12), rgba(240, 180, 41, 0.03));
  color: var(--gold-2);
  min-height: 44px;
  padding: 0 18px;
}
.nav-link--page .nav-link__jp--inline {
  color: rgba(240, 180, 41, 0.72);
}
.nav-link--page:hover {
  border-color: rgba(240, 180, 41, 0.9);
  box-shadow: var(--glow-gold);
}
.nav-link--page.is-current-page,
.nav-link[aria-current="page"] {
  color: var(--gold-2);
}
.nav-link--page.is-current-page::after,
.nav-link[aria-current="page"].nav-link--page::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.8);
}
@media (max-width: 860px) {
  .site-nav__item--page {
    margin-left: 0;
  }
  .nav-link--page {
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    min-height: 56px;
    box-shadow: none;
  }
  .nav-link--page.is-current-page {
    color: var(--gold-2);
  }
}

/* 通用页面主体（列表页/文章页）：吸顶头下方留白 */
.page-main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
}
.page-main--list {
  padding: calc(var(--nav-h) + 8px) 0 90px;
}
.page-main--article {
  padding: calc(var(--nav-h) + 30px) 0 96px;
}

/* 缩小版 hero */
.page-hero {
  position: relative;
  padding: 46px 0 54px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}
.page-hero::before {
  content: "卍";
  position: absolute;
  right: -10px;
  top: -40px;
  font-size: clamp(160px, 26vw, 320px);
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.08);
  pointer-events: none;
  user-select: none;
}
.page-hero__title {
  margin-top: 10px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.12;
}
.page-hero__en {
  font-family: var(--font-latin);
  font-size: 0.52em;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.85;
  margin-left: 10px;
  vertical-align: 6px;
}
.page-hero__sub {
  margin-top: 18px;
  max-width: 640px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
}

/* 面包屑 */
.crumbs {
  margin-bottom: 26px;
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--gold);
  opacity: 0.6;
  font-size: 12px;
}
.crumbs__item a {
  color: var(--muted);
  transition: color 0.25s ease;
}
.crumbs__item a:hover {
  color: var(--gold-2);
}
.crumbs__item--current {
  color: var(--ink);
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
 * 19. 博客列表页（blog.html）
 * ========================================================================== */
.blog-toolbar {
  padding: 22px 24px 24px;
  margin-bottom: 40px;
}
.blog-toolbar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.blog-toolbar__label {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold);
}
.blog-count {
  font-size: 13px;
  color: var(--muted);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(240, 180, 41, 0.32);
  background: rgba(240, 180, 41, 0.05);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.filter-chip::before {
  content: "✦";
  margin-right: 7px;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.5;
}
.filter-chip:hover {
  color: var(--gold-2);
  border-color: rgba(240, 180, 41, 0.7);
  transform: translateY(-1px);
}
.filter-chip.is-active {
  color: #221703;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: var(--glow-gold);
  font-weight: 700;
}
.filter-chip.is-active::before {
  color: #221703;
  opacity: 0.9;
}

.blog-list {
  display: grid;
  gap: 48px;
}
.blog-year__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.blog-year__title {
  font-family: var(--font-latin);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.blog-year__head::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.7);
}
.blog-year__count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.blog-year__list {
  display: grid;
  gap: 18px;
}
.blog-item {
  display: block;
  position: relative;
  padding: 26px 28px 22px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}
@media (hover: hover) {
  .blog-item:hover {
    transform: translateX(-6px);
    border-color: rgba(240, 180, 41, 0.5);
    box-shadow: var(--glow-gold), 0 22px 44px -24px rgba(0, 0, 0, 0.8);
  }
}
.blog-item__date {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--blue);
  opacity: 0.9;
  margin-bottom: 8px;
}
.blog-item__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.blog-item:hover .blog-item__title {
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(240, 180, 41, 0.3);
}
.blog-item__desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: #b9c1cf;
  line-height: 1.85;
}
.blog-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.blog-item__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.blog-item__go {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.85;
}
.blog-item:hover .blog-item__go {
  opacity: 1;
}
.blog-empty {
  padding: 70px 20px;
  text-align: center;
}
.blog-empty__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.blog-empty__sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.blog-empty__sub .btn {
  margin-left: 6px;
}

/* ============================================================================
 * 20. 首页「最新随笔」
 * ========================================================================== */
.section-title__en {
  margin-left: 10px;
  font-family: var(--font-latin);
  font-size: 0.4em;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.85;
  vertical-align: 8px;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.latest-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.latest-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  min-height: 100%;
}
.latest-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.latest-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.latest-card__date {
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.latest-card__read {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.latest-card__title {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.latest-card:hover .latest-card__title {
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(240, 180, 41, 0.32);
}
.latest-card__desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: #b9c1cf;
  line-height: 1.8;
  flex: 1;
}
.latest-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.latest-card .tag {
  border-color: rgba(240, 180, 41, 0.32);
  color: var(--gold-2);
}
.latest-more {
  margin-top: 44px;
  text-align: center;
}
.latest-empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ============================================================================
 * 21. 文章阅读页（blog/<slug>.html）— 布局与目录
 * ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* 目录 */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.toc__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.toc__toggle {
  display: none;
}
.toc__label {
  padding: 16px 18px 8px;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.toc__list {
  display: grid;
  gap: 2px;
  padding: 0 12px 14px;
  max-height: calc(100vh - var(--nav-h) - 130px);
  overflow-y: auto;
}
.toc__item {
  position: relative;
}
.toc__link {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.toc__link:hover {
  color: var(--gold-2);
  background: rgba(240, 180, 41, 0.06);
}
.toc__link.is-current {
  color: var(--gold-2);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.12), transparent);
}
.toc__item--sub .toc__link {
  padding-left: 24px;
  font-size: 12.5px;
}
.toc.is-empty {
  display: none;
}

/* 文章主体 */
.post {
  min-width: 0;
  padding: 40px 46px 48px;
}
.post__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 30px;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.post__meta-sep {
  color: var(--gold);
  opacity: 0.7;
}
.post__title {
  margin-top: 16px;
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(240, 180, 41, 0.18);
}
.post__lead {
  margin-top: 16px;
  font-size: 16px;
  color: #c3cad6;
  line-height: 1.9;
}
.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.post__back {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.post__back:hover {
  color: var(--gold-2);
}

/* 文章正文排版 */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  color: #d6dbe4;
  font-size: 16px;
  line-height: 1.9;
}
.post-body > *:first-child {
  margin-top: 0;
}
.post-body h2,
.post-body h3,
.post-body h4 {
  scroll-margin-top: calc(var(--nav-h) + 26px);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.post-body h2 {
  position: relative;
  margin: 52px 0 18px;
  padding-left: 18px;
  font-size: 26px;
  text-shadow: 0 0 24px rgba(240, 180, 41, 0.16);
}
.post-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: var(--glow-gold);
}
.post-body h3 {
  margin: 38px 0 14px;
  font-size: 21px;
}
.post-body h4 {
  margin: 30px 0 12px;
  font-size: 18px;
}
.post-body p {
  margin: 0 0 20px;
  color: #d6dbe4;
}
.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(84, 200, 255, 0.4);
  text-underline-offset: 4px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.post-body a:hover {
  color: var(--gold-2);
  text-decoration-color: var(--gold);
}
.post-body strong {
  color: var(--ink);
  font-weight: 800;
}
.post-body em {
  color: var(--gold-2);
}
.post-body code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.28);
  color: var(--gold-2);
  font-size: 0.88em;
  word-break: break-word;
}
.post-body .codeblock {
  position: relative;
  margin: 26px 0 30px;
  padding: 20px 20px 18px;
  background: #0b101c;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  overflow-x: auto;
  line-height: 1.7;
}
.post-body .codeblock code {
  padding: 0;
  background: transparent;
  border: 0;
  color: #dce3f0;
  font-size: 13.5px;
  white-space: pre;
}
.post-body .codeblock[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: -1px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.18), rgba(240, 180, 41, 0.05));
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-top: 0;
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.post-body ul,
.post-body ol {
  margin: 0 0 22px;
  padding-left: 26px;
}
.post-body ul {
  list-style: none;
}
.post-body ul li {
  position: relative;
  margin: 8px 0;
  padding-left: 4px;
}
.post-body ul li::before {
  content: "✦";
  position: absolute;
  left: -22px;
  color: var(--gold);
  font-size: 11px;
  opacity: 0.9;
}
.post-body ol {
  list-style: none;
  counter-reset: blog-ol;
}
.post-body ol li {
  position: relative;
  margin: 8px 0;
  padding-left: 8px;
  counter-increment: blog-ol;
}
.post-body ol li::before {
  content: counter(blog-ol) ".";
  position: absolute;
  left: -30px;
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.9;
}
.post-body blockquote {
  margin: 26px 0 30px;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.07), transparent);
  border-radius: 0 12px 12px 0;
}
.post-body blockquote p {
  margin: 8px 0;
  font-style: italic;
  color: #c9c2a8;
}
.post-body hr {
  margin: 40px auto;
  border: 0;
  height: 2px;
  width: 100%;
  background: conic-gradient(from 90deg at 50% 50%,
      transparent 0deg 30deg,
      rgba(240, 180, 41, 0.8) 45deg,
      rgba(84, 200, 255, 0.7) 60deg,
      transparent 75deg 180deg,
      rgba(84, 200, 255, 0.65) 245deg,
      rgba(240, 180, 41, 0.75) 265deg,
      transparent 285deg);
  opacity: 0.6;
}
.post-body img {
  display: block;
  max-width: 100%;
  margin: 26px auto;
  border-radius: 14px;
  border: 1px solid rgba(240, 180, 41, 0.25);
  box-shadow: 0 0 30px rgba(240, 180, 41, 0.08);
}
.post-body table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.post-body th,
.post-body td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}
.post-body th {
  background: rgba(240, 180, 41, 0.08);
  color: var(--gold-2);
  font-weight: 700;
}

/* 文末 上一篇 / 下一篇 */
.post-nav {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.post-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav__card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  min-height: 110px;
  border-radius: var(--radius-md);
}
.post-nav__card--empty {
  visibility: hidden;
  pointer-events: none;
  min-height: 110px;
}
.post-nav__way {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.9;
}
.post-nav__title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink);
}
.post-nav__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.post-nav__card:hover .post-nav__title {
  color: var(--gold-2);
}
.post-to-top {
  margin: 34px 0 0;
  text-align: center;
}
.post-to-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s ease;
}
.post-to-top a:hover {
  color: var(--gold-2);
}

/* ============================================================================
 * 22. 博客响应式
 * ========================================================================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .toc {
    position: static;
    order: -1;
  }
  .post {
    padding: 34px 34px 42px;
  }
}

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

@media (max-width: 860px) {
  .page-main--list {
    padding-top: var(--nav-h);
  }
  .page-main--article {
    padding-top: var(--nav-h);
  }
  .page-hero {
    padding: 36px 0 40px;
    margin-bottom: 34px;
  }
}

@media (max-width: 640px) {
  /* 移动端目录：折叠于标题下，可点开 */
  .toc {
    order: -1;
  }
  .toc__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    background: transparent;
    border: 0;
    color: var(--gold-2);
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .toc__toggle::after {
    content: "+";
    font-size: 18px;
    color: var(--gold);
    transition: transform 0.3s ease;
  }
  .toc__card.is-open .toc__toggle::after {
    content: "−";
  }
  .toc__label {
    display: none;
  }
  .toc__listwrap {
    display: none;
  }
  .toc__card.is-open .toc__listwrap {
    display: block;
  }
  .toc__list {
    max-height: 60vh;
    padding-top: 4px;
  }

  .post {
    padding: 28px 20px 34px;
  }
  .post__title {
    font-size: 27px;
  }
  .post-body {
    font-size: 15.5px;
  }
  .post-body h2 {
    font-size: 22px;
  }
  .post-body h3 {
    font-size: 19px;
  }
  .post-nav__grid {
    grid-template-columns: 1fr;
  }
  .blog-toolbar {
    padding: 18px 18px 20px;
  }
  .blog-item {
    padding: 22px 20px 20px;
  }
  .latest-card__link {
    padding: 22px 20px 20px;
  }
  .filter-chip {
    min-height: 44px;
  }
}

/* 减少动态效果（博客元素附加） */
@media (prefers-reduced-motion: reduce) {
  .blog-item,
  .latest-card,
  .filter-chip {
    transform: none !important;
  }
  .post-body a,
  .toc__link {
    transition: none;
  }
}

