:root {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #14172b;
  --text-soft: #4a5068;
  --text-muted: #7a8099;
  --border: rgba(20, 23, 43, 0.08);
  --border-strong: rgba(20, 23, 43, 0.14);
  --brand: #5b4bff;
  --brand-2: #00c2ff;
  --accent: #ffd166;
  --accent-2: #f72585;
  --navy: #0b1026;
  --shadow-sm: 0 2px 8px rgba(20, 23, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 23, 43, 0.1);
  --shadow-lg: 0 24px 64px rgba(20, 23, 43, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad-hero: linear-gradient(135deg, #0b1026 0%, #2a1a6e 45%, #5b4bff 100%);
  --grad-brand: linear-gradient(120deg, #5b4bff 0%, #00c2ff 100%);
  --grad-accent: linear-gradient(120deg, #ffd166 0%, #f72585 100%);
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-blur: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --maxw: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #070a18;
  --bg-alt: #0d1226;
  --surface: rgba(20, 26, 52, 0.66);
  --surface-solid: #111730;
  --text: #eef1ff;
  --text-soft: #b7bdd8;
  --text-muted: #8a91b0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(13, 18, 38, 0.5);
  --glass-border: rgba(255, 255, 255, 0.12);
  --grad-hero: linear-gradient(135deg, #05070f 0%, #1a1050 45%, #3a2bd6 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #070a18;
    --bg-alt: #0d1226;
    --surface: rgba(20, 26, 52, 0.66);
    --surface-solid: #111730;
    --text: #eef1ff;
    --text-soft: #b7bdd8;
    --text-muted: #8a91b0;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(13, 18, 38, 0.5);
    --glass-border: rgba(255, 255, 255, 0.12);
    --grad-hero: linear-gradient(135deg, #05070f 0%, #1a1050 45%, #3a2bd6 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(1200px 600px at 85% -10%, rgba(91, 75, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(0, 194, 255, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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);
}

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

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

h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; color: var(--text-soft); }

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

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

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

blockquote {
  margin: 0 0 1em;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

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

time { color: var(--text-muted); font-size: 0.875rem; }

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

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

::selection {
  background: rgba(91, 75, 255, 0.25);
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

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

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

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

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

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

.brand-logo {
  transition: transform 0.5s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(91, 75, 255, 0.35));
}

.brand:hover .brand-logo {
  transform: rotate(12deg) scale(1.08);
}

.brand-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  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;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  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 {
  color: var(--text);
  background: rgba(91, 75, 255, 0.08);
  transform: translateY(-1px);
}

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

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

.site-search {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  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 4px rgba(91, 75, 255, 0.14);
}

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

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

.site-search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

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

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: rotate(12deg) scale(1.06);
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--surface-solid);
  animation: slideDown 0.35s var(--ease);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px 24px 20px;
  display: grid;
  gap: 2px;
}

.mobile-menu li { margin: 0; }

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mobile-menu a:hover {
  background: rgba(91, 75, 255, 0.1);
  color: var(--brand);
  padding-left: 20px;
}

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

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

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

/* ============ Hero ============ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 12px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-hero);
  isolation: isolate;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(0, 194, 255, 0.28), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(247, 37, 133, 0.22), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.slide {
  position: relative;
  display: none;
  min-height: 420px;
  flex-direction: column;
  justify-content: flex-end;
}

.slide.is-active {
  display: flex;
  animation: fadeSlide 0.6s var(--ease);
}

.slide-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  z-index: 0;
}

.slide-caption {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(7, 10, 24, 0.92) 0%, rgba(7, 10, 24, 0.55) 55%, transparent 100%);
  color: #fff;
}

.slide-caption h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.slide-caption p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.925rem;
  margin-bottom: 18px;
  max-width: 46ch;
}

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

.slider-dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-dots button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  width: 44px;
  border-radius: 999px;
}

.hero-intro {
  animation: fadeUp 0.8s 0.15s var(--ease) both;
}

.hero-intro h1 {
  background: linear-gradient(120deg, var(--text) 0%, var(--brand) 55%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.hero-intro .lead {
  font-size: 1.02rem;
  color: var(--text-soft);
}

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

.hero-stats li {
  margin: 0;
  padding: 16px 10px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 75, 255, 0.35);
}

.stat-num {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(91, 75, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(91, 75, 255, 0.45);
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ Sections ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

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

.section h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}

.section h4 {
  margin-top: 1.2em;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  position: relative;
}

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

.timeline li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.timeline li:hover::before {
  transform: scale(1.2);
  background: var(--brand);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-list li {
  margin: 0;
  padding: 20px 22px 20px 52px;
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.14);
}

.feature-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 75, 255, 0.32);
}

/* ============ News ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.news-list li {
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 194, 255, 0.35);
}

.news-list time {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(91, 75, 255, 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-list h3 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.news-list h3 a { color: var(--text); }
.news-list h3 a:hover { color: var(--brand); }
.news-list p { margin: 0; font-size: 0.925rem; }

/* ============ Articles ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  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: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 75, 255, 0.3);
}

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

.article-card h3 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--brand); }

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-card > p {
  font-size: 0.925rem;
  flex: 1;
}

.read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.read-more:hover {
  color: var(--brand-2);
  gap: 10px;
}

.read-more:hover::after { transform: translateX(3px); }

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

#howto ol > li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 66px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#howto ol > li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(91, 75, 255, 0.3);
}

#howto ol > li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 75, 255, 0.3);
}

#howto ul {
  padding-left: 1.2em;
}

#howto ul li::marker { color: var(--brand); }

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

#faq details[open] {
  border-color: rgba(91, 75, 255, 0.35);
  box-shadow: var(--shadow-md);
}

#faq details:hover {
  border-color: rgba(91, 75, 255, 0.28);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 75, 255, 0.12);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s 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); }

#faq details > p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  animation: fadeIn 0.35s var(--ease);
}

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

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.contact-grid > div {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-grid h3 {
  border: 0;
  padding: 0;
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  font-size: 0.925rem;
}

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

.contact-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ============ Sitemap ============ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sitemap-grid > div {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.sitemap-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 194, 255, 0.3);
}

.sitemap-grid h3 {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  font-size: 1rem;
}

.sitemap-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-grid li { margin: 0; }

.sitemap-grid a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.sitemap-grid a:hover {
  color: var(--brand);
  padding-left: 6px;
}

/* ============ Friend links ============ */
.friend-links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.friend-links li { margin: 0; }

.friend-links a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.875rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s var(--ease);
}

.friend-links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(91, 75, 255, 0.32);
}

/* ============ Legal ============ */
#legal {
  border-top: 1px solid var(--border);
}

#legal p { font-size: 0.9rem; }

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

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(0, 194, 255, 0.2), transparent 65%),
    radial-gradient(600px 300px at 90% 100%, rgba(247, 37, 133, 0.18), transparent 65%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}

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

