:root {
  --primary: #e94560;
  --primary-dark: #c73650;
  --primary-light: #ff6b81;
  --secondary: #0f3460;
  --accent: #533483;
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --bg-card: #1f2947;
  --bg-card-hover: #263352;
  --text-primary: #f1f1f1;
  --text-secondary: #b8c1d9;
  --text-muted: #8892a8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(31, 41, 71, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 32px rgba(233, 69, 96, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 69, 96, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(83, 52, 131, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(15, 52, 96, 0.2), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
button {
  font-size: inherit;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(26, 26, 46, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

header > div > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 50%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}

header > div > a:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

header > div > a:first-child:hover::after {
  transform: scaleX(1);
}

/* Nav */
nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
  order: 3;
  width: 100%;
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

nav[aria-label="主导航"] ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

nav[aria-label="主导航"] ul li a:hover {
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.15);
  transform: translateY(-1px);
}

/* Search form */
header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
  margin-left: auto;
  position: relative;
}

header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form[role="search"] input[type="search"] {
  width: 200px;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  outline: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), width var(--transition-base);
}

header form[role="search"] input[type="search"]::placeholder {
  color: var(--text-muted);
}

header form[role="search"] input[type="search"]:focus {
  width: 240px;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

header form[role="search"] button {
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

header form[role="search"] button:active {
  transform: translateY(0);
}

/* ========== MAIN ========== */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Breadcrumb */
nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] ol li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
}

nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--primary-light);
}

nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--primary-light);
  font-weight: 600;
}

/* ========== SECTIONS ========== */
section {
  position: relative;
  padding: 36px 32px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

section:hover {
  border-color: rgba(233, 69, 96, 0.25);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

section:hover::before {
  opacity: 1;
}

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 40px rgba(233, 69, 96, 0.55); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Headings */
section h2 {
  position: relative;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  padding-left: 18px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.3em;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--primary-light), var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.6);
}

section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 24px 0 12px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

section h3:hover {
  color: var(--primary-light);
}

section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--primary-light);
}

section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
}

section p:last-child {
  margin-bottom: 0;
}

/* ========== HERO ========== */
#hero {
  padding: 48px 40px;
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(83, 52, 131, 0.12)),
    var(--glass-bg);
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.18), transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 20%, var(--primary-light) 50%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

#hero > p {
  position: relative;
  z-index: 1;
  max-width: 900px;
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

#hero [aria-label="Banner轮播"] {
  position: relative;
  z-index: 1;
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(233, 69, 96, 0.2);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero [aria-label="Banner轮播"]:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(233, 69, 96, 0.35);
}

#hero [aria-label="Banner轮播"] svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero [aria-label="平台数据"] ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

#hero [aria-label="平台数据"] ul li {
  padding: 20px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

#hero [aria-label="平台数据"] ul li:hover {
  transform: translateY(-6px);
  background: rgba(233, 69, 96, 0.1);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-glow);
}

#hero [aria-label="平台数据"] ul li strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== LISTS IN SECTIONS ========== */
section ul:not([aria-label="平台数据"] ul):not(nav ul) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 18px;
}

section ul:not([aria-label="平台数据"] ul):not(nav ul) li {
  position: relative;
  padding: 12px 16px 12px 40px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  line-height: 1.7;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

section ul:not([aria-label="平台数据"] ul):not(nav ul) li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.6);
}

section ul:not([aria-label="平台数据"] ul):not(nav ul) li:hover {
  background: rgba(233, 69, 96, 0.08);
  border-color: rgba(233, 69, 96, 0.25);
  transform: translateX(6px);
  color: var(--text-primary);
}

section ul:not([aria-label="平台数据"] ul):not(nav ul) li strong {
  color: var(--primary-light);
  font-weight: 700;
}

/* Ordered lists */
section ol {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 18px;
}

