:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --border: rgba(15, 26, 43, 0.1);
  --border-strong: rgba(15, 26, 43, 0.18);
  --text: #16202f;
  --text-soft: #4a5769;
  --text-muted: #6b7889;
  --primary: #0f1a2b;
  --primary-soft: #1d2f4a;
  --accent: #f0b429;
  --accent-deep: #d99a0e;
  --accent-soft: rgba(240, 180, 41, 0.16);
  --link: #1f5fbf;
  --shadow-sm: 0 2px 8px rgba(15, 26, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 26, 43, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 26, 43, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #0f1a2b 0%, #1b3355 42%, #3a2a63 72%, #6b3a2e 100%);
  --grad-accent: linear-gradient(120deg, #f0b429 0%, #f6d365 50%, #f0b429 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
}

html[data-theme="dark"] {
  --bg: #0b111c;
  --bg-soft: #0f1826;
  --surface: #141f30;
  --surface-glass: rgba(20, 31, 48, 0.72);
  --surface-glass-strong: rgba(20, 31, 48, 0.9);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #e8eef7;
  --text-soft: #b7c3d4;
  --text-muted: #8b99ad;
  --primary: #e8eef7;
  --primary-soft: #c8d4e4;
  --accent: #f5c451;
  --accent-deep: #f0b429;
  --accent-soft: rgba(245, 196, 81, 0.16);
  --link: #7fb0ff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #060b14 0%, #101f38 40%, #241a44 72%, #3d2018 100%);
  --grad-card: linear-gradient(160deg, rgba(30, 44, 66, 0.92), rgba(20, 31, 48, 0.66));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0b111c;
    --bg-soft: #0f1826;
    --surface: #141f30;
    --surface-glass: rgba(20, 31, 48, 0.72);
    --surface-glass-strong: rgba(20, 31, 48, 0.9);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #e8eef7;
    --text-soft: #b7c3d4;
    --text-muted: #8b99ad;
    --primary: #e8eef7;
    --primary-soft: #c8d4e4;
    --accent: #f5c451;
    --accent-deep: #f0b429;
    --accent-soft: rgba(245, 196, 81, 0.16);
    --link: #7fb0ff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --grad-hero: linear-gradient(135deg, #060b14 0%, #101f38 40%, #241a44 72%, #3d2018 100%);
    --grad-card: linear-gradient(160deg, rgba(30, 44, 66, 0.92), rgba(20, 31, 48, 0.66));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(240, 180, 41, 0.1), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(58, 42, 99, 0.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul,
ol {
  color: var(--text-soft);
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.3em;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0f1a2b;
  font-weight: 700;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ============ Header ============ */
header#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

header#siteHeader.is-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--surface-glass-strong);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 26, 43, 0.25);
  transition: transform 0.45s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand:hover {
  color: var(--accent-deep);
}

nav[aria-label="主导航"] {
  flex: 1;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-menu a:hover::after {
  width: 40%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  width: 168px;
  padding: 6px 4px;
}

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

.search-box button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f1a2b;
  background: var(--grad-accent);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 180, 41, 0.4);
  filter: brightness(1.05);
}

#themeToggle,
#menuToggle {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

#themeToggle:hover,
#menuToggle:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

#menuToggle {
  display: none;
}

/* ============ Main / Layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section {
  margin: 56px 0;
  padding: 36px clamp(18px, 4vw, 44px);
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

main > section > h2:first-child {
  margin-top: 0;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 20px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(240, 180, 41, 0.32), transparent 65%),
    radial-gradient(500px 320px at 8% 95%, rgba(107, 58, 46, 0.5), transparent 60%),
    radial-gradient(420px 260px at 50% 50%, rgba(58, 42, 99, 0.35), transparent 70%);
  z-index: -1;
  animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.12) translate3d(-12px, 8px, 0);
    opacity: 1;
  }
}

.hero-slides {
  position: relative;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 64px) 24px;
}

.hero .slide {
  display: none;
  animation: slideIn 0.7s var(--ease);
  max-width: 820px;
}

.hero .slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero h2 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #ffe9b0 55%, #f0b429 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero h2 {
  padding-bottom: 0;
}

.hero h2::after {
  display: none;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  max-width: 760px;
  line-height: 1.85;
}

.hero .btn,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f1a2b;
  background: var(--grad-accent);
  box-shadow: 0 10px 26px rgba(240, 180, 41, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(240, 180, 41, 0.45);
  filter: brightness(1.04);
  color: #0f1a2b;
}

.btn:hover::after {
  left: 130%;
}

.hero-dots {
  display: flex;
  gap: 10px;
  padding: 0 clamp(22px, 5vw, 64px) clamp(28px, 4vw, 44px);
  position: relative;
  z-index: 2;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dots button[aria-selected="true"] {
  width: 52px;
  background: var(--grad-accent);
}

/* ============ Stats ============ */
.stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  text-align: center;
  margin-top: -36px !important;
  position: relative;
  z-index: 3;
  padding: 30px clamp(16px, 3vw, 36px) !important;
}

.stat-item {
  padding: 18px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent), #f6d365);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ News ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.news-list li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  background: var(--surface-glass-strong);
}

