:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-soft: #eceef6;
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-mute: #7a7a92;
  --primary: #e94560;
  --primary-2: #7b2ff7;
  --primary-3: #0f9b8e;
  --accent: #ffb703;
  --border: rgba(26, 26, 46, 0.1);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 50px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --maxw: 1180px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 38%, #7b2ff7 78%, #e94560 120%);
  --grad-btn: linear-gradient(135deg, #e94560 0%, #7b2ff7 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(123, 47, 247, 0.12));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0e0e1a;
  --bg-alt: #16162a;
  --bg-soft: #1d1d33;
  --text: #eef0f8;
  --text-soft: #c3c6d8;
  --text-mute: #8b8fa8;
  --primary: #ff5c78;
  --primary-2: #9d6bff;
  --primary-3: #2fd0bd;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(22, 22, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #0b0b16 0%, #241640 40%, #5a1fb8 80%, #b8284a 120%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 120, 0.16), rgba(157, 107, 255, 0.16));
}

*,
*::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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

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

h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
h4 { font-size: 1.05rem; }

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

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

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  border-radius: 12px;
  transition: transform 0.4s var(--ease);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

#main-nav {
  margin-left: auto;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 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: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: var(--grad-btn);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--text);
  background: var(--grad-soft);
}

#main-nav a:hover::after {
  width: 40%;
}

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

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

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
}

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

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

.site-search button {
  border: none;
  background: var(--grad-btn);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
  margin: 3px;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

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

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: rotate(15deg) scale(1.08);
  background: var(--grad-soft);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 0 20px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 183, 3, 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(15, 155, 142, 0.3), transparent 50%);
  pointer-events: none;
}

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

.slide {
  display: none;
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.slide.active {
  display: block;
  animation: fadeUp 0.6s var(--ease) both;
}

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

.slide p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
}

.hero-sub {
  max-width: 720px;
}

.hero-answer {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 18px;
}

.hero-answer strong {
  color: #ffd166;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(233, 69, 96, 0.55);
}

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

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

.slider-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.slider-prev,
.slider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.3s var(--ease);
}

.dot.active {
  width: 28px;
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

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

/* ===================== BREADCRUMB & ANCHOR NAV ===================== */
.breadcrumb {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 20px;
}

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-mute);
}

.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  margin: 18px auto 0;
  max-width: var(--maxw);
  padding: 0 20px;
}

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

.anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.anchor-nav li {
  margin: 0;
  flex-shrink: 0;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: var(--grad-btn);
  color: #fff;
  transform: translateY(-1px);
}

/* ===================== SECTIONS ===================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

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

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

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

.section h4 {
  margin-top: 1.2em;
  color: var(--primary-2);
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px 14px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-btn);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

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

/* ===================== CARDS (articles, news) ===================== */
.article-card,
.news-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-btn);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.article-card:hover,
.news-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.35);
}

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

.article-card h3,
.news-item h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

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

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

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

.meta time {
  font-variant-numeric: tabular-nums;
}

.read-more {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}

.read-more:hover {
  border-color: var(--primary);
  letter-spacing: 0.04em;
}

/* ===================== BLOCKQUOTE / REVIEWS ===================== */
blockquote {
  margin: 0 0 18px;
  padding: 22px 26px;
  background: var(--grad-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 18px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.18;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

blockquote cite {
  font-size: 0.85rem;
  color: var(--text-mute);
  font-style: normal;
}

/* ===================== FAQ ===================== */
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-item[open] {
  border-color: rgba(123, 47, 247, 0.4);
  box-shadow: var(--shadow-md);
}

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

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.35s var(--ease);
}

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

.faq-item summary:hover {
  background: var(--grad-soft);
  color: var(--primary);
}

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

/* ===================== CONTACT / META / LISTS ===================== */
.contact-list,
.meta-list,
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.contact-list li {
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(233, 69, 96, 0.35);
}

.meta-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.sitemap-list,
.friend-links {
  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;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--grad-btn);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===================== FOOTER ===================== */
#site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-soft));
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-col p {
  font-size: 0.86rem;
  color: var(--text-mute);
  margin-bottom: 8px;
}

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

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-soft);
  position: relative;
  padding-left: 0;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin: 0;
}

/* ===================== BACK TO TOP ===================== */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--grad-btn);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
  z-index: 1100;
}

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

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

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

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@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;
  }
  .section { opacity: 1; transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .site-search input { width: 130px; }
  #main-nav a { padding: 8px 9px; font-size: 0.85rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), box-shadow 0.3s var(--ease);
    margin-left: 0;
  }
  #main-nav.open {
    max-height: 460px;
    box-shadow: var(--shadow-lg);
  }
  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
  }
  #main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  #main-nav a::after { display: none; }
  #menu-toggle { display: grid; }
  .site-search { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { min-height: auto; }
  .anchor-nav { position: static; margin-top: 18px; }
  .anchor-nav ul { border-radius: var(--radius-md); }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .header-inner { padding: 0 14px; gap: 10px; }
  .brand-text span { display: none; }
  .hero { margin-top: 16px; padding: 0 14px; }
  .hero-slider { padding: 24px 20px; border-radius: var(--radius-md); }
  .hero-answer { padding: 12px 14px; }
  .hero-actions { gap: 10px; }
  .btn-primary,
  .btn-ghost { padding: 10px 20px; font-size: 0.88rem; }
  .slider-controls { margin-top: 20px; gap: 12px; }
  .hero-stats { gap: 10px; }
  .stat { padding: 14px 8px; }
  .breadcrumb,
  .anchor-nav,
  .section { padding-left: 14px; padding-right: 14px; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .article-card,
  .news-item { padding: 18px 18px; }
  blockquote { padding: 18px 18px; }
  .faq-item summary { padding: 14px 44px 14px 16px; font-size: 0.95rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding: 32px 14px 18px; }
  .footer-bottom { padding: 16px 14px; }
  #back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .timeline li { padding: 12px 14px 12px 30px; }
}

@media (hover: none) {
  .article-card:hover,
  .news-item:hover,
  .stat:hover,
  .timeline li:hover,
  blockquote:hover,
  .contact-list li:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  .hero-slider,
  .hero-stats { display: none !important; }
  .section { opacity: 1; transform: none; padding: 12px 0; }
  body { background: #fff; color: #000; }
}