:root {
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #12233d;
  --text-soft: #4a5f7d;
  --text-muted: #7b8ca6;
  --brand: #0b1f3a;
  --brand-2: #123a63;
  --accent: #3ddc97;
  --accent-2: #f5c542;
  --accent-3: #9fd9ff;
  --line: rgba(18, 35, 61, 0.12);
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

html[data-theme="dark"] {
  --bg: #060d18;
  --bg-soft: #0c1728;
  --bg-elevated: rgba(14, 26, 44, 0.72);
  --glass: rgba(16, 30, 50, 0.55);
  --glass-border: rgba(120, 170, 230, 0.18);
  --text: #eaf2ff;
  --text-soft: #a9c0dc;
  --text-muted: #7e93b0;
  --brand: #eaf2ff;
  --brand-2: #9fd9ff;
  --line: rgba(150, 190, 240, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #060d18;
    --bg-soft: #0c1728;
    --bg-elevated: rgba(14, 26, 44, 0.72);
    --glass: rgba(16, 30, 50, 0.55);
    --glass-border: rgba(120, 170, 230, 0.18);
    --text: #eaf2ff;
    --text-soft: #a9c0dc;
    --text-muted: #7e93b0;
    --brand: #eaf2ff;
    --brand-2: #9fd9ff;
    --line: rgba(150, 190, 240, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(61, 220, 151, 0.16), transparent 46%),
    radial-gradient(circle at 88% 4%, rgba(159, 217, 255, 0.18), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(245, 197, 66, 0.1), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(61, 220, 151, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1 {
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  background: linear-gradient(100deg, var(--brand) 8%, var(--brand-2) 48%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

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

time {
  color: var(--text-muted);
  font-size: 0.86rem;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  border-left: 5px solid var(--accent);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

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

address {
  font-style: normal;
}

small {
  color: var(--text-muted);
}

/* ============ 头部 ============ */

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

header[role="banner"] > a:first-child {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #04231a;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  z-index: 200;
}

header[role="banner"] > a:first-child:focus {
  left: 0;
}

header[role="banner"] > div:first-of-type {
  flex: 0 0 auto;
}

header[role="banner"] > div:first-of-type > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

header[role="banner"] > div:first-of-type > a svg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

header[role="banner"] > div:first-of-type > a:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow);
}

header[role="banner"] > div:first-of-type > a span {
  font-size: 1rem;
  color: var(--text-muted);
}

header[role="banner"] > div:first-of-type > a strong {
  font-size: 1.05rem;
  background: linear-gradient(100deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

header[role="banner"] nav {
  flex: 1 1 420px;
  min-width: 0;
}

header[role="banner"] nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

header[role="banner"] nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

header[role="banner"] nav a:hover,
header[role="banner"] nav a:focus-visible {
  background: linear-gradient(120deg, rgba(61, 220, 151, 0.18), rgba(159, 217, 255, 0.2));
  color: var(--text);
  transform: translateY(-2px);
}

header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 220px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

header[role="banner"] form[role="search"]:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}

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

header[role="banner"] form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 6px 0;
}

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

header[role="banner"] form[role="search"] button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #04231a;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

header[role="banner"] form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 220, 151, 0.35);
  filter: brightness(1.05);
}

header[role="banner"] > button {
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header[role="banner"] > button:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(61, 220, 151, 0.2), rgba(245, 197, 66, 0.22));
  box-shadow: var(--shadow-sm);
}

header[role="banner"] > button[data-menu-toggle] {
  display: none;
}

/* ============ 面包屑 ============ */

body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 0;
}

body > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

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

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

body > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
  font-weight: 600;
}

body > nav[aria-label="面包屑导航"] a:hover {
  color: var(--accent);
}

body > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

/* ============ 布局容器 ============ */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px) clamp(48px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

main > section {
  position: relative;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(61, 220, 151, 0.35);
}

main > section:first-child {
  padding: clamp(26px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.94) 0%, rgba(18, 58, 99, 0.9) 45%, rgba(61, 220, 151, 0.28) 130%),
    var(--glass);
  border-color: rgba(159, 217, 255, 0.28);
  overflow: hidden;
}

main > section:first-child::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.35), transparent 68%);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

