:root {
  --primary: #2b6cb0;
  --primary-light: #4299e1;
  --primary-dark: #1a4a7a;
  --accent: #38b2ac;
  --accent-light: #4fd1c5;
  --gradient-start: #2b6cb0;
  --gradient-mid: #3182ce;
  --gradient-end: #38b2ac;
  --bg: #f7fafc;
  --bg-alt: #edf2f7;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(43, 108, 176, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #63b3ed;
    --primary-light: #90cdf4;
    --primary-dark: #2b6cb0;
    --accent: #4fd1c5;
    --accent-light: #81e6d9;
    --gradient-start: #1a365d;
    --gradient-mid: #2b6cb0;
    --gradient-end: #285e61;
    --bg: #0f1419;
    --bg-alt: #1a202c;
    --bg-card: #1e2633;
    --bg-glass: rgba(30, 38, 51, 0.78);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border: #2d3748;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(99, 179, 237, 0.12);
  }
}

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

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

body {
  font-family: var(--font-sans);
  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;
  word-break: break-word;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

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

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--primary-light);
  }
}

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

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

blockquote {
  position: relative;
  padding: 1.2rem 1.5rem 1.2rem 2.4rem;
  margin: 1.2rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.8rem;
  top: 0.4rem;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  font-family: Georgia, serif;
}

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

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header[role="banner"] nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header[role="banner"] nav > a[title="漫蛙漫画首页"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  transition: transform var(--transition-fast);
}

header[role="banner"] nav > a[title="漫蛙漫画首页"]:hover {
  transform: scale(1.04);
  opacity: 1;
}

header[role="banner"] nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header[role="banner"] nav ul li a:hover {
  color: var(--primary);
  background: rgba(43, 108, 176, 0.08);
  transform: translateY(-1px);
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  header[role="banner"] nav ul li a:hover {
    background: rgba(99, 179, 237, 0.12);
  }
}

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

main > nav[aria-label="面包屑导航"] {
  padding: 1rem 0 0.5rem;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
  margin-right: 0.1rem;
}

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

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

section {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  animation: fadeInUp 0.6s ease-out both;
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

#hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 45%, var(--gradient-end) 100%);
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-xl);
  color: #ffffff;
  margin-top: 0.5rem;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 70%
  );
  animation: shimmer 8s infinite linear;
  pointer-events: none;
}

#hero h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.8;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#hero figure svg {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  animation: floatY 5s ease-in-out infinite;
}

#hero figure svg:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

#hero figcaption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

#hero > p:last-child {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#hero > p:last-child a {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

#hero > p:last-child a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  color: var(--primary);
  opacity: 1;
}

#hero > p:last-child a:last-child {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#hero > p:last-child a:last-child:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

#brand {
  background: var(--bg-card);
}

#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

#products ul li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#products ul li::before {
  content: "\2726";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.85rem;
}

#products ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

#solutions ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

#solutions ul li {
  position: relative;
  padding: 1rem 1rem 1rem 2.6rem;
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.06), rgba(56, 178, 172, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

#solutions ul li::before {
  content: "\25B8";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

#solutions ul li:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.1), rgba(56, 178, 172, 0.1));
}

#cases blockquote {
  margin: 1rem 0;
}

#news h3 {
  margin-top: 1.5rem;
}

#news h3:first-of-type {
  margin-top: 0.5rem;
}

#news p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

#news p a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

#news p a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

#articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

#articles h2 {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

#articles article {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  animation: fadeInUp 0.5s ease-out both;
}

#articles article:nth-child(2) { animation-delay: 0.05s; }
#articles article:nth-child(3) { animation-delay: 0.1s; }
#articles article:nth-child(4) { animation-delay: 0.15s; }
#articles article:nth-child(5) { animation-delay: 0.2s; }
#articles article:nth-child(6) { animation-delay: 0.25s; }
#articles article:nth-child(7) { animation-delay: 0.3s; }
#articles article:nth-child(8) { animation-delay: 0.35s; }
#articles article:nth-child(9) { animation-delay: 0.4s; }
#articles article:nth-child(10) { animation-delay: 0.45s; }
#articles article:nth-child(11) { animation-delay: 0.5s; }

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

