:root {
  --primary: #ff5a36;
  --primary-dark: #e8441f;
  --primary-light: #ff8a6b;
  --secondary: #7c3aed;
  --secondary-light: #a78bfa;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --bg: #faf9f7;
  --bg-alt: #f2efeb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.45);
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --border: #e7e5e4;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 25, 23, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 90, 54, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff6b4a;
    --primary-dark: #ff5a36;
    --primary-light: #ff9a80;
    --secondary: #a78bfa;
    --secondary-light: #c4b5fd;
    --accent: #22d3ee;
    --accent-light: #a5f3fc;
    --bg: #0c0a09;
    --bg-alt: #1c1917;
    --bg-card: #1c1917;
    --bg-glass: rgba(28, 25, 23, 0.72);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f4;
    --text-secondary: #a8a29e;
    --text-muted: #78716c;
    --border: #292524;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(255, 107, 74, 0.18);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -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;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

ul,
ol {
  list-style: none;
}

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

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

header nav > a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

header nav > a:hover {
  opacity: 0.85;
}

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

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

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

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 90, 54, 0.06);
}

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

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

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

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

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

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

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

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

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

/* ============ SECTIONS ============ */
main > section {
  margin-top: 56px;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.1s; }
main > section:nth-child(4) { animation-delay: 0.12s; }
main > section:nth-child(5) { animation-delay: 0.14s; }
main > section:nth-child(6) { animation-delay: 0.16s; }
main > section:nth-child(7) { animation-delay: 0.18s; }
main > section:nth-child(8) { animation-delay: 0.2s; }

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

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(255, 90, 54, 0); }
}

/* ============ HERO ============ */
#hero {
  position: relative;
  margin-top: 24px;
  padding: 64px 40px 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ff5a36 0%, #ff7a4d 25%, #e8441f 50%, #7c3aed 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  text-align: center;
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(ellipse 500px 350px at 85% 80%, rgba(124, 58, 237, 0.25), transparent),
    radial-gradient(ellipse 300px 200px at 50% 0%, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -60px;
  right: -40px;
  filter: blur(40px);
  pointer-events: none;
}

#hero h1 {
  position: relative;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#hero > p {
  position: relative;
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

#hero figure {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

#hero figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  text-align: center;
}

/* ============ HEADINGS ============ */
main h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.875rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-left: 18px;
}

main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

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

main h3:first-child {
  margin-top: 0;
}

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

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

main ul,
main ol {
  margin: 12px 0 20px;
  padding-left: 0;
}

main ul li,
main ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
}

main ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

main ol {
  counter-reset: ol-counter;
}

main ol li {
  counter-increment: ol-counter;
}

main ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============ CARD SECTIONS ============ */
#brand,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#meta-info {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#brand:hover,
#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover,
#meta-info:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 54, 0.15);
}

/* ============ NEWS / ARTICLE CARDS ============ */
#news article,
#articles article {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article:hover,
#articles article:hover {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.0625rem;
  transition: color var(--transition);
}

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

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

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

#articles article p:last-child a:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ============ BLOCKQUOTE ============ */
blockquote {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.06), rgba(124, 58, 237, 0.06));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px 18px 28px;
  margin: 16px 0;
  transition: all var(--transition);
}

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

blockquote:hover {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.1), rgba(124, 58, 237, 0.1));
  transform: translateX(4px);
}

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

/* ============ FAQ ============ */
#faq details {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: all var(--transition);
  overflow: hidden;
}

#faq details:hover {
  border-color: rgba(255, 90, 54, 0.2);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  background: var(--bg-card);
  border-color: rgba(255, 90, 54, 0.25);
  box-shadow: var(--shadow-md);
}

#faq details summary {
  padding: 16px 52px 16px 22px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--transition);
  user-select: none;
}

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

#faq details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition), color var(--transition);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 90, 54, 0.08);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--primary);
  color: #fff;
}

#faq details summary:hover {
  color: var(--primary);
}

#faq details p {
  padding: 0 22px 18px;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.85;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: howto-counter;
}

#howto ol li {
  counter-increment: howto-counter;
  padding-left: 40px;
  position: relative;
  margin-bottom: 14px;
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 90, 54, 0.3);
}

/* ============ CONTACT ============ */
#contact address {
  font-style: normal;
}

#contact address ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 16px 0 24px;
}

#contact address ul li {
  padding: 12px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

#contact address ul li::before {
  display: none;
}

#contact address ul li:hover {
  border-color: rgba(255, 90, 54, 0.2);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

#contact address ul li a {
  font-weight: 500;
}

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

#sitemap ul li,
#links ul li {
  padding: 0;
  margin: 0;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

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

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 90, 54, 0.3);
  transform: translateY(-2px);
}

/* ============ META INFO ============ */
#meta-info ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

#meta-info ul li {
  padding: 12px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

#meta-info ul li::before {
  display: none;
}

#meta-info ul li:hover {
  border-color: rgba(255, 90, 54, 0.2);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin-bottom: 20px;
}

footer nav ul li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

footer nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 90, 54, 0.06);
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 100px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

/* ============ SELECTION ============ */
::selection {
  background: rgba(255, 90, 54, 0.2);
  color: var(--text);
}

/* ============ FOCUS ============ */
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  main > section {
    padding: 32px 28px;
  }

  #hero {
    padding: 48px 28px 44px;
  }
}

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

  header nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

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

  header nav ul {
    gap: 2px;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

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

  main {
    padding: 0 16px 60px;
  }

  main > section {
    margin-top: 36px;
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  #hero {
    margin-top: 16px;
    padding: 36px 20px 32px;
    border-radius: var(--radius-lg);
  }

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

  #hero > p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }

  main h2 {
    font-size: 1.2rem;
    padding-left: 14px;
    margin-bottom: 18px;
  }

  main h2::before {
    width: 4px;
  }

  main h3 {
    font-size: 1.05rem;
    margin-top: 22px;
  }

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

  #faq details summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.875rem;
  }

  #faq details summary::after {
    right: 14px;
    width: 22px;
    height: 22px;
    font-size: 1.1rem;
  }

  #faq details p {
    padding: 0 16px 16px;
    font-size: 0.875rem;
  }

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

  #meta-info ul {
    grid-template-columns: 1fr;
  }

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

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

  footer nav ul {
    gap: 4px 2px;
  }

  footer nav ul li a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

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

  #hero {
    padding: 28px 16px 26px;
  }

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

  main > section {
    padding: 22px 16px;
  }

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

  #howto ol li {
    padding-left: 34px;
  }

  #howto ol li::before {
    width: 22px;
    height: 22px;
    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;
  }
}

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

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main > section {
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 24pt;
    break-inside: avoid;
  }

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

  #faq details {
    background: none;
    border: none;
  }

  #faq details[open] {
    box-shadow: none;
  }
}