@charset "UTF-8";

/* ==========================================================================
   AI漫剧 1v4sb.cn - 全站样式表
   风格：赛博霓虹 · 暗夜渐变 · 毛玻璃
   ========================================================================== */

:root {
  --brand: #1a1a2e;
  --brand-2: #16213e;
  --accent: #e94560;
  --accent-2: #533483;
  --accent-3: #8bd3dd;
  --accent-4: #f5c542;
  --text: #1d1d2b;
  --text-soft: #4a4a5e;
  --bg: #f4f4fa;
  --bg-2: #ffffff;
  --muted: #6b6b80;
  --line: rgba(26, 26, 46, 0.12);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.06);
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 22px 60px rgba(26, 26, 46, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --grad-brand: linear-gradient(135deg, #1a1a2e 0%, #533483 55%, #e94560 130%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #f5c542 120%);
  --grad-cool: linear-gradient(135deg, #0f3460 0%, #533483 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

body.dark {
  --text: #eaeaf5;
  --text-soft: #c3c3d6;
  --bg: #0c0c16;
  --bg-2: #12121c;
  --muted: #9a9ab2;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(30, 30, 48, 0.62);
  --card-solid: #1a1a28;
  --glass: rgba(22, 22, 38, 0.55);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(83, 52, 131, 0.16), transparent 62%),
    radial-gradient(900px 560px at 96% 4%, rgba(233, 69, 96, 0.13), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(139, 211, 221, 0.12), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark {
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(83, 52, 131, 0.42), transparent 62%),
    radial-gradient(900px 560px at 96% 4%, rgba(233, 69, 96, 0.24), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(139, 211, 221, 0.14), transparent 62%);
}

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

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

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

ul,
ol {
  list-style: none;
}

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

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

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: content-box;
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  display: block;
}

/* ---------- 顶部导航（毛玻璃） ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 30px rgba(26, 26, 46, 0.06);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

body.dark header.site {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.3);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand:hover .logo {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.45);
}

.brand span {
  background: linear-gradient(120deg, var(--text) 20%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}

.nav nav > ul > li > a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}

.nav nav > ul > li > a:hover {
  color: var(--accent);
  background: rgba(233, 69, 96, 0.08);
}

.nav nav > ul > li > a:hover::after {
  width: 22px;
}

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

.nav-tools button {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-tools button:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: var(--grad-accent);
  box-shadow: 0 10px 24px rgba(233, 69, 96, 0.35);
}

.nav-tools button:active {
  transform: translateY(0) scale(0.97);
}

.menu-btn {
  display: none;
}

/* 站内搜索 */
.search-box {
  display: none;
  padding: 12px 20px 16px;
  animation: dropIn 0.35s var(--ease);
}

.search-box input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Banner 轮播 ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--grad-brand);
  color: #fff;
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  background:
    radial-gradient(620px 320px at 18% 22%, rgba(139, 211, 221, 0.28), transparent 68%),
    radial-gradient(560px 300px at 82% 78%, rgba(245, 197, 66, 0.22), transparent 68%);
  filter: blur(6px);
  z-index: -1;
  animation: auroraFloat 16s ease-in-out infinite alternate;
}

@keyframes auroraFloat {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.08);
  }
}

.slides {
  display: flex;
  transition: transform 0.72s var(--ease);
  will-change: transform;
}

.slide {
  min-width: 100%;
  min-height: 420px;
  padding: 84px 20px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 100%);
  pointer-events: none;
}

.slide > * {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.slide h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.32;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.9s var(--ease) both;
}

.slide p {
  max-width: 660px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  animation: slideUp 0.9s 0.12s var(--ease) both;
}

.slide .cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.42);
  animation: slideUp 0.9s 0.22s var(--ease) both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.slide .cta::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

.slide .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(233, 69, 96, 0.55);
  filter: brightness(1.06);
}

.slide .cta:hover::after {
  transform: translateX(5px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 3;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.dots span:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.2);
}

.dots span.on {
  width: 28px;
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.7);
}

/* ---------- 通用 Section ---------- */
section {
  position: relative;
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

section:last-of-type {
  border-bottom: none;
}

section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(83, 52, 131, 0.045), transparent 60%);
}

