:root {
  --brand: #ff4d4f;
  --brand-dark: #d9363e;
  --brand-light: #ff7875;
  --brand-soft: rgba(255, 77, 79, 0.12);
  --accent: #7c5cff;
  --accent-2: #00c2ff;
  --bg: #f7f8fc;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #1f2430;
  --text-soft: #4b5568;
  --text-muted: #7a8496;
  --border: rgba(31, 36, 48, 0.1);
  --border-strong: rgba(31, 36, 48, 0.18);
  --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 36, 48, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 36, 48, 0.14);
  --shadow-brand: 0 12px 32px rgba(255, 77, 79, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #ff4d4f 0%, #ff7a45 40%, #ffb84d 100%);
  --grad-accent: linear-gradient(135deg, #7c5cff 0%, #00c2ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 77, 79, 0.12), rgba(124, 92, 255, 0.12));
}

[data-theme="dark"] {
  --bg: #0e1116;
  --bg-elevated: #161b23;
  --bg-glass: rgba(22, 27, 35, 0.72);
  --bg-glass-strong: rgba(22, 27, 35, 0.92);
  --text: #eef1f6;
  --text-soft: #c3cad6;
  --text-muted: #8b95a7;
  --border: rgba(238, 241, 246, 0.1);
  --border-strong: rgba(238, 241, 246, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --brand-soft: rgba(255, 77, 79, 0.18);
  --grad-soft: linear-gradient(135deg, rgba(255, 77, 79, 0.18), rgba(124, 92, 255, 0.18));
}

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

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

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(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(255, 77, 79, 0.1), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(124, 92, 255, 0.1), transparent 55%),
    radial-gradient(900px 600px at 50% 100%, rgba(0, 194, 255, 0.06), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  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-dark);
}

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

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

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

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

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.25em;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

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

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.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;
}

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

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

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

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-strong);
}

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

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

.brand:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.brand svg {
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

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

.brand-slogan {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  white-space: nowrap;
}

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

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  flex-shrink: 0;
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.site-search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  padding: 8px 8px 8px 0;
  width: 180px;
  outline: none;
  font-family: inherit;
}

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad-hero);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
  filter: brightness(1.05);
}

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

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

main > section {
  margin-bottom: 56px;
  padding: 40px clamp(20px, 4vw, 48px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

main > section:hover::before {
  opacity: 1;
}

main > section > h2:first-child {
  position: relative;
  padding-bottom: 16px;
}

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

main > section h3 {
  position: relative;
  padding-left: 16px;
  margin-top: 1.6em;
}

main > section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}

/* Scroll reveal */
main > section,
.hero-slider,
.stats,
article,
details {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

main > section.is-visible,
.hero-slider.is-visible,
.stats.is-visible,
article.is-visible,
details.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;
  }
  main > section,
  .hero-slider,
  .stats,
  article,
  details {
    opacity: 1;
    transform: none;
  }
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 20px 0 8px;
}

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

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

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

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

/* ============ Hero ============ */
.hero {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin-bottom: 40px !important;
}

.hero::before {
  display: none !important;
}

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

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(124, 92, 255, 0.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.slide {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px);
  color: #fff;
}

.slide h1,
.slide h2 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.slide h1 {
  max-width: 820px;
  margin-bottom: 0.5em;
}

.slide h2 {
  max-width: 760px;
  margin-bottom: 0.6em;
}

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

