/* ==========================================================================
   saki.css · 阳菜saki 个人主页 视觉增强层
   在原有内联样式之后加载：保留原有 10 套主题与信息结构，只做增强。
   2026-10-20 · 移动端关闭持续装饰动画与全屏粒子，修复 Hero 按钮/签名区域闪动；桌面特效保留。
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei UI", "Microsoft YaHei", ui-rounded, ui-sans-serif,
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 18px;
  --nav-h: 68px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --shadow-hover: 0 28px 70px rgba(0, 0, 0, .34);
  --sheen: rgba(255, 255, 255, .09);
  --accent-4: #77e2c0;
  --accent-5: #ffd479;
}

/* 每套主题补足 5 色（原有 3 个强调色 + 2 个辅助色） */
html[data-theme="dark"]     { --accent-4: #77e2c0; --accent-5: #ffd479; }
html[data-theme="light"]    { --accent-4: #0ea5a4; --accent-5: #f59e0b; --sheen: rgba(255,255,255,.8); }
html[data-theme="sakura"]   { --accent-4: #ff9f68; --accent-5: #ffd166; --sheen: rgba(255,255,255,.8); }
html[data-theme="ocean"]    { --accent-4: #818cf8; --accent-5: #67e8f9; }
html[data-theme="forest"]   { --accent-4: #bef264; --accent-5: #fde68a; }
html[data-theme="sunset"]   { --accent-4: #ffd166; --accent-5: #ff8fa3; }
html[data-theme="cyber"]    { --accent-4: #39ff88; --accent-5: #7c4dff; }
html[data-theme="matcha"]   { --accent-4: #dfe78c; --accent-5: #e0a96d; --sheen: rgba(255,255,255,.8); }
html[data-theme="lavender"] { --accent-4: #60a5fa; --accent-5: #f9a8d4; --sheen: rgba(255,255,255,.8); }
html[data-theme="mono"]     { --accent-4: #d6d6dd; --accent-5: #8e8e98; }

html[data-theme="dark"], html[data-theme="ocean"], html[data-theme="forest"],
html[data-theme="sunset"], html[data-theme="cyber"], html[data-theme="mono"] { color-scheme: dark; }
html[data-theme="light"], html[data-theme="sakura"], html[data-theme="matcha"],
html[data-theme="lavender"] { color-scheme: light; }

/* ---------- 基础排版 ---------- */
html {
  scroll-padding-top: calc(var(--nav-h) + 18px);
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body {
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
section[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
p { text-wrap: pretty; }
.container {
  max-width: 1180px;
  padding-left: clamp(18px, 4vw, 28px);
  padding-right: clamp(18px, 4vw, 28px);
}

/* ---------- 背景氛围 ---------- */
.bg { z-index: -2; }
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 8%, transparent 35%, rgba(0, 0, 0, .18) 100%);
  pointer-events: none;
}
html[data-theme="light"] .bg::after,
html[data-theme="sakura"] .bg::after,
html[data-theme="matcha"] .bg::after,
html[data-theme="lavender"] .bg::after {
  background: radial-gradient(ellipse at 50% 8%, transparent 40%, rgba(255, 255, 255, .28) 100%);
}
.bg-aurora {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  opacity: .42;
  filter: blur(70px) saturate(135%);
  background:
    radial-gradient(38% 45% at 22% 28%, var(--glow), transparent 70%),
    radial-gradient(34% 42% at 76% 32%, var(--glow-2), transparent 72%),
    radial-gradient(30% 38% at 58% 76%, var(--accent-3), transparent 76%);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1.05);
  animation: auroraDrift 30s var(--ease-soft) infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1.05); }
  50%  { transform: translate3d(2%, 2%, 0) rotate(1.5deg) scale(1.1); }
  100% { transform: translate3d(-1%, 1%, 0) rotate(3deg) scale(1.06); }
}
.bg-grid {
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 76%);
  opacity: .5;
}
.bg-noise {
  position: absolute; inset: 0;
  opacity: .035;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.bg-orb { opacity: .5; }
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .9;
}
html:not(.js) .fx-canvas { display: none; }

/* 鼠标柔光 */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 340px; height: 340px;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, var(--glow) 0%, var(--glow-2) 34%, transparent 68%);
  filter: blur(18px);
  transform: translate3d(calc(var(--gx, 50vw) - 170px), calc(var(--gy, 50vh) - 170px), 0);
  transition: opacity .45s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: .72; }

/* ---------- 导航 ---------- */
.nav {
  z-index: 100;
  background: var(--nav);
  transition: box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.nav::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .35;
}
.nav.is-scrolled {
  background: var(--nav);
  border-bottom-color: var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}
.nav-inner { height: var(--nav-h); }
.nav-logo { font-size: 15.5px; letter-spacing: .04em; }
.nav-logo .dot {
  width: 9px; height: 9px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04), 0 0 20px var(--glow);
}
.nav-links a {
  position: relative;
  font-size: 13.5px;
  padding: 8px 14px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.nav-links a.active {
  color: var(--text);
  background: var(--card-strong);
  box-shadow: inset 0 0 0 1px var(--border), 0 6px 18px rgba(0, 0, 0, .08);
}
.nav-links a.active::after {
  content: "";
  position: absolute; left: 50%; bottom: 3px;
  width: 12px; height: 2px; border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 8px var(--accent);
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--card);
  transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-3deg); border-color: var(--accent); }
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  width: 100%; height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 0 12px var(--accent);
  will-change: transform;
}

/* 主题面板细节 */
.theme-panel { border-radius: 22px; }
.theme-option { border-radius: 14px; }
.theme-option.active { transform: translateY(-1px); }

/* ---------- 主网格与节奏 ---------- */
main.container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.8vw, 36px);
  row-gap: clamp(46px, 5.4vw, 72px);
  padding-bottom: 8px;
  counter-reset: homepage-section;
}
.hero,
.stats,
.section,
.section-content { grid-column: 1 / -1; min-width: 0; }
.section { margin-bottom: 0; counter-increment: homepage-section; }
.section-schedule,
.section-content { grid-column: span 6; }

