:root {
  --brand: #ff4d4f;
  --brand-dark: #d9363e;
  --brand-light: #ff7875;
  --brand-glow: rgba(255, 77, 79, 0.35);
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.9);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-brand: 0 8px 30px rgba(255, 77, 79, 0.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glass-blur: 16px;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --surface: rgba(30, 30, 50, 0.72);
    --surface-solid: #1e1e32;
    --surface-hover: rgba(40, 40, 65, 0.9);
    --text: #eaeaf5;
    --text-secondary: #b0b0cc;
    --text-muted: #7878a0;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-brand: 0 8px 30px rgba(255, 77, 79, 0.3);
    --glass-bg: rgba(30, 30, 50, 0.55);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 77, 79, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 77, 79, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

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

a:hover {
  color: var(--brand-dark);
  opacity: 0.9;
}

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

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

li {
  margin-bottom: 0.5em;
}

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

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, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75em;
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.5em;
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

blockquote {
  position: relative;
  margin: 1.5em 0;
  padding: 1.25em 1.5em 1.25em 2em;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
}

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

blockquote p::before {
  content: "\201C";
  font-size: 2.5em;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--brand);
  opacity: 0.4;
  margin-right: 0.1em;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  transition: background var(--transition), box-shadow var(--transition);
}

header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

header > div > a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition);
}

header > div > a::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--brand-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

header > div > a:hover {
  transform: scale(1.03);
  opacity: 1;
}

header > div > a:hover::before {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 6px 18px var(--brand-glow);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

header nav li {
  margin: 0;
}

header nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  position: relative;
  transition: color var(--transition), background var(--transition), transform var(--transition);
  white-space: nowrap;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  transition: transform var(--transition);
}

header nav a:hover {
  color: var(--brand);
  background: rgba(255, 77, 79, 0.06);
  transform: translateY(-1px);
  opacity: 1;
}

header nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin-bottom: 60px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

main > nav[aria-label="面包屑导航"] {
  margin: 24px 0 36px;
  font-size: 0.875rem;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-secondary);
  font-weight: 500;
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand);
}

section[aria-labelledby="hero-title"] {
  position: relative;
  padding: 48px 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 30%, #7c3aed 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-brand);
  margin-top: 24px;
  isolation: isolate;
}

section[aria-labelledby="hero-title"]::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: heroFloat 8s ease-in-out infinite;
}

section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

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

section[aria-labelledby="hero-title"] h1 {
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out both;
}

section[aria-labelledby="hero-title"] > p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

section[aria-labelledby="hero-title"] > p strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

section[aria-labelledby="hero-title"] figure {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  transition: transform var(--transition), box-shadow var(--transition);
}

section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

section[aria-labelledby="hero-title"] figure svg {
  display: block;
  width: 100%;
  height: auto;
}

section[aria-labelledby="hero-title"] figcaption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 10px 0 0;
}

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

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
main > section[aria-labelledby="sitemap-title"],
main > section[aria-labelledby="links-title"] {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

#products ul,
#solutions ul,
#howto ul,
#howto ol {
  list-style: none;
  padding-left: 0;
}

#products > ul > li,
#solutions > ul > li {
  position: relative;
  padding: 12px 16px 12px 44px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#products > ul > li::before,
#solutions > ul > li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--brand-glow);
}

#products > ul > li::after,
#solutions > ul > li::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin-top: -1px;
}

#products > ul > li:hover,
#solutions > ul > li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
  background: var(--surface-hover);
}

#cases article,
#news article,
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#cases article::before,
#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

#cases article:hover,
#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}

#cases article:hover::before,
#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  margin-bottom: 0.4em;
  transition: color var(--transition);
}

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

#news article > p:first-of-type,
#articles article > p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#news article > p:first-of-type::before,
#articles article > p:first-of-type::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  position: relative;
  transition: gap var(--transition), color var(--transition);
}

#news article a::after,
#articles article a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#news article a:hover,
#articles article a:hover {
  gap: 10px;
  color: var(--brand-dark);
}

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

#cases blockquote {
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.04), rgba(124, 58, 237, 0.04));
}

#cases blockquote p {
  color: var(--text-secondary);
}

#faq dl {
  display: grid;
  gap: 12px;
}

#faq dt {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  position: relative;
  padding-right: 48px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  user-select: none;
}

#faq dt::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brand);
  transition: transform var(--transition), color var(--transition);
  line-height: 1;
}

#faq dt:hover {
  background: var(--surface-hover);
  color: var(--brand);
  border-color: var(--brand-light);
}

#faq dt:hover::after {
  color: var(--brand-dark);
}

#faq dd {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: background var(--transition);
}

