:root {
  --primary: #FF6B35;
  --primary-dark: #E5521C;
  --primary-light: #FF8F66;
  --secondary: #1A1A2E;
  --accent: #FFB347;
  --bg: #F7F8FC;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text: #1F2333;
  --text-secondary: #5A6072;
  --text-muted: #8B90A0;
  --border: #E6E8F0;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.09);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  --shadow-primary: 0 8px 24px rgba(255, 107, 53, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 45%, #FF6B35 130%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 179, 71, 0.08) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1018;
    --bg-card: #1A1C28;
    --bg-elevated: #232635;
    --text: #EDEFF5;
    --text-secondary: #A8AEC0;
    --text-muted: #6F7588;
    --border: #2C2F3E;
    --glass-bg: rgba(26, 28, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 24px rgba(255, 107, 53, 0.35);
    --gradient-hero: linear-gradient(135deg, #0F1018 0%, #1A1C28 45%, #7A2E12 130%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 179, 71, 0.06) 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 53, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 179, 71, 0.05) 0%, transparent 38%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

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

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

/* ===== Header / Navigation ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

header nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

header nav > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header nav > div > a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

header nav > div > a svg {
  width: 40px;
  height: 40px;
  transition: transform var(--transition);
}

header nav > div > a:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

header nav > div > a span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  flex-wrap: wrap;
}

header nav ul li a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

header nav ul li a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

header nav ul li a:hover::after {
  width: 60%;
}

header nav form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

header nav form[role="search"] input[type="search"] {
  width: 200px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

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

header nav form[role="search"] input[type="search"]:focus {
  width: 240px;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  outline: none;
}

header nav form[role="search"] button {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-primary);
}

header nav form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.4);
}

header nav form[role="search"] button:active {
  transform: translateY(0);
}

/* ===== Main Layout ===== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 90px;
}

section > h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
}

section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

section > article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

section > article:hover {
  box-shadow: var(--shadow-md);
}

section > article h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--primary);
  color: var(--text);
}

section > article h3:first-child {
  margin-top: 0;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  margin-top: 2rem;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 179, 71, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 107, 53, 0.28) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

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

#hero > p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

#hero > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

#hero > div > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition);
}

#hero > div > a:first-child {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

#hero > div > a:first-child:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(255, 107, 53, 0.5);
  color: #fff;
}

#hero > div > a:last-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#hero > div > a:last-child:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  color: #fff;
}

#hero figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.9s 0.3s ease both;
  transition: transform var(--transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
}

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

#hero figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== Breadcrumb ===== */
main > nav[aria-label="面包屑导航"] {
  margin: 1.5rem 0 2.5rem;
}

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

main > nav[aria-label="面包屑导航"] ol li {
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-muted);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  transition: all var(--transition);
}

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

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

/* ===== Advantages / Applications / Solutions grid-like cards ===== */
#advantages > article,
#solutions > article,
#applications > article,
#notes > article,
#extended > article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

#advantages > article h3,
#solutions > article h3,
#applications > article h3,
#notes > article h3,
#extended > article h3 {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--gradient-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#advantages > article h3:hover,
#solutions > article h3:hover,
#applications > article h3:hover,
#notes > article h3:hover,
#extended > article h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

/* ===== Cases / Testimonials ===== */
#cases > article h3,
#testimonials > article h3 {
  position: relative;
  margin-top: 1.75rem;
  padding: 0.85rem 1.25rem 0.85rem 2.75rem;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border-left: none;
}

#cases > article h3::before,
#testimonials > article h3::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}

#testimonials > article p {
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-style: italic;
  position: relative;
  transition: all var(--transition);
}

#testimonials > article p:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== News ===== */
#news > article h3 {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}

#news > article h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#news > article h3 + p {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin-top: -0.3rem;
  margin-bottom: 0.5rem;
}

/* ===== Articles ===== */
#articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

#articles > article {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#articles > article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#articles > article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

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

#articles > article h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  padding-left: 0;
  border-left: none;
  font-size: 1.12rem;
  line-height: 1.5;
}

#articles > article > p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

#articles > article > p {
  flex: 1;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

#articles > article > a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--gradient-soft);
  border-radius: 999px;
  transition: all var(--transition);
}

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

#articles > article > a:hover {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

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

/* ===== HowTo ===== */
#howto ol {
  counter-reset: step;
  margin: 1rem 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  margin-bottom: 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

/* ===== FAQ ===== */
#faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

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

#faq details[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding: 1.1rem 3.5rem 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition), background var(--transition);
  user-select: none;
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq summary:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

#faq details[open] summary {
  color: var(--primary);
  background: var(--gradient-soft);
}

#faq details p {
  padding: 0.25rem 1.4rem 1.25rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  animation: fadeUp 0.35s ease both;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-top: 0;
}

/* ===== Contact ===== */
#contact > article {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
}

#contact > article p {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
}

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

/* ===== Sitemap ===== */
#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
}

#sitemap nav ul li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

/* ===== Links ===== */
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#links ul li a {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

#links ul li a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 1.5rem 1.75rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

footer > section {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer > section:last-of-type {
  border-bottom: none;
}

footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

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

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer > p {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Scroll Reveal Animation ===== */
section,
#articles > article,
#faq details {
  animation: revealUp 0.7s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

@supports not (animation-timeline: view()) {
  section,
  #articles > article,
  #faq details {
    animation: none;
    opacity: 1;
  }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  #advantages > article,
  #solutions > article,
  #applications > article {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
  }

  #advantages > article h3,
  #solutions > article h3,
  #applications > article h3 {
    grid-column: span 2;
  }
}

@media (max-width: 1023px) {
  header nav ul {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  header nav form[role="search"] {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 0 1rem 3rem;
  }

  section {
    margin-bottom: 2.5rem;
  }

  section > article {
    padding: 1.35rem;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 2.25rem 1.35rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
  }

  #hero > div {
    flex-direction: column;
  }

  #hero > div > a {
    width: 100%;
  }

  header nav {
    padding: 0.6rem 1rem;
  }

  header nav > div {
    gap: 0.75rem;
  }

  header nav > div > a span {
    font-size: 1.05rem;
  }

  header nav ul {
    gap: 0.15rem;
  }

  header nav ul li a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }

  header nav form[role="search"] {
    width: 100%;
    order: 4;
  }

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

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

  section > h2 {
    margin-bottom: 1.25rem;
  }

  #articles > article {
    padding: 1.35rem;
  }

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

  footer {
    padding: 2.5rem 1rem 1.25rem;
  }
}

@media (max-width: 420px) {
  header nav > div > a span {
    display: none;
  }

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

  #links ul {
    flex-direction: column;
  }

  #links ul li a {
    display: block;
    text-align: center;
  }
}

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

/* ===== Print ===== */
@media print {
  header,
  footer,
  #hero > div,
  #links,
  header nav form[role="search"] {
    display: none;
  }

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

  section > article,
  #articles > article,
  #faq details {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

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