body.dark section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(83, 52, 131, 0.16), transparent 60%);
}

/* ---------- 标题体系 ---------- */
h1 {
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  position: relative;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.42;
  font-weight: 800;
  margin-bottom: 22px;
  padding-left: 18px;
  letter-spacing: 0.01em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  bottom: 0.24em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-accent);
  box-shadow: 0 0 16px rgba(233, 69, 96, 0.55);
}

h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 30px 0 12px;
  color: var(--text);
}

h3:first-child {
  margin-top: 0;
}

h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

body.dark h4 {
  color: #c39bf0;
}

p {
  margin-bottom: 15px;
  color: var(--text-soft);
}

section > .wrap > p:first-of-type {
  font-size: 16.5px;
  color: var(--text);
}

strong {
  color: var(--text);
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

ul,
ol {
  margin: 0 0 18px 4px;
}

ul li,
ol li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  color: var(--text-soft);
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
}

ol {
  counter-reset: olc;
}

ol li {
  padding-left: 30px;
  counter-increment: olc;
}

ol li::before {
  content: counter(olc);
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 3px 10px rgba(233, 69, 96, 0.4);
}

/* ---------- 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3,
.card h4 {
  margin-top: 0;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin-bottom: 0;
}

.card ul li a {
  color: var(--text-soft);
}

.card ul li a:hover {
  color: var(--accent);
}

/* ---------- 数据统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  text-align: center;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 26px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.22), transparent 70%);
  transition: transform 0.6s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat:hover::after {
  transform: scale(1.35);
}

.stat b {
  display: block;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 锚点导航 ---------- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.anchor-nav a {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.32s var(--ease), color 0.32s var(--ease),
    border-color 0.32s var(--ease), box-shadow 0.32s var(--ease),
    background 0.32s var(--ease);
}

.anchor-nav a:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: transparent;
  background: var(--grad-accent);
  box-shadow: 0 10px 24px rgba(233, 69, 96, 0.34);
}

/* ---------- 提示框 ---------- */
.notice {
  position: relative;
  margin: 22px 0;
  padding: 16px 20px 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.1), rgba(83, 52, 131, 0.04));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  animation: noticeGlow 4.5s ease-in-out infinite alternate;
}

@keyframes noticeGlow {
  from {
    box-shadow: 0 0 0 rgba(233, 69, 96, 0);
  }
  to {
    box-shadow: 0 0 26px rgba(233, 69, 96, 0.18);
  }
}

.notice strong {
  color: var(--accent);
}

/* ---------- 表格 ---------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  font-size: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  background: var(--grad-cool);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

tbody tr {
  transition: background 0.3s var(--ease);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(233, 69, 96, 0.07);
}

td {
  color: var(--text-soft);
}

/* ---------- 文章列表 ---------- */
.article-item {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.article-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--grad-accent);
  transform: translateY(-50%);
  transition: height 0.5s var(--ease);
}

.article-item:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-lg);
}

.article-item:hover::after {
  height: 62%;
}

.article-item .thumb {
  flex: 0 0 132px;
  width: 132px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.article-item:hover .thumb {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.28);
}

.article-item .thumb svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.article-item > div:last-child {
  min-width: 0;
}

.article-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.55;
  transition: color 0.3s var(--ease);
}

.article-item:hover h3 {
  color: var(--accent);
}

.article-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.article-item p {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.article-item .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.32s var(--ease), color 0.32s var(--ease);
}

.article-item .more:hover {
  gap: 9px;
  color: var(--accent-2);
}

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.faq-item:hover {
  border-color: rgba(233, 69, 96, 0.32);
  box-shadow: var(--shadow);
}

.faq-item.on {
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: var(--shadow);
}

.faq-q {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
  color: var(--text);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  user-select: none;
}

.faq-q:hover {
  color: var(--accent);
  background: rgba(233, 69, 96, 0.05);
}

.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease);
}

.faq-item.on .faq-q::after {
  transform: rotate(135deg);
  box-shadow: 0 4px 18px rgba(233, 69, 96, 0.6);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease),
    opacity 0.4s var(--ease);
  opacity: 0;
}

.faq-item.on .faq-a {
  max-height: 720px;
  padding-bottom: 18px;
  opacity: 1;
}