#articles article h3 {
  margin-bottom: 0.5rem;
}

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

#articles article p a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

#articles article p a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

#faq details {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
}

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

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

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

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

#faq details summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition-base), color var(--transition-fast);
  line-height: 1;
}

#faq details[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent);
}

#faq details summary:hover {
  background: rgba(43, 108, 176, 0.05);
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  #faq details summary:hover {
    background: rgba(99, 179, 237, 0.08);
  }
}

#faq details p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease-out;
}

#howto ol {
  counter-reset: howto-step;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

#howto ol li {
  position: relative;
  counter-increment: howto-step;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.3);
}

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

#howto ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0;
}

#howto ul li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.4rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

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

#howto ul li:hover {
  background: rgba(56, 178, 172, 0.08);
  transform: translateX(3px);
}

#contact p {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

#contact p:first-of-type {
  font-weight: 600;
  color: var(--text);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(43, 108, 176, 0.25);
  opacity: 1;
}

#legal h3 {
  margin-top: 1.25rem;
}

#legal h3:first-of-type {
  margin-top: 0.5rem;
}

#author h3 {
  margin-top: 1.25rem;
}

#author h3:first-of-type {
  margin-top: 0.5rem;
}

#author p:last-child,
#author p:nth-last-child(2) {
  font-size: 0.85rem;
  color: var(--text-muted);
}

#footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

footer[role="contentinfo"] {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 1.25rem;
  text-align: center;
  margin-top: 1rem;
}

footer[role="contentinfo"] p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

footer[role="contentinfo"] p:first-child {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

footer[role="contentinfo"] a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

footer[role="contentinfo"] a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  opacity: 1;
}

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

  header[role="banner"] nav {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  header[role="banner"] nav > a[title="漫蛙漫画首页"] {
    font-size: 1.15rem;
  }

  header[role="banner"] nav ul {
    gap: 0.1rem;
  }

  header[role="banner"] nav ul li a {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }

  main {
    padding: 0 0.85rem 2rem;
  }

  section {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
  }

  #hero {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.45rem;
  }

  #hero p {
    font-size: 0.92rem;
  }

  #hero figure svg {
    width: 100%;
    max-width: 300px;
  }

  #hero > p:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  #hero > p:last-child a {
    text-align: center;
    padding: 0.7rem 1.2rem;
  }

  #products ul,
  #solutions ul,
  #howto ul {
    grid-template-columns: 1fr;
  }

  #articles article {
    padding: 1.15rem;
  }

  #faq details summary {
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    font-size: 0.9rem;
  }

  #howto ol li {
    padding: 0.8rem 0.85rem 0.8rem 2.8rem;
    font-size: 0.88rem;
  }

  footer[role="contentinfo"] {
    padding: 2rem 1rem;
  }
}

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

  header[role="banner"] nav {
    flex-direction: column;
    align-items: flex-start;
  }

  header[role="banner"] nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header[role="banner"] nav ul::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] nav ul li a {
    white-space: nowrap;
    font-size: 0.75rem;
  }

  #hero {
    padding: 1.5rem 1rem;
  }

  #hero h1 {
    font-size: 1.25rem;
  }

  section {
    padding: 1rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  h3 {
    font-size: 1rem;
  }

  blockquote {
    padding: 1rem 1rem 1rem 2rem;
  }
}

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

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

  section {
    padding: 2.25rem;
  }

  #hero {
    padding: 3.5rem 3rem;
  }
}

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

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero > p:last-child {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

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

::selection {
  background: var(--primary);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

main > section:target {
  animation: fadeInUp 0.5s ease-out both;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}