.news-list h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.news-list p {
  margin: 2px 0;
  font-size: 0.9rem;
}

.news-list p:first-of-type {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ============ Articles ============ */
#articles > article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#articles > article:hover::before {
  transform: scaleY(1);
}

#articles article h3 {
  margin-bottom: 8px;
}

#articles article h3 a {
  color: var(--text);
  position: relative;
}

#articles article h3 a:hover {
  color: var(--accent-deep);
}

#articles article p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

#articles article p:first-of-type {
  color: var(--text-muted);
  font-size: 0.8rem;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-deep);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  transition: all 0.28s var(--ease);
}

#articles article > a:last-child::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#articles article > a:last-child:hover {
  background: var(--accent);
  color: #0f1a2b;
}

#articles article > a:last-child:hover::after {
  transform: translateX(4px);
}

/* ============ Article details ============ */
.article-details {
  display: grid;
  gap: 16px;
}

.article-details article {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.article-details article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-details article:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md);
  animation: targetPulse 1.6s var(--ease);
}

@keyframes targetPulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.article-details h3 {
  margin-bottom: 6px;
}

.article-details p {
  font-size: 0.94rem;
}

.article-details p:first-of-type {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 12px;
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 1.2em 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f1a2b;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============ FAQ ============ */
#faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
  background: var(--surface-glass-strong);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  user-select: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--accent);
  color: #0f1a2b;
}

#faq summary:hover {
  color: var(--accent-deep);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.93rem;
  animation: fadeUp 0.4s var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Contact ============ */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.6em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.contact-list li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  word-break: break-word;
}

.contact-list li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============ Sitemap ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  transition: all 0.28s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #0f1a2b;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.3);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(15, 26, 43, 0.06));
  border-top: 1px solid var(--border);
}

html[data-theme="dark"] footer {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 32px;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner p:first-child {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-inner nav {
  margin-top: 18px;
}

.footer-inner nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
}

.footer-inner nav li {
  margin: 0;
}

.footer-inner nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.footer-inner nav a:hover {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

/* ============ Back to top ============ */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.3s var(--ease), color 0.3s var(--ease);
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  background: var(--grad-accent);
  color: #0f1a2b;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(240, 180, 41, 0.4);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .search-box input {
    width: 120px;
  }

  .nav-menu a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 64px;
  }

  #menuToggle {
    display: inline-block;
  }

  nav[aria-label="主导航"] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }

  nav[aria-label="主导航"].is-open {
    max-height: 520px;
    overflow-y: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 2px;
  }

  .nav-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-menu a::after {
    display: none;
  }

  .search-box {
    display: none;
  }

  .nav-inner {
    position: relative;
    justify-content: space-between;
  }

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

  main > section {
    margin: 40px 0;
    padding: 28px 22px;
  }

  .hero {
    min-height: 360px;
  }

  .footer-inner nav ul {
    gap: 2px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 0 14px 30px;
  }

  .breadcrumb {
    padding: 0 14px;
  }

  main > section {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    margin: 32px 0;
  }

  .hero {
    border-radius: var(--radius-md);
    min-height: 0;
  }

  .hero-slides {
    padding: 30px 18px 18px;
  }

  .hero-dots {
    padding: 0 18px 24px;
  }

  .hero .btn {
    width: 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: -24px !important;
    padding: 18px 12px !important;
  }

  .stat-item {
    padding: 14px 8px;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  #articles > article,
  .article-details article,
  .news-list li {
    padding: 16px 16px;
  }

  #howto ol li {
    padding: 12px 14px 12px 50px;
  }

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  #backToTop {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .brand span {
    font-size: 1rem;
  }

  h2::after {
    width: 48px;
    height: 3px;
  }

  blockquote {
    padding: 14px 16px;
  }
}

@media (max-width: 380px) {
  .nav-actions {
    gap: 6px;
  }

  #themeToggle,
  #menuToggle {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .brand svg {
    width: 30px;
    height: 30px;
  }
}

/* ============ Motion & print ============ */
@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;
    scroll-behavior: auto !important;
  }

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

@media print {
  header#siteHeader,
  #backToTop,
  .hero-dots,
  .nav-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section,
  .hero {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}