:root {
  --brand: #ff8a3d;
  --brand-2: #ff5e62;
  --brand-3: #ffd166;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --border: rgba(20, 24, 40, 0.1);
  --border-strong: rgba(20, 24, 40, 0.18);
  --text: #1c2033;
  --text-soft: #4a5068;
  --text-mute: #767c94;
  --shadow-sm: 0 2px 8px rgba(24, 28, 48, 0.06);
  --shadow: 0 10px 30px rgba(24, 28, 48, 0.1);
  --shadow-lg: 0 24px 60px rgba(24, 28, 48, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --header-h: 64px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0f1220;
  --bg-soft: #171b2e;
  --bg-elev: rgba(30, 35, 56, 0.72);
  --bg-glass: rgba(28, 33, 54, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1fa;
  --text-soft: #c3c9dd;
  --text-mute: #8e96b0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::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 8% -8%, rgba(255, 138, 61, 0.14), transparent 60%),
    radial-gradient(800px 480px at 96% 4%, rgba(124, 92, 255, 0.14), transparent 62%),
    radial-gradient(700px 500px at 50% 100%, rgba(0, 212, 255, 0.08), transparent 65%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

img,
svg,
video {
  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,
a:focus-visible {
  color: var(--brand-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

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

h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.32rem); }

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.45em;
}

strong {
  color: var(--text);
}

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.3em;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

blockquote p {
  color: var(--text);
  margin-bottom: 0.5em;
  font-size: 1.02rem;
}

blockquote footer {
  color: var(--text-mute);
  font-size: 0.9rem;
  font-style: normal;
}

time {
  color: var(--text-mute);
  font-size: 0.88rem;
}

address {
  font-style: normal;
}

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

.top-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.brand-logo {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.top-slogan {
  font-size: 0.82rem;
  color: var(--text-mute);
  padding: 0.15rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  white-space: nowrap;
}

#theme-toggle {
  margin-left: auto;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#theme-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 94, 98, 0.35);
}

#main-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  flex: 1 1 auto;
}

#main-nav ul li {
  margin: 0;
}

#main-nav ul li a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav ul li a:hover {
  color: var(--text);
  background: var(--bg-glass);
  transform: translateY(-1px);
}

#main-nav ul li a:hover::after {
  width: 60%;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
}

#site-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#site-search input[type="search"] {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.45rem 0.9rem;
  width: 190px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: width 0.3s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#site-search input[type="search"]:focus {
  width: 230px;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.16);
  outline: none;
}

#site-search button[type="submit"] {
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  color: #fff;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(255, 94, 98, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 94, 98, 0.4);
  filter: brightness(1.05);
}

#menu-toggle {
  display: none;
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#menu-toggle:hover {
  transform: translateY(-2px);
  background: var(--bg-soft);
}

/* ============ 主内容 ============ */
#main-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

#main-content > section,
#main-content > nav {
  margin-bottom: 1.6rem;
}

#main-content > section {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: rise 0.7s var(--ease) both;
}

#main-content > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

#main-content > section:nth-of-type(odd) {
  background: var(--bg-elev);
}

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

/* ============ 面包屑 ============ */
#breadcrumb {
  font-size: 0.86rem;
}

#breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

#breadcrumb ol li {
  margin: 0;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#breadcrumb ol li + li::before {
  content: "/";
  color: var(--text-mute);
  opacity: 0.6;
}

#breadcrumb ol li a {
  color: var(--text-soft);
}

#breadcrumb ol li a:hover {
  color: var(--brand);
}

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

/* ============ 首屏 Banner ============ */
#hero {
  position: relative;
  padding: 2.6rem 2rem 2.2rem !important;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 209, 102, 0.4), transparent 60%),
    radial-gradient(500px 320px at 10% 90%, rgba(0, 212, 255, 0.35), transparent 60%),
    linear-gradient(125deg, #ff5e62 0%, #ff8a3d 38%, #7c5cff 100%);
  background-size: 180% 180%;
  animation: heroShift 16s ease-in-out infinite alternate, rise 0.8s var(--ease) both;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 24px 60px rgba(255, 94, 98, 0.28) !important;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 70% 80%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(300px 180px at 20% 20%, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}

#hero > * {
  position: relative;
  z-index: 1;
}

@keyframes heroShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

#hero:hover {
  transform: none !important;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: 0.8rem;
}

#hero .hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  line-height: 1.85;
  max-width: 60ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

.banner-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 1.8rem;
}

.banner-slide {
  padding: 1.3rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.banner-slide:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.banner-slide h2 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 1rem;
}

.stat-item {
  padding: 1rem 0.9rem;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.26);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.2rem;
}

#hero .hero-update {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0.9rem 0 0;
}

/* ============ 锚点导航 ============ */
#anchor-nav {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

#anchor-nav h2 {
  font-size: 0.95rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.7rem;
}

#anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#anchor-nav ul li {
  margin: 0;
}

#anchor-nav ul li a {
  display: inline-block;
  padding: 0.32rem 0.85rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#anchor-nav ul li a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.3);
}

/* ============ 文章卡片 ============ */
#articles article,
#news article {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

