:root {
  --banana: #f5a623;
  --banana-deep: #e08e0b;
  --banana-soft: #fdf3e0;
  --ink: #1f2328;
  --ink-soft: #4a5560;
  --ink-mute: #6b7580;
  --bg: #fbfaf7;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --line: #e7e2d8;
  --accent: #5b8def;
  --accent-soft: #eef4fb;
  --green: #6cc24a;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 2px 8px rgba(31, 35, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 35, 40, 0.09);
  --shadow-lg: 0 22px 60px rgba(31, 35, 40, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

html[data-theme="dark"],
body.dark {
  --ink: #eef1f4;
  --ink-soft: #c3cad2;
  --ink-mute: #98a2ad;
  --bg: #10141a;
  --bg-alt: #161b22;
  --card: #1a2029;
  --line: #2a323d;
  --banana-soft: #2a2317;
  --accent-soft: #1b2433;
  --glass: rgba(22, 27, 34, 0.62);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(245, 166, 35, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(91, 141, 239, 0.10), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--banana-deep);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--banana);
}

:focus-visible {
  outline: 3px solid rgba(245, 166, 35, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  background: linear-gradient(120deg, var(--banana-deep), var(--banana) 60%, #ffcf6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#site-header nav {
  flex: 1 1 auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--banana), var(--banana-deep));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
  background: rgba(245, 166, 35, 0.12);
  transform: translateY(-1px);
}

.nav-list a:hover::after {
  width: 60%;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  flex: 0 1 260px;
}

.site-search:focus-within {
  border-color: var(--banana);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.16);
}

.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  padding: 6px 4px;
}

.site-search input::placeholder {
  color: var(--ink-mute);
}

.site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--banana), var(--banana-deep));
  padding: 7px 15px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  white-space: nowrap;
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
  filter: brightness(1.05);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--banana-deep);
  border-color: var(--banana);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
  margin-left: auto;
}

/* ---------- Main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 40px;
}

main > section,
main > nav {
  margin-top: 34px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--banana-deep);
}

/* ---------- Section cards ---------- */
main > section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: rise 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 28%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
  }
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.45);
}

main > section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 18px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 0.3px;
}

main > section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--banana), var(--banana-deep), transparent);
}

main > section h3 {
  font-size: 1.16rem;
  margin: 28px 0 10px;
  color: var(--ink);
  line-height: 1.5;
}

main > section h4 {
  font-size: 1rem;
  margin: 18px 0 6px;
  color: var(--banana-deep);
}

main > section p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

main > section ul {
  padding-left: 1.2em;
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.28), transparent 46%),
    radial-gradient(circle at 10% 92%, rgba(91, 141, 239, 0.42), transparent 52%),
    linear-gradient(135deg, #f5a623 0%, #ef8a2b 42%, #d96b3c 72%, #6f5bd8 130%);
  background-size: 200% 200%;
  animation: heroShift 16s ease-in-out infinite alternate;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(12px);
  z-index: -1;
  animation: floaty 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -140px -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
  animation: floaty 15s ease-in-out infinite reverse;
}

#hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.32;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero-lead {
  max-width: 780px;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  color: rgba(255, 255, 255, 0.94) !important;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
  will-change: transform;
}

.btn-primary {
  color: #5a3a00;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  color: #5a3a00;
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hero-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.hero-slider figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-slider figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.hero-slider svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-slider figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.4px;
}

/* ---------- Blockquotes (cases) ---------- */
blockquote {
  margin: 16px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--banana);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(120deg, var(--banana-soft), transparent 80%);
  color: var(--ink-soft);
  font-style: normal;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

blockquote p {
  margin: 0;
}

/* ---------- News & articles ---------- */
#news article,
#articles article {
  position: relative;
  padding: 20px 22px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--banana), var(--accent));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.45);
}

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

#news article h3,
#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  line-height: 1.55;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.3px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--banana-soft);
  color: var(--banana-deep);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

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

#articles article a:hover {
  background: linear-gradient(135deg, var(--banana), var(--banana-deep));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
}

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

/* ---------- FAQ ---------- */
#faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin: 12px 0;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(245, 166, 35, 0.6);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, var(--banana-soft), var(--bg-alt) 60%);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
  transition: color 0.25s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--banana-deep);
  background: rgba(245, 166, 35, 0.16);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq summary:hover {
  color: var(--banana-deep);
}

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

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink-soft);
  animation: fadeIn 0.4s var(--ease) both;
}

/* ---------- HowTo ---------- */
#howto h4 {
  position: relative;
  padding-left: 30px;
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--banana), var(--banana-deep));
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}

/* ---------- Contact ---------- */
#contact address {
  font-style: normal;
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  margin: 16px 0 8px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), var(--banana-soft));
  border: 1px solid var(--line);
}

#contact address p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Sitemap & links ---------- */
main > nav[aria-label="网站地图"],
main > section[aria-labelledby="links-title"] {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="网站地图"] h2,
main > section[aria-labelledby="links-title"] h2 {
  font-size: 1.3rem;
  margin: 0 0 16px;
}

main > nav[aria-label="网站地图"] ul,
main > section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

main > nav[aria-label="网站地图"] a,
main > section[aria-labelledby="links-title"] a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: all 0.28s var(--ease);
}

main > nav[aria-label="网站地图"] a:hover,
main > section[aria-labelledby="links-title"] a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--banana), var(--banana-deep));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.35);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 50px;
  padding: 46px clamp(20px, 5vw, 60px) 34px;
  background:
    radial-gradient(circle at 90% 0%, rgba(245, 166, 35, 0.16), transparent 45%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

footer section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
}

footer h2 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: 0.3px;
}

footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.8;
}

footer > p {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 120;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--banana), var(--banana-deep));
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(245, 166, 35, 0.55);
}

/* ---------- Animations ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 22px, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }
  .nav-list a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
  .site-search {
    flex: 1 1 200px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .header-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  #menu-toggle {
    display: inline-block;
  }
  #site-header nav {
    order: 5;
    flex: 1 1 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
    opacity: 0;
  }
  #site-header nav.open {
    max-height: 520px;
    opacity: 1;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
  }
  .nav-list a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .nav-list a::after {
    display: none;
  }
  .site-search {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
  }
  main {
    padding: 0 16px 30px;
  }
  main > section {
    padding: 26px 20px;
    border-radius: var(--radius);
  }
  .hero-slider {
    grid-template-columns: 1fr;
  }
  #hero h1 {
    font-size: 1.55rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .header-inner {
    gap: 8px;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 7px 11px;
    font-size: 0.76rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 18px;
  }
  main > section h2 {
    font-size: 1.28rem;
  }
  main > section h3 {
    font-size: 1.06rem;
  }
  #news article,
  #articles article {
    padding: 16px 16px;
  }
  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.94rem;
  }
  #contact address {
    padding: 16px 16px;
  }
  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 13px;
    font-size: 0.76rem;
  }
  footer {
    padding: 32px 16px 26px;
  }
}

/* ---------- Accessibility & print ---------- */
@media (hover: none) {
  main > section:hover,
  #news article:hover,
  #articles article:hover,
  .hero-slider figure:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .site-search,
  #theme-toggle,
  #menu-toggle,
  .hero-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}