:root {
  --bg: #0f1020;
  --bg-soft: #171a2f;
  --bg-elev: #1e2140;
  --card: rgba(255, 255, 255, 0.06);
  --card-solid: #1b1e38;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #eef0ff;
  --text-soft: #b8bce0;
  --text-dim: #8a8fb8;
  --primary: #e94560;
  --primary-2: #ff6b8a;
  --accent: #4f7bff;
  --accent-2: #22d3ee;
  --gold: #ffc857;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 140%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #ff6b8a 60%, #ffc857 130%);
  --grad-accent: linear-gradient(135deg, #4f7bff 0%, #22d3ee 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(233, 69, 96, 0.25), 0 18px 50px rgba(233, 69, 96, 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --blur: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1180px;
  --gap: clamp(16px, 2.4vw, 28px);
  --header-h: 68px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fb;
    --bg-soft: #ffffff;
    --bg-elev: #ffffff;
    --card: rgba(255, 255, 255, 0.72);
    --card-solid: #ffffff;
    --border: rgba(20, 24, 60, 0.1);
    --border-strong: rgba(20, 24, 60, 0.18);
    --text: #14183c;
    --text-soft: #454b7a;
    --text-dim: #6b7199;
    --grad-hero: linear-gradient(135deg, #eef1ff 0%, #e2e8ff 35%, #dbe4ff 65%, #ffd9e2 130%);
    --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
    --shadow-sm: 0 4px 14px rgba(20, 24, 60, 0.08);
    --shadow-md: 0 12px 34px rgba(20, 24, 60, 0.12);
    --shadow-lg: 0 24px 60px rgba(20, 24, 60, 0.18);
    --shadow-glow: 0 0 0 1px rgba(233, 69, 96, 0.18), 0 18px 50px rgba(233, 69, 96, 0.16);
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 0.95vw + 12px, 17px);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 8% -6%, rgba(233, 69, 96, 0.16), transparent 62%),
    radial-gradient(820px 480px at 96% 4%, rgba(79, 123, 255, 0.18), transparent 60%),
    radial-gradient(700px 420px at 50% 108%, rgba(34, 211, 238, 0.12), transparent 65%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

h1 {
  font-size: clamp(26px, 3.4vw + 12px, 46px);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(233, 69, 96, 0.25));
}

h2 {
  font-size: clamp(22px, 2.1vw + 12px, 32px);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 999px;
  background: var(--grad-primary);
  box-shadow: 0 0 18px rgba(233, 69, 96, 0.6);
}

h3 {
  font-size: clamp(18px, 1.3vw + 12px, 23px);
  color: var(--text);
}

h4 {
  font-size: clamp(16px, 0.8vw + 12px, 18px);
  color: var(--text-soft);
}

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

ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--primary);
}

time {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  font-size: 0.92em;
}

::selection {
  background: rgba(233, 69, 96, 0.35);
  color: #fff;
}

/* ============ Header / Nav ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  background: linear-gradient(180deg, rgba(15, 16, 32, 0.82), rgba(15, 16, 32, 0.6));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: light) {
  header[role="banner"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  }
}

nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 28px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

nav[aria-label="主导航"] > a {
  font-weight: 900;
  font-size: clamp(17px, 1.1vw + 12px, 21px);
  letter-spacing: 0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

nav[aria-label="主导航"] > a::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.18), 0 0 18px rgba(233, 69, 96, 0.7);
  animation: pulseDot 2.6s var(--ease-soft) infinite;
}

nav[aria-label="主导航"] > a:hover {
  transform: translateY(-1px);
  color: var(--primary-2);
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.18), 0 0 18px rgba(233, 69, 96, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(233, 69, 96, 0.06), 0 0 26px rgba(233, 69, 96, 0.9); }
}

nav[aria-label="主导航"] ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  list-style: none;
  flex-wrap: wrap;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav[aria-label="主导航"] ul li {
  margin: 0;
}

nav[aria-label="主导航"] ul li a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease-soft), background 0.25s var(--ease-soft),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease-soft);
}

nav[aria-label="主导航"] ul li a:hover,
nav[aria-label="主导航"] ul li a:focus-visible {
  color: #fff;
  background: var(--grad-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============ Layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px) clamp(14px, 3vw, 28px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}

main > section {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease-soft);
  animation: rise 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 38%);
  opacity: 0.7;
  mix-blend-mode: overlay;
}

main > section:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: rise 0.7s var(--ease) both;
  }
}

/* ============ Hero ============ */
#home {
  background: var(--grad-hero);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

