:root {
  --c-primary: #845ef7;
  --c-primary-2: #ff6b6b;
  --c-accent: #22d3ee;
  --c-bg: #f4f5fb;
  --c-bg-2: #ffffff;
  --c-surface: rgba(255, 255, 255, 0.72);
  --c-surface-solid: #ffffff;
  --c-text: #1a1a2e;
  --c-text-2: #4a4a66;
  --c-text-3: #7a7a94;
  --c-border: rgba(26, 26, 46, 0.1);
  --c-shadow: 0 10px 40px -12px rgba(45, 30, 90, 0.18);
  --c-shadow-hover: 0 20px 60px -16px rgba(45, 30, 90, 0.3);
  --grad-hero: linear-gradient(135deg, #ff6b6b 0%, #845ef7 55%, #22d3ee 100%);
  --grad-brand: linear-gradient(135deg, #ff6b6b, #845ef7);
  --grad-soft: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(132, 94, 247, 0.12));
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --blur: saturate(180%) blur(16px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --c-bg: #0f1020;
  --c-bg-2: #171830;
  --c-surface: rgba(28, 30, 54, 0.68);
  --c-surface-solid: #1c1e36;
  --c-text: #f0f1fa;
  --c-text-2: #c2c4dc;
  --c-text-3: #8f92b4;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --c-shadow-hover: 0 20px 60px -16px rgba(0, 0, 0, 0.75);
  --grad-soft: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(132, 94, 247, 0.16));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --c-bg: #0f1020;
    --c-bg-2: #171830;
    --c-surface: rgba(28, 30, 54, 0.68);
    --c-surface-solid: #1c1e36;
    --c-text: #f0f1fa;
    --c-text-2: #c2c4dc;
    --c-text-3: #8f92b4;
    --c-border: rgba(255, 255, 255, 0.1);
    --c-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
    --c-shadow-hover: 0 20px 60px -16px rgba(0, 0, 0, 0.75);
    --grad-soft: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(132, 94, 247, 0.16));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(132, 94, 247, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(255, 107, 107, 0.12), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(34, 211, 238, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

ul,
ol {
  padding-left: 1.25em;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--c-text);
  letter-spacing: 0.01em;
  scroll-margin-top: 90px;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 750;
  position: relative;
  padding-left: 0.75em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-brand);
}

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

p {
  margin: 0.6em 0;
  color: var(--c-text-2);
}

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

/* ===== 头部 ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#site-header.is-scrolled {
  box-shadow: var(--c-shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--c-text);
}

.brand-logo {
  border-radius: 12px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 6px 18px -6px rgba(132, 94, 247, 0.6);
}

.brand:hover .brand-logo {
  transform: rotate(-12deg) scale(1.08);
  box-shadow: 0 10px 26px -6px rgba(255, 107, 107, 0.7);
}

.brand-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.main-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--c-text-2);
  white-space: nowrap;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--c-text);
  background: var(--grad-soft);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 60%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.15rem 0.15rem 0.15rem 0.85rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(132, 94, 247, 0.18);
}

.site-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: 0.88rem;
  width: 11rem;
  padding: 0.3rem 0;
}

.site-search input::placeholder {
  color: var(--c-text-3);
}

.site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(132, 94, 247, 0.8);
  filter: brightness(1.06);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--c-border);
  background: var(--c-surface-solid);
  color: var(--c-text-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--c-text);
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(132, 94, 247, 0.7);
}

#menu-toggle {
  display: none;
}

/* ===== 主容器 ===== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

section {
  margin: 2.5rem 0;
  padding: 1.75rem clamp(1rem, 3vw, 2.25rem);
  background: var(--c-surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--c-shadow);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

section:hover {
  box-shadow: var(--c-shadow-hover);
  border-color: rgba(132, 94, 247, 0.28);
}

/* ===== 首屏 Banner ===== */
#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease-in-out infinite;
  border: 0;
  color: #fff;
  isolation: isolate;
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(500px 300px at 90% 90%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 30, 0) 40%, rgba(10, 8, 30, 0.22) 100%);
  pointer-events: none;
  z-index: -1;
}