main > section:first-child h1 {
  background: linear-gradient(100deg, #ffffff 5%, var(--accent-3) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

main > section:first-child p {
  color: rgba(226, 240, 255, 0.88);
  max-width: 78ch;
  position: relative;
  z-index: 1;
}

main > section:first-child > div[aria-label="平台核心数据"] {
  position: relative;
  z-index: 1;
  margin: 26px 0 30px;
}

main > section:first-child > div[aria-label="平台核心数据"] ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

main > section:first-child > div[aria-label="平台核心数据"] li {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(226, 240, 255, 0.82);
  font-size: 0.88rem;
  text-align: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

main > section:first-child > div[aria-label="平台核心数据"] li:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
}

main > section:first-child > div[aria-label="平台核心数据"] strong {
  display: block;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(61, 220, 151, 0.4);
}

/* ============ 轮播 ============ */

main > section:first-child > div[aria-label="首页轮播"] {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

main > section:first-child > div[aria-label="首页轮播"] ul {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

main > section:first-child > div[aria-label="首页轮播"] ul::-webkit-scrollbar {
  height: 8px;
}

main > section:first-child > div[aria-label="首页轮播"] ul::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: 999px;
}

main > section:first-child > div[aria-label="首页轮播"] li {
  flex: 0 0 min(88%, 720px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

main > section:first-child > div[aria-label="首页轮播"] li:hover {
  transform: translateY(-8px) scale(1.012);
}

main > section:first-child > div[aria-label="首页轮播"] svg {
  width: 100%;
  display: block;
}

/* ============ 通用列表 ============ */

main section ul:not([data-carousel]) {
  display: grid;
  gap: 12px;
}

main section ul:not([data-carousel]) li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

main section ul:not([data-carousel]) li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 1.35em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}

main section ul:not([data-carousel]) li:hover {
  transform: translateX(6px);
  border-color: rgba(61, 220, 151, 0.4);
  box-shadow: var(--shadow-sm);
  background: var(--glass);
}

main section ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

main section ol > li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 60px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

main section ol > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  color: #04231a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px rgba(61, 220, 151, 0.3);
}

main section ol > li:hover {
  transform: translateX(6px);
  border-color: rgba(159, 217, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

/* ============ 文章卡片 ============ */

main article {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

main article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

main article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61, 220, 151, 0.4);
}

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

main article h3 {
  margin-bottom: 6px;
}

main article h3 a {
  color: var(--text);
  background-image: linear-gradient(90deg, var(--accent), var(--accent-3));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
}

main article h3 a:hover {
  color: var(--brand-2);
  background-size: 100% 2px;
}

main article p {
  margin-bottom: 0.7em;
}

main article p:last-child {
  margin-bottom: 0;
}

main article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

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

main article > a:last-child:hover::after {
  transform: translateX(5px);
}

#articles > article {
  margin-bottom: 16px;
}

#news > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

#news > ul > li {
  padding: 0;
  background: none;
  border: 0;
}

#news > ul > li::before {
  display: none;
}

#news > ul > li:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: none;
}

/* ============ FAQ ============ */

#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

#faq details:hover {
  border-color: rgba(61, 220, 151, 0.4);
  box-shadow: var(--shadow);
}

#faq details[open] {
  border-color: rgba(61, 220, 151, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

#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: #04231a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
}

#faq summary:hover {
  background: linear-gradient(120deg, rgba(61, 220, 151, 0.12), rgba(159, 217, 255, 0.14));
}

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-soft);
  animation: fadeSlide 0.45s var(--ease);
}

/* ============ 联系区 ============ */

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

#contact address li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#contact address li:hover {
  transform: translateY(-4px);
  border-color: rgba(159, 217, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

#contact address li::before {
  display: none;
}

#contact address li {
  padding-left: 18px;
}

#contact address li:hover {
  transform: translateY(-4px);
}

/* ============ 页脚 ============ */

footer[role="contentinfo"] {
  position: relative;
  margin-top: 20px;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 40px) 28px;
  background:
    linear-gradient(160deg, rgba(11, 31, 58, 0.97), rgba(18, 58, 99, 0.94) 60%, rgba(6, 22, 42, 0.98)),
    var(--bg-soft);
  color: rgba(226, 240, 255, 0.86);
  border-top: 1px solid rgba(159, 217, 255, 0.2);
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.22), transparent 70%);
  pointer-events: none;
}

footer[role="contentinfo"] > section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(159, 217, 255, 0.14);
}

footer[role="contentinfo"] > section:last-of-type {
  border-bottom: 0;
}

footer[role="contentinfo"] h2 {
  font-size: 1.1rem;
  color: #ffffff;
  padding-left: 14px;
  margin-bottom: 14px;
}