#home::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(233, 69, 96, 0.5), transparent 70%) 12% 18% / 46% 62% no-repeat,
    radial-gradient(closest-side, rgba(79, 123, 255, 0.5), transparent 70%) 88% 82% / 52% 68% no-repeat,
    radial-gradient(closest-side, rgba(255, 200, 87, 0.35), transparent 70%) 62% 8% / 34% 46% no-repeat;
  filter: blur(6px);
  animation: floatGlow 18s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}

#home > p {
  max-width: 72ch;
  color: var(--text-soft);
  font-size: 1.02em;
}

#home figure {
  margin: clamp(18px, 2.6vw, 30px) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

#home figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(233, 69, 96, 0.28);
}

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

#home figcaption {
  padding: 12px 18px;
  font-size: 0.88em;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============ About ============ */
#about h3 {
  margin-top: 1.4em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed var(--border);
}

#about h3:first-of-type {
  margin-top: 0.8em;
}

#about p {
  text-align: justify;
}

/* ============ Products ============ */
#products h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 1.2em 0 0.6em;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

#products h4:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

#products h3 + p {
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 69, 96, 0.08);
  color: var(--text-soft);
}

/* ============ Solutions ============ */
#solutions h3 {
  position: relative;
  padding-left: 30px;
  margin-top: 1.5em;
}

#solutions h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--grad-accent);
  box-shadow: 0 0 16px rgba(79, 123, 255, 0.55);
  transition: transform 0.4s var(--ease), border-radius 0.4s var(--ease);
}

#solutions h3:hover::before {
  transform: rotate(45deg) scale(1.1);
  border-radius: 50%;
}

/* ============ Cases ============ */
#cases h3 {
  padding: 16px 18px;
  margin: 1em 0 0.5em;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease);
}

#cases h3:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(79, 123, 255, 0.25);
}

#cases h3 + p {
  padding: 0 4px 6px;
}

/* ============ News ============ */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

#news li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

#news li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 3px;
  background: var(--grad-primary);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.6);
}

#news li:hover {
  transform: translateX(6px);
  background: rgba(233, 69, 96, 0.1);
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: var(--shadow-sm);
}

#news time {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.28);
}

/* ============ Articles ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
  align-items: start;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.4s var(--ease-soft);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

#articles article:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(233, 69, 96, 0.16);
}

#articles article:hover::before {
  transform: scaleX(1);
}

#articles article h3 {
  margin: 0;
  font-size: clamp(17px, 0.9vw + 12px, 20px);
  transition: color 0.3s var(--ease-soft);
}

#articles article:hover h3 {
  color: var(--primary-2);
}

#articles article p {
  margin: 0;
  font-size: 0.95em;
}

#articles article > p:first-of-type {
  font-size: 0.85em;
}

#articles article a {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88em;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-strong);
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease-soft);
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

/* ============ FAQ ============ */
#faq h3 {
  margin: 1.1em 0 0.35em;
  padding: 12px 16px 12px 46px;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: clamp(16px, 0.7vw + 12px, 18px);
  color: var(--text);
  cursor: default;
  transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft), transform 0.3s var(--ease);
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(79, 123, 255, 0.5);
}

#faq h3:hover {
  background: rgba(79, 123, 255, 0.1);
  border-color: rgba(79, 123, 255, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

#faq h3 + p {
  padding: 0 4px 8px 46px;
  margin: 0 0 0.4em;
  font-size: 0.96em;
  border-left: 2px solid transparent;
  transition: border-color 0.3s var(--ease-soft);
}

#faq h3:hover + p {
  border-left-color: var(--accent);
}

/* ============ HowTo ============ */
#howto {
  position: relative;
}

#howto h3 {
  margin-top: 1.5em;
  color: var(--text);
}

