:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 52, 0.72);
  --bg-card-hover: rgba(40, 40, 68, 0.85);
  --bg-glass: rgba(26, 26, 46, 0.55);
  --bg-glass-light: rgba(255, 255, 255, 0.06);
  --text-primary: #e8e8f0;
  --text-secondary: #a8a8c0;
  --text-muted: #70708a;
  --accent-1: #ff6b35;
  --accent-2: #f7931e;
  --accent-3: #ff4757;
  --accent-4: #7c5cfc;
  --accent-5: #00d2ff;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35, #f7931e);
  --gradient-accent-hover: linear-gradient(135deg, #ff4757, #ff6b35);
  --gradient-card: linear-gradient(145deg, rgba(124, 92, 252, 0.12), rgba(0, 210, 255, 0.06));
  --gradient-line: linear-gradient(90deg, #ff6b35, #7c5cfc, #00d2ff);
  --border-color: rgba(124, 92, 252, 0.2);
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(255, 107, 53, 0.3);
  --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.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --nav-height: 68px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-light: rgba(0, 0, 0, 0.03);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --border-color: rgba(124, 92, 252, 0.18);
    --border-glass: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 24px rgba(255, 107, 53, 0.2);
    --gradient-hero: linear-gradient(135deg, #e8e4f0 0%, #dce4f5 30%, #d0e0f0 60%, #e0d8f0 100%);
    --gradient-card: linear-gradient(145deg, rgba(124, 92, 252, 0.06), rgba(0, 210, 255, 0.03));
  }
}

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

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);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 210, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-line);
  opacity: 0.6;
}

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

nav > div:first-child {
  flex-shrink: 0;
}

nav > div:first-child a {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: filter var(--transition-fast);
}

nav > div:first-child a:hover {
  filter: brightness(1.2) drop-shadow(0 0 12px rgba(255, 107, 53, 0.4));
}

nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

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

nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
  transform: translateY(-1px);
}

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

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  margin-bottom: 72px;
  animation: fadeInUp 0.7s ease-out both;
}

section:nth-child(odd) {
  animation-delay: 0.1s;
}

section:nth-child(even) {
  animation-delay: 0.2s;
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
  }
}

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

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

#hero {
  position: relative;
  margin-top: 32px;
  margin-bottom: 80px;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out both;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero h1 {
  position: relative;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #e0d8f0 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  z-index: 1;
}

@media (prefers-color-scheme: light) {
  #hero h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a3a6a 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

#hero p {
  position: relative;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 16px;
  line-height: 1.9;
  z-index: 1;
}

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

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

section:hover > h2::after {
  width: 100px;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--gradient-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

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

ul, ol {
  margin: 16px 0 20px 0;
  padding-left: 0;
  list-style: none;
}

ul li, ol li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text-secondary);
  line-height: 1.8;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

ul li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

ul li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

ol {
  counter-reset: step-counter;
}

ol li {
  counter-increment: step-counter;
  padding-left: 40px;
}

ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

ol li:hover::before {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}

ol li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.3);
}

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

#products,
#solutions,
#applications,
#cases,
#testimonials,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  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);
}

#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#testimonials:hover,
#news:hover,
#articles:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
  border-color: var(--border-color);
}

#brand {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

#brand:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
  border-color: var(--border-color);
}

blockquote {
  position: relative;
  margin: 24px 0;
  padding: 28px 32px 28px 40px;
  background: var(--bg-glass-light);
  border-left: 4px solid transparent;
  border-image: var(--gradient-accent) 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-1);
  opacity: 0.3;
  font-family: Georgia, serif;
}

blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.9;
}

blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  text-align: right;
}

blockquote cite::before {
  content: "—— ";
}

article {
  position: relative;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-glass);
  transition: padding-left var(--transition-base);
}

article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

article:first-child {
  padding-top: 0;
}

article:hover {
  padding-left: 8px;
}

article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

article:hover h3 {
  color: var(--accent-1);
}

article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 2px 10px;
  background: var(--bg-glass-light);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

