:root {
  --orange-50: #fff4ee;
  --orange-100: #ffe4d6;
  --orange-200: #ffc9ad;
  --orange-300: #ffa77d;
  --orange-400: #ff8352;
  --orange-500: #ff6b35;
  --orange-600: #f0541c;
  --orange-700: #c93f10;
  --pink-400: #ff8fab;
  --pink-500: #ff6b8b;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --bg: #fffaf7;
  --bg-alt: #fff1e9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #2b211d;
  --text-soft: #6b5a52;
  --text-muted: #948077;
  --border: rgba(255, 107, 53, 0.16);
  --border-strong: rgba(255, 107, 53, 0.32);
  --shadow-sm: 0 2px 8px rgba(180, 90, 50, 0.08);
  --shadow-md: 0 8px 28px rgba(180, 90, 50, 0.12);
  --shadow-lg: 0 18px 48px rgba(180, 90, 50, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #ff6b35 0%, #ff8fab 48%, #8b5cf6 100%);
  --grad-btn: linear-gradient(135deg, #ff6b35 0%, #ff6b8b 100%);
  --grad-soft: linear-gradient(135deg, #fff4ee 0%, #ffe9f0 55%, #f1ecff 100%);
  --grad-text: linear-gradient(120deg, #ff6b35 0%, #ff6b8b 60%, #8b5cf6 100%);
  --header-h: 68px;
  --maxw: 1180px;
  --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"] {
  --bg: #14100e;
  --bg-alt: #1b1512;
  --surface: #211a16;
  --surface-glass: rgba(33, 26, 22, 0.72);
  --text: #f6ece6;
  --text-soft: #c9b7ad;
  --text-muted: #9b877d;
  --border: rgba(255, 129, 80, 0.18);
  --border-strong: rgba(255, 129, 80, 0.36);
  --orange-50: #2a1d16;
  --orange-100: #3a271d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --grad-soft: linear-gradient(135deg, #241a15 0%, #2a1a20 55%, #201a2c 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(900px 460px at 8% -6%, rgba(255, 107, 53, 0.12), transparent 60%),
    radial-gradient(760px 420px at 96% 4%, rgba(139, 92, 246, 0.1), transparent 62%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--pink-500);
}

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

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

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1.8vw, 1.3rem); }

ul, ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li { margin-bottom: 0.45em; }

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

blockquote {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-left: 4px solid var(--orange-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 900;
}

.brand-logo svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
  transition: transform 0.4s var(--ease);
}

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

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

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

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

.main-nav li { margin: 0; }

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

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--orange-600);
  background: var(--orange-50);
  transform: translateY(-2px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  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(--orange-400);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.14);
}

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

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-btn);
  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 6px 18px rgba(255, 107, 53, 0.4);
  filter: brightness(1.05);
}

#theme-toggle,
#menu-toggle {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--orange-600);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

#menu-toggle { display: none; }

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: block;
}

.breadcrumb {
  padding: 14px 0 4px;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li { margin: 0; color: var(--text-muted); }

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

.breadcrumb a { color: var(--text-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange-600); }

/* ============ HERO ============ */
.hero {
  position: relative;
  margin: 18px 0 48px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 88% 12%, rgba(255, 255, 255, 0.32), transparent 62%),
    radial-gradient(420px 300px at 6% 92%, rgba(255, 255, 255, 0.18), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16));
  z-index: -1;
  pointer-events: none;
}

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

.hero-slider { position: relative; }

.slide {
  display: none;
  animation: fadeUp 0.7s var(--ease) both;
}

.slide[aria-hidden="false"] { display: block; }

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

.hero h1,
.hero .slide-title {
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 40, 10, 0.32);
}

.hero h1 { max-width: 20ch; }

.hero-lead,
.hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 72ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  text-shadow: 0 1px 10px rgba(120, 40, 10, 0.26);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
}

.btn-primary {
  color: var(--orange-600);
  background: #fff;
  box-shadow: 0 10px 26px rgba(90, 30, 0, 0.24);
}

.btn-primary:hover {
  color: var(--orange-700);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(90, 30, 0, 0.3);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(90, 30, 0, 0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(26px, 4vw, 40px);
}

.stat {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  text-align: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 30px rgba(80, 20, 0, 0.22);
}

.stat-num {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(120, 40, 10, 0.28);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ============ SECTIONS ============ */
.section {
  position: relative;
  margin: 0 0 32px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.section:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.section > h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

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

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

.section h3:first-of-type { margin-top: 0.4em; }

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--orange-400), var(--pink-400), var(--purple-400));
  opacity: 0.7;
}

.timeline li {
  position: relative;
  padding: 8px 0 8px 6px;
  margin: 0;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--orange-400);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

.timeline li:hover { transform: translateX(4px); }

.timeline li:hover::before {
  background: var(--orange-500);
  transform: scale(1.2);
}

/* ============ NEWS ============ */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.news-list li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.news-list h3 { margin: 0 0 6px; font-size: 1.05rem; }

.news-list .meta,
.article-card .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

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

/* ============ ARTICLES ============ */
#articles > p { max-width: 78ch; }

.article-card {
  position: relative;
  margin: 0 0 14px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
  overflow: hidden;
}

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

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

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

.article-card h3 { margin: 0 0 6px; font-size: 1.08rem; }

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

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

.article-card .summary { margin: 0 0 10px; }

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

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

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

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

/* ============ FAQ ============ */
details {
  margin: 0 0 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
  overflow: hidden;
}

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

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

summary {
  position: relative;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

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

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

summary:hover { color: var(--orange-600); }

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

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

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.contact-list li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  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: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.34);
}

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

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.footer-inner section {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.footer-inner section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.footer-inner h2 {
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--text);
}

.footer-inner p {
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-strong);
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  cursor: pointer;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(255, 107, 53, 0.5);
}

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

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    display: none;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .main-nav.is-open { display: block; animation: fadeUp 0.35s var(--ease) both; }
  .main-nav ul { gap: 4px; }
  .main-nav a { background: var(--surface); border: 1px solid var(--border); }
  #menu-toggle { display: inline-block; }
  .header-tools { margin-left: auto; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  main { padding: 0 14px 32px; }
  .site-search { display: none; }
  .hero { border-radius: var(--radius-md); padding: 26px 20px; }
  .hero-cta { gap: 10px; }
  .btn-primary,
  .btn-secondary { flex: 1 1 auto; padding: 11px 18px; font-size: 0.9rem; }
  .section { border-radius: var(--radius-md); padding: 20px 18px; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-inner { padding: 28px 14px 20px; gap: 14px; }
  #back-to-top { right: 14px; bottom: 14px; padding: 10px 15px; font-size: 0.8rem; }
}

@media (max-width: 460px) {
  .brand-name { font-size: 1rem; }
  .brand-logo svg { width: 34px; height: 34px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat-label { font-size: 0.72rem; }
  .hero-cta { flex-direction: column; }
  .btn-primary,
  .btn-secondary { width: 100%; }
  summary { padding: 14px 44px 14px 16px; font-size: 0.94rem; }
  details > p { padding: 0 16px 16px; }
  .article-card,
  .news-list li { padding: 16px; }
}

@media print {
  #site-header,
  #back-to-top,
  .hero-cta,
  .site-search { display: none !important; }
  body { background: #fff; color: #000; }
  .section { box-shadow: none; border: 1px solid #ddd; }
}
</style>
</html>