:root {
  --brand: #1a56db;
  --brand-2: #3b82f6;
  --brand-3: #60a5fa;
  --accent: #ffd166;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #5b6b82;
  --line: rgba(26, 86, 219, 0.14);
  --bg: #f7f9ff;
  --bg-2: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.35);
  --shadow-soft: 0 10px 24px -18px rgba(15, 23, 42, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: 0 0 0 3px rgba(26, 86, 219, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4f8bff;
    --brand-2: #6aa5ff;
    --brand-3: #8fc0ff;
    --accent: #ffd166;
    --ink: #e8eefc;
    --ink-2: #cbd8f0;
    --muted: #93a4c0;
    --line: rgba(140, 180, 255, 0.18);
    --bg: #070c18;
    --bg-2: #0d1424;
    --card: rgba(20, 30, 52, 0.62);
    --glass-border: rgba(140, 180, 255, 0.18);
    --shadow: 0 20px 46px -24px rgba(0, 0, 0, 0.75);
    --shadow-soft: 0 12px 26px -18px rgba(0, 0, 0, 0.7);
    --focus: 0 0 0 3px rgba(120, 170, 255, 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
  -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, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(96, 165, 250, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(26, 86, 219, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--brand-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--ink-2);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--ink);
}

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.2em;
  border-left: 4px solid var(--brand-2);
  background: var(--card);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

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

.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: rgba(247, 249, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

@media (prefers-color-scheme: dark) {
  #site-header {
    background: rgba(7, 12, 24, 0.72);
  }
}

#site-header:focus-within {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 8px 18px -10px rgba(26, 86, 219, 0.9);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.04);
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  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(--brand), var(--brand-3));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover {
  color: var(--brand);
  background: rgba(26, 86, 219, 0.08);
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.site-search input {
  width: 190px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: width 0.35s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

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

.site-search input:focus {
  width: 240px;
  outline: none;
  border-color: var(--brand-2);
  box-shadow: var(--focus);
}

.site-search button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 20px -12px rgba(26, 86, 219, 0.9);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 26px -14px rgba(26, 86, 219, 0.95);
}

.site-search button:active {
  transform: translateY(0) scale(0.98);
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
}

main > section {
  margin: 2.2rem 0;
  animation: rise 0.7s var(--ease) both;
}

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

main > section > h2 {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1.1rem;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
}

main > section > article {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

main > section > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -26px rgba(15, 23, 42, 0.5);
  border-color: rgba(96, 165, 250, 0.55);
}

main > section > article h3 {
  margin-top: 1.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--line);
}

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

main > section > article ul li::marker {
  color: var(--brand-2);
}

/* ============ Hero ============ */
#hero {
  margin-top: 1.6rem;
}

.hero-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(255, 209, 102, 0.32), transparent 62%),
    linear-gradient(135deg, #1a56db 0%, #3b82f6 48%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(26, 86, 219, 0.75);
  isolation: isolate;
}

@media (prefers-color-scheme: dark) {
  .hero-inner {
    background:
      radial-gradient(700px 340px at 12% 0%, rgba(255, 209, 102, 0.22), transparent 62%),
      linear-gradient(135deg, #12327f 0%, #1a56db 50%, #3b82f6 100%);
  }
}

.hero-inner::before,
.hero-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

.hero-inner::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -110px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-inner::after {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: -120px;
  background: rgba(255, 209, 102, 0.45);
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -18px, 0) scale(1.08);
  }
}

#hero-title {
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  max-width: 22ch;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 68ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

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

.btn-primary {
  color: #0f172a;
  background: linear-gradient(135deg, #ffffff, #e8f0ff);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  color: #0f172a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 38px -18px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.hero-stats li {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}

/* ============ Carousel ============ */
.banner-carousel {
  position: relative;
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.banner-carousel .slide {
  display: none;
}

.banner-carousel .slide[aria-hidden="false"] {
  display: block;
  animation: fadeIn 0.6s var(--ease) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(26, 86, 219, 0.85);
  transform: translateY(-50%) scale(1.08);
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 1.4rem 0 0;
}

#breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

#breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#breadcrumb li + li::before {
  content: "/";
  color: var(--muted);
  opacity: 0.7;
}

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

/* ============ Articles ============ */
#articles > article {
  margin-bottom: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 24px 44px -26px rgba(15, 23, 42, 0.5);
}

#articles > article h3 {
  margin: 0 0 0.35rem;
  border: 0;
  padding: 0;
}

#articles > article h3 a {
  color: var(--ink);
  background-image: linear-gradient(var(--brand-2), var(--brand-2));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

#articles > article h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

#articles > article p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

#articles > article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

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

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

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 0.7rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateY(-2px);
}

#faq details[open] {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 18px 36px -24px rgba(26, 86, 219, 0.6);
}

#faq summary {
  position: relative;
  padding: 0.95rem 2.6rem 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(26, 86, 219, 0.1);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--brand);
  background: rgba(26, 86, 219, 0.06);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: rgba(26, 86, 219, 0.18);
}

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

#faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.95rem;
  animation: rise 0.4s var(--ease) both;
}

/* ============ Contact / author / sitemap / links ============ */
#contact p,
#author p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  padding: 0.45rem 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
}

#contact p:last-child,
#author p:last-child {
  border-bottom: 0;
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease),
    border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--brand);
  border-color: rgba(96, 165, 250, 0.7);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 86, 219, 0.06), transparent 70%),
    var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.8rem 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p:last-child {
  margin-bottom: 0;
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-inner a {
  color: var(--brand-2);
}

.footer-inner a:hover {
  color: var(--brand);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(26, 86, 219, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    filter 0.3s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.08);
  box-shadow: 0 22px 38px -16px rgba(26, 86, 219, 0.95);
}

#back-to-top:active {
  transform: translateY(0) scale(0.96);
}

/* ============ Scroll animation utilities ============ */
@supports (animation-timeline: view()) {
  main > section {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 0.7rem;
  }
  .site-search input {
    width: 150px;
  }
  .site-search input:focus {
    width: 190px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 0.65rem 1rem;
  }
  #site-header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #site-header nav::-webkit-scrollbar {
    display: none;
  }
  .nav-list {
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding-bottom: 0.2rem;
  }
  .nav-list a {
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .site-search {
    margin-left: auto;
  }
  .site-search input {
    width: 130px;
  }
  .site-search input:focus {
    width: 160px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  main {
    padding: 0 0.9rem 2.2rem;
  }
  main > section {
    margin: 1.6rem 0;
  }
  main > section > article {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-sm);
  }
  .hero-inner {
    padding: 1.35rem 1.1rem;
    border-radius: var(--radius);
  }
  #hero-title {
    max-width: none;
  }
  .hero-actions {
    gap: 0.6rem;
  }
  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    padding: 0.72rem 1.1rem;
    font-size: 0.92rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .hero-stats li {
    padding: 0.7rem 0.6rem;
  }
  .banner-carousel svg {
    height: auto;
  }
  .carousel-prev,
  .carousel-next {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
  .site-search button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  .site-search input {
    width: 110px;
    font-size: 0.85rem;
  }
  .site-search input:focus {
    width: 130px;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }
  #faq summary {
    padding: 0.85rem 2.4rem 0.85rem 0.95rem;
    font-size: 0.95rem;
  }
  #back-to-top {
    width: 42px;
    height: 42px;
    right: 0.85rem;
    bottom: 1rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .site-search input {
    width: 92px;
  }
  .site-search input:focus {
    width: 110px;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  .banner-carousel,
  .site-search,
  .hero-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section > article,
  #articles > article,
  #faq details {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}