:root {
  --primary: #2e8b57;
  --primary-light: #3cb371;
  --primary-dark: #1a5c38;
  --accent: #7cfc00;
  --accent-soft: #90ee90;
  --bg: #f0f7f2;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --text: #1a2e22;
  --text-secondary: #4a6b58;
  --text-muted: #7a9b88;
  --border: rgba(46, 139, 87, 0.15);
  --shadow: 0 4px 20px rgba(46, 139, 87, 0.1);
  --shadow-hover: 0 8px 32px rgba(46, 139, 87, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-1: linear-gradient(135deg, #2e8b57, #7cfc00);
  --gradient-2: linear-gradient(135deg, #1a3a2a, #2e8b57);
  --gradient-3: linear-gradient(135deg, #2e8b57, #1a5c38, #0d3b1f);
  --gradient-hero: linear-gradient(135deg, #0d2818 0%, #1a4a2e 30%, #2e8b57 70%, #7cfc00 100%);
  --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;
}

[data-theme="dark"] {
  --bg: #0d1a12;
  --bg-alt: #12241a;
  --bg-card: rgba(18, 36, 26, 0.8);
  --text: #e0f0e6;
  --text-secondary: #a0c8b0;
  --text-muted: #6a9a7a;
  --border: rgba(124, 252, 0, 0.12);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 32px rgba(124, 252, 0, 0.15);
  --glass-bg: rgba(18, 36, 26, 0.65);
  --glass-border: rgba(124, 252, 0, 0.15);
  --gradient-hero: linear-gradient(135deg, #050f0a 0%, #0d2818 40%, #1a4a2e 80%, #2e8b57 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, svg {
  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(--accent);
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1.2rem; position: relative; padding-bottom: 0.6rem; }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin-bottom: 0.6rem; }

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width var(--transition);
}

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

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

blockquote {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* ========== HEADER ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 16px rgba(46, 139, 87, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.04);
  color: var(--primary);
}

.logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(46, 139, 87, 0.3));
  transition: transform var(--transition);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

#main-nav {
  flex: 1;
  min-width: 0;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

#main-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  position: relative;
}

#main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

#main-nav a:hover {
  color: var(--primary);
  background: rgba(46, 139, 87, 0.08);
}

#main-nav a:hover::after {
  width: 60%;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

#site-search input[type="search"] {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 160px;
  font-family: var(--font-sans);
  transition: width var(--transition);
}

#site-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

#site-search input[type="search"]:focus {
  width: 220px;
}

#site-search button {
  border: none;
  background: var(--gradient-1);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

#site-search button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

#mobile-menu-btn,
#dark-mode-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
  line-height: 1;
}

#dark-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu-btn:hover,
#dark-mode-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.08);
}

/* ========== BREADCRUMB ========== */
#breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
}

#breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

#breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

#breadcrumb a {
  color: var(--text-muted);
}

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

#breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ========== MAIN ========== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: fadeInUp 0.6s ease-out both;
}

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

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

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

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

/* ========== HERO ========== */
#hero {
  background: var(--gradient-hero);
  color: #fff;
  border: none;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 252, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

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

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

#hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 900px;
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

#hero h2::after {
  background: var(--accent);
}

/* ========== BANNER CAROUSEL ========== */
#banner-carousel {
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#banner-carousel .slide {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#banner-carousel .slide svg {
  display: block;
  width: 100%;
  height: auto;
}

#banner-carousel .slide:hover svg {
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

/* ========== BRAND INTRO ========== */
#brand-intro h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#brand-intro h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gradient-1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== PRODUCTS ========== */
#products h3 {
  color: var(--primary);
  margin-top: 1.4rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--primary);
  transition: border-color var(--transition), padding-left var(--transition);
}

#products h3:hover {
  border-left-color: var(--accent);
  padding-left: 1.2rem;
}

/* ========== SOLUTIONS ========== */
#solutions h3 {
  color: var(--primary);
  margin-top: 1.4rem;
}

/* ========== CASES ========== */
#cases h3 {
  color: var(--primary);
  margin-top: 1.4rem;
}

#cases h2:nth-of-type(2) {
  margin-top: 2rem;
}

/* ========== NEWS ========== */
#news article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

#news article h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

#news article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(46, 139, 87, 0.08);
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

#news article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.3rem;
}

#news article a::after {
  content: "→";
  transition: transform var(--transition);
}

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

/* ========== ARTICLES ========== */
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles article:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

#articles article h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
}

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

#articles article time {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

#articles article a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

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

/* ========== FAQ ========== */
#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(46, 139, 87, 0.1);
}

#faq details[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(46, 139, 87, 0.12);
}

#faq summary {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

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

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

#faq details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

#faq summary:hover {
  background: rgba(46, 139, 87, 0.06);
  color: var(--primary);
}

#faq details p {
  padding: 0 1.2rem 1rem 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease-out;
}

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

/* ========== HOWTO ========== */
#howto h3 {
  color: var(--primary);
  margin-top: 1.4rem;
}

#howto ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step-counter;
  position: relative;
  padding: 0.7rem 1rem 0.7rem 3.2rem;
  margin-bottom: 0.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--gradient-1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

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

#howto ul {
  list-style: none;
  padding-left: 0;
}

#howto ul li {
  position: relative;
  padding: 0.5rem 0.8rem 0.5rem 1.8rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 0.6rem;
  color: var(--primary);
  font-weight: 700;
}

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

/* ========== CONTACT ========== */
#contact h3 {
  color: var(--primary);
  margin-top: 1.2rem;
}

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

#contact p strong {
  color: var(--text);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

/* ========== FOOTER ========== */
#site-footer {
  background: var(--gradient-2);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-section h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-copyright {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(46, 139, 87, 0.4);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(46, 139, 87, 0.55);
  opacity: 1;
}

/* ========== SCROLL ANIMATIONS ========== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .header-inner {
    gap: 0.6rem;
  }

  #main-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
  }

  #site-search input[type="search"] {
    width: 130px;
  }

  #site-search input[type="search"]:focus {
    width: 170px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  #mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #main-nav {
    display: none;
    width: 100%;
    order: 10;
  }

  #main-nav.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
  }

  #main-nav a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  #site-search {
    flex: 1;
    min-width: 0;
  }

  #site-search input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  #site-search input[type="search"]:focus {
    width: 100%;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  #breadcrumb {
    padding: 0.6rem 1rem;
  }

  main {
    padding: 0 1rem 2rem;
  }

  section {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
  }

  #hero {
    padding: 2rem 1.5rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  #back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  #news article,
  #articles article {
    padding: 1rem 1.1rem;
  }

  #faq summary {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }

  #faq details p {
    padding: 0 1rem 0.8rem 2.6rem;
  }

  #howto ol li {
    padding: 0.6rem 0.8rem 0.6rem 2.8rem;
  }

  #howto ol li::before {
    left: 0.6rem;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .logo {
    font-size: 1rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  #hero {
    padding: 1.5rem 1rem;
  }

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

  section {
    padding: 1.2rem 1rem;
  }

  #site-search button {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }

  #sitemap a,
  #links a {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }
}

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

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

/* ========== PRINT ========== */
@media print {
  #site-header,
  #back-to-top,
  #site-search,
  #mobile-menu-btn,
  #dark-mode-btn {
    display: none !important;
  }

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

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