:root {
  --bg: #0e0e1a;
  --bg-soft: #16162a;
  --bg-card: rgba(30, 30, 52, 0.55);
  --bg-card-solid: #1b1b30;
  --text: #e8e8f2;
  --text-soft: #a8a8c0;
  --text-faint: #6e6e8a;
  --brand: #f5c518;
  --brand-2: #8b5cf6;
  --brand-3: #22d3ee;
  --accent: #ff6b9d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(22, 22, 42, 0.6);
  --glass-blur: blur(18px) saturate(160%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 40%, #4a1d5c 70%, #1a1a2e 100%);
  --grad-brand: linear-gradient(135deg, #f5c518 0%, #ff8a3d 50%, #ff6b9d 100%);
  --grad-cool: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.5), rgba(139, 92, 246, 0.5), transparent);
  --maxw: 1180px;
  --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;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f2fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --text: #1c1c2e;
    --text-soft: #55556e;
    --text-faint: #8e8ea6;
    --border: rgba(20, 20, 50, 0.08);
    --border-strong: rgba(20, 20, 50, 0.16);
    --glass: rgba(255, 255, 255, 0.65);
    --shadow-sm: 0 2px 10px rgba(60, 40, 120, 0.08);
    --shadow-md: 0 10px 30px rgba(60, 40, 120, 0.12);
    --shadow-lg: 0 24px 60px rgba(60, 40, 120, 0.16);
    --grad-hero: linear-gradient(135deg, #f5f0ff 0%, #ede4ff 35%, #ffe9f2 70%, #eef6ff 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(245, 197, 24, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(34, 211, 238, 0.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
  padding-bottom: 0.08em;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 800;
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.1em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.5);
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: var(--text);
  margin-top: 1.6em;
}

h4 {
  font-size: 1.02rem;
  color: var(--brand-3);
  margin-top: 1.3em;
  font-weight: 700;
}

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

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

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

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

blockquote {
  margin: 1.2em 0;
  padding: 1.1em 1.4em;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

blockquote::after {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 14px;
  font-size: 5rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.12;
  font-family: Georgia, serif;
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 0.8rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar span:first-child {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav[aria-label="主导航"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.25), 0 6px 20px rgba(139, 92, 246, 0.35);
  transition: box-shadow 0.35s var(--ease), transform 0.6s var(--ease);
}

.brand:hover svg {
  transform: rotate(-12deg);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.45), 0 8px 28px rgba(139, 92, 246, 0.5);
}

.brand > span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

nav[aria-label="主导航"] ul a {
  display: inline-block;
  padding: 8px 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

nav[aria-label="主导航"] ul a:hover {
  color: var(--text);
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.15);
}

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > section {
  position: relative;
  margin: 56px 0;
  padding: 40px clamp(20px, 4vw, 48px);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

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

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

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.8;
}

main > section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

main > section:hover::after {
  transform: scale(1.25);
  opacity: 1.2;
}

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

#hero {
  margin-top: 40px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background: var(--grad-hero);
  background-size: 200% 200%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: heroShift 18s ease-in-out infinite alternate, fadeUp 0.8s var(--ease) both;
  isolation: isolate;
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(245, 197, 24, 0.18) 0, transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.22) 0, transparent 26%),
    radial-gradient(circle at 50% 85%, rgba(34, 211, 238, 0.14) 0, transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(255, 107, 157, 0.14) 0, transparent 24%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 6%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, #f5c518 45%, #b98a00 100%);
  box-shadow: 0 0 60px rgba(245, 197, 24, 0.55), 0 0 120px rgba(245, 197, 24, 0.25);
  opacity: 0.9;
  animation: moonFloat 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

#hero h1 {
  max-width: 900px;
  margin: 0 auto 0.5em;
}

#hero p {
  max-width: 820px;
  margin: 0 auto 1em;
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  color: var(--text-soft);
}

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

#intro h3 {
  padding-bottom: 0.4em;
  border-bottom: 1px dashed var(--border);
}

#products ul,
#solutions ul,
#howto ul,
#contact ul,
#sitemap ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#products > ul {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#products > ul li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 46px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

#products > ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--grad-cool);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products > ul li:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.22);
  color: var(--text);
}

#products > ul li:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.2);
}

#products h4 {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
}

#solutions h4 {
  position: relative;
  padding-left: 26px;
}

#solutions h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--grad-brand);
  border-radius: 2px;
}

#cases blockquote {
  margin: 1em 0;
  border-left-color: var(--brand-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#cases blockquote:hover {
  transform: translateX(6px);
  border-left-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  font-style: normal;
  font-size: 0.98rem;
}

#news h3 {
  padding: 18px 22px;
  margin: 18px 0 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#news h3 + p {
  margin: 10px 4px 4px;
  font-size: 0.82rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.02em;
}

#news h3 + p + p {
  margin: 0 4px 20px;
}

