:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #141428;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.72);
  --bg-card-hover: rgba(30, 30, 56, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-strong: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8cc;
  --text-muted: #8888a0;
  --accent-primary: #e94560;
  --accent-secondary: #0f3460;
  --accent-gradient: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ff5a75 0%, #1a4a7a 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(233, 69, 96, 0.4);
  --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.5);
  --shadow-glow: 0 0 24px rgba(233, 69, 96, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 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", "Consolas", monospace;
  --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.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eeeef5;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --bg-glass-strong: rgba(255, 255, 255, 0.7);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #8888a0;
  --accent-primary: #d63350;
  --accent-secondary: #0f3460;
  --accent-gradient: linear-gradient(135deg, #d63350 0%, #0f3460 100%);
  --accent-gradient-hover: linear-gradient(135deg, #e94560 0%, #1a4a7a 100%);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(214, 51, 80, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 24px rgba(214, 51, 80, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  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-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(233, 69, 96, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(15, 52, 96, 0.12), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

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

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

#site-header:hover {
  box-shadow: var(--shadow-md);
}

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

#site-header nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: filter var(--transition-fast);
}

#site-header nav > a:first-child:hover {
  filter: brightness(1.3);
}

#site-header nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

#site-header nav > ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#site-header nav > ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-strong);
  transform: translateY(-1px);
}

#site-header nav > ul li a::after {
  display: none;
}

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

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

#site-header form[role="search"] input[type="search"] {
  width: 200px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  outline: none;
}

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

#site-header form[role="search"] input[type="search"]:focus {
  width: 260px;
  border-color: var(--accent-primary);
  background: var(--bg-glass-strong);
  box-shadow: var(--shadow-glow);
}

#site-header form[role="search"] button[type="submit"] {
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#site-header form[role="search"] button[type="submit"]:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

#site-header nav > button[aria-label="打开菜单"] {
  display: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

#site-header nav > button[aria-label="打开菜单"]:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-color-hover);
}

#site-header nav > button[aria-label="切换暗黑模式"] {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#site-header nav > button[aria-label="切换暗黑模式"]:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
}

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

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

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

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

main > section {
  margin-top: 48px;
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

main > section:nth-child(1) { animation-delay: 0.05s; }
main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.15s; }
main > section:nth-child(4) { animation-delay: 0.2s; }
main > section:nth-child(5) { animation-delay: 0.25s; }
main > section:nth-child(6) { animation-delay: 0.3s; }
main > section:nth-child(7) { animation-delay: 0.35s; }
main > section:nth-child(8) { animation-delay: 0.4s; }
main > section:nth-child(9) { animation-delay: 0.45s; }
main > section:nth-child(10) { animation-delay: 0.5s; }
main > section:nth-child(11) { animation-delay: 0.55s; }
main > section:nth-child(12) { animation-delay: 0.6s; }
main > section:nth-child(13) { animation-delay: 0.65s; }
main > section:nth-child(14) { animation-delay: 0.7s; }
main > section:nth-child(15) { animation-delay: 0.75s; }
main > section:nth-child(16) { animation-delay: 0.8s; }

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

#hero {
  position: relative;
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both, gradientShift 12s ease infinite;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.2), transparent 50%);
  pointer-events: none;
}

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

#hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 16px;
  line-height: 1.8;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

main > section:not(#hero) {
  padding: 40px 36px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

main > section:not(#hero):hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

main > section > h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 28px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

main > section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

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

main > section h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--text-primary);
  position: relative;
  padding-left: 18px;
}

main > section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

main > section h4 {
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--accent-primary);
  font-weight: 600;
}

main > section p {
  margin-bottom: 14px;
  line-height: 1.85;
}

main > section > ul,
main > section > ol {
  margin: 16px 0;
  padding-left: 0;
}

main > section > ul li,
main > section > ol li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

main > section > ul li:last-child,
main > section > ol li:last-child {
  border-bottom: none;
}

main > section > ul li:hover,
main > section > ol li:hover {
  padding-left: 34px;
  color: var(--text-primary);
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
}

main > section > ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

main > section > ul li:hover::before {
  transform: translateY(-50%) scale(1.4);
}

main > section > ol {
  counter-reset: item;
}

main > section > ol li {
  counter-increment: item;
}

main > section > ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: 50%;
}

#news article,
#articles article {
  padding: 24px 28px;
  margin-bottom: 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

#news article:hover,
#articles article:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 1.15rem;
}

#news article h3::before,
#articles article h3::before {
  display: none;
}

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

#articles article h3 a:hover {
  color: var(--accent-primary);
  background-size: 100% 2px;
}

#articles article h3 a::after {
  display: none;
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 3px 12px;
  background: var(--bg-glass-strong);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

#news article p,
#articles article p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.8;
}

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

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

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

#articles article p:last-child a:hover {
  gap: 12px;
  color: var(--text-primary);
}

#articles article p:last-child a:hover::after {
  transform: translateX(4px);
}

#testimonials blockquote {
  position: relative;
  padding: 28px 32px 28px 56px;
  margin-bottom: 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

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

