:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #4834D4;
  --accent: #FD79A8;
  --accent-2: #74B9FF;
  --accent-3: #55EFC4;
  --bg: #F7F8FC;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #1A1D2B;
  --text-secondary: #4A5068;
  --text-muted: #8A90A8;
  --border: rgba(108, 92, 231, 0.12);
  --border-strong: rgba(108, 92, 231, 0.25);
  --shadow-sm: 0 2px 8px rgba(26, 29, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 29, 43, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 29, 43, 0.12);
  --shadow-glow: 0 8px 32px rgba(108, 92, 231, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --header-h: 70px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --grad-hero: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 40%, #FD79A8 100%);
  --grad-accent: linear-gradient(135deg, #6C5CE7 0%, #74B9FF 100%);
  --grad-warm: linear-gradient(135deg, #FD79A8 0%, #FDCB6E 100%);
  --grad-cool: linear-gradient(135deg, #74B9FF 0%, #55EFC4 100%);
}

[data-theme="dark"] {
  --bg: #0E1020;
  --bg-elevated: #181B30;
  --bg-glass: rgba(24, 27, 48, 0.6);
  --bg-glass-strong: rgba(24, 27, 48, 0.85);
  --text: #EDEFF7;
  --text-secondary: #B4B9D0;
  --text-muted: #7C82A0;
  --border: rgba(162, 155, 254, 0.14);
  --border-strong: rgba(162, 155, 254, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(108, 92, 231, 0.4);
  --grad-hero: linear-gradient(135deg, #2D2A6E 0%, #4A3F9E 40%, #8E3B6B 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-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.1), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(253, 121, 168, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(116, 185, 255, 0.08), transparent 45%);
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.18), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(253, 121, 168, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(116, 185, 255, 0.1), transparent 45%);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.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 ============ */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  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 var(--transition), box-shadow var(--transition);
}

#siteHeader.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-strong);
}

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

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

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

.brand svg {
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition);
}

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

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

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

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}

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

.main-nav a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.06);
}

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

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: all var(--transition);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

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

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

.site-search button {
  border: none;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.site-search button:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

#themeToggle,
#menuToggle {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

#themeToggle:hover,
#menuToggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#menuToggle {
  display: none;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideDown 0.3s ease;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px 24px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mobile-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  background: rgba(108, 92, 231, 0.05);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary);
}

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

/* ============ Main / Layout ============ */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.breadcrumb {
  padding: 20px 0 8px;
}

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

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 20px 0 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.15), transparent 40%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23ffffff' opacity='0.18'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  padding: clamp(32px, 5vw, 64px);
  min-height: 320px;
}

.slide {
  display: none;
  color: #fff;
  animation: fadeSlide 0.6s ease;
}

.slide.active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  max-width: 780px;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  line-height: 1.85;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
}

.slide > p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

.hero-illustration {
  position: absolute;
  right: clamp(20px, 5vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2));
  animation: floatY 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatY {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 32px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover::before {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  right: clamp(20px, 5vw, 48px);
  bottom: clamp(20px, 4vw, 40px);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-controls button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.stat {
  padding: 22px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

.stat:hover {
  background: rgba(255, 255, 255, 0.16);
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-num::after {
  content: "+";
  font-size: 0.7em;
  opacity: 0.7;
}

.stat:nth-child(4) .stat-num::after {
  content: "";
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  margin: 0 0 40px;
  padding: 14px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: thin;
}

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

.anchor-nav a {
  display: block;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--transition);
}

.anchor-nav a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============ Sections ============ */
.section {
  position: relative;
  margin: 0 0 32px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section:nth-of-type(odd) {
  animation-delay: 0.05s;
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

.section > h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

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

.section-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============ News ============ */
.news-item {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.news-item:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.news-item:hover::before {
  opacity: 1;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.news-item h3 a {
  color: var(--text);
}

.news-item h3 a:hover {
  color: var(--primary);
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px !important;
  font-weight: 500;
}

.meta time {
  color: var(--primary);
  font-weight: 700;
}

/* ============ Article cards ============ */
.article-card {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

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

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

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

.summary {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 12px !important;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.08);
  transition: all var(--transition);
}

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

.read-more:hover {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

/* ============ Testimonials ============ */
blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 24px 26px 20px 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

blockquote:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

blockquote p {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  font-style: italic;
}

blockquote footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 20px;
  transition: all var(--transition);
  overflow: hidden;
}

.faq-list details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-list details[open] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.08);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  padding-right: 32px;
  list-style: none;
  transition: color var(--transition);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
  line-height: 1;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list summary:hover {
  color: var(--primary);
}

.faq-list details p {
  margin: 0 0 18px;
  padding-top: 4px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease;
}

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

/* ============ Contact ============ */
address {
  font-style: normal;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

address p {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

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

address a {
  font-weight: 600;
}

/* ============ Sitemap / Links ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.sitemap-list a,
.friend-links a {
  display: block;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-align: center;
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============ Footer ============ */
#siteFooter {
  background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.06));
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.footer-inner section h2 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}

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

.footer-inner p,
.footer-inner li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-inner address {
  padding: 0;
  background: none;
  border: none;
  margin: 0;
}

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

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

.footer-inner a {
  color: var(--text-secondary);
}

.footer-inner a:hover {
  color: var(--primary);
}

/* ============ Back to top ============ */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition);
  font-family: inherit;
  padding: 0;
  line-height: 1.1;
}

#backToTop:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 36px rgba(108, 92, 231, 0.5);
}

#backToTop[hidden] {
  display: none;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  #menuToggle {
    display: inline-block;
  }

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

@media (max-width: 860px) {
  .hero-illustration {
    display: none;
  }

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

  .stat {
    padding: 18px 12px;
  }

  .header-inner {
    gap: 12px;
  }

  .site-search {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 62px;
    --radius-xl: 22px;
  }

  main {
    padding: 0 14px 40px;
  }

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

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

  .hero-slider {
    padding: 28px 20px 100px;
    min-height: auto;
  }

  .slider-controls {
    right: 20px;
    bottom: 18px;
  }

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

  .section {
    padding: 22px 18px;
  }

  .anchor-nav {
    border-radius: var(--radius-md);
    padding: 10px 12px;
  }

  .article-card,
  .news-item {
    padding: 18px;
  }

  blockquote {
    padding: 20px 18px 16px 46px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.8rem;
  }

  .faq-list details {
    padding: 0 16px;
  }

  .sitemap-list,
  .friend-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

  #backToTop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .mobile-menu ul {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-num {
    font-size: 1.4rem;
  }
}

/* ============ Reduced motion ============ */
@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;
  }
}

/* ============ Selection & Scrollbar ============ */
::selection {
  background: rgba(108, 92, 231, 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: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  background-clip: padding-box;
}

/* ============ Focus visible ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}