:root {
  --color-primary: #6C5CE7;
  --color-primary-light: #A29BFE;
  --color-primary-dark: #4A3FD1;
  --color-secondary: #00B894;
  --color-secondary-light: #55EFC4;
  --color-accent: #E17055;
  --color-accent-light: #FAB1A0;
  --color-warning: #FDCB6E;
  --color-danger: #FF7675;
  --color-bg: #F7F8FC;
  --color-bg-alt: #FFFFFF;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-text: #2D3436;
  --color-text-secondary: #636E72;
  --color-text-muted: #B2BEC3;
  --color-border: rgba(108, 92, 231, 0.12);
  --color-border-strong: rgba(108, 92, 231, 0.24);
  --gradient-hero: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 45%, #55EFC4 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.55) 100%);
  --gradient-accent: linear-gradient(135deg, #E17055 0%, #FDCB6E 100%);
  --gradient-secondary: linear-gradient(135deg, #00B894 0%, #55EFC4 100%);
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.18);
  --shadow-glow: 0 0 0 1px rgba(108, 92, 231, 0.08), 0 12px 32px rgba(108, 92, 231, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --blur-glass: 18px;
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #12121A;
    --color-bg-alt: #1A1A26;
    --color-surface: rgba(30, 30, 46, 0.65);
    --color-surface-hover: rgba(40, 40, 60, 0.85);
    --color-text: #EDEDF4;
    --color-text-secondary: #A8A8BC;
    --color-text-muted: #6C6C82;
    --color-border: rgba(162, 155, 254, 0.14);
    --color-border-strong: rgba(162, 155, 254, 0.28);
    --gradient-hero: linear-gradient(135deg, #3D2FA8 0%, #6C5CE7 50%, #00B894 100%);
    --gradient-card: linear-gradient(145deg, rgba(40,40,60,0.8) 0%, rgba(26,26,38,0.5) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 0 1px rgba(162, 155, 254, 0.12), 0 12px 32px rgba(108, 92, 231, 0.25);
  }
}

html[data-theme="dark"] {
  --color-bg: #12121A;
  --color-bg-alt: #1A1A26;
  --color-surface: rgba(30, 30, 46, 0.65);
  --color-surface-hover: rgba(40, 40, 60, 0.85);
  --color-text: #EDEDF4;
  --color-text-secondary: #A8A8BC;
  --color-text-muted: #6C6C82;
  --color-border: rgba(162, 155, 254, 0.14);
  --color-border-strong: rgba(162, 155, 254, 0.28);
  --gradient-hero: linear-gradient(135deg, #3D2FA8 0%, #6C5CE7 50%, #00B894 100%);
  --gradient-card: linear-gradient(145deg, rgba(40,40,60,0.8) 0%, rgba(26,26,38,0.5) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(162, 155, 254, 0.12), 0 12px 32px rgba(108, 92, 231, 0.25);
}

html[data-theme="light"] {
  --color-bg: #F7F8FC;
  --color-bg-alt: #FFFFFF;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-text: #2D3436;
  --color-text-secondary: #636E72;
  --color-text-muted: #B2BEC3;
  --color-border: rgba(108, 92, 231, 0.12);
  --color-border-strong: rgba(108, 92, 231, 0.24);
  --gradient-hero: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 45%, #55EFC4 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.55) 100%);
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.18);
  --shadow-glow: 0 0 0 1px rgba(108, 92, 231, 0.08), 0 12px 32px rgba(108, 92, 231, 0.15);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(0, 184, 148, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(225, 112, 85, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75em;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

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

blockquote {
  margin: 1.25em 0;
  padding: 1em 1.25em;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-surface);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-sm);
}

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

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

address {
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

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

header nav > a[aria-label] {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

header nav > a[aria-label]:hover {
  opacity: 1;
  filter: brightness(1.08);
}

header nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}

header nav > ul::-webkit-scrollbar {
  display: none;
}

header nav > ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

header nav > ul li a:hover {
  color: var(--color-primary);
  background: rgba(108, 92, 231, 0.1);
  opacity: 1;
}

header nav form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

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

header nav form[role="search"] input[type="search"] {
  width: 180px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

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

header nav form[role="search"] input[type="search"]:focus {
  width: 220px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
  outline: none;
}

header nav form[role="search"] button[type="submit"] {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

header nav form[role="search"] button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

header nav > button[type="button"] {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

header nav > button[type="button"]:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-1px);
}

header nav > button[aria-label="打开移动菜单"] {
  display: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 20px;
}

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

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

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

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

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

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

#hero {
  position: relative;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px);
  margin-bottom: 32px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.6em;
}

#hero > p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 820px;
  line-height: 1.85;
  margin-bottom: 1.25em;
}

#hero > p a {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-base);
}

#hero > p a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 1;
}

#hero > p a + a {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#hero > p a + a:hover {
  background: rgba(255, 255, 255, 0.26);
}

#hero section[aria-labelledby="carousel-title"] {
  margin-top: 32px;
}