.footer-brand svg {
  filter: drop-shadow(0 6px 18px rgba(0, 194, 255, 0.35));
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  max-width: 30ch;
}

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

.footer-meta p:last-child {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.back-to-top {
  position: relative;
  display: block;
  margin: 36px auto 0;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 209, 102, 0.35);
}

/* ============ Animations ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-slider { order: -1; }
  .slide { min-height: 340px; }
}

@media (max-width: 860px) {
  .site-search { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .brand-text { font-size: 1.02rem; }
  .brand-logo { width: 34px; height: 34px; }
  .breadcrumb { padding: 16px 16px 0; }
  .hero { padding: 20px 16px 8px; }
  .slide { min-height: 300px; }
  .slide-caption { padding: 24px 20px; }
  .slider-dots { right: 14px; bottom: 14px; }
  .section { padding: 40px 16px; }
  .section > h2::after { width: 48px; height: 3px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stats li { padding: 12px 8px; }
  .hero-cta { flex-direction: column; }
  .btn-primary,
  .btn-secondary { width: 100%; }
  #articles { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .article-card { padding: 20px; }
  .contact-grid > div { padding: 22px; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 40px 16px 32px; }
  .footer-meta p { font-size: 0.8rem; }
  #howto ol > li { padding: 16px 18px 16px 58px; }
  #howto ol > li::before { left: 16px; width: 28px; height: 28px; font-size: 0.82rem; }
  #faq summary { padding: 16px 48px 16px 18px; font-size: 0.95rem; }
  #faq details > p { padding: 0 18px 18px; }
}

@media (max-width: 420px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.25rem; }
  .friend-links a { font-size: 0.82rem; padding: 8px 16px; }
}

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

@media print {
  .site-header,
  .site-footer,
  .slider-dots,
  .back-to-top,
  .hero-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .section { opacity: 1; transform: none; }
}