#hero h1,
#hero h2 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(20, 10, 50, 0.35);
}

#hero h2::before {
  background: rgba(255, 255, 255, 0.85);
}

.hero-slider {
  position: relative;
  min-height: 0;
}

.slide {
  animation: fadeSlide 0.6s var(--ease) both;
}

.slide[hidden] {
  display: none;
}

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

.hero-lead,
.hero-answer {
  color: rgba(255, 255, 255, 0.95);
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.hero-answer {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.hero-answer strong {
  color: #fff;
}

.cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  color: #2a1a55;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(20, 10, 50, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.cta:hover {
  color: #2a1a55;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(20, 10, 50, 0.65);
  background: #fffaf5;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slider-dots button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease);
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.slider-dots button[aria-selected="true"] {
  background: #fff;
  color: #4a2a8a;
  border-color: #fff;
  box-shadow: 0 8px 20px -8px rgba(20, 10, 50, 0.6);
}

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

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

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

.stat .num {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat .unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 2px;
}

.stat p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  margin: 1.25rem 0 0;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0.55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.86rem;
  background: var(--c-surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--c-text-3);
}

.breadcrumb a {
  color: var(--c-text-2);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--c-text-3);
}

/* ===== 锚点目录 ===== */
.anchor-nav {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--grad-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.anchor-nav h2 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
  padding-left: 0.7em;
}

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

.anchor-nav a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  color: var(--c-text-2);
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(132, 94, 247, 0.8);
}

/* ===== 列表与卡片通用 ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  position: relative;
}

.timeline li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-left: 2px solid var(--c-border);
  margin-left: 0.5rem;
  color: var(--c-text-2);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--c-bg);
  transition: transform 0.3s var(--ease);
}

.timeline li:hover {
  border-left-color: var(--c-primary);
  transform: translateX(4px);
}

.timeline li:hover::before {
  transform: scale(1.25);
}

.case {
  margin: 1rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #ff6b6b, #845ef7) 1;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-hover);
}

.case h3 {
  margin-top: 0;
}

blockquote {
  margin: 1rem 0;
  padding: 1.1rem 1.35rem;
  background: var(--grad-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -0.2rem;
  left: 0.6rem;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--c-primary);
  opacity: 0.28;
  font-family: Georgia, serif;
}

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

blockquote p {
  margin: 0;
  padding-left: 1.6rem;
  color: var(--c-text);
}

blockquote footer {
  margin-top: 0.6rem;
  padding-left: 1.6rem;
  font-size: 0.88rem;
  color: var(--c-text-3);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.news-list li {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px dashed var(--c-border);
  color: var(--c-text-2);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.news-list li:hover {
  background: var(--grad-soft);
  transform: translateX(4px);
  padding-left: 1.2rem;
}

.news-list time {
  display: inline-block;
  font-weight: 700;
  color: var(--c-primary);
  margin-right: 0.6rem;
  font-variant-numeric: tabular-nums;
}

/* ===== 文章卡片 ===== */
#articles {
  display: block;
}

.post {
  margin: 1rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.post::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: var(--c-shadow-hover);
  border-color: rgba(132, 94, 247, 0.3);
}

.post:hover::after {
  transform: scaleY(1);
}

.post h3 {
  margin: 0 0 0.35rem;
}

.post h3 a {
  color: var(--c-text);
}

.post h3 a:hover {
  color: var(--c-primary);
}

.post .meta {
  font-size: 0.82rem;
  color: var(--c-text-3);
  margin: 0 0 0.5rem;
}

.post > a:last-child {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--c-border);
  transition: all 0.25s var(--ease);
}

.post > a:last-child:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateX(4px);
}