#hero section[aria-labelledby="carousel-title"] > h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

#hero section[aria-labelledby="carousel-title"] > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

#hero section[aria-labelledby="carousel-title"] figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#hero section[aria-labelledby="carousel-title"] figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

#hero section[aria-labelledby="carousel-title"] figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero section[aria-labelledby="carousel-title"] figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.18);
}

#hero section[aria-labelledby="stats-title"] {
  margin-top: 32px;
}

#hero section[aria-labelledby="stats-title"] > h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

#hero section[aria-labelledby="stats-title"] dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

#hero section[aria-labelledby="stats-title"] dl > div {
  padding: 16px 14px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

#hero section[aria-labelledby="stats-title"] dl > div:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

#hero section[aria-labelledby="stats-title"] dt {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

#hero section[aria-labelledby="stats-title"] dd {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

aside[aria-labelledby="toc-title"] {
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-sm);
}

aside[aria-labelledby="toc-title"] h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.02em;
}

aside[aria-labelledby="toc-title"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

aside[aria-labelledby="toc-title"] ul li a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

aside[aria-labelledby="toc-title"] ul li a:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

main > section {
  padding: clamp(20px, 3.5vw, 36px) clamp(18px, 3vw, 32px);
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.1em;
  color: var(--color-text);
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: var(--gradient-hero);
}

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

main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.15s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }
main > section:nth-of-type(6) { animation-delay: 0.25s; }

main > section ul:not([class]) {
  display: grid;
  gap: 10px;
  margin: 1em 0;
}

main > section > ul:not([class]) > li {
  position: relative;
  padding: 12px 16px 12px 40px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: 1.7;
  transition: all var(--transition-fast);
}

main > section > ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

main > section > ul:not([class]) > li:hover {
  border-color: var(--color-border-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

main > section ol:not([class]) {
  display: grid;
  gap: 10px;
  margin: 1em 0;
  counter-reset: ol-counter;
}

main > section ol:not([class]) > li {
  position: relative;
  padding: 12px 16px 12px 52px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: 1.7;
  counter-increment: ol-counter;
  transition: all var(--transition-fast);
}

main > section ol:not([class]) > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-hero);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

main > section ol:not([class]) > li:hover {
  border-color: var(--color-border-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#brand ul:not([class]) li {
  border-left: 3px solid var(--color-primary-light);
}

#products > ul:not([class]) > li {
  border-left: 3px solid var(--color-secondary);
}

#products > ul:not([class]) > li::before {
  background: var(--gradient-secondary);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.12);
}

#news > ul > li,
#articles > article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  overflow: hidden;
}

#news > ul > li::before,
#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

#news > ul > li:hover,
#articles > article:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

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

#news > ul > li h3,
#articles > article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

#news > ul > li h3 a,
#articles > article h3 a {
  color: var(--color-text);
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--transition-base), color var(--transition-fast);
}

#news > ul > li h3 a:hover,
#articles > article h3 a:hover {
  color: var(--color-primary);
  background-size: 100% 2px;
  opacity: 1;
}

#news > ul > li p,
#articles > article p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

#news > ul > li p:first-of-type,
#articles > article p:first-of-type {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

#articles > article > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 4px 0;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

#articles > article > a:hover {
  gap: 8px;
  color: var(--color-primary-dark);
  opacity: 1;
}

#articles > article > a:hover::after {
  transform: translateX(3px);
}

#faq details {
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

#faq details[open] {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

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

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-primary);
  background: rgba(108, 92, 231, 0.1);
  border-radius: 50%;
  transition: all var(--transition-base);
}

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

#faq summary:hover {
  color: var(--color-primary);
  background: rgba(108, 92, 231, 0.04);
}

#faq details p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  animation: fadeInUp 0.35s ease both;
}

#howto ol:not([class]) > li {
  border-left: 3px solid var(--color-primary-light);
}

#howto ul:not([class]) > li::before {
  background: var(--gradient-accent);
  box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.12);
}

