:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-mute: #7a7a94;
  --brand: #e94560;
  --brand-2: #ff7a8a;
  --accent: #0f3460;
  --accent-2: #16213e;
  --line: rgba(26, 26, 46, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow: 0 12px 32px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #e94560 0%, #ff7a8a 55%, #ffb199 100%);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1a;
    --bg-soft: #151829;
    --bg-elev: rgba(21, 24, 41, 0.72);
    --glass: rgba(26, 30, 51, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #eef0f7;
    --text-soft: #b9bdd0;
    --text-mute: #858aa5;
    --line: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

html[data-theme="dark"] {
  --bg: #0d0f1a;
  --bg-soft: #151829;
  --bg-elev: rgba(21, 24, 41, 0.72);
  --glass: rgba(26, 30, 51, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #eef0f7;
  --text-soft: #b9bdd0;
  --text-mute: #858aa5;
  --line: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-mute: #7a7a94;
  --line: rgba(26, 26, 46, 0.1);
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(233, 69, 96, 0.14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(15, 52, 96, 0.16), transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(233, 69, 96, 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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,
a:focus-visible {
  color: var(--brand-2);
}

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

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

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

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

ul, ol {
  color: var(--text-soft);
}

blockquote {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  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);
}

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

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

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

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

.brand:hover {
  color: var(--text);
  opacity: 0.88;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.42);
}

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

.main-nav {
  flex: 1 1 320px;
}

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

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

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

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.08);
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 300px;
}

.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.site-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.16);
}

.site-search button,
.theme-toggle {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.site-search button:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.44);
  filter: brightness(1.05);
}

.site-search button:active,
.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle {
  flex-shrink: 0;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  color: var(--brand);
  box-shadow: var(--shadow);
}

/* ============ Main layout ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  position: relative;
  margin-top: 28px;
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.28);
}

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

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

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

main > section > h3:first-of-type {
  margin-top: 0;
}

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

/* ============ Hero ============ */
.hero {
  margin-top: 20px !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--grad-hero) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow-lg) !important;
  color: #f5f5f5;
}

.hero:hover {
  transform: none;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #1a1a2e;
}

.carousel-slide {
  display: none;
  animation: slideFade 0.8s var(--ease) both;
}

.carousel-slide:first-child {
  display: block;
}

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

@keyframes slideFade {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.carousel-controls .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.carousel-controls .dot.active {
  background: var(--brand);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.8);
}

.hero-content {
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.15), rgba(26, 26, 46, 0.55));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5em;
}

.hero-lead {
  color: rgba(245, 245, 245, 0.86);
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  max-width: 78ch;
  line-height: 1.85;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.stat {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  background: rgba(233, 69, 96, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.75);
  letter-spacing: 0.02em;
}

.cta {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 12px 32px rgba(233, 69, 96, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.cta:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(233, 69, 96, 0.6);
}

.cta:hover::before {
  transform: translateX(120%);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 22px 0 0;
  padding: 0 4px;
}

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

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

.breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

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

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

/* ============ Articles & News cards ============ */
#news article,
#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(233, 69, 96, 0.3);
  background: var(--bg-soft);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article h3,
#articles article h3 {
  margin-bottom: 0.35em;
  font-size: 1.1rem;
  transition: color 0.25s var(--ease);
}

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

#news time,
#articles time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(233, 69, 96, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.1);
  transition: background 0.25s var(--ease), gap 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

#articles article a:hover {
  background: var(--grad-brand);
  color: #fff;
  gap: 10px;
  transform: translateX(2px);
}

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

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

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow);
}

#faq details[open] {
  background: var(--bg-soft);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow);
}

#faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--text);
  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: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.1);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.05);
}

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

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

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

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(233, 69, 96, 0.3);
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

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

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

#contact address a {
  font-weight: 700;
  border-bottom: 1px dashed rgba(233, 69, 96, 0.5);
}

#contact address a:hover {
  border-bottom-style: solid;
}

/* ============ 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;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease),
    background 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(233, 69, 96, 0.4);
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 56px 20px 32px;
  color: rgba(245, 245, 245, 0.82);
  background: var(--grad-hero);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 70%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.6), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 36px;
}

.footer-inner section {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.footer-inner section:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(233, 69, 96, 0.35);
  transform: translateY(-4px);
}

.footer-inner h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.7em;
  padding-bottom: 8px;
  position: relative;
}

.footer-inner h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}

.footer-inner p {
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.9rem;
  margin: 0;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner ul li {
  margin-bottom: 8px;
}

.footer-inner ul a {
  color: rgba(245, 245, 245, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-inner ul a:hover {
  color: var(--brand-2);
  transform: translateX(4px);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.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.05);
  box-shadow: 0 16px 38px rgba(233, 69, 96, 0.6);
}

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

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

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

  .main-nav {
    flex-basis: 100%;
    order: 3;
  }

  .main-nav ul {
    gap: 2px 4px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .site-search {
    flex: 1 1 200px;
  }
}

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

  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 8px 14px;
  }

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

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    width: max-content;
  }

  .site-search {
    order: 4;
    flex: 1 1 100%;
  }

  .theme-toggle {
    order: 2;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 14px 44px;
  }

  main > section {
    margin-top: 20px;
    padding: 20px 18px;
    border-radius: var(--radius);
  }

  .hero-content {
    padding: 22px 18px;
  }

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

  .stat {
    padding: 14px 10px;
  }

  .cta {
    display: block;
    text-align: center;
    padding: 13px 24px;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
  }

  #howto ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.85rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer {
    padding: 40px 14px 26px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }
}

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

  #news article,
  #articles article {
    padding: 18px 16px;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.94rem;
  }

  #faq details p {
    padding: 0 16px 16px;
  }
}

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

@media print {
  .site-header,
  .site-search,
  .theme-toggle,
  .back-to-top,
  .carousel-controls,
  .cta {
    display: none !important;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}