/* ===== FAQ ===== */
details {
  margin: 0.7rem 0;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.2rem 1.1rem;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

details[open] {
  border-color: rgba(132, 94, 247, 0.35);
  box-shadow: var(--c-shadow);
}

details:hover {
  border-color: rgba(132, 94, 247, 0.3);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.6rem 0.85rem 0;
  font-weight: 700;
  color: var(--c-text);
  position: relative;
  transition: color 0.25s var(--ease);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--grad-soft);
  border: 1px solid var(--c-border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

summary:hover {
  color: var(--c-primary);
}

details > p {
  margin: 0 0 0.9rem;
  padding-top: 0.2rem;
  border-top: 1px dashed var(--c-border);
  padding-top: 0.7rem;
  animation: fadeSlide 0.4s var(--ease) both;
}

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

#howto ol > li {
  counter-increment: step;
  position: relative;
  padding: 0.8rem 0 0.8rem 3rem;
  margin: 0.5rem 0;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px -6px rgba(132, 94, 247, 0.8);
}

#howto ol > li:hover {
  transform: translateX(4px);
  box-shadow: var(--c-shadow);
}

#howto ul li {
  margin: 0.35rem 0;
  color: var(--c-text-2);
}

#howto ul li::marker {
  color: var(--c-primary);
}

/* ===== 联系我们 ===== */
.contact-info,
.contact-promise,
.contact-security {
  margin: 1rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.contact-info:hover,
.contact-promise:hover,
.contact-security:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-hover);
  border-color: rgba(132, 94, 247, 0.3);
}

.contact-info h3,
.contact-promise h3,
.contact-security h3 {
  margin-top: 0;
}

.contact-info p,
.contact-promise p,
.contact-security p {
  margin: 0.35rem 0;
}

/* ===== 网站地图 / 友链 ===== */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

#sitemap a,
#links a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  color: var(--c-text-2);
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(132, 94, 247, 0.8);
}

/* ===== 页脚 ===== */
#site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, transparent, rgba(132, 94, 247, 0.08));
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.footer-brand,
.footer-meta,
.footer-legal {
  padding: 1.1rem 1.25rem;
  background: var(--c-surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.footer-brand:hover,
.footer-meta:hover,
.footer-legal:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-hover);
}

.footer-brand p,
.footer-meta p,
.footer-legal p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--c-text-2);
}

.footer-brand strong {
  font-size: 1.05rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-legal h2 {
  font-size: 0.98rem;
  margin: 0.9rem 0 0.3rem;
  padding-left: 0.6em;
}

.footer-legal h2::before {
  width: 4px;
}

.footer-legal h2:first-child {
  margin-top: 0;
}

/* ===== 返回顶部 ===== */
#back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 14px 32px -12px rgba(132, 94, 247, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 40px -12px rgba(255, 107, 107, 0.9);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .main-nav ul {
    gap: 0;
  }
  .main-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }
  .site-search input {
    width: 8.5rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 130px;
  }
  .header-inner {
    padding: 0.55rem 1rem;
  }
  #menu-toggle {
    display: inline-block;
  }
  .main-nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }
  .main-nav.is-open {
    max-height: 620px;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 0.75rem;
    gap: 0.15rem;
  }
  .main-nav a {
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .main-nav a::after {
    display: none;
  }
  .header-tools {
    margin-left: auto;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }
  main {
    padding: 0 0.85rem 1.5rem;
  }
  section {
    margin: 1.5rem 0;
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
  }
  #hero {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius);
  }
  .site-search {
    order: 10;
    flex-basis: 100%;
    width: 100%;
    padding-left: 0.9rem;
  }
  .site-search input {
    width: 100%;
    flex: 1;
  }
  .header-inner {
    gap: 0.5rem;
  }
  .brand-text {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 0.6rem;
  }
  .stat {
    padding: 0.7rem 0.4rem;
  }
  .stat p {
    font-size: 0.76rem;
  }
  .slider-dots button {
    width: 30px;
    height: 30px;
  }
  .anchor-nav {
    padding: 0.85rem 0.9rem;
  }
  .anchor-nav a {
    font-size: 0.8rem;
    padding: 0.28rem 0.7rem;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    padding: 1.75rem 0.85rem 2.5rem;
    gap: 1rem;
  }
  #back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }
  .breadcrumb ol {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

/* ===== 打印 ===== */
@media print {
  #site-header,
  #back-to-top,
  .slider-dots,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section,
  .post,
  details,
  .case,
  blockquote {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}