:root {
  --primary: #ff6b9d;
  --primary-dark: #e94f85;
  --primary-light: #ffb3cd;
  --secondary: #a78bfa;
  --secondary-dark: #8b5cf6;
  --accent: #67e8f9;
  --bg: #fdf7fa;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #2d2233;
  --text-muted: #6b5d72;
  --text-light: #9a8ba1;
  --border: rgba(255, 107, 157, 0.16);
  --border-strong: rgba(255, 107, 157, 0.32);
  --shadow-sm: 0 2px 8px rgba(233, 79, 133, 0.08);
  --shadow-md: 0 8px 28px rgba(233, 79, 133, 0.12);
  --shadow-lg: 0 18px 48px rgba(233, 79, 133, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-banner: linear-gradient(135deg, #ff6b9d 0%, #a78bfa 55%, #67e8f9 100%);
  --gradient-soft: linear-gradient(135deg, #ffe4ef 0%, #ede4ff 50%, #e0f7fd 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 246, 0.75));
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --primary: #ff7fae;
  --primary-dark: #ff5c96;
  --primary-light: #7a3a55;
  --secondary: #b9a3ff;
  --secondary-dark: #9b7cf7;
  --accent: #5fd8ec;
  --bg: #14101a;
  --bg-alt: #1c1622;
  --bg-card: rgba(38, 30, 46, 0.72);
  --bg-glass: rgba(30, 24, 38, 0.6);
  --text: #f3ecf6;
  --text-muted: #b8a9c2;
  --text-light: #8d7f99;
  --border: rgba(255, 127, 174, 0.18);
  --border-strong: rgba(255, 127, 174, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --gradient-banner: linear-gradient(135deg, #7a2b4d 0%, #4a2f7a 55%, #1c5a66 100%);
  --gradient-soft: linear-gradient(135deg, #241a2e 0%, #1e1a33 50%, #16262b 100%);
  --gradient-card: linear-gradient(145deg, rgba(44, 34, 54, 0.9), rgba(32, 24, 40, 0.75));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #ff7fae;
    --primary-dark: #ff5c96;
    --primary-light: #7a3a55;
    --secondary: #b9a3ff;
    --secondary-dark: #9b7cf7;
    --accent: #5fd8ec;
    --bg: #14101a;
    --bg-alt: #1c1622;
    --bg-card: rgba(38, 30, 46, 0.72);
    --bg-glass: rgba(30, 24, 38, 0.6);
    --text: #f3ecf6;
    --text-muted: #b8a9c2;
    --text-light: #8d7f99;
    --border: rgba(255, 127, 174, 0.18);
    --border-strong: rgba(255, 127, 174, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --gradient-banner: linear-gradient(135deg, #7a2b4d 0%, #4a2f7a 55%, #1c5a66 100%);
    --gradient-soft: linear-gradient(135deg, #241a2e 0%, #1e1a33 50%, #16262b 100%);
    --gradient-card: linear-gradient(145deg, rgba(44, 34, 54, 0.9), rgba(32, 24, 40, 0.75));
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 157, 0.1), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(167, 139, 250, 0.1), transparent 45%),
    radial-gradient(circle at 50% 92%, rgba(103, 232, 249, 0.08), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--secondary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 6px;
}

ul,
ol {
  list-style: none;
}

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

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

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

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

p {
  color: var(--text-muted);
}

time {
  font-size: 0.85rem;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

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

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

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

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

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

.brand svg {
  transition: transform var(--transition);
  filter: drop-shadow(0 4px 10px rgba(255, 107, 157, 0.35));
}

.brand a:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  font-size: 1.25rem;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

#main-nav ul {
  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 a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 99px;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition);
}

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

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--primary-dark);
  background: rgba(255, 107, 157, 0.08);
}

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

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

.header-tools form {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-tools form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.14);
}

.header-tools input[type="search"] {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  width: 150px;
  outline: none;
}

.header-tools input[type="search"]::placeholder {
  color: var(--text-light);
}

.header-tools button {
  border: none;
  background: var(--gradient-banner);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
  white-space: nowrap;
}

.header-tools button:hover {
  filter: brightness(1.08);
}

.header-tools button:active {
  transform: scale(0.96);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-banner);
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 10, 30, 0.28) 100%);
  pointer-events: none;
}

.slide {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 72px);
  color: #fff;
  display: none;
  animation: slideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.active {
  display: block;
}

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

.slide h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.slide p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 720px;
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.cta {
  display: inline-block;
  padding: 13px 32px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  background: #fff;
  color: var(--primary);
}

.slider-controls {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 44px);
  bottom: clamp(20px, 4vw, 36px);
  display: flex;
  gap: 10px;
}

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

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

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

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

