:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-soft: #eef1f8;
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-mute: #7a7a92;
  --primary: #e94560;
  --primary-dark: #c7304a;
  --primary-soft: rgba(233, 69, 96, 0.12);
  --accent: #0f3460;
  --accent-2: #16213e;
  --border: rgba(26, 26, 46, 0.1);
  --card: #ffffff;
  --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: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --maxw: 1200px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #c7304a 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(15, 52, 96, 0.1));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0e0e1a;
  --bg-alt: #15152a;
  --bg-soft: #1a1a30;
  --text: #f2f2f7;
  --text-soft: #c3c3d4;
  --text-mute: #8a8aa3;
  --primary: #ff5c77;
  --primary-dark: #e94560;
  --primary-soft: rgba(255, 92, 119, 0.16);
  --accent: #4a7bd4;
  --accent-2: #2a3a6a;
  --border: rgba(255, 255, 255, 0.1);
  --card: #1a1a30;
  --glass: rgba(26, 26, 48, 0.6);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --grad-hero: linear-gradient(135deg, #0e0e1a 0%, #16213e 50%, #0f3460 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 119, 0.14), rgba(74, 123, 212, 0.14));
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
      circle at 12% 18%,
      rgba(233, 69, 96, 0.08),
      transparent 42%
    ),
    radial-gradient(circle at 88% 8%, rgba(15, 52, 96, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(233, 69, 96, 0.06), transparent 45%);
  pointer-events: none;
}

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);
}

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

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

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform 0.5s var(--ease);
}

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

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

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

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.9rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

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

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

.search-form button,
#theme-toggle,
#menu-toggle {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.search-form button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
  filter: brightness(1.05);
}

.search-form button:active,
#theme-toggle:active,
#menu-toggle:active {
  transform: translateY(0);
}

#theme-toggle {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
}

#theme-toggle:hover {
  box-shadow: var(--shadow-sm);
  filter: none;
}

#menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 0.75rem 1.25rem 1rem;
  animation: menuIn 0.3s var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.mobile-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.92rem;
  background: var(--bg-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

/* ============ Main / Breadcrumb ============ */
#main-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.breadcrumb {
  padding: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

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

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-hero);
  color: #f2f2f7;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(233, 69, 96, 0.35),
      transparent 45%
    ),
    radial-gradient(circle at 85% 80%, rgba(74, 123, 212, 0.35), transparent 45%);
  z-index: -1;
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.15) translate(-2%, -2%);
    opacity: 1;
  }
}

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

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(
    to top,
    rgba(14, 14, 26, 0.92) 0%,
    rgba(14, 14, 26, 0.55) 55%,
    transparent 100%
  );
  color: #f2f2f7;
}

.slide-caption h2 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.slide-caption p {
  color: rgba(242, 242, 247, 0.82);
  font-size: 0.92rem;
  max-width: 34rem;
}

.slider-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.slider-controls button {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.slider-controls button:hover {
  background: rgba(233, 69, 96, 0.75);
  transform: translateY(-2px);
}

.hero-text {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.28;
  background: linear-gradient(120deg, #fff 30%, #ffd0d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: rgba(242, 242, 247, 0.78);
  font-size: 0.95rem;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 0.85rem 0.6rem;
  text-align: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(233, 69, 96, 0.22);
}

.stat-num {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(242, 242, 247, 0.7);
  margin-top: 0.2rem;
}

/* ============ Sections ============ */
.section {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card);
  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 > h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
}

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

.section h3 {
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
}

.section h3:first-of-type {
  margin-top: 1rem;
}

.section p {
  margin-bottom: 0.9rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul,
.section ol {
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.55rem;
}

.section ol {
  counter-reset: step;
  list-style: none;
}

.section ol > li {
  position: relative;
  padding-left: 2.4rem;
  color: var(--text-soft);
  counter-increment: step;
}

.section ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
}

/* ============ News list ============ */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.news-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.news-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

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

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

.news-list p {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-mute);
}

.news-list p:last-child {
  color: var(--text-soft);
  margin-bottom: 0;
}

/* ============ Articles ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

#articles article:hover::before {
  transform: scaleX(1);
}

#articles article h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

#articles article p:nth-of-type(1) {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: 0;
}

#articles article p:nth-of-type(2) {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#articles article a {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

#articles article a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateX(4px);
}

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

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

#faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--grad-primary);
  color: #fff;
}

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

#faq details > p {
  padding: 0 1.2rem 1.1rem;
  margin: 0;
  font-size: 0.92rem;
  animation: fadeSlide 0.35s var(--ease);
}

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

/* ============ Contact ============ */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.contact-list li {
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-list li:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#sitemap li,
#links li {
  flex: 0 1 auto;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.3);
}

/* ============ Author info ============ */
#author-info {
  background: var(--grad-soft);
}

/* ============ Footer ============ */
#site-footer {
  background: var(--accent-2);
  color: rgba(242, 242, 247, 0.85);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] #site-footer {
  background: #0a0a14;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
}

.footer-brand p {
  color: rgba(242, 242, 247, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-brand p:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer-legal h2 {
  font-size: 0.92rem;
  color: #fff;
  margin: 0.9rem 0 0.3rem;
}

.footer-legal h2:first-child {
  margin-top: 0;
}

.footer-legal p {
  font-size: 0.82rem;
  color: rgba(242, 242, 247, 0.65);
  margin-bottom: 0.4rem;
}

.footer-legal p:last-child {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(242, 242, 247, 0.5);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease), box-shadow 0.25s var(--ease);
}

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

#back-to-top:hover {
  box-shadow: 0 12px 28px rgba(233, 69, 96, 0.45);
  transform: translateY(-3px);
}

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

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

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  #menu-toggle {
    display: inline-block;
  }
  .mobile-menu:not([hidden]) {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    min-height: 320px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .search-form {
    order: 3;
    width: 100%;
  }
  .search-form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .header-actions {
    margin-left: auto;
    gap: 0.4rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-slider {
    min-height: 260px;
  }
  .slide-caption {
    padding: 1.5rem 1.1rem 1.1rem;
  }
  .slider-controls {
    top: 0.6rem;
    right: 0.6rem;
  }
  .slider-controls button {
    padding: 0.32rem 0.7rem;
    font-size: 0.72rem;
  }
  #articles {
    grid-template-columns: 1fr;
  }
  .news-list {
    grid-template-columns: 1fr;
  }
  .contact-list {
    grid-template-columns: 1fr;
  }
  .mobile-menu ul {
    grid-template-columns: 1fr;
  }
  .section {
    border-radius: var(--radius);
  }
  #back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.6rem 0.9rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    gap: 0.5rem;
  }
  .stat {
    padding: 0.65rem 0.4rem;
  }
  .stat-label {
    font-size: 0.66rem;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  .slider-controls,
  .hero-slider {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
</｜｜DSML｜｜ parameter>
</invoke>