/* ---------- Hero ---------- */
.hero {
  min-height: min(780px, calc(100vh - var(--nav-h)));
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(54px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: -180px; top: 8%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(110px);
  opacity: .42;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero-badge {
  padding: 8px 15px;
  margin-bottom: 22px;
  font-size: 12.5px;
  letter-spacing: .02em;
  background: var(--card);
  box-shadow: inset 0 1px 0 var(--sheen), 0 10px 30px rgba(0, 0, 0, .07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero h1 {
  font-size: clamp(52px, 7.6vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 20px;
  font-weight: 900;
}
.hero h1 .grad {
  display: inline-block;
  padding-right: .06em;
  background-image: linear-gradient(110deg,
    var(--accent) 0%, var(--accent-2) 26%, var(--accent-3) 48%,
    var(--accent-4) 66%, var(--accent-2) 84%, var(--accent) 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 36px var(--glow));
  animation: titleSweep 8s ease-in-out infinite;
}
@keyframes titleSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  max-width: 42ch;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: .01em;
}
.hero-sub .cursor {
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--accent);
}
.hero-actions { gap: 11px; }

/* 按钮与涟漪 */
.btn {
  position: relative;
  overflow: hidden;
  min-height: 47px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  isolation: isolate;
  transition: background-color .25s ease, border-color .25s ease,
              box-shadow .25s ease, transform .25s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, .3) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease-soft);
}
.btn:hover::before { transform: translateX(130%); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
  box-shadow: 0 12px 32px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.btn-primary:hover { box-shadow: 0 18px 44px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--sheen);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--card-strong); }
.ripple {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .42);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut .65s ease-out forwards;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Hero 头像 */
.hero-visual { position: relative; z-index: 1; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 92%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, var(--glow-2) 38%, transparent 68%);
  filter: blur(30px);
  opacity: .9;
  pointer-events: none;
}
.avatar-ring {
  width: min(390px, 74vw);
  padding: 9px;
  box-shadow: 0 0 90px var(--glow), 0 0 150px var(--glow-2),
              inset 0 0 30px rgba(255, 255, 255, .12);
  animation: avatarBreathe 7s ease-in-out infinite;
  isolation: isolate;
}
@keyframes avatarBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.008); }
}
.avatar-ring::before {
  inset: -16px;
  border-color: var(--border);
  opacity: .8;
}
.avatar-inner {
  border: 5px solid var(--bg-2);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .16);
}
.avatar-inner img { transition: transform 1s var(--ease-soft); }
.avatar-ring:hover .avatar-inner img { transform: scale(1.045); }
.hero-float {
  padding: 11px 15px;
  border-radius: 15px;
  font-size: 12.5px;
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18), inset 0 1px 0 var(--sheen);
  z-index: 3;
  white-space: nowrap;
}
.hero-float.f1 { top: 6%; left: -2%; }
.hero-float.f2 { bottom: 10%; right: -3%; }