#articles article h3,
#news article h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

#articles article h3 a,
#news article h3 a {
  color: var(--text);
}

#articles article h3 a:hover,
#news article h3 a:hover {
  color: var(--brand);
}

#articles article p,
#news article p {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

#articles article a[href] {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(255, 138, 61, 0.14), rgba(124, 92, 255, 0.14));
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

#articles article a[href]:hover {
  transform: translateX(4px);
  color: var(--brand-2);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 0.8rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

#faq details[open] {
  border-color: rgba(255, 138, 61, 0.5);
  box-shadow: 0 12px 30px rgba(255, 138, 61, 0.14);
}

#faq summary {
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

#faq summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

#faq summary:hover {
  background: rgba(255, 138, 61, 0.08);
}

#faq details p {
  margin: 0;
  padding: 0 1.2rem 1.1rem 3.1rem;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeIn 0.35s var(--ease) both;
}

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

/* ============ 教程 ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  position: relative;
  padding: 0.7rem 1rem 0.7rem 3rem;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#howto ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

#howto ul li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}

#howto ul li:last-child {
  border-bottom: none;
}

/* ============ 联系 ============ */
#contact address ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
}

#contact address ul li {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#contact address ul li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ============ 网站地图 / 友情链接 ============ */
#sitemap ul,
#friend-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#sitemap ul li,
#friend-links ul li {
  margin: 0;
}

#sitemap ul li a,
#friend-links ul li a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap ul li a:hover,
#friend-links ul li a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  border-color: transparent;
}

/* ============ 页脚 ============ */
#site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

#site-footer section {
  padding: 1.3rem 1.3rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-footer section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

#site-footer section h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#site-footer section p {
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

#site-footer section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

#site-footer section ul li {
  margin-bottom: 0.35rem;
  color: var(--text-soft);
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.4rem;
  z-index: 120;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  padding: 0.65rem 1.05rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--accent));
  box-shadow: 0 12px 30px rgba(255, 94, 98, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.5);
  filter: brightness(1.06);
}

/* ============ 滚动动画（配合 IntersectionObserver） ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .banner-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  #site-search input[type="search"] {
    width: 150px;
  }
  #site-search input[type="search"]:focus {
    width: 180px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 58px;
  }
  #main-nav {
    align-items: flex-start;
  }
  #main-nav ul {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0 0.3rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  #main-nav.menu-open ul {
    display: flex;
    animation: fadeIn 0.3s var(--ease) both;
  }
  #main-nav ul li a {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }
  #main-nav ul li a::after {
    display: none;
  }
  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  #site-search {
    order: 2;
    flex: 1 1 auto;
    margin-left: 0.4rem;
  }
  #site-search input[type="search"],
  #site-search input[type="search"]:focus {
    width: 100%;
    flex: 1 1 auto;
  }
  .top-slogan {
    display: none;
  }
  #main-content > section {
    padding: 1.4rem 1.1rem;
  }
  #hero {
    padding: 2rem 1.2rem 1.6rem !important;
  }
  #faq details p {
    padding-left: 1.2rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }
  .top-bar {
    padding: 0.5rem 1rem;
  }
  #main-nav {
    padding: 0 1rem 0.5rem;
  }
  #main-content {
    padding: 1rem 0.85rem 2.2rem;
  }
  #main-content > section,
  #main-content > nav {
    margin-bottom: 1.1rem;
  }
  #main-content > section {
    padding: 1.2rem 1rem;
    border-radius: var(--radius);
  }
  .banner-carousel {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .stat-item {
    padding: 0.8rem 0.6rem;
  }
  #anchor-nav {
    padding: 1rem 1rem;
  }
  #anchor-nav ul li a {
    font-size: 0.8rem;
    padding: 0.28rem 0.7rem;
  }
  #sitemap ul,
  #friend-links ul {
    gap: 0.4rem;
  }
  #sitemap ul li a,
  #friend-links ul li a {
    font-size: 0.8rem;
    padding: 0.26rem 0.68rem;
  }
  #site-footer {
    grid-template-columns: 1fr;
    padding: 0.5rem 0.85rem 5rem;
  }
  #contact address ul {
    grid-template-columns: 1fr;
  }
  #back-to-top {
    right: 0.85rem;
    bottom: 0.9rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }
  #faq summary {
    padding: 0.8rem 0.95rem;
    font-size: 0.94rem;
  }
  #faq details p {
    padding: 0 0.95rem 0.95rem 2.7rem;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  #site-search button[type="submit"] {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* ============ 打印 ============ */
@media print {
  #site-header,
  #anchor-nav,
  #back-to-top,
  #site-search,
  #menu-toggle,
  #theme-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  #main-content > section,
  #site-footer section {
    box-shadow: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
    animation: none;
  }
  #hero {
    background: #eee !important;
    color: #000 !important;
    box-shadow: none !important;
    animation: none;
  }
  #hero h1,
  #hero .hero-lead,
  .banner-slide h2,
  .banner-slide p,
  .stat-num,
  .stat-label,
  #hero .hero-update {
    color: #000 !important;
    text-shadow: none !important;
  }
  .banner-slide,
  .stat-item {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}