.stat {
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.stat .num {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat span:last-child {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ BREADCRUMB ============ */
#breadcrumb {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

#breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-light);
  opacity: 0.6;
}

#breadcrumb a {
  color: var(--text-muted);
  font-weight: 600;
}

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

#breadcrumb [aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ============ SECTIONS ============ */
main > section:not(#hero):not(#breadcrumb) {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

main > section:nth-of-type(even):not(#hero):not(#breadcrumb) {
  background: var(--gradient-soft);
  border-radius: var(--radius-xl);
  max-width: 1232px;
}

main > section > h2 {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.15em;
  border-radius: 6px;
  background: var(--gradient-banner);
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.5);
}

main > section > h2 + p {
  margin-bottom: 20px;
  max-width: 880px;
}

main > section > h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

main > section > h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-banner);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

main > section > p {
  margin-bottom: 14px;
  max-width: 920px;
}

/* ============ CARDS: articles / news ============ */
#news article,
#articles article {
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-banner);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
  transition: color var(--transition);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--primary-dark);
}

#news article time,
#articles article time {
  display: inline-block;
  background: rgba(255, 107, 157, 0.1);
  color: var(--primary-dark);
  padding: 2px 12px;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 10px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 6px;
  transition: gap var(--transition), color var(--transition);
}

#articles article a::after {
  content: "→";
  transition: transform var(--transition);
}

#articles article a:hover {
  gap: 10px;
}

#articles article a:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq details {
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

#faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  padding: 18px 54px 18px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: color var(--transition), background var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 107, 157, 0.12);
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

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

#faq summary:hover {
  color: var(--primary-dark);
}

#faq details p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  animation: fadeUp 0.35s ease;
}

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

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 68px;
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ============ CASES blockquote ============ */
#cases blockquote {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

#cases blockquote p {
  position: relative;
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 22px 18px 52px;
  color: var(--text-muted);
  font-style: italic;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases blockquote p::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.55;
}

#cases blockquote p:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============ CONTACT ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 10px;
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

#contact address p {
  margin: 0;
  padding-left: 26px;
  position: relative;
  color: var(--text-muted);
}

#contact address p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-banner);
}

#contact address a {
  font-weight: 700;
}

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 9px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  background: var(--gradient-banner);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, transparent, rgba(255, 107, 157, 0.06));
  border-top: 1px solid var(--border);
}

[data-theme="dark"] #site-footer {
  background: linear-gradient(180deg, transparent, rgba(255, 127, 174, 0.07));
}

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

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

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

.footer-inner section h3 {
  font-size: 0.92rem;
  margin-top: 14px;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

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

.footer-inner .copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 26px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============ SCROLL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  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 ul {
    gap: 0;
  }
  #main-nav a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }
  .header-tools input[type="search"] {
    width: 110px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    height: auto;
    min-height: var(--header-h);
  }
  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  #main-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #main-nav.open {
    max-height: 520px;
  }
  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }
  #main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }
  #main-nav a::after {
    display: none;
  }
  .header-tools {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
  }
  .header-tools form {
    flex: 1;
  }
  .header-tools input[type="search"] {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  main > section:not(#hero):not(#breadcrumb) {
    padding: 48px 18px;
  }
  main > section:nth-of-type(even):not(#hero):not(#breadcrumb) {
    max-width: calc(100% - 24px);
    border-radius: var(--radius-lg);
  }
  #hero {
    padding: 0 18px;
    margin-top: 18px;
  }
  .hero-slider {
    min-height: 340px;
    border-radius: var(--radius-lg);
  }
  .slider-controls {
    position: static;
    padding: 0 clamp(28px, 5vw, 72px) 28px;
    justify-content: flex-end;
  }
  #breadcrumb {
    padding: 0 18px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .header-tools {
    gap: 8px;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px 10px;
    border-radius: var(--radius-md);
  }
  .slide {
    padding: 28px 22px;
  }
  .cta {
    padding: 11px 26px;
    font-size: 0.88rem;
  }
  #news article,
  #articles article {
    padding: 18px 18px;
    border-radius: var(--radius-md);
  }
  #faq summary {
    padding: 15px 48px 15px 18px;
    font-size: 0.94rem;
  }
  #faq details p {
    padding: 0 18px 16px;
  }
  #howto ol li {
    padding: 15px 16px 15px 58px;
  }
  #howto ol li::before {
    left: 14px;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  #contact address {
    padding: 20px 18px;
  }
  #sitemap a,
  #links a {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
  .footer-inner {
    padding: 40px 18px 24px;
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .header-tools form button {
    padding: 9px 12px;
  }
  .brand-name {
    font-size: 1rem;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  .slider-controls,
  .header-tools,
  #site-footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero-slider {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .slide {
    display: block !important;
    color: #000;
  }
  .slide h1,
  .slide h2,
  .slide p {
    color: #000;
    text-shadow: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}