.slide-1 {
  padding-bottom: clamp(40px, 7vw, 88px);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

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

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

.btn-primary:active,
.btn-ghost:active {
  transform: translateY(-1px) scale(0.98);
}

.slide-2,
.slide-3 {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .slide-2,
[data-theme="dark"] .slide-3 {
  background: rgba(0, 0, 0, 0.18);
}

/* ============ Stats ============ */
.stats {
  margin: 0 0 56px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.stats::before {
  display: none !important;
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.stats li::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 120px;
  background: var(--grad-hero);
  opacity: 0.1;
  border-radius: 50%;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.stats li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.stats li:hover::after {
  opacity: 0.2;
  transform: scale(1.15);
}

.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.stats li span {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============ Products list ============ */
#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

#products ul li {
  margin: 0;
  padding: 20px 22px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

#products ul li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

[data-theme="dark"] #products ul li strong {
  color: var(--brand-light);
}

/* ============ News ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin: 0;
  padding: 16px 0 16px 28px;
  border-bottom: 1px dashed var(--border);
  position: relative;
  color: var(--text-soft);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-hero);
  box-shadow: 0 0 0 4px var(--brand-soft);
  transition: transform 0.3s var(--ease);
}

.news-list li:hover {
  color: var(--text);
  padding-left: 34px;
}

.news-list li:hover::before {
  transform: scale(1.3);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.78rem;
}

[data-theme="dark"] .news-list time {
  color: var(--brand-light);
}

/* ============ Articles ============ */
#articles > article {
  margin: 0 0 20px;
  padding: 24px 26px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

#articles > article h3 {
  margin-top: 0;
  padding-left: 0;
  transition: color 0.3s var(--ease);
}

#articles > article h3::before {
  display: none;
}

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

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

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  transition: all 0.3s var(--ease);
}

[data-theme="dark"] #articles > article a {
  color: var(--brand-light);
}

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

#articles > article a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  padding: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

#faq details:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

[data-theme="dark"] #faq summary::after {
  color: var(--brand-light);
}

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

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

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

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 60px;
  margin-bottom: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-hero);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-brand);
}

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

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

#howto ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
}

/* ============ Contact / sitemap / links ============ */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#contact ul li {
  margin: 0;
  padding: 10px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

#contact ul li:hover {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

#sitemap ul a:hover,
#links ul a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-hero);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px 48px;
}

.footer-brand p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-brand p:first-child {
  font-size: 1rem;
  color: var(--text-soft);
}

.footer-brand strong {
  font-size: 1.15rem;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

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

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

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

.footer-copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ Floating buttons ============ */
.back-to-top,
.theme-toggle {
  position: fixed;
  right: 24px;
  z-index: 90;
  border: 1px solid var(--border);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.theme-toggle {
  bottom: 24px;
}

.back-to-top {
  bottom: 84px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

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

.back-to-top:hover,
.theme-toggle:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}

.back-to-top:active,
.theme-toggle:active {
  transform: translateY(-1px) scale(0.97);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }
  .brand-slogan {
    display: none;
  }
  .site-search input {
    width: 140px;
  }
  .main-nav a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: auto;
  }
  .header-inner {
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .brand {
    order: 1;
  }
  .site-search {
    order: 2;
    margin-left: auto;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav ul {
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
  }
  .main-nav a {
    white-space: nowrap;
  }
  .stats ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px 28px;
  }
  main {
    padding: 0 16px 48px;
  }
  main > section {
    padding: 28px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
  }
  .hero-slider {
    border-radius: var(--radius-lg);
  }
  .slide {
    padding: 32px 22px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .brand svg {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .site-search {
    flex: 1 1 100%;
    order: 3;
    margin-left: 0;
    margin-top: 8px;
  }
  .site-search input {
    width: 100%;
    flex: 1;
  }
  .main-nav {
    order: 4;
  }
  .stats ul {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats li {
    padding: 20px 12px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
  #products ul {
    grid-template-columns: 1fr;
  }
  #howto ol li {
    padding: 14px 14px 14px 54px;
  }
  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
  .back-to-top,
  .theme-toggle {
    right: 14px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }
  .theme-toggle {
    bottom: 16px;
  }
  .back-to-top {
    bottom: 68px;
  }
  blockquote {
    padding: 12px 16px;
  }
}

@media (max-width: 380px) {
  .stats ul {
    grid-template-columns: 1fr;
  }
}

/* ============ Print ============ */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .theme-toggle,
  .site-search,
  .main-nav,
  .hero-cta {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    opacity: 1;
    transform: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  #faq details {
    display: block;
  }
  #faq details p {
    display: block;
  }
}