section ol li {
  position: relative;
  counter-increment: step-counter;
  padding: 14px 18px 14px 56px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  line-height: 1.7;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

section ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

section ol li:hover {
  background: rgba(233, 69, 96, 0.08);
  border-color: rgba(233, 69, 96, 0.3);
  transform: translateX(6px);
}

/* ========== ARTICLES / NEWS ========== */
section article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

section article:hover {
  transform: translateY(-4px);
  background: rgba(233, 69, 96, 0.06);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md);
}

section article:hover::before {
  transform: scaleY(1);
}

section article:last-child {
  margin-bottom: 0;
}

section article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

section article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2px 10px;
  margin-bottom: 10px;
  background: rgba(233, 69, 96, 0.12);
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}

section article p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

section article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  padding: 4px 0;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

section article a::after {
  content: "→";
  transition: transform var(--transition-fast);
}

section article a:hover {
  gap: 10px;
  color: var(--primary);
}

/* ========== BLOCKQUOTE / REVIEWS ========== */
section blockquote {
  position: relative;
  padding: 24px 28px 24px 60px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(83, 52, 131, 0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

section blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3.5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.5;
}

section blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(233, 69, 96, 0.35);
}

section blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
}

section blockquote:last-child {
  margin-bottom: 0;
}

/* ========== FAQ ========== */
#faq dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#faq dt {
  position: relative;
  padding: 16px 20px 16px 48px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.14), rgba(83, 52, 131, 0.1));
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: var(--radius-md);
  cursor: default;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
}

#faq dt:hover {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.22), rgba(83, 52, 131, 0.16));
  border-color: rgba(233, 69, 96, 0.4);
  transform: translateX(4px);
}

#faq dd {
  padding: 4px 20px 16px 48px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  border-bottom: 1px dashed var(--border-color);
}

#faq dd:last-child {
  border-bottom: none;
}

/* ========== CONTACT ========== */
#contact address {
  font-style: normal;
}

#contact address ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px !important;
}

#contact address ul li {
  padding: 16px 18px 16px 18px !important;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast) !important;
}

#contact address ul li::before {
  display: none !important;
}

#contact address ul li:hover {
  transform: translateY(-4px) !important;
  background: rgba(233, 69, 96, 0.08) !important;
  border-color: rgba(233, 69, 96, 0.35) !important;
}

#contact address ul li a {
  word-break: break-all;
}

/* ========== SITEMAP / LINKS ========== */
#sitemap ul,
#links ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px !important;
}

#sitemap ul li,
#links ul li {
  padding: 12px 16px !important;
  text-align: center;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

#sitemap ul li::before,
#links ul li::before {
  display: none !important;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-3px) !important;
  background: rgba(233, 69, 96, 0.1) !important;
  border-color: rgba(233, 69, 96, 0.35) !important;
  box-shadow: var(--shadow-sm) !important;
}

#sitemap ul li:hover a,
#links ul li:hover a {
  color: var(--primary-light);
}

/* ========== LEGAL ========== */
#legal h2:not(:first-child) {
  margin-top: 32px;
}

/* ========== FOOTER ========== */
footer {
  width: 100%;
  padding: 40px 24px 32px;
  margin-top: auto;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(15, 52, 96, 0.3));
  border-top: 1px solid var(--border-color);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

footer p {
  max-width: var(--max-width);
  margin: 0 auto 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

footer p:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

footer p:last-child {
  margin-bottom: 0;
}

/* ========== BACK TO TOP ========== */
button[aria-label="返回顶部"] {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  animation: pulseGlow 3s ease-in-out infinite;
}

button[aria-label="返回顶部"]::before {
  content: "↑";
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

button[aria-label="返回顶部"]:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.65);
}

button[aria-label="返回顶部"]:active {
  transform: translateY(-2px) scale(1);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 992px) {
  header > div {
    flex-wrap: nowrap;
  }

  nav[aria-label="主导航"] {
    order: 2;
    width: auto;
    flex: 1 1 auto;
  }

  header form[role="search"] {
    order: 3;
  }
}