/* ---------- 数据卡 ---------- */
.stats {
  gap: 16px;
  margin: 0;
}
.stat {
  position: relative;
  overflow: hidden;
  padding: 23px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  box-shadow: inset 0 1px 0 var(--sheen), 0 14px 38px rgba(0, 0, 0, .08);
}
.stat::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 0; height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  opacity: 0;
  transition: opacity .3s ease;
}
.stat:hover::before { opacity: 1; }
.stat .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  border-radius: 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
}
.stat .num {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.045em;
  background: linear-gradient(120deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .label { margin-top: 4px; font-size: 12.5px; letter-spacing: .04em; }

/* ---------- 分区标题 ---------- */
.section-head {
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.section-head::before {
  content: "0" counter(homepage-section);
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
}
.section-head h2 {
  font-size: clamp(23px, 2.5vw, 30px);
  letter-spacing: -.035em;
  font-weight: 800;
}
.section-head p {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 通用卡片 ---------- */
.card {
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow);
}
.card-body { padding: clamp(22px, 3vw, 34px); }

/* ---------- 介绍 ---------- */
.about {
  grid-template-columns: 142px 1fr;
  gap: clamp(22px, 3vw, 34px);
}
.about-avatar {
  width: 142px; height: 142px;
  border-radius: 30px;
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16), inset 0 1px 0 var(--sheen);
}
.about-avatar img { transition: transform .8s var(--ease-soft); }
.about-avatar:hover img { transform: scale(1.06); }
.about p { line-height: 1.95; margin-bottom: 12px; font-size: 14.5px; }
.about p:last-of-type { margin-bottom: 0; }
.about strong { font-weight: 700; }
.tags { gap: 8px; margin-top: 18px; }
.tag {
  padding: 6px 13px;
  font-size: 12px;
  background: var(--card-strong);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--sheen);
  transition: transform .2s var(--ease-out), color .2s, border-color .2s, box-shadow .2s;
}
.tag:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--glow);
}

/* ---------- 直播安利 ---------- */
.promo {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--glow), transparent 55%),
    linear-gradient(315deg, var(--glow-2), transparent 58%),
    linear-gradient(170deg, var(--card-strong), var(--card));
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow);
  isolation: isolate;
}
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .075) 48%, transparent 64%);
  transform: translateX(-100%);
  animation: promoSheen 10s var(--ease-soft) infinite;
}
@keyframes promoSheen {
  0%, 55% { transform: translateX(-100%); }
  78%, 100% { transform: translateX(100%); }
}
.promo > * { position: relative; z-index: 1; }
.promo::after {
  right: 22px; top: 0;
  font-size: clamp(58px, 8vw, 92px);
  letter-spacing: .1em;
  opacity: .055;
  line-height: 1;
}
.promo h3 {
  font-size: clamp(21px, 2.6vw, 29px);
  letter-spacing: -.03em;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.promo p { font-size: 14.5px; line-height: 1.9; margin-bottom: 9px; }
.promo p strong { color: var(--text); }
.promo-actions { margin-top: 22px; gap: 10px; }

/* ---------- 时间表 ---------- */
.schedule { gap: 14px; }
.schedule-item {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.schedule-item::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--accent), var(--accent-3));
  opacity: .9;
}
.schedule-item .time {
  font-size: 19px;
  letter-spacing: -.03em;
  margin-bottom: 5px;
  color: var(--text);
}
.schedule-item .label { font-size: 13.5px; line-height: 1.5; }
.schedule-item .note { font-size: 12.5px; line-height: 1.7; margin-top: 6px; }