#news h3:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 12px 30px rgba(245, 197, 24, 0.12);
}

#articles {
  display: grid;
  gap: 20px;
}

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

#articles article {
  padding: 26px 28px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-cool);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 18px 44px rgba(139, 92, 246, 0.2);
}

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

#articles h3 {
  margin-top: 0;
  font-size: 1.12rem;
  transition: color 0.3s var(--ease);
}

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

#articles article > p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.7em;
}

#articles article > p:nth-of-type(2) {
  color: var(--text-soft);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.3);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#articles article a:hover {
  background: rgba(245, 197, 24, 0.2);
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.2);
}

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

#faq h3 {
  margin-top: 1.4em;
  padding: 16px 20px;
  font-size: 1.02rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  color: var(--brand);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1a1a2e;
  background: var(--grad-brand);
  border-radius: 8px;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}

#faq h3 + p {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-soft);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq h3:hover {
  border-color: rgba(245, 197, 24, 0.4);
}

#faq h3:hover + p {
  border-color: rgba(245, 197, 24, 0.25);
}

#howto ul li {
  position: relative;
  padding: 12px 18px 12px 44px;
  margin: 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ul li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1a2e;
  background: var(--grad-cool);
  border-radius: 50%;
}

#howto ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.16);
}

#howto h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.8em;
  color: var(--text);
}

#howto h4::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.6);
  transform: rotate(45deg);
}

#knowledge h3 {
  position: relative;
  padding-left: 20px;
}

#knowledge h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-cool);
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#contact ul li {
  position: relative;
  padding: 16px 18px;
  margin: 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  word-break: break-word;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 12px 28px rgba(245, 197, 24, 0.14);
}

#contact h3 {
  color: var(--brand-3);
}

#contact h3 + p {
  padding: 16px 20px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#contact > p:last-of-type {
  font-size: 0.86rem;
  color: var(--text-faint);
}

#sitemap ul {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul a {
  display: block;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

#sitemap ul a:hover {
  color: #1a1a2e;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.3);
}

#sitemap h3 {
  margin-top: 2em;
}

#sitemap h3 + ul {
  grid-template-columns: 1fr;
}

#sitemap h3 + ul a {
  color: var(--brand);
  background: rgba(245, 197, 24, 0.08);
  border-color: rgba(245, 197, 24, 0.25);
}

footer[role="contentinfo"] {
  position: relative;
  margin-top: 40px;
  padding: 56px clamp(24px, 5vw, 64px) 40px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-line);
}

footer[role="contentinfo"] > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

footer[role="contentinfo"] h2 {
  font-size: 1.1rem;
  padding-left: 14px;
  margin-top: 1.6em;
  color: var(--text);
}

footer[role="contentinfo"] h2:first-child {
  margin-top: 0;
}

footer[role="contentinfo"] h2::before {
  width: 4px;
  background: var(--grad-cool);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
}

footer[role="contentinfo"] p {
  color: var(--text-faint);
  font-size: 0.9rem;
  line-height: 1.8;
}

footer[role="contentinfo"] > p:last-of-type {
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

::selection {
  background: rgba(245, 197, 24, 0.35);
  color: #fff;
}

@media (max-width: 1024px) {
  nav[aria-label="主导航"] {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  nav[aria-label="主导航"] ul a {
    padding: 7px 11px;
    font-size: 0.85rem;
  }

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

@media (min-width: 900px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 16px;
    font-size: 0.72rem;
  }

  nav[aria-label="主导航"] {
    padding: 10px 16px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

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

  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    height: 3px;
  }

  nav[aria-label="主导航"] ul::-webkit-scrollbar-thumb {
    background: rgba(245, 197, 24, 0.4);
    border-radius: 3px;
  }

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

  nav[aria-label="主导航"] ul a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  main {
    padding: 0 14px 56px;
  }

  main > section {
    margin: 32px 0;
    padding: 26px 18px;
    border-radius: var(--radius-md);
  }

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

  #hero::after {
    width: 70px;
    height: 70px;
    top: 6%;
    right: 8%;
    opacity: 0.6;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #products > ul,
  #contact ul {
    grid-template-columns: 1fr;
  }

  #faq h3 {
    padding: 13px 15px;
    font-size: 0.95rem;
  }

  #faq h3 + p {
    padding: 13px 15px;
    font-size: 0.9rem;
  }

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

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

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

  footer[role="contentinfo"] {
    padding: 40px 18px 30px;
  }

  blockquote {
    padding: 16px 18px;
  }
}

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

  h2 {
    font-size: 1.3rem;
  }

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

  .brand > span {
    font-size: 1rem;
  }
}

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

  main > section {
    opacity: 1;
    transform: none;
  }
}

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

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

  main > section,
  #articles article,
  #faq h3,
  #faq h3 + p {
    background: #fff;
    border-color: #ccc;
    box-shadow: none;
    backdrop-filter: none;
    animation: none;
  }
}