#notes {
  border-left: 4px solid var(--color-warning);
}

#contact address ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 1em 0;
}

#contact address ul li {
  position: relative;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: 1.6;
  transition: all var(--transition-fast);
}

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

#contact address ul li a {
  font-weight: 600;
}

footer {
  margin-top: 48px;
  padding: 48px 20px 32px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  background-size: 200% 100%;
  animation: gradientShift 10s ease infinite;
}

footer > nav {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

footer > nav section h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
  letter-spacing: 0.02em;
}

footer > nav section ul {
  display: grid;
  gap: 8px;
}

footer > nav section ul li a {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  padding: 2px 0;
  transition: all var(--transition-fast);
}

footer > nav section ul li a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
  opacity: 1;
}

footer > section[aria-labelledby="copyright-title"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

footer > section[aria-labelledby="copyright-title"] h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

footer > section[aria-labelledby="copyright-title"] p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

footer > button[type="button"] {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #fff;
  background: var(--gradient-hero);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

footer > button[type="button"]::before {
  content: "↑";
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

footer > button[type="button"]:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.4);
}

footer > button[type="button"]:active {
  transform: translateY(-1px) scale(0.98);
}

@media (max-width: 1024px) {
  header nav form[role="search"] input[type="search"] {
    width: 140px;
  }
  header nav form[role="search"] input[type="search"]:focus {
    width: 170px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 60px;
  }

  header nav {
    gap: 10px;
    padding: 0 14px;
  }

  header nav > ul {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 8px;
    margin-top: -4px;
  }

  header nav > ul li a {
    font-size: 0.82rem;
    padding: 5px 10px;
  }

  header nav form[role="search"] {
    flex: 1;
    justify-content: flex-end;
  }

  header nav form[role="search"] input[type="search"] {
    width: 100%;
    max-width: 200px;
  }

  header nav form[role="search"] input[type="search"]:focus {
    max-width: 220px;
  }

  header nav > button[aria-label="打开移动菜单"] {
    display: inline-block;
  }

  main {
    padding: 16px 14px 48px;
  }

  #hero {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  #hero section[aria-labelledby="carousel-title"] > ul {
    grid-template-columns: 1fr;
  }

  #hero section[aria-labelledby="stats-title"] dl {
    grid-template-columns: repeat(2, 1fr);
  }

  aside[aria-labelledby="toc-title"] {
    padding: 16px 18px;
  }

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

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

  footer {
    padding: 36px 14px 28px;
  }

  footer > nav {
    gap: 24px;
  }
}

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

  header nav > a[aria-label] {
    font-size: 1.05rem;
  }

  header nav form[role="search"] input[type="search"] {
    max-width: 130px;
    padding: 7px 12px;
  }

  header nav form[role="search"] input[type="search"]:focus {
    max-width: 150px;
  }

  header nav form[role="search"] button[type="submit"] {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  header nav > button[type="button"] {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  #hero {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  #hero > p a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }

  #hero section[aria-labelledby="stats-title"] dl {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #hero section[aria-labelledby="stats-title"] dl > div {
    padding: 12px 10px;
  }

  main > section {
    padding: 18px 14px;
  }

  main > section > h2 {
    padding-left: 14px;
    font-size: 1.25rem;
  }

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

  main > section > ul:not([class]) > li,
  main > section ol:not([class]) > li {
    padding: 10px 12px 10px 34px;
    font-size: 0.88rem;
  }

  main > section > ul:not([class]) > li::before {
    left: 12px;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
  }

  main > section ol:not([class]) > li {
    padding-left: 46px;
  }

  main > section ol:not([class]) > li::before {
    left: 10px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  #news > ul > li,
  #articles > article {
    padding: 16px 14px;
  }

  #faq summary {
    padding: 14px 46px 14px 14px;
    font-size: 0.88rem;
  }

  #faq summary::after {
    right: 14px;
  }

  #faq details p {
    padding: 0 14px 14px;
    font-size: 0.86rem;
  }

  footer > button[type="button"] {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 16px;
  }

  footer > button[type="button"]::before {
    font-size: 1.15rem;
  }
}

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

  #hero {
    animation: none;
  }
}

@media print {
  header,
  footer > button[type="button"],
  aside[aria-labelledby="toc-title"],
  #hero section[aria-labelledby="carousel-title"] {
    display: none;
  }

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

  main > section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }

  #hero {
    background: #eee;
    color: #000;
  }

  #hero h1,
  #hero > p {
    color: #000;
    text-shadow: none;
  }
}