:root {
  --brand: #c8102e;
  --brand-dark: #9e0c24;
  --brand-light: #e94560;
  --accent: #ffb703;
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --text: #1d1d29;
  --text-soft: #55556b;
  --text-mute: #8a8aa0;
  --line: rgba(29, 29, 41, 0.1);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 2px 10px rgba(29, 29, 41, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 29, 41, 0.1);
  --shadow-lg: 0 20px 60px rgba(29, 29, 41, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #c8102e 130%);
  --grad-brand: linear-gradient(135deg, #c8102e 0%, #e94560 100%);
  --grad-soft: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(233, 69, 96, 0.04));
  --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"] {
  --bg: #0e0e16;
  --bg-alt: #15151f;
  --text: #ececf4;
  --text-soft: #b9b9cc;
  --text-mute: #84849c;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(30, 30, 44, 0.66);
  --card-solid: #1a1a28;
  --glass: rgba(24, 24, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #0b0b14 0%, #171728 45%, #7d0a1d 130%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.16), rgba(200, 16, 46, 0.06));
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(200, 16, 46, 0.06), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(233, 69, 96, 0.05), 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%;
  display: block;
}

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

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

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

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }

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

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

ul, ol {
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.4em;
  color: var(--text-soft);
}

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

:focus-visible {
  outline: 3px solid rgba(233, 69, 96, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ 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);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s 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: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.logo-text {
  font-size: 1.15rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

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

.main-nav li {
  margin: 0;
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(200, 16, 46, 0.06);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

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

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

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

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

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

.site-search button {
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.82rem;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.1);
}

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

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

#menu-toggle {
  display: none;
}

/* ============ Hero ============ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 20 / 9;
  min-height: 220px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.slide.active .slide-img {
  transform: scale(1.08);
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 40px 34px;
  background: linear-gradient(to top, rgba(10, 10, 20, 0.82), rgba(10, 10, 20, 0));
  color: #fff;
}

.slide-caption h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-caption p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  z-index: 3;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-prev:hover,
.slider-next:hover {
  background: rgba(200, 16, 46, 0.85);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.hero-intro {
  padding: 30px 4px 6px;
}

.hero-intro h1 {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em;
}

.hero-intro p {
  font-size: 0.98rem;
  text-align: justify;
}

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

.hero-stats li {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hero-stats .num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-stats li > span:last-child {
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ============ Anchor Nav ============ */
.anchor-nav {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 20px;
}

.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.anchor-nav li {
  margin: 0;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-radius: 999px;
  background: var(--grad-soft);
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
}

/* ============ Sections ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 20px;
}

.section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 26px;
}

.section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 4px;
  background: var(--grad-brand);
}

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

.section h3:first-of-type {
  margin-top: 0.6em;
}

#about,
#products,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#security {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), rgba(233, 69, 96, 0.2));
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding: 10px 0 10px 30px;
  margin: 0;
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.16);
}

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

.timeline strong {
  color: var(--brand);
}

/* Products list cards */
#products ul:not(.timeline) {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

#products ul:not(.timeline) li {
  margin: 0;
  padding: 18px 18px 18px 46px;
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul:not(.timeline) li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

#products ul:not(.timeline) li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.35);
}

/* Reviews */
#reviews blockquote {
  margin: 0 0 16px;
  padding: 22px 24px;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#reviews blockquote::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: 14px;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(200, 16, 46, 0.18);
  font-family: Georgia, serif;
}

#reviews blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

/* News */
.news-item {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.3);
}

.news-item h3 {
  margin-top: 0;
  color: var(--text);
}

.news-item p:last-child {
  margin-bottom: 0;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 10px;
}

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

.article-card {
  padding: 24px;
  margin-bottom: 18px;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.3);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.15rem;
}

.article-card p:not(.meta) {
  font-size: 0.94rem;
  text-align: justify;
}

.article-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  transition: all 0.3s var(--ease);
}

.article-card a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.article-card a:hover {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.3);
}

.article-card a:hover::after {
  transform: translateX(4px);
}

/* Knowledge */
#knowledge h3 {
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  margin-top: 1.4em;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-list details[open] {
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

.faq-list summary:hover {
  color: var(--brand);
  background: rgba(200, 16, 46, 0.04);
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeSlide 0.4s var(--ease);
}

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

/* HowTo */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 58px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#howto ul li {
  padding-left: 4px;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.contact-list li {
  margin: 0;
  padding: 14px 18px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.35);
}

address {
  font-style: normal;
}

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

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-soft);
  transition: all 0.28s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}

/* Privacy / Disclaimer / Security */
#privacy,
#disclaimer,
#security {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
  margin-bottom: 20px;
}

#privacy > h2,
#disclaimer > h2,
#security > h2 {
  margin-bottom: 16px;
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 40px;
  background: linear-gradient(160deg, #16161f 0%, #1e1e2c 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 20px 28px;
  border-top: 3px solid var(--brand);
}

html[data-theme="dark"] #site-footer {
  background: linear-gradient(160deg, #0a0a12 0%, #12121c 100%);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand svg {
  border-radius: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

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

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-nav a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-copy p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin: 0 0 8px;
  line-height: 1.7;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s var(--ease);
  z-index: 90;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.08);
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: 0.84rem; }
  .site-search input { width: 120px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-copy { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    z-index: 99;
  }
  .main-nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .main-nav a::after { display: none; }
  #menu-toggle { display: inline-block; }
  .site-search { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { aspect-ratio: 16 / 9; }
  .slide-caption { padding: 50px 22px 22px; }
  .slider-prev, .slider-next { width: 38px; height: 38px; font-size: 1.3rem; }
  .section { padding: 40px 16px; }
  .hero { padding: 20px 16px 4px; }
  .anchor-nav { padding: 0 16px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-inner { gap: 10px; padding: 0 14px; }
  .logo-text { font-size: 1rem; }
  .logo svg { width: 34px; height: 34px; }
  #theme-toggle { padding: 7px 11px; font-size: 0.78rem; }
  #menu-toggle { padding: 7px 11px; font-size: 0.78rem; }
  .hero-slider { border-radius: var(--radius-lg); min-height: 190px; }
  .hero-stats { gap: 10px; }
  .hero-stats li { padding: 14px 8px; }
  .hero-stats li > span:last-child { font-size: 0.72rem; }
  .anchor-nav ul { padding: 8px; gap: 6px; }
  .anchor-nav a { padding: 5px 11px; font-size: 0.78rem; }
  .section { padding: 32px 14px; }
  .section > h2 { padding-left: 14px; }
  .section > h2::before { width: 5px; }
  .article-card, .news-item, #reviews blockquote { padding: 18px; }
  .faq-list summary { padding: 14px 44px 14px 16px; font-size: 0.92rem; }
  .faq-list details p { padding: 0 16px 16px; font-size: 0.9rem; }
  #howto ol li { padding: 14px 14px 14px 50px; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  #back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .sitemap-list a, .friend-links a { padding: 7px 13px; font-size: 0.82rem; }
}

@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .logo-text { display: none; }
}