:root {
  --primary: #ff6b35;
  --primary-dark: #e85a28;
  --primary-light: #ff8f66;
  --secondary: #7c3aed;
  --secondary-light: #a78bfa;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --grad-banner: linear-gradient(135deg, #ff6b35 0%, #f43f5e 35%, #7c3aed 70%, #06b6d4 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  --grad-btn: linear-gradient(135deg, #ff6b35, #f43f5e);
  --grad-btn-hover: linear-gradient(135deg, #e85a28, #e11d48);
  --bg-body: #f7f5f2;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-nav: rgba(255, 255, 255, 0.78);
  --bg-code: #1e1e2e;
  --text-primary: #1a1625;
  --text-secondary: #4a4458;
  --text-muted: #7a7288;
  --text-inverse: #ffffff;
  --border-color: rgba(124, 58, 237, 0.12);
  --border-glass: rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 2px 8px rgba(26, 22, 37, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 22, 37, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 22, 37, 0.12);
  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
  --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.6s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --nav-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0f0d15;
    --bg-card: rgba(26, 22, 37, 0.72);
    --bg-glass: rgba(26, 22, 37, 0.5);
    --bg-nav: rgba(15, 13, 21, 0.82);
    --text-primary: #f0edf5;
    --text-secondary: #b8b0c8;
    --text-muted: #7a7288;
    --border-color: rgba(167, 139, 250, 0.15);
    --border-glass: 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);
    --grad-card: linear-gradient(145deg, rgba(26,22,37,0.9), rgba(26,22,37,0.7));
    --shadow-glow: 0 0 50px rgba(255, 107, 53, 0.15);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 107, 53, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(124, 58, 237, 0.05), transparent),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(6, 182, 212, 0.04), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  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(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(255, 107, 53, 0.25);
  color: var(--text-primary);
}

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

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

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

header nav > a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  position: relative;
}

header nav > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-btn);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

header nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

header nav > a:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  transform: translateY(-1px);
}

/* ===== MAIN ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== BREADCRUMB ===== */
main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 8px;
}

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

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

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

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

/* ===== SECTIONS ===== */
section {
  margin-bottom: 56px;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

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

/* ===== HERO ===== */
#hero {
  position: relative;
  margin: 16px 0 64px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: var(--grad-banner);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite, fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  color: var(--text-inverse);
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

#hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.06), transparent 30%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

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

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  max-width: 800px;
}

#hero p {
  position: relative;
  z-index: 2;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.85;
  opacity: 0.94;
  max-width: 760px;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

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

/* ===== HEADINGS ===== */
h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-btn);
  transition: width var(--transition-slow);
}

section:hover h2::after {
  width: 96px;
}

h3 {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 32px 0 12px;
  transition: color var(--transition-fast);
}

h3:hover {
  color: var(--primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
}

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

time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== CARDS (about, products, solutions, cases, contact, knowledge) ===== */
#about,
#products,
#solutions,
#cases,
#contact,
#knowledge,
#security {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

#about::before,
#products::before,
#solutions::before,
#cases::before,
#contact::before,
#knowledge::before,
#security::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-btn);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#contact:hover,
#knowledge:hover,
#security:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-color);
}

#about:hover::before,
#products:hover::before,
#solutions:hover::before,
#cases:hover::before,
#contact:hover::before,
#knowledge:hover::before,
#security:hover::before {
  opacity: 1;
}

/* ===== NEWS ===== */
#news ul {
  display: grid;
  gap: 12px;
}

#news ul li {
  padding: 18px 22px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

#news ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-btn);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
}

#news ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
  background: var(--grad-card);
}

#news ul li:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

#news ul li time {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* ===== ARTICLES ===== */
#articles {
  display: grid;
  gap: 20px;
}

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

#articles article {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#articles article::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: var(--grad-btn);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.125rem;
  transition: color var(--transition-fast);
}

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

#articles article p {
  font-size: 0.9rem;
  flex-grow: 1;
}

#articles article p:first-of-type {
  margin-bottom: 12px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  margin-top: 12px;
  align-self: flex-start;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

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

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

/* ===== FAQ ===== */
#faq {
  display: grid;
  gap: 14px;
}

#faq h2 {
  grid-column: 1 / -1;
}

#faq h3 {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 20px 26px 14px;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: none;
  position: relative;
  padding-left: 48px;
  transition: color var(--transition-fast), background var(--transition-fast);
  cursor: default;
}

#faq h3::before {
  content: 'Q';
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

#faq h3:hover {
  color: var(--primary);
  background: var(--grad-card);
}