.faq-a p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 页脚 ---------- */
footer.site {
  position: relative;
  overflow: hidden;
  padding: 56px 0 26px;
  background: var(--grad-brand);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

footer.site::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(520px 300px at 12% 20%, rgba(139, 211, 221, 0.2), transparent 68%),
    radial-gradient(520px 300px at 88% 82%, rgba(233, 69, 96, 0.24), transparent 68%);
  pointer-events: none;
}

footer.site .wrap {
  position: relative;
  z-index: 1;
}

footer.site h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

footer.site h4::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--grad-accent);
}

footer.site p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  margin-bottom: 10px;
}

footer.site ul {
  margin: 0;
}

footer.site ul li {
  padding-left: 0;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
}

footer.site ul li::before {
  display: none;
}

footer.site a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

footer.site a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.3s var(--ease);
}

footer.site a:hover {
  color: #fff;
  padding-left: 12px;
}

footer.site a:hover::before {
  width: 8px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.foot-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 返回顶部 ---------- */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 300;
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    filter 0.4s var(--ease);
  animation: popIn 0.4s var(--ease);
}

#toTop:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 16px 38px rgba(233, 69, 96, 0.6);
  filter: brightness(1.08);
}

#toTop:active {
  transform: translateY(-1px) scale(0.96);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.reveal:nth-child(5) {
  transition-delay: 0.24s;
}

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .nav nav > ul {
    gap: 0;
    font-size: 14px;
  }
  .nav nav > ul > li > a {
    padding: 8px 9px;
  }
  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .foot-grid > div:last-child {
    grid-column: span 3;
  }
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 响应式：移动端 ---------- */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav {
    height: 62px;
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .brand .logo {
    width: 32px;
    height: 32px;
  }

  .nav nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
  }

  .nav nav > ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--glass-line);
    box-shadow: 0 22px 44px rgba(26, 26, 46, 0.16);
    animation: dropIn 0.32s var(--ease);
  }

  .nav nav > ul.open {
    display: flex;
  }

  .nav nav > ul > li > a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .nav nav > ul > li > a::after {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .g2,
  .g3 {
    grid-template-columns: 1fr;
  }

  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slide {
    min-height: 380px;
    padding: 64px 20px 84px;
  }

  .slide h2 {
    font-size: 24px;
  }

  .slide p {
    font-size: 15px;
  }

  .article-item {
    flex-direction: column;
    gap: 14px;
  }

  .article-item .thumb {
    flex: none;
    width: 100%;
    max-width: 260px;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .foot-grid > div:last-child {
    grid-column: span 2;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  table thead,
  table tbody {
    display: table;
    width: 100%;
    min-width: 520px;
  }

  section {
    padding: 52px 0;
  }
}

/* ---------- 响应式：小屏手机 ---------- */
@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .wrap {
    padding: 0 16px;
  }

  .nav-tools button {
    padding: 6px 12px;
    font-size: 13px;
  }

  .g4,
  .stats,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid > div:last-child {
    grid-column: span 1;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
    padding-left: 15px;
  }

  h3 {
    font-size: 17px;
  }

  .slide {
    min-height: 340px;
    padding: 52px 16px 76px;
  }

  .slide h2 {
    font-size: 21px;
  }

  .slide .cta {
    padding: 11px 22px;
    font-size: 14px;
  }

  .card,
  .stat,
  .article-item,
  .faq-item {
    border-radius: var(--radius-sm);
  }

  .card {
    padding: 20px;
  }

  .stat b {
    font-size: 27px;
  }

  .faq-q {
    padding: 15px 16px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 16px;
  }

  .notice {
    padding: 14px 16px 14px 18px;
  }

  #toTop {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .anchor-nav a {
    padding: 6px 13px;
    font-size: 13px;
  }
}

/* ---------- 无障碍 / 动效偏好 ---------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 打印 ---------- */
@media print {
  header.site,
  footer.site,
  #toTop,
  .banner,
  .dots,
  .anchor-nav,
  .search-box {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  .article-item,
  .faq-item,
  table {
    box-shadow: none;
    border-color: #ccc;
    background: #fff;
  }
  .faq-a {
    max-height: none;
    opacity: 1;
    padding-bottom: 12px;
  }
}