:root {
  --brand: #1f6feb;
  --brand-2: #7c4dff;
  --brand-3: #ff5fa2;
  --accent: #00d4ff;
  --bg: #f5f7fb;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #1a2230;
  --text-soft: #4a5568;
  --text-muted: #6b7789;
  --border: rgba(31, 111, 235, 0.14);
  --border-soft: rgba(26, 34, 48, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 34, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 34, 48, 0.1);
  --shadow-lg: 0 24px 64px rgba(26, 34, 48, 0.14);
  --shadow-brand: 0 16px 40px rgba(31, 111, 235, 0.28);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --blur: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #1f6feb 0%, #7c4dff 52%, #ff5fa2 100%);
  --grad-soft: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(124, 77, 255, 0.1), rgba(255, 95, 162, 0.1));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #0f1629;
    --surface: #141c31;
    --surface-glass: rgba(20, 28, 49, 0.66);
    --surface-glass-strong: rgba(20, 28, 49, 0.88);
    --text: #e8eefc;
    --text-soft: #b6c2d9;
    --text-muted: #8b99b4;
    --border: rgba(124, 162, 255, 0.2);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 16px 40px rgba(31, 111, 235, 0.4);
    --grad-soft: linear-gradient(135deg, rgba(31, 111, 235, 0.18), rgba(124, 77, 255, 0.18), rgba(255, 95, 162, 0.18));
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 235, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(255, 95, 162, 0.12), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(124, 77, 255, 0.1), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  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(--brand-2);
}

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

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

h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  position: relative;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

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

h4 {
  font-size: 1.05rem;
  color: var(--brand);
  margin-top: 1.3em;
}

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid transparent;
  border-image: var(--grad-brand) 1;
  background: var(--surface-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 24px rgba(26, 34, 48, 0.06);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header nav[aria-label="主导航"] > a {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  position: relative;
  transition: transform 0.3s var(--ease);
}

header nav[aria-label="主导航"] > a:hover {
  transform: scale(1.04);
}

header nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

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

header nav[aria-label="主导航"] ul li a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav[aria-label="主导航"] ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: -1;
}

header nav[aria-label="主导航"] ul li a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

header nav[aria-label="主导航"] ul li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

nav[aria-label="面包屑导航"] {
  margin: 0.5rem 0 1.5rem;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

section {
  margin-bottom: 3rem;
  scroll-margin-top: 96px;
}

section > h2 {
  margin-top: 0;
}

#hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.8rem) clamp(1.4rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.96) 0%, rgba(124, 77, 255, 0.92) 48%, rgba(255, 95, 162, 0.9) 100%);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  box-shadow: var(--shadow-brand);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

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

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 0.6em;
  animation: fadeUp 0.8s var(--ease) both;
}

#hero h1::after {
  display: none;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  max-width: 78ch;
  animation: fadeUp 0.8s var(--ease) 0.12s both;
}

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

#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links {
  background: var(--surface-glass);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

#brand h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#articles h3,
#faq h3,
#howto h3,
#knowledge h3,
#contact h3 {
  padding-left: 0.7em;
  border-left: 4px solid transparent;
  border-image: var(--grad-brand) 1;
  transition: padding-left 0.3s var(--ease);
}

#brand h3:hover,
#products h3:hover,
#solutions h3:hover,
#cases h3:hover,
#news h3:hover,
#articles h3:hover,
#faq h3:hover,
#howto h3:hover,
#knowledge h3:hover,
#contact h3:hover {
  padding-left: 1em;
}

#products h4,
#solutions h4,
#howto h4 {
  display: inline-block;
  padding: 0.25em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 0.98rem;
  margin-bottom: 0.7em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products h4:hover,
#solutions h4:hover,
#howto h4:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#cases blockquote {
  position: relative;
  margin: 1em 0;
  padding: 1.2em 1.5em 1.2em 2.8em;
  background: var(--surface-glass-strong);
  border-left: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.1em;
  left: 0.5em;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.85;
}

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

#news h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3em;
}

#news h3 + p:first-of-type {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  background: var(--grad-soft);
  padding: 0.15em 0.75em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.7em;
  font-weight: 500;
}