#faq h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 26px 22px 48px;
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  position: relative;
}

#faq h3 + p::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

#faq h3:hover + p {
  background: var(--grad-card);
}

/* ===== HOWTO ===== */
#howto {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  counter-reset: howto-step;
}

#howto:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

#howto h3 {
  counter-increment: howto-step;
  padding-left: 42px;
  position: relative;
  margin-top: 28px;
}

#howto h3::before {
  content: counter(howto-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#howto h3:hover::before {
  transform: translateY(-50%) scale(1.12) rotate(-6deg);
  box-shadow: 0 5px 16px rgba(255, 107, 53, 0.45);
}

#howto h3:first-of-type {
  margin-top: 0;
}

/* ===== CONTACT ===== */
#contact p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-glass);
  font-size: 0.9375rem;
  transition: padding-left var(--transition-fast), border-color var(--transition-fast);
}

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

#contact p:hover {
  padding-left: 8px;
  border-color: var(--primary-light);
}

#contact p::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-btn);
  flex-shrink: 0;
  margin-top: 8px;
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

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

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 9px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-btn);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  opacity: 1;
}

/* ===== PRIVACY & DISCLAIMER ===== */
#privacy,
#disclaimer {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  font-size: 0.875rem;
}

#privacy p,
#disclaimer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--grad-btn);
  border-radius: 2px;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

footer p:last-child {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

footer a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  header nav {
    padding: 0 20px;
    gap: 16px;
  }

  header nav ul li a {
    padding: 7px 11px;
    font-size: 0.8125rem;
  }

  main {
    padding: 0 20px 64px;
  }

  #hero {
    padding: 56px 36px;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #contact,
  #knowledge,
  #security,
  #howto {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  header nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  header nav > a {
    font-size: 1.125rem;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  main {
    padding: 0 16px 48px;
  }

  #hero {
    padding: 44px 24px;
    border-radius: var(--radius-lg);
    margin: 12px 0 48px;
  }

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

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

  h2 {
    font-size: 1.25rem;
    margin-bottom: 22px;
  }

  h3 {
    font-size: 1rem;
    margin: 24px 0 10px;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #contact,
  #knowledge,
  #security,
  #howto {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  #articles article {
    padding: 22px 20px;
    border-radius: var(--radius-md);
  }

  #news ul li {
    padding: 14px 16px;
    flex-direction: column;
    gap: 6px;
  }

  #faq h3 {
    padding: 16px 18px 10px 42px;
    font-size: 0.9375rem;
  }

  #faq h3::before {
    left: 14px;
    top: 16px;
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }

  #faq h3 + p {
    padding: 0 18px 18px 42px;
    font-size: 0.875rem;
  }

  #faq h3 + p::before {
    left: 14px;
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }

  #howto h3 {
    padding-left: 36px;
  }

  #howto h3::before {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  #contact p {
    font-size: 0.875rem;
  }

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 14px;
    font-size: 0.8125rem;
  }

  footer {
    padding: 32px 16px 40px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 36px 18px;
  }

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

  #hero p {
    font-size: 0.84375rem;
    line-height: 1.75;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #contact,
  #knowledge,
  #security,
  #howto {
    padding: 22px 16px;
  }

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

  #articles article h3 {
    font-size: 1rem;
  }

  #articles article p {
    font-size: 0.84375rem;
  }

  #faq h3 {
    padding: 14px 14px 8px 38px;
    font-size: 0.875rem;
  }

  #faq h3::before {
    left: 12px;
    top: 14px;
    width: 18px;
    height: 18px;
    font-size: 0.5625rem;
  }

  #faq h3 + p {
    padding: 0 14px 16px 38px;
    font-size: 0.8125rem;
  }

  #faq h3 + p::before {
    left: 12px;
    width: 18px;
    height: 18px;
    font-size: 0.5625rem;
  }

  #howto h3 {
    padding-left: 32px;
    font-size: 0.9375rem;
  }

  #howto h3::before {
    width: 22px;
    height: 22px;
    font-size: 0.6875rem;
  }

  #sitemap ul,
  #links ul {
    gap: 6px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 6px 12px;
    font-size: 0.78125rem;
  }

  footer p {
    font-size: 0.75rem;
  }
}

/* ===== 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;
  }

  #hero {
    animation: none;
  }

  #hero::after {
    animation: none;
  }
}

/* ===== PRINT ===== */
@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

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

  #hero {
    background: #f0f0f0;
    color: #000;
    box-shadow: none;
  }

  section {
    break-inside: avoid;
    animation: none;
  }
}