:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --text: #172033;
  --text-soft: #4a5568;
  --text-muted: #6b7280;
  --primary: #f5b942;
  --primary-deep: #e09b1f;
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --navy: #0b1a2b;
  --navy-soft: #12263d;
  --line: rgba(23, 32, 51, 0.1);
  --line-strong: rgba(23, 32, 51, 0.18);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(11, 26, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 26, 43, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 26, 43, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #0b1a2b 0%, #12304f 42%, #1d4e7a 72%, #2a6f9e 100%);
  --grad-accent: linear-gradient(120deg, #f5b942 0%, #f08a2c 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 252, 0.88));
}

html.dark-mode {
  --bg: #070d16;
  --bg-soft: #0d1622;
  --bg-elevated: #101c2b;
  --text: #e8eef7;
  --text-soft: #b3c0d2;
  --text-muted: #8595ab;
  --line: rgba(232, 238, 247, 0.12);
  --line-strong: rgba(232, 238, 247, 0.22);
  --glass: rgba(16, 28, 43, 0.66);
  --glass-border: rgba(120, 160, 210, 0.22);
  --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);
  --grad-hero: linear-gradient(135deg, #050b14 0%, #0a1a2c 45%, #10314f 75%, #15507c 100%);
  --grad-card: linear-gradient(160deg, rgba(16, 28, 43, 0.96), rgba(10, 20, 33, 0.9));
}

*,
*::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", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(47, 107, 255, 0.1), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(245, 185, 66, 0.14), transparent 62%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

html.dark-mode body {
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(47, 107, 255, 0.18), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(245, 185, 66, 0.1), transparent 62%);
}

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

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

a:hover,
a:focus-visible {
  color: var(--primary-deep);
}

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

li {
  margin-bottom: 0.4rem;
}

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
  color: var(--text-soft);
}

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

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

blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

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

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 0.6rem 1.1rem;
  background: var(--primary);
  color: #172033;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  color: #172033;
}

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

.site-header.is-stuck {
  box-shadow: var(--shadow-md);
  background: var(--glass);
}

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

.brand {
  flex: 0 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(11, 26, 43, 0.28);
  transition: transform 0.4s var(--ease);
}

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

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

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

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

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

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

.main-nav li {
  margin: 0;
}

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

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.22);
}

.site-search input {
  width: 190px;
  min-width: 0;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

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

.site-search input:focus {
  outline: none;
}

.site-search button {
  padding: 0.42rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #172033;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(240, 138, 44, 0.35);
  filter: brightness(1.04);
}

.theme-toggle,
.menu-toggle {
  padding: 0.48rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: menuDrop 0.3s var(--ease);
}

.mobile-menu ul {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px 18px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-menu li {
  margin: 0;
}

.mobile-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.mobile-menu a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

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

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

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

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

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

/* ============ Layout ============ */
main {
  display: block;
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) 20px;
}

.section > h2 {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem;
}

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

.section > h2 + p {
  max-width: 900px;
}

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

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  max-width: var(--container);
  margin: 18px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.4vw, 3rem);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #eaf2ff;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.34), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -18%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.4), transparent 64%);
  filter: blur(12px);
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-26px, 22px, 0) scale(1.1);
  }
}

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

.slide.is-active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #ffffff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.slide h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.28;
  max-width: 22em;
}

.slide h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.slide p {
  color: rgba(234, 242, 255, 0.9);
  max-width: 46em;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.85;
}

.hero-sub {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(234, 242, 255, 0.92) !important;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-accent);
  color: #172033;
  box-shadow: 0 12px 28px rgba(240, 138, 44, 0.38);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #172033;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(240, 138, 44, 0.5);
}

.btn-ghost {
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.slider-controls {
  position: relative;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-prev,
.slider-next {
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.slider-dots button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 242, 255, 0.86);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.slider-dots button[aria-selected="true"] {
  background: var(--grad-accent);
  border-color: transparent;
  color: #172033;
  font-weight: 700;
  transform: scale(1.06);
}

.slider-dots button:hover {
  transform: scale(1.08);
}

/* Hero stats */
.hero-stats {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-stats h2 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-stats li {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(245, 185, 66, 0.5);
}

.stat-num {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2.6em;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============ Cards / lists ============ */
.timeline {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px dashed var(--line-strong);
}

.timeline li {
  position: relative;
  margin-bottom: 0.9rem;
  padding-left: 0.2rem;
  color: var(--text-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.news-list li {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 185, 66, 0.55);
}

.news-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

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

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

.news-list p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.article-card {
  margin: 0 0 18px;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.35);
}

.article-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

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

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

.article-card p {
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

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

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

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

#faq details:hover {
  border-color: rgba(245, 185, 66, 0.55);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(47, 107, 255, 0.4);
}

#faq summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

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

#faq summary:hover {
  background: var(--accent-soft);
}

#faq details p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.94rem;
  animation: slideFade 0.35s var(--ease);
}

/* ============ Contact / sitemap / links ============ */
.contact-list,
.sitemap-list,
.friend-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 1rem;
}

.contact-list li {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.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: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============ Footer ============ */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 20px 2rem;
  background: var(--grad-hero);
  color: rgba(234, 242, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.footer-brand p {
  margin: 0 0 0.4rem;
  color: rgba(234, 242, 255, 0.86);
  font-size: 0.92rem;
}

.footer-brand strong {
  color: #ffffff;
}

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

.footer-brand a:hover {
  color: #ffd27a;
}

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

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(234, 242, 255, 0.82);
}

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

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.66);
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #172033;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 10px;
  }

  .header-inner {
    padding-bottom: 0;
    gap: 12px;
  }

  .header-tools {
    margin-left: auto;
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-slider {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

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

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

  .brand-text strong {
    font-size: 0.95rem;
  }

  .header-tools {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

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

  .site-search input {
    width: 100%;
  }

  .theme-toggle,
  .menu-toggle {
    flex: 1 1 auto;
    text-align: center;
  }

  .breadcrumb {
    padding: 10px 14px 0;
  }

  .section {
    padding: 1.75rem 14px;
  }

  .hero {
    padding: 0 14px;
    margin-top: 12px;
  }

  .hero-slider {
    padding: 1.4rem 1.15rem;
    min-height: 0;
    border-radius: var(--radius-lg);
  }

  .hero-stats {
    padding: 1.2rem 1.1rem;
    border-radius: var(--radius-lg);
  }

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

  .slider-controls {
    gap: 8px;
  }

  .slider-dots {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-cta {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    padding: 0.65rem 1.1rem;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .article-card {
    padding: 1.15rem 1.1rem;
  }

  .mobile-menu ul {
    grid-template-columns: 1fr;
    padding: 8px 14px 14px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }

  .footer-inner {
    gap: 1rem;
  }
}

@media (max-width: 380px) {
  .hero-slider {
    padding: 1.2rem 0.95rem;
  }

  .slider-prev,
  .slider-next {
    padding: 0.38rem 0.75rem;
    font-size: 0.76rem;
  }
}

/* ============ Print ============ */
@media print {
  .site-header,
  .breadcrumb,
  .slider-controls,
  .back-to-top,
  .site-footer,
  .hero-stats {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .hero-slider {
    background: none;
    color: #000000;
    box-shadow: none;
  }

  .slide h1,
  .slide h2,
  .slide p {
    color: #000000 !important;
    text-shadow: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}