#howto h3:first-of-type {
  margin-top: 0.6em;
}

#howto h4 {
  position: relative;
  margin: 1.1em 0 0.4em;
  padding: 10px 16px 10px 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.16), transparent 70%);
  border: 1px solid var(--border);
  counter-increment: howto-step;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease-soft);
}

#howto {
  counter-reset: howto-step;
}

#howto h4::before {
  content: counter(howto-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.5);
}

#howto h4:hover {
  transform: translateX(5px);
  border-color: rgba(233, 69, 96, 0.45);
}

#howto h4 + p {
  padding-left: 46px;
  margin-bottom: 0.9em;
}

#howto > p:last-child {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(79, 123, 255, 0.1);
  border: 1px solid rgba(79, 123, 255, 0.28);
  color: var(--text-soft);
}

/* ============ Contact ============ */
#contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px 20px;
}

#contact > h2 {
  grid-column: 1 / -1;
}

#contact p {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.95em;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

#contact p:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

#contact p:first-of-type {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--card);
  border: 1px solid var(--border);
  transition: color 0.28s var(--ease-soft), background 0.28s var(--ease-soft),
    transform 0.28s var(--ease), box-shadow 0.28s var(--ease-soft),
    border-color 0.28s var(--ease-soft);
}

#sitemap li a:hover,
#links li a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79, 123, 255, 0.35);
}

/* ============ Legal ============ */
#legal h3 {
  margin-top: 1.3em;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  color: var(--text);
}

#legal h3:first-of-type {
  margin-top: 0.6em;
}

#legal p {
  font-size: 0.95em;
  color: var(--text-soft);
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  position: relative;
  margin-top: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 40px) clamp(40px, 5vw, 60px);
  text-align: center;
  color: var(--text-soft);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(233, 69, 96, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(15, 16, 32, 0.4), rgba(15, 16, 32, 0.9));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

@media (prefers-color-scheme: light) {
  footer[role="contentinfo"] {
    background:
      radial-gradient(700px 300px at 50% 0%, rgba(233, 69, 96, 0.1), transparent 70%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(240, 242, 252, 0.95));
  }
}

footer[role="contentinfo"] p {
  margin: 0 0 0.7em;
  font-size: 0.9em;
  color: var(--text-soft);
}

footer[role="contentinfo"] p:nth-of-type(3) {
  margin-top: 1.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

footer[role="contentinfo"] a {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.86em;
  color: var(--text-soft);
  transition: color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}

footer[role="contentinfo"] a:hover {
  color: #fff;
  background: var(--grad-primary);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  nav[aria-label="主导航"] {
    padding-top: 8px;
    padding-bottom: 8px;
    justify-content: center;
  }

  nav[aria-label="主导航"] ul {
    justify-content: center;
    width: 100%;
    border-radius: 16px;
    gap: 2px;
  }

  nav[aria-label="主导航"] ul li a {
    padding: 6px 10px;
    font-size: 0.84em;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --radius-lg: 20px;
  }

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

  h1 {
    font-size: clamp(23px, 6.4vw, 32px);
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  nav[aria-label="主导航"] > a {
    font-size: 16px;
  }

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

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

  nav[aria-label="主导航"] ul li {
    flex: 0 0 auto;
  }

  #articles {
    grid-template-columns: 1fr;
  }

  #articles article:hover {
    transform: translateY(-4px);
  }

  #faq h3 + p {
    padding-left: 8px;
  }

  #howto h4 + p {
    padding-left: 8px;
  }

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

  #home figcaption {
    font-size: 0.8em;
    padding: 10px 12px;
  }

  #news li {
    padding-left: 40px;
  }

  #news li:hover {
    transform: translateX(3px);
  }
}

@media (max-width: 380px) {
  nav[aria-label="主导航"] ul li a {
    padding: 6px 8px;
    font-size: 0.8em;
  }
}

/* ============ Motion & A11y ============ */
@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;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.4);
    --text-soft: #dfe2ff;
  }
}

@media print {
  header[role="banner"],
  #home figure,
  footer[role="contentinfo"] {
    display: none;
  }

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

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

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