:root {
  --primary: #1a6dff;
  --primary-dark: #0f4fd0;
  --primary-light: #eef4ff;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --bg: #f6f9ff;
  --bg-elevated: #ffffff;
  --text: #14213d;
  --text-soft: #4a5878;
  --text-muted: #7a87a3;
  --border: rgba(20, 33, 61, 0.08);
  --shadow-sm: 0 2px 8px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 33, 61, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.7);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --maxw: 1180px;
  --grad-banner: linear-gradient(135deg, #1a6dff 0%, #4f46e5 45%, #7c3aed 75%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef4ff 0%, #f3efff 50%, #e6fbff 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"],
body.dark-mode {
  --primary: #5b93ff;
  --primary-dark: #3d7bff;
  --primary-light: rgba(91, 147, 255, 0.12);
  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --bg: #0b1020;
  --bg-elevated: #131a2e;
  --text: #eaf0ff;
  --text-soft: #b3c0dd;
  --text-muted: #8492b3;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(19, 26, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --grad-banner: linear-gradient(135deg, #1e3a8a 0%, #4338ca 45%, #6d28d9 75%, #0891b2 100%);
  --grad-soft: linear-gradient(135deg, #0f1730 0%, #151233 50%, #0a1f2b 100%);
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 12% 0%, rgba(26, 109, 255, 0.08), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.08), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

svg {
  height: auto;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.4rem); }

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--primary);
}

time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

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

address {
  font-style: normal;
  margin-bottom: 1.2em;
}

address p {
  margin-bottom: 0.35em;
}

.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-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(26, 109, 255, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  background: var(--grad-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-slogan {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  border: 1px solid var(--border);
  white-space: nowrap;
}

#main-nav {
  flex: 1 1 auto;
}

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.15);
}

.site-search input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.86rem;
  color: var(--text);
  font-family: inherit;
  width: 150px;
  outline: none;
  transition: width 0.3s var(--ease);
}

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

.site-search input:focus {
  width: 190px;
}

.site-search button {
  border: 0;
  background: var(--grad-banner);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-search button:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
}

#breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

#breadcrumb li {
  display: flex;
  align-items: center;
  margin: 0;
}

#breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

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

/* ============ Main / Sections ============ */
main {
  display: block;
}

main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px;
  animation: fadeUp 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 22%;
}

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

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

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 1.2em;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-banner);
}

main > section > h3 {
  margin-top: 1.6em;
  color: var(--text);
}

/* ============ Hero ============ */
#hero {
  padding-top: 32px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-banner);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.35), transparent 50%);
  z-index: -1;
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { transform: scale(1) translate(0, 0); opacity: 0.9; }
  100% { transform: scale(1.15) translate(-2%, 2%); opacity: 1; }
}

.slide {
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide h1,
.slide h2 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  max-width: 760px;
  margin-bottom: 0.5em;
}

.slide p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
}

.slide svg {
  margin-top: 20px;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  max-width: 100%;
  transition: transform 0.5s var(--ease);
}

.slide svg:hover {
  transform: translateY(-4px) scale(1.01);
}

.slide-2,
.slide-3 {
  display: none;
}

.cta,
.cta-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 6px 8px 6px 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.cta {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta:hover,
.cta:focus-visible {
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

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

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-3px);
}

.slider-controls {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--ease);
}

.slider-controls button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.slider-controls button:first-child::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.slider-controls button:last-child::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.36);
  transform: scale(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 109, 255, 0.35);
}

.stat .num {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat .unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 2px;
}

.stat p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ Cards & content blocks ============ */
#about p,
#products p,
#scenarios p,
#solutions p,
#cases p,
#howto p,
#knowledge p,
#contact p {
  max-width: 900px;
}

#products ul,
#howto ul,
#howto ol {
  max-width: 900px;
  padding: 1.1em 1.4em 1.1em 2.4em;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#products ul li,
#howto ul li,
#howto ol li {
  margin-bottom: 0.5em;
}