#testimonials blockquote:hover {
  background: var(--bg-card-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-primary);
}

#testimonials blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
}

#faq details {
  margin-bottom: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

#faq details:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

#faq summary {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-primary);
  background: var(--bg-glass-strong);
  border-radius: 50%;
  transition: all var(--transition-base);
}

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

#faq summary:hover {
  color: var(--accent-primary);
  background: var(--bg-glass);
}

#faq details p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease both;
}

#howto ol {
  counter-reset: howto;
  margin: 20px 0;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 16px 20px 16px 64px;
  margin-bottom: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-base);
  line-height: 1.75;
}

#howto ol li::before {
  content: counter(howto, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

#howto ol li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateX(6px);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.1) rotate(-4deg);
  box-shadow: var(--shadow-glow);
}

#contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  font-size: 0.95rem;
}

#contact p:last-child {
  border-bottom: none;
}

#contact p strong {
  color: var(--text-primary);
}

#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

#sitemap ul li {
  padding: 0 !important;
  border-bottom: none !important;
}

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

#sitemap ul li a {
  display: block;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

#sitemap ul li a:hover {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

#links ul li {
  padding: 0 !important;
  border-bottom: none !important;
}

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

#links ul li a {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

#links ul li a:hover {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

footer {
  position: relative;
  margin-top: 60px;
  padding: 60px 24px 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 28px 32px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

footer > section:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

footer > section:last-child {
  margin-bottom: 0;
}

footer h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  position: relative;
}

footer h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.8;
}

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

footer a {
  color: var(--accent-primary);
}

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

button[aria-label="返回顶部"] {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  animation: pulseGlow 3s ease-in-out infinite;
}

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

button[aria-label="返回顶部"]:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: none;
}

@media (max-width: 1024px) {
  #site-header nav {
    gap: 10px;
  }

  #site-header nav > ul {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding: 8px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  #site-header nav > ul li a {
    font-size: 0.85rem;
    padding: 7px 12px;
  }

  #site-header form[role="search"] input[type="search"] {
    width: 150px;
  }

  #site-header form[role="search"] input[type="search"]:focus {
    width: 200px;
  }

  main > section:not(#hero) {
    padding: 32px 28px;
  }
}

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

  body {
    font-size: 15px;
  }

  #site-header nav {
    padding: 0 16px;
    gap: 8px;
  }

  #site-header nav > a:first-child {
    font-size: 1.15rem;
  }

  #site-header nav > button[aria-label="打开菜单"] {
    display: block;
    margin-left: auto;
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  #site-header nav > ul {
    display: none;
  }

  #site-header form[role="search"] {
    order: 4;
    width: 100%;
    padding: 8px 0 12px;
  }

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

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

  #site-header nav > button[aria-label="切换暗黑模式"] {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  nav[aria-label="面包屑导航"] {
    padding: 12px 16px 0;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 40px;
  }

  main > section {
    margin-top: 32px;
  }

  #hero {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

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

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

  #hero figure {
    margin-top: 24px;
  }

  main > section:not(#hero) {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  main > section > h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  main > section h3 {
    font-size: 1.1rem;
    margin-top: 22px;
  }

  main > section h4 {
    font-size: 1rem;
  }

  #news article,
  #articles article {
    padding: 18px 20px;
  }

  #news article h3,
  #articles article h3 {
    font-size: 1.05rem;
  }

  #testimonials blockquote {
    padding: 22px 20px 22px 48px;
  }

  #testimonials blockquote::before {
    font-size: 2.8rem;
    left: 12px;
  }

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

  #faq details p {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
    font-size: 0.92rem;
  }

  #howto ol li::before {
    left: 12px;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  #sitemap ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }

  #sitemap ul li a {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  #links ul {
    gap: 8px;
  }

  #links ul li a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  footer {
    padding: 40px 16px 32px;
  }

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

  footer h2 {
    font-size: 1.05rem;
  }

  footer p {
    font-size: 0.85rem;
  }

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

  button[aria-label="返回顶部"]::after {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #site-header nav > a:first-child {
    font-size: 1rem;
  }

  #site-header nav > button[aria-label="打开菜单"],
  #site-header nav > button[aria-label="切换暗黑模式"] {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  #hero {
    padding: 32px 18px;
  }

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

  main > section:not(#hero) {
    padding: 20px 16px;
  }

  main > section > h2 {
    font-size: 1.15rem;
  }

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

  #testimonials blockquote {
    padding: 18px 14px 18px 40px;
  }

  #testimonials blockquote::before {
    font-size: 2.2rem;
    left: 8px;
  }

  #howto ol li {
    padding: 12px 12px 12px 48px;
    font-size: 0.88rem;
  }

  #howto ol li::before {
    left: 10px;
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

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

  footer > section {
    padding: 16px 14px;
  }
}

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

@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(255, 255, 255, 0.25);
    --text-secondary: #d0d0e0;
    --text-muted: #b0b0c0;
  }
}

@media print {
  #site-header,
  button[aria-label="返回顶部"],
  #site-header form[role="search"],
  #hero figure {
    display: none !important;
  }

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

  main > section:not(#hero) {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}