article p {
  margin-bottom: 8px;
}

article p a {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

article p a::after {
  content: "\2192";
  font-size: 0.85em;
  transition: transform var(--transition-fast);
}

article p a:hover {
  gap: 8px;
}

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

details {
  margin-bottom: 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-glass-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

details:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.1);
  background: var(--bg-card);
}

details summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

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

details summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition-base), background var(--transition-base);
}

details[open] summary::before {
  content: "\2212";
  transform: rotate(180deg);
  background: var(--gradient-accent-hover);
}

details summary:hover {
  background: var(--bg-glass-light);
  color: var(--accent-1);
}

details p {
  padding: 0 20px 20px 56px;
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.9;
  animation: fadeIn 0.3s ease-out;
}

#testimonials blockquote {
  margin-bottom: 20px;
}

#testimonials blockquote:last-child {
  margin-bottom: 0;
}

#contact p {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-glass);
  margin-bottom: 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

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

#contact p:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

#sitemap ul li,
#links ul li {
  padding: 8px 0 8px 24px;
}

#sitemap ul li::before,
#links ul li::before {
  width: 6px;
  height: 6px;
  top: 17px;
}

#links ul li a {
  font-size: 0.9rem;
  font-weight: 500;
}

footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px 24px 32px;
  margin-top: 80px;
}

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

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

footer h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

footer h2::after {
  width: 40px;
  height: 3px;
}

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

footer > p:last-child {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-4));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-5));
}

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

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

@media (max-width: 900px) {
  nav {
    padding: 0 16px;
    gap: 12px;
  }

  nav > div:first-child a {
    font-size: 1.05rem;
  }

  nav ul li a {
    padding: 5px 9px;
    font-size: 0.78rem;
  }

  main {
    padding: 0 16px 60px;
  }

  #hero {
    padding: 40px 24px;
    margin-top: 20px;
    margin-bottom: 56px;
    border-radius: var(--radius-lg);
  }

  section {
    margin-bottom: 48px;
  }

  #products,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #brand {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  h2 {
    margin-bottom: 20px;
  }

  h3 {
    margin-top: 24px;
  }

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

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 600px) {
  :root {
    --nav-height: 56px;
  }

  body {
    font-size: 15px;
  }

  nav {
    padding: 0 12px;
  }

  nav > div:first-child a {
    font-size: 0.95rem;
  }

  nav ul {
    gap: 2px;
  }

  nav ul li a {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  main {
    padding: 0 12px 48px;
  }

  #hero {
    padding: 32px 18px;
    margin-top: 16px;
    margin-bottom: 40px;
    border-radius: var(--radius-md);
  }

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

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

  section {
    margin-bottom: 36px;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  h3 {
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 12px;
  }

  h4 {
    font-size: 0.95rem;
  }

  #products,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #brand {
    padding: 20px 14px;
    border-radius: var(--radius-sm);
  }

  blockquote {
    padding: 20px 16px 20px 28px;
  }

  blockquote::before {
    font-size: 2rem;
    top: 4px;
    left: 8px;
  }

  article {
    padding: 18px 0;
  }

  article h3 {
    font-size: 0.98rem;
  }

  details summary {
    padding: 12px 14px;
    font-size: 0.88rem;
    gap: 8px;
  }

  details summary::before {
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
  }

  details p {
    padding: 0 14px 14px 42px;
    font-size: 0.88rem;
  }

  ol li {
    padding-left: 34px;
  }

  ol li::before {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  ul li, ol li {
    font-size: 0.9rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  footer {
    padding: 32px 12px 20px;
    margin-top: 48px;
  }

  footer h2 {
    font-size: 0.95rem;
  }

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

@media (max-width: 380px) {
  nav > div:first-child a {
    font-size: 0.85rem;
  }

  nav ul li a {
    padding: 3px 5px;
    font-size: 0.68rem;
  }

  #hero {
    padding: 24px 14px;
  }

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

@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,
  footer::before,
  body::before {
    display: none;
  }

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

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