footer[role="contentinfo"] h2::before {
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

footer[role="contentinfo"] p {
  color: rgba(226, 240, 255, 0.72);
  font-size: 0.9rem;
}

footer[role="contentinfo"] a {
  color: var(--accent-3);
}

footer[role="contentinfo"] a:hover {
  color: var(--accent);
}

footer[role="contentinfo"] nav ul,
footer[role="contentinfo"] section > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

footer[role="contentinfo"] nav ul li,
footer[role="contentinfo"] section > ul li {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

footer[role="contentinfo"] nav ul li::before,
footer[role="contentinfo"] section > ul li::before {
  display: none;
}

footer[role="contentinfo"] nav ul li:hover,
footer[role="contentinfo"] section > ul li:hover {
  transform: none;
}

footer[role="contentinfo"] nav a,
footer[role="contentinfo"] section > ul a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(226, 240, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(159, 217, 255, 0.18);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

footer[role="contentinfo"] nav a:hover,
footer[role="contentinfo"] section > ul a:hover {
  transform: translateY(-3px);
  background: linear-gradient(120deg, rgba(61, 220, 151, 0.28), rgba(159, 217, 255, 0.24));
  color: #ffffff;
}

footer[role="contentinfo"] > p {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

footer[role="contentinfo"] small {
  color: rgba(226, 240, 255, 0.55);
}

/* ============ 返回顶部 ============ */

button[data-back-to-top] {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 120;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  color: #04231a;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(61, 220, 151, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}

button[data-back-to-top]:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 18px 42px rgba(61, 220, 151, 0.45);
  filter: brightness(1.06);
}

/* ============ 滚动动画 ============ */

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

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
  to {
    transform: translate3d(-30px, 26px, 0) scale(1.12);
    opacity: 1;
  }
}

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

@supports (animation-timeline: view()) {
  main > section,
  main article,
  #faq details,
  footer[role="contentinfo"] > section {
    animation: riseIn 0.8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 32%;
  }
}

@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;
  }
}

/* ============ 响应式 ============ */

@media (max-width: 1024px) {
  header[role="banner"] nav {
    order: 3;
    flex: 1 1 100%;
  }

  header[role="banner"] form[role="search"] {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  html {
    scroll-padding-top: 84px;
  }

  header[role="banner"] {
    gap: 10px 12px;
    padding: 10px 16px;
  }

  header[role="banner"] > div:first-of-type > a span {
    display: none;
  }

  header[role="banner"] > div:first-of-type > a strong {
    font-size: 0.98rem;
  }

  header[role="banner"] > div:first-of-type > a svg {
    width: 40px;
    height: 40px;
  }

  header[role="banner"] nav {
    flex: 1 1 100%;
    order: 4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }

  header[role="banner"] nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 10px;
  }

  header[role="banner"] nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  header[role="banner"] form[role="search"] {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
  }

  header[role="banner"] > button[data-menu-toggle] {
    display: inline-block;
    order: 2;
  }

  header[role="banner"] > button[aria-label="切换暗黑模式"] {
    order: 1;
    margin-left: auto;
  }

  main > section:first-child > div[aria-label="首页轮播"] li {
    flex: 0 0 88%;
  }

  main > section:first-child > div[aria-label="平台核心数据"] ul {
    grid-template-columns: repeat(2, 1fr);
  }

  main > section:first-child > div[aria-label="平台核心数据"] li {
    padding: 14px 12px;
  }

  #news > ul {
    grid-template-columns: 1fr;
  }

  main section ul:not([data-carousel]) li,
  main section ol > li {
    font-size: 0.92rem;
  }

  button[data-back-to-top] {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
    gap: 22px;
  }

  main > section {
    padding: 18px 16px;
    border-radius: var(--radius);
  }

  main > section:first-child {
    padding: 22px 16px;
  }

  main section ul:not([data-carousel]) li {
    padding: 12px 14px 12px 40px;
  }

  main section ol > li {
    padding: 14px 14px 14px 54px;
  }

  #faq summary {
    padding: 14px 48px 14px 16px;
    font-size: 0.95rem;
  }

  #faq details p {
    padding: 0 16px 18px;
  }

  footer[role="contentinfo"] {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============ 打印 ============ */

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  button[data-back-to-top],
  button[data-menu-toggle],
  button[data-theme-toggle] {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #cccccc;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}