@media (max-width: 991px) {
  :root {
    --header-height: 64px;
  }

  header > div {
    padding: 10px 16px;
    gap: 10px 16px;
  }

  nav[aria-label="主导航"] ul {
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] ul li a {
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  header form[role="search"] {
    width: 100%;
    margin-left: 0;
  }

  header form[role="search"] input[type="search"] {
    flex: 1;
    width: auto;
  }

  header form[role="search"] input[type="search"]:focus {
    width: auto;
  }

  main {
    padding: 24px 16px 48px;
    gap: 24px;
  }

  section {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  section h2 {
    font-size: 1.35rem;
    padding-left: 14px;
    margin-bottom: 18px;
  }

  section h2::before {
    width: 4px;
  }

  #hero {
    padding: 32px 20px;
  }

  #hero [aria-label="平台数据"] ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  section::before {
    left: 20px;
    right: 20px;
  }
}

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

  header > div > a:first-child {
    font-size: 1.15rem;
  }

  main {
    padding: 18px 12px 40px;
    gap: 18px;
  }

  section {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
  }

  section h2 {
    font-size: 1.2rem;
  }

  section h3 {
    font-size: 1.05rem;
    margin: 18px 0 10px;
  }

  #hero {
    padding: 26px 16px;
  }

  #hero h1 {
    font-size: 1.45rem;
  }

  #hero > p {
    font-size: 0.95rem;
  }

  #hero [aria-label="平台数据"] ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #hero [aria-label="平台数据"] ul li {
    padding: 14px 10px;
    font-size: 0.78rem;
  }

  #hero [aria-label="平台数据"] ul li strong {
    font-size: 1.25rem;
  }

  section article {
    padding: 16px 16px;
  }

  section blockquote {
    padding: 20px 18px 20px 48px;
  }

  section blockquote::before {
    left: 12px;
    font-size: 2.6rem;
  }

  #faq dt {
    padding: 14px 14px 14px 44px;
    font-size: 0.95rem;
  }

  #faq dd {
    padding: 4px 14px 14px 44px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #contact address ul {
    grid-template-columns: 1fr !important;
  }

  button[aria-label="返回顶部"] {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  footer {
    padding: 28px 16px 24px;
  }

  footer p {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  #hero [aria-label="平台数据"] ul {
    grid-template-columns: 1fr;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

/* ========== LIGHT MODE (prefers-color-scheme) ========== */
@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #f5f7fb;
    --bg-darker: #e8ecf5;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f3fa;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: rgba(26, 26, 46, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(26, 26, 46, 0.1);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  }

  body {
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 69, 96, 0.08), transparent),
      radial-gradient(ellipse 60% 40% at 100% 0%, rgba(83, 52, 131, 0.06), transparent),
      radial-gradient(ellipse 50% 30% at 0% 100%, rgba(15, 52, 96, 0.08), transparent);
  }

  header {
    background: rgba(255, 255, 255, 0.75);
  }

  header > div > a:first-child {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 50%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  header form[role="search"] input[type="search"] {
    background: rgba(26, 26, 46, 0.05);
  }

  header form[role="search"] input[type="search"]:focus {
    background: rgba(26, 26, 46, 0.08);
  }

  #hero h1 {
    background: linear-gradient(120deg, var(--text-primary) 20%, var(--primary) 50%, var(--accent) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  section ul:not([aria-label="平台数据"] ul):not(nav ul) li,
  section ol li,
  section article,
  #contact address ul li,
  #sitemap ul li,
  #links ul li {
    background: rgba(26, 26, 46, 0.03) !important;
  }

  footer {
    background: linear-gradient(180deg, transparent, rgba(15, 52, 96, 0.06));
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-darker);
  }
}

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

/* ========== PRINT ========== */
@media print {
  header,
  footer,
  button[aria-label="返回顶部"],
  #hero [aria-label="Banner轮播"] {
    display: none !important;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ========== ACCESSIBILITY ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (hover: none) {
  section:hover,
  section article:hover,
  section blockquote:hover,
  #hero [aria-label="平台数据"] ul li:hover,
  section ul:not([aria-label="平台数据"] ul):not(nav ul) li:hover,
  section ol li:hover {
    transform: none;
  }
}