#faq dd:hover {
  background: var(--surface-hover);
}

#howto > ul,
#howto > ol {
  margin-bottom: 1.5em;
}

#howto > ul > li {
  position: relative;
  padding: 10px 16px 10px 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto > ul > li::before {
  content: "\2713";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

#howto > ul > li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
}

#howto > ol {
  counter-reset: step;
  padding-left: 0;
}

#howto > ol > li {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  color: var(--text-secondary);
  counter-increment: step;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#howto > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--brand-glow);
}

#howto > ol > li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
  background: var(--surface-hover);
}

#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

#contact address p {
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  word-break: break-word;
}

#contact address p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-light);
}

#contact address a {
  font-weight: 600;
  word-break: break-all;
}

main > section[aria-labelledby="sitemap-title"] ul,
main > section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

main > section[aria-labelledby="sitemap-title"] li,
main > section[aria-labelledby="links-title"] li {
  margin: 0;
}

main > section[aria-labelledby="sitemap-title"] a,
main > section[aria-labelledby="links-title"] a {
  display: block;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

main > section[aria-labelledby="sitemap-title"] a::before,
main > section[aria-labelledby="links-title"] a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  transform: scaleY(0);
  transition: transform var(--transition);
}

main > section[aria-labelledby="sitemap-title"] a:hover,
main > section[aria-labelledby="links-title"] a:hover {
  color: var(--brand);
  background: var(--surface-hover);
  border-color: var(--brand-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

main > section[aria-labelledby="sitemap-title"] a:hover::before,
main > section[aria-labelledby="links-title"] a:hover::before {
  transform: scaleY(1);
}

footer {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  padding: 60px 20px 32px;
  margin-top: 40px;
  position: relative;
}

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

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

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

footer > section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75em;
}

footer > section h2::after {
  width: 36px;
  height: 2px;
}

footer > section h3 {
  font-size: 1rem;
  margin-top: 1.25em;
  margin-bottom: 0.4em;
  color: var(--text);
}

footer > section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 900px;
}

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

footer a {
  color: var(--brand);
  font-weight: 500;
}

footer a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#footer-legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
}

#footer-legal h2 {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  header > div {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  header nav ul {
    justify-content: center;
    gap: 2px;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  :root {
    --header-height: 100px;
  }

  section[aria-labelledby="hero-title"] {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  main > section[aria-labelledby="sitemap-title"],
  main > section[aria-labelledby="links-title"] {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  main > section {
    margin-bottom: 40px;
  }

  #cases article,
  #news article,
  #articles article {
    padding: 18px;
  }

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

  #faq dt {
    padding: 14px 16px;
    padding-right: 44px;
    font-size: 0.98rem;
  }

  #faq dd {
    padding: 14px 16px;
  }

  #howto > ol > li {
    padding: 12px 14px 12px 50px;
  }

  #howto > ol > li::before {
    left: 12px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

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

  main {
    padding: 0 14px 40px;
  }

  header nav ul {
    gap: 0;
  }

  header nav a {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  header > div > a {
    font-size: 1.15rem;
  }

  header > div > a::before {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  section[aria-labelledby="hero-title"] {
    padding: 24px 18px;
    border-radius: var(--radius);
  }

  section[aria-labelledby="hero-title"] > p {
    font-size: 0.95rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  main > section[aria-labelledby="sitemap-title"],
  main > section[aria-labelledby="links-title"] {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  blockquote {
    padding: 14px 14px 14px 18px;
  }

  #products > ul > li,
  #solutions > ul > li {
    padding: 10px 12px 10px 38px;
  }

  #products > ul > li::before,
  #solutions > ul > li::before {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  #products > ul > li::after,
  #solutions > ul > li::after {
    left: 17px;
    width: 4px;
    height: 8px;
  }

  main > section[aria-labelledby="sitemap-title"] ul,
  main > section[aria-labelledby="links-title"] ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
  }

  main > section[aria-labelledby="sitemap-title"] a,
  main > section[aria-labelledby="links-title"] a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  footer {
    padding: 40px 14px 24px;
  }

  #footer-legal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  header nav a {
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  header > div > a {
    font-size: 1rem;
  }

  header > div > a::before {
    width: 22px;
    height: 22px;
  }
}

@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;
  }

  section[aria-labelledby="hero-title"]::before,
  section[aria-labelledby="hero-title"]::after {
    animation: none;
  }

  footer::before {
    animation: none;
  }
}

@media print {
  header,
  footer::before,
  section[aria-labelledby="hero-title"]::before,
  section[aria-labelledby="hero-title"]::after {
    display: none;
  }

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

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

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