:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-mute: #6b6b85;
  --brand: #e94560;
  --brand-2: #0f3460;
  --brand-3: #16213e;
  --accent: #ffb703;
  --line: rgba(26, 26, 46, 0.1);
  --line-strong: rgba(26, 26, 46, 0.18);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --grad-brand: linear-gradient(135deg, #e94560 0%, #ff6b81 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(15, 52, 96, 0.12));
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"],
body.dark-mode {
  --bg: #0d0d17;
  --bg-soft: #15152a;
  --bg-elev: rgba(30, 30, 55, 0.66);
  --text: #eceef6;
  --text-soft: #b9bcd0;
  --text-mute: #8a8da6;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #0b0b18 0%, #12122a 45%, #1b1b3a 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.18), rgba(90, 120, 220, 0.16));
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(15, 52, 96, 0.14), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover {
  color: #ff6b81;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
  color: var(--text-soft);
}

li { margin-bottom: 0.35em; }

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.4px;
}

::selection {
  background: rgba(233, 69, 96, 0.28);
  color: var(--text);
}

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

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 1px;
  text-decoration: none;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease);
}

.brand-logo:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.brand-logo svg {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.3);
  transition: transform 0.4s var(--ease);
}

.brand-logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

#site-header nav[aria-label="主导航"] {
  flex: 1 1 auto;
}

#site-header nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#site-header nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#site-header nav[aria-label="主导航"] a:hover,
#site-header nav[aria-label="主导航"] a:focus-visible {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.16);
}

.site-search input[type="search"] {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  width: 150px;
  padding: 6px 0;
}

.site-search input[type="search"]::placeholder {
  color: var(--text-mute);
}

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

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.4);
  filter: brightness(1.05);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#menu-toggle { display: none; }

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

main > section {
  margin-bottom: 34px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

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

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  transition: width 0.45s var(--ease);
}

main > section:hover > h2::after {
  width: 110px;
}

main > section h3 {
  margin-top: 26px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}

main > section h4 {
  margin-top: 18px;
  color: var(--brand);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 0 0 20px;
  font-size: 0.86rem;
}

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

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text-mute);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--brand); }

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

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--grad-hero);
  border: 0;
  border-radius: var(--radius-lg);
  color: #f5f5f5;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.45), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(90, 140, 255, 0.35), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}

.hero-slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 26px 26px 0;
  position: relative;
  z-index: 1;
}

.hero-slides figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-slides figure:nth-child(2) { animation-delay: 0.1s; }
.hero-slides figure:nth-child(3) { animation-delay: 0.2s; }

.hero-slides figure:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(233, 69, 96, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-slides svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

.hero-slides figcaption {
  padding: 12px 16px;
  font-size: 0.86rem;
  color: rgba(245, 245, 245, 0.82);
  line-height: 1.6;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 30px clamp(20px, 4vw, 52px) 44px;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  max-width: 900px;
}

.hero-copy p {
  color: rgba(245, 245, 245, 0.84);
  max-width: 860px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.42);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.55);
}

.btn-secondary {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.hero-stats li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(245, 245, 245, 0.82);
  font-size: 0.86rem;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(233, 69, 96, 0.18);
  border-color: rgba(233, 69, 96, 0.5);
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #ffb703, #e94560);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  margin: 0 0 34px;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 50;
}

.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
}

/* ============ Articles / News cards ============ */
#news article,
#articles article {
  margin: 0 0 18px;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

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

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  border-left: 0;
  padding-left: 0;
  font-size: 1.1rem;
}

#news article a,
#articles article a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.1);
  color: var(--brand);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

#news article a:hover,
#articles article a:hover {
  background: var(--grad-brand);
  color: #fff;
  text-decoration: none;
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  padding: 4px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid rgba(233, 69, 96, 0.4);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-50%) rotate(180deg);
}

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

#faq details p {
  margin: 0 0 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  animation: fadeUp 0.4s var(--ease) both;
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 20px 16px 62px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  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: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-sm);
}

/* ============ Contact / lists ============ */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

#contact ul li,
#sitemap ul li,
#links ul li {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: all 0.3s var(--ease);
}

#contact ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}

#sitemap ul li a,
#links ul li a {
  display: block;
  color: var(--text-soft);
  font-weight: 600;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* ============ Footer ============ */
footer {
  background: var(--grad-hero);
  color: rgba(245, 245, 245, 0.82);
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.88rem;
}

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

.footer-inner nav a {
  color: rgba(245, 245, 245, 0.8);
  font-size: 0.88rem;
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

.footer-inner nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.footer-inner nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-inner nav a:hover::after { width: 100%; }

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 120;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.6);
}

/* ============ Animations ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .site-search input[type="search"] { width: 110px; }
  #site-header nav[aria-label="主导航"] a { padding: 6px 9px; font-size: 0.88rem; }
}

@media (max-width: 920px) {
  .header-inner { gap: 10px; }
  #site-header nav[aria-label="主导航"] {
    order: 5;
    flex-basis: 100%;
    display: none;
    padding-bottom: 12px;
  }
  #site-header.nav-open nav[aria-label="主导航"] {
    display: block;
    animation: fadeUp 0.35s var(--ease) both;
  }
  #site-header nav[aria-label="主导航"] ul {
    flex-direction: column;
    gap: 2px;
  }
  #site-header nav[aria-label="主导航"] a {
    display: block;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
  }
  #menu-toggle { display: inline-flex; margin-left: auto; }
  .site-search { order: 6; flex-basis: 100%; }
  .site-search input[type="search"] { width: 100%; }
  .hero-slides { grid-template-columns: 1fr; }
  .anchor-nav { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  main { padding: 16px 12px 44px; }
  main > section {
    padding: 22px 16px;
    border-radius: var(--radius);
    margin-bottom: 22px;
  }
  .header-inner { padding: 0 12px; }
  .brand-logo span { font-size: 1rem; }
  .hero-copy { padding: 24px 18px 34px; }
  .hero-slides { padding: 18px 18px 0; }
  .hero-actions { gap: 10px; }
  .btn-primary,
  .btn-secondary { flex: 1 1 100%; padding: 12px 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats strong { font-size: 1.45rem; }
  #news article,
  #articles article { padding: 18px 16px; }
  #howto ol li { padding: 14px 16px 14px 56px; }
  #contact ul,
  #sitemap ul,
  #links ul { grid-template-columns: 1fr; }
  #back-to-top { right: 14px; bottom: 16px; padding: 10px 14px; font-size: 0.78rem; }
}

@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</｜｜DSML｜｜ calls>