#articles article {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
  padding-left: 0;
  border-left: none;
  transition: color 0.3s var(--ease);
}

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

#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

#articles article p:nth-of-type(2) {
  color: var(--text-soft);
  font-size: 0.95rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35em 0.95em;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  color: var(--brand);
  transition: gap 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

#articles article a:hover {
  gap: 0.6rem;
  color: #fff;
  background: var(--grad-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

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

#articles > h3[id^="article-"] {
  margin-top: 2.4em;
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  border-left: 4px solid var(--brand);
  font-size: 1.1rem;
  color: var(--text);
}

#articles > h3[id^="article-"] + p {
  padding: 0 0.3rem;
}

#faq h3 {
  cursor: default;
  padding: 0.85rem 1.1rem 0.85rem 2.4rem;
  border-left: none;
  border-radius: var(--radius-md);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft);
  font-size: 1.02rem;
  position: relative;
  margin-bottom: 0.5em;
  margin-top: 1.1em;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

#faq h3:hover {
  padding-left: 2.4rem;
  background: var(--grad-soft);
  border-color: var(--border);
  transform: translateX(3px);
}

#faq h3 + p {
  padding: 0 0.4rem 0.4rem;
  font-size: 0.96rem;
}

#howto h4 {
  display: block;
  background: none;
  color: var(--text);
  padding: 0;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  font-size: 1.02rem;
  position: relative;
  padding-left: 1.6em;
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
}

#howto h4:hover {
  transform: none;
  box-shadow: none;
  color: var(--brand);
}

#knowledge h3 {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border-left: 3px solid var(--brand);
  font-size: 1.05rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#knowledge h3:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#contact p {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#contact p:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

#contact a {
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

footer {
  position: relative;
  margin-top: 2rem;
  background:
    linear-gradient(180deg, var(--surface-glass) 0%, var(--bg-alt) 100%);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--border-soft);
  padding: clamp(2rem, 4vw, 3rem) 1.25rem 1.5rem;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  background-size: 200% 100%;
  animation: gradientShift 10s linear infinite;
}

footer section#legal {
  max-width: var(--maxw);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

footer section#legal h2 {
  font-size: 1rem;
  margin-bottom: 0.5em;
  padding-bottom: 0.4em;
}

footer section#legal h2::after {
  width: 32px;
  height: 3px;
}

footer section#legal p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

@supports (animation-timeline: view()) {
  section {
    animation: fadeUp 0.7s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 22%;
  }
}

@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;
  }
  #hero {
    animation: none;
  }
}

@media (max-width: 900px) {
  header nav[aria-label="主导航"] {
    gap: 0.8rem;
  }
  header nav[aria-label="主导航"] ul {
    justify-content: flex-start;
    gap: 0.1rem;
  }
  header nav[aria-label="主导航"] ul li a {
    padding: 0.4rem 0.6rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 140px;
  }
  body {
    font-size: 15px;
    background-attachment: scroll;
  }
  header nav[aria-label="主导航"] {
    padding: 0.6rem 0.9rem;
  }
  header nav[aria-label="主导航"] > a {
    font-size: 1.1rem;
  }
  header nav[aria-label="主导航"] ul {
    flex: 1 0 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  header nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }
  header nav[aria-label="主导航"] ul li a {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.35rem 0.65rem;
  }
  main {
    padding: 1rem 0.9rem 3rem;
  }
  section {
    margin-bottom: 2rem;
    scroll-margin-top: 140px;
  }
  #hero {
    border-radius: var(--radius-md);
    padding: 1.8rem 1.2rem;
  }
  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links {
    border-radius: var(--radius-md);
    padding: 1.2rem 1.1rem;
  }
  #articles article {
    padding: 1.1rem 1.1rem;
  }
  #cases blockquote {
    padding: 1.1em 1.1em 1.1em 2.4em;
  }
  footer section#legal {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  h2::after {
    width: 48px;
    height: 3px;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 14.5px;
  }
  #hero h1 {
    font-size: 1.5rem;
  }
  #sitemap ul li a,
  #links ul li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }
}

@media print {
  header,
  footer::before,
  #articles article a::after,
  #faq h3::before {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}