#products ul li:last-child,
#howto ul li:last-child,
#howto ol li:last-child {
  margin-bottom: 0;
}

/* News */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

#news li {
  margin: 0;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  color: var(--text-soft);
  display: flex;
  gap: 14px;
  align-items: baseline;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-banner);
  flex-shrink: 0;
  transform: translateY(-1px);
}

#news li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 109, 255, 0.3);
}

#news time {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
}

/* Articles */
#articles > p {
  max-width: 900px;
}

#articles article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-banner);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 109, 255, 0.3);
}

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

#articles article h3 {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

#articles article h3 a {
  color: var(--text);
  transition: color 0.25s var(--ease);
}

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

#articles article > p {
  font-size: 0.92rem;
  margin-bottom: 0.6em;
}

#articles article > p:last-child {
  margin-bottom: 0;
}

#articles article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  transition: all 0.3s var(--ease);
}

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

#articles article > p:last-child a:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 109, 255, 0.35);
}

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

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

#faq details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 109, 255, 0.28);
}

#faq details[open] {
  border-color: rgba(26, 109, 255, 0.4);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.93rem;
  color: var(--text-soft);
  animation: faqReveal 0.4s var(--ease);
}

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

/* Contact */
#contact address {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}

#contact address p {
  margin-bottom: 0.5em;
}

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

#contact address a {
  font-weight: 600;
}

/* Sitemap & Links */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-banner);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 109, 255, 0.35);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 40px;
  background: var(--grad-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

#site-footer > .footer-inner > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

#site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

#site-footer nav li {
  margin: 0;
}

#site-footer nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
}

#site-footer nav a:hover {
  color: var(--primary);
}

#site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

#site-footer nav a:hover::after {
  width: 100%;
}

#site-footer section {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#site-footer section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#site-footer section h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

#site-footer section p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--text-muted);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-banner);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(26, 109, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.35s var(--ease);
}

#back-to-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-left: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(26, 109, 255, 0.5);
}

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

  .brand-slogan {
    display: none;
  }

  #main-nav a {
    padding: 6px 9px;
    font-size: 0.86rem;
  }

  .site-search input {
    width: 120px;
  }

  .site-search input:focus {
    width: 150px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  #menu-toggle {
    display: inline-block;
  }

  #main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-basis: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
  }

  #main-nav.is-open {
    max-height: 520px;
    opacity: 1;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 4px;
  }

  #main-nav a {
    display: block;
    padding: 11px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

  .site-search {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  main > section {
    padding: 40px 20px;
  }

  #articles article {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  #theme-toggle,
  #menu-toggle {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  #breadcrumb {
    padding: 10px 14px 0;
    font-size: 0.78rem;
  }

  main > section {
    padding: 34px 14px;
  }

  .slide {
    padding: 26px 20px 76px;
  }

  .slide h1 {
    font-size: 1.45rem;
  }

  .slide p {
    font-size: 0.92rem;
  }

  .cta,
  .cta-secondary {
    display: block;
    text-align: center;
    margin: 8px 0;
    padding: 12px 20px;
  }

  .slider-controls {
    right: 16px;
    bottom: 16px;
  }

  .slider-controls button {
    width: 38px;
    height: 38px;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 18px;
  }

  .stat {
    padding: 16px 10px;
  }

  .stat p {
    font-size: 0.74rem;
  }

  #news li {
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
  }

  #news li:hover {
    transform: translateY(-2px);
  }

  #faq summary {
    padding: 15px 46px 15px 16px;
    font-size: 0.92rem;
  }

  #faq summary::after {
    right: 18px;
  }

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

  #contact address,
  #site-footer section {
    padding: 16px 18px;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

/* ============ Motion & a11y ============ */
@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;
  }
}

@media print {
  #site-header,
  #breadcrumb,
  #back-to-top,
  .slider-controls,
  #site-footer nav {
    display: none !important;
  }

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

  main > section {
    padding: 12px 0;
    break-inside: avoid;
  }
}