:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b77;
  --accent: #457b9d;
  --accent-2: #f77f00;
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #1d2433;
  --text-soft: #4a5468;
  --text-muted: #7b8496;
  --border: rgba(29, 36, 51, 0.08);
  --border-strong: rgba(29, 36, 51, 0.14);
  --shadow-sm: 0 2px 8px rgba(29, 36, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 36, 51, 0.1);
  --shadow-lg: 0 22px 60px rgba(29, 36, 51, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-hero: linear-gradient(135deg, #1d3557 0%, #2d5b8e 45%, #e63946 100%);
  --gradient-brand: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
  --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(69, 123, 157, 0.08) 100%);
  --header-h: 68px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --primary: #ff6b77;
  --primary-dark: #e63946;
  --primary-light: #ff9aa2;
  --accent: #6fa8c9;
  --accent-2: #ffa94d;
  --bg: #0f141d;
  --bg-elevated: #171e2a;
  --bg-glass: rgba(23, 30, 42, 0.72);
  --bg-glass-strong: rgba(23, 30, 42, 0.9);
  --text: #eef1f6;
  --text-soft: #c2c9d6;
  --text-muted: #8b94a6;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  --gradient-hero: linear-gradient(135deg, #0b1220 0%, #1b3a5c 45%, #7a1f2b 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 119, 0.1) 0%, rgba(111, 168, 201, 0.1) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(230, 57, 70, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(69, 123, 157, 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%;
  height: auto;
  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-dark);
}

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

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-top: 0;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 5px;
  border-radius: 4px;
  background: var(--gradient-brand);
}

h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.25rem);
}

h4 {
  font-size: 1.02rem;
  color: var(--primary);
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

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

strong {
  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;
}

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

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

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

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

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

.logo:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.logo-mark {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.5);
}

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

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

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

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

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

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  background: var(--gradient-soft);
  transform: translateY(-1px);
}

.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-strong);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.14);
}

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

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

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

.site-search button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
  filter: brightness(1.06);
}

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

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px 0;
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

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

/* ============ MAIN / SECTIONS ============ */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.section {
  margin: 40px 0;
  padding: 32px clamp(18px, 3vw, 36px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.section > p:first-of-type,
.section > .lead {
  font-size: 1.02rem;
}

.lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  background: var(--gradient-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 16px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  margin: 24px 0 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(255, 255, 255, 0.14), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(247, 127, 0, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-slider {
  position: relative;
  min-height: 420px;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0.7s var(--ease);
  z-index: 2;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 3;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 5vw, 56px);
  max-width: 640px;
  color: #fff;
}

.slide-content h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  margin: 0 0 12px;
  padding-left: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.slide-content h2::before {
  display: none;
}

.slide-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  margin-bottom: 22px;
  max-width: 560px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  background: var(--gradient-brand);
  color: #fff;
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.slider-dots button:hover {
  background: #fff;
}

.slider-dots button[aria-selected="true"] {
  width: 26px;
  background: #fff;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 8px;
  padding: 0;
}

.stat-item {
  position: relative;
  text-align: center;
  padding: 24px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

.stat-number {
  position: relative;
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  position: relative;
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ CARDS: NEWS / ARTICLES ============ */
.news-item,
.article-card {
  position: relative;
  padding: 22px clamp(16px, 2.4vw, 26px);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 0 0 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.news-item::before,
.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

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

.news-item h3,
.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  transition: color 0.3s var(--ease);
}

.news-item:hover h3,
.article-card:hover h3 {
  color: var(--primary);
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.summary {
  font-size: 0.93rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid transparent;
  transition: gap 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.read-more:hover {
  gap: 10px;
  border-color: var(--primary);
  transform: translateX(2px);
}

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

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

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

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

.faq-list details[open] {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.14);
}

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

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

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

.faq-list details[open] summary {
  color: var(--primary);
  background: var(--gradient-soft);
}

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

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

.faq-list details p {
  margin: 0;
  padding: 4px 22px 20px;
  font-size: 0.93rem;
  color: var(--text-soft);
  animation: fadeSlide 0.4s var(--ease);
}

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

/* ============ CONTACT / SITEMAP / PAGE INFO ============ */
.contact-list,
.sitemap-list,
.friend-links,
.page-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.contact-list li,
.page-info-list li {
  position: relative;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-list li::before,
.page-info-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

.contact-list li:hover,
.page-info-list li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.sitemap-list,
.friend-links {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

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

.sitemap-list a,
.friend-links a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap-list a::before,
.friend-links a::before {
  content: "›";
  margin-right: 8px;
  color: var(--primary);
  font-weight: 700;
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  color: var(--primary);
  border-color: var(--primary);
  background: var(--gradient-soft);
  box-shadow: var(--shadow-sm);
}

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(29, 36, 51, 0.04) 100%);
  border-top: 1px solid var(--border);
  padding: 48px 20px 28px;
}

html[data-theme="dark"] #site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--text);
  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(--gradient-brand);
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-col a {
  color: var(--text-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

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

.copyright {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.copyright a {
  color: var(--text-muted);
}

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

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  box-shadow: 0 10px 26px rgba(230, 57, 70, 0.4);
  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.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 34px rgba(230, 57, 70, 0.55);
}

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

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
  .site-search input {
    width: 110px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-glass-strong);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
    z-index: 999;
  }
  .main-nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    overflow: visible;
  }
  .main-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .menu-toggle {
    display: grid;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }
  .header-inner {
    padding: 0 14px;
  }
  .site-search {
    display: none;
  }
  .logo-text {
    font-size: 1.08rem;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
  }
  .breadcrumb {
    padding: 12px 14px 0;
  }
  main {
    padding: 0 14px 32px;
  }
  .hero {
    margin: 16px 0 26px;
    border-radius: var(--radius-lg);
  }
  .hero-slider {
    min-height: 360px;
  }
  .slide-content {
    padding: 22px 20px 58px;
  }
  .slide-content p {
    font-size: 0.9rem;
  }
  .btn-primary {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
  .section {
    margin: 26px 0;
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }
  h2 {
    padding-left: 13px;
  }
  h2::before {
    width: 4px;
  }
  .stats {
    gap: 10px;
  }
  .stat-item {
    padding: 18px 10px;
  }
  .stat-label {
    font-size: 0.76rem;
  }
  .faq-list summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.93rem;
  }
  .faq-list details p {
    padding: 0 16px 18px;
    font-size: 0.9rem;
  }
  .news-item,
  .article-card {
    padding: 18px 16px;
  }
  .sitemap-list,
  .friend-links {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #site-footer {
    padding: 36px 16px 22px;
  }
  #back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .sitemap-list,
  .friend-links {
    grid-template-columns: 1fr;
  }
  .slide-content h2 {
    font-size: 1.25rem;
  }
  .hero-slider {
    min-height: 340px;
  }
}