/* ---------- 直播内容 ---------- */
.section-content .content-tags {
  min-height: 100%;
  align-content: flex-start;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  box-shadow: inset 0 1px 0 var(--sheen);
}
.content-tag {
  padding: 9px 16px;
  font-size: 13.5px;
  background: var(--card-strong);
  border-color: var(--border);
  transition: transform .2s var(--ease-out), color .2s, border-color .2s, box-shadow .2s;
}
.content-tag:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 22px var(--glow);
}

/* ---------- 作品 ---------- */
.works {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.work {
  border-radius: 20px;
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  box-shadow: inset 0 1px 0 var(--sheen), 0 12px 30px rgba(0, 0, 0, .07);
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.work:hover { border-color: var(--border); box-shadow: var(--shadow-hover), inset 0 1px 0 var(--sheen); }
.work-cover::before {
  content: "▶";
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  background: rgba(10, 12, 18, .52);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  transition: opacity .3s ease, transform .35s var(--ease-out);
  pointer-events: none;
}
.work-cover::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .34));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.work:hover .work-cover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work:hover .work-cover::after { opacity: 1; }
.work:hover .work-cover img { transform: scale(1.075); }
.work-badge { z-index: 4; border: 1px solid rgba(255, 255, 255, .18); }
.work-stats { z-index: 2; }
.work-info { padding: 17px 18px 19px; }
.work-title { font-size: 14.5px; line-height: 1.55; }
.work-series { margin-top: 9px; font-size: 11.5px; letter-spacing: .02em; }

/* ---------- 安利 ---------- */
.recs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rec {
  padding: 25px 26px;
  border-radius: 22px;
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--sheen), 0 12px 30px rgba(0, 0, 0, .06);
}
.rec h3 { font-size: 18.5px; letter-spacing: -.02em; margin-bottom: 9px; }
.rec p { font-size: 13.5px; line-height: 1.85; }
.rec .more { margin-top: 16px; font-size: 12.5px; letter-spacing: .02em; }
.rec:hover .more { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 互动 ---------- */
.interact { gap: 14px; }
.interact-item {
  padding: 25px 20px;
  border-radius: 22px;
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.interact-item .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  font-size: 25px;
  border-radius: 16px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px var(--glow);
}
.interact-item h3 { font-size: 16px; margin-bottom: 5px; }
.interact-item p { font-size: 12.5px; line-height: 1.75; }
.message-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.message {
  gap: 13px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, var(--card-strong), var(--card));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.message-avatar {
  width: 42px; height: 42px;
  font-size: 20px;
  box-shadow: 0 8px 18px var(--glow);
}
.message-name { font-size: 12.5px; }
.message-text { font-size: 13px; line-height: 1.8; }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 66px;
  font-size: 12.5px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(620px, 78%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  box-shadow: 0 0 22px var(--glow);
  opacity: .8;
}
.footer .heart { filter: drop-shadow(0 0 8px var(--glow)); }
.footer p + p { opacity: .82; }

/* ---------- 滚动显现 / 错峰入场（使用独立 translate，不干扰 3D 倾斜） ---------- */
.reveal { opacity: 1; transform: none; translate: 0 0; }
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s var(--ease-out), translate .9s var(--ease-soft);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.js [data-stagger] > * {
  opacity: 0;
  translate: 0 22px;
}
.js .reveal.is-visible [data-stagger] > *,
.js .reveal.is-visible[data-stagger] > * {
  animation: staggerIn .72s var(--ease-soft) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes staggerIn {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}
.fx-fallback .reveal,
.fx-fallback .reveal [data-stagger] > *,
.fx-fallback [data-stagger] > * { opacity: 1 !important; translate: 0 0 !important; }

/* ---------- 3D 倾斜 + 高光 ---------- */
.fx-tilt {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform .36s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.fx-tilt.is-tilting {
  transition: transform .08s linear, border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.fx-tilt:hover { --lift: -4px; }
.fx-glare {
  position: absolute;
  inset: -1px;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, .22), transparent 62%);
  mix-blend-mode: soft-light;
  transition: opacity .3s ease;
}
.fx-tilt:hover .fx-glare { opacity: 1; }
.work:focus-visible,
.rec:focus-visible { outline-offset: 4px; }

/* ---------- 无 JS ---------- */
html:not(.js) .theme-wrap { display: none; }
html:not(.js) .cursor-glow { display: none; }

/* ---------- 平板 ---------- */
@media (max-width: 980px) {
  main.container { display: block; }
  .section { margin-bottom: clamp(38px, 7vw, 54px); }
  .stats { margin-bottom: clamp(38px, 7vw, 54px); }
  .section-schedule,
  .section-content { margin-bottom: clamp(38px, 7vw, 54px); }
  .section-content .content-tags { min-height: 0; }
  .hero { min-height: 0; }
  .recs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding-top: 44px;
    gap: 34px;
  }
  .hero-visual { order: -1; justify-self: center; }
  .hero-copy { margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual::before { width: 78%; }
  .avatar-ring { width: min(330px, 74vw); }
  .stats { margin-top: 0; }
  .message-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head::before { font-size: 10px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  :root { --nav-h: 62px; --radius-lg: 26px; }
  main.container { row-gap: 0; }
  .hero h1 { letter-spacing: -.045em; }
  .hero-float { font-size: 11.5px; padding: 9px 12px; }
  .hero-float.f1 { left: -2px; top: 3%; }
  .hero-float.f2 { right: -2px; bottom: 7%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .recs { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .message-board { grid-template-columns: 1fr; }
  .section-head p { display: none; }
  .section-head { gap: 10px; }
  .about { text-align: left; grid-template-columns: 1fr; }
  .about-avatar { margin: 0; width: 112px; height: 112px; }
  .about p { font-size: 14px; }
  .tags { justify-content: flex-start; }
  .promo::after { top: 4px; right: 14px; }
}

@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badge { font-size: 11.5px; }
  .hero-sub { font-size: 14px; min-height: 3.4em; }
  .stats { gap: 10px; }
  .stat { padding: 18px 16px; }
  .stat .num { font-size: 27px; }
  .stat .icon { width: 36px; height: 36px; margin-bottom: 9px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 21px; }
  .card-body { padding: 19px; }
  .promo { padding: 21px 18px; }
  .promo p { font-size: 13.5px; }
  .promo-actions .btn { flex: 1 1 100%; }
  .schedule-item { padding: 19px; }
  .works { gap: 14px; }
  .rec { padding: 21px; }
  .interact { grid-template-columns: 1fr; }
  .interact-item { padding: 22px 18px; }
  .message { padding: 16px; }
  .footer { padding: 42px 20px 54px; }
}

/* 触摸 / 窄屏关闭悬停类特效，避免误触和横向溢出 */
@media (hover: none), (max-width: 900px) {
  .cursor-glow { display: none; }
  .fx-glare { display: none; }
  .fx-tilt,
  .fx-tilt:hover {
    transform: none !important;
    --lift: 0px;
  }
  .work:hover .work-cover img { transform: none; }
}

/* ---------- 移动端稳定模式 ----------
   移动端 GPU 对“全屏模糊层 + 文字背景裁剪动画 + 逐字重绘”的持续合成不稳定，
   会表现为 Hero 签名和按钮区域屏闪。这里保留静态视觉，只停掉持续动画；
   桌面端（>768px 且精确指针）不受影响。 */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .bg { contain: layout paint; }
  .bg-orb { display: none; }
  .fx-canvas { display: none !important; }
  .bg-aurora,
  .avatar-ring,
  .avatar-ring::before,
  .hero-float,
  .live-dot,
  .hero h1 .grad,
  .hero-sub .cursor,
  .promo::before,
  .footer .heart {
    animation: none !important;
  }
  .hero { isolation: isolate; }
  .hero h1 .grad {
    background-position: 50% 50%;
    filter: none;
  }
  .hero-sub .cursor { display: none; }
  .avatar-ring,
  .hero-float { transform: none; }
  .promo::before { display: none; }
}

/* ---------- 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-aurora,
  .fx-canvas,
  .cursor-glow { display: none !important; }
  .js .reveal,
  .js .reveal.is-visible,
  .js [data-stagger] > *,
  .js .reveal.is-visible [data-stagger] > * {
    opacity: 1 !important;
    translate: 0 0 !important;
  }
  .fx-tilt,
  .fx-tilt:hover { transform: none !important; }
  .btn { transform: none !important; }
  .hero h1 .grad {
    animation: none;
    background-position: 50% 50%;
  }
  .promo::before { display: none; }
}
