:root {
  --brand: #f5a623;
  --brand-deep: #e8541e;
  --brand-dark: #c93c1a;
  --brand-darker: #8a2a12;
  --bg: #fff8ef;
  --bg-soft: #fff4e0;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #2b1d12;
  --text-soft: #5c4634;
  --text-muted: #8a7461;
  --border: rgba(200, 140, 60, 0.22);
  --shadow-sm: 0 2px 8px rgba(180, 100, 20, 0.08);
  --shadow-md: 0 8px 28px rgba(180, 100, 20, 0.12);
  --shadow-lg: 0 20px 56px rgba(180, 100, 20, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad-brand: linear-gradient(135deg, #f5a623 0%, #e8541e 55%, #c93c1a 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(232, 84, 30, 0.12));
  --grad-hero: linear-gradient(135deg, #fff4e0 0%, #ffe3c2 40%, #ffd0a8 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55));
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

html[data-theme="dark"],
body.dark-mode {
  --bg: #17110c;
  --bg-soft: #1f1710;
  --surface: #241a12;
  --surface-glass: rgba(36, 26, 18, 0.72);
  --surface-glass-strong: rgba(36, 26, 18, 0.9);
  --text: #f6ecdf;
  --text-soft: #d8c6b2;
  --text-muted: #a08e7c;
  --border: rgba(245, 166, 35, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #241a12 0%, #2e1f13 45%, #3a2413 100%);
  --grad-glass: linear-gradient(135deg, rgba(50, 36, 24, 0.82), rgba(36, 26, 18, 0.6));
}

*,
*::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: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 166, 35, 0.14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(232, 84, 30, 0.12), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(201, 60, 26, 0.08), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-darker);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus-visible,
body.dark-mode a:hover,
body.dark-mode a:focus-visible {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  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;
}

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

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  color: var(--brand-darker);
}

html[data-theme="dark"] h3,
body.dark-mode h3 {
  color: var(--brand);
}

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

ul, ol {
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

/* ============ 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);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-logo svg {
  filter: drop-shadow(0 4px 10px rgba(232, 84, 30, 0.4));
  transition: transform 0.4s var(--ease);
}

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

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

#main-nav {
  flex: 1 1 auto;
}

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  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 {
  background: var(--grad-brand-soft);
  color: var(--brand-deep);
  transform: translateY(-2px);
  text-decoration: none;
}

html[data-theme="dark"] #main-nav a:hover,
body.dark-mode #main-nav a:hover {
  color: var(--brand);
}

#mobile-menu-toggle,
#dark-mode-toggle {
  border: 1px solid var(--border);
  background: var(--surface-glass-strong);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

#mobile-menu-toggle:hover,
#dark-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

#mobile-menu-toggle {
  display: none;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 260px;
}

#search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

#site-search button[type="submit"] {
  flex-shrink: 0;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 84, 30, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(232, 84, 30, 0.45);
  filter: brightness(1.05);
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section,
main > nav {
  margin-bottom: 44px;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 18px 0 4px;
  font-size: 0.85rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--text-muted);
}

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

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--brand);
  font-weight: 700;
}

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

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

/* ============ Hero ============ */
#hero {
  position: relative;
  padding: 34px clamp(18px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.35), transparent 68%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-slider .slide {
  display: none;
  margin: 0;
  padding: 0;
  animation: fadeSlide 0.7s var(--ease) both;
}

.hero-slider .slide.active {
  display: block;
}

.hero-slider .slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(232, 84, 30, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.slider-prev::before,
.slider-next::before {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
}

.slider-prev::before { content: "‹"; }
.slider-next::before { content: "›"; }

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--brand-deep);
  transform: translateY(-50%) scale(1.1);
}

.hero-lead {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 76ch;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  margin-top: 22px;
  padding: 16px 22px;
  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);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-stats .num {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-right: 2px;
  font-variant-numeric: tabular-nums;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.anchor-nav li {
  margin: 0;
}

.anchor-nav a {
  display: inline-block;
  padding: 5px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 84, 30, 0.3);
  text-decoration: none;
}

/* ============ Sections ============ */
main > section {
  padding: clamp(20px, 3.4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
}

main > section > h2 {
  margin-bottom: 1em;
}

main > section > h3 {
  margin-top: 1.6em;
}

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

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

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

/* ============ Articles / News cards ============ */
#news,
#articles {
  display: grid;
  gap: 18px;
}

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

#news article,
#articles article {
  position: relative;
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#news article::after,
#articles article::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, 0.5);
}

#news article:hover::after,
#articles article:hover::after {
  transform: scaleX(1);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

#news article h3 a,
#articles article h3 a {
  color: inherit;
  text-decoration: none;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--grad-brand-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

html[data-theme="dark"] #news time,
html[data-theme="dark"] #articles time,
body.dark-mode #news time,
body.dark-mode #articles time {
  color: var(--brand);
}

#articles article p:last-child a,
#news article p:last-child a {
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#articles article p:last-child a::after,
#news article p:last-child a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

#articles article p:last-child a:hover::after,
#news article p:last-child a:hover::after {
  transform: translateX(4px);
}

/* ============ Testimonials ============ */
#testimonials blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px 20px 54px;
  border-radius: var(--radius-md);
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#testimonials blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

/* ============ FAQ / Details ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding: 15px 52px 15px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
  border-radius: 50%;
  background: var(--grad-brand-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary:hover {
  background: var(--grad-brand-soft);
  color: var(--brand-deep);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeIn 0.4s var(--ease) both;
}

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

/* ============ HowTo steps ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 60px;
  border-radius: var(--radius-md);
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(232, 84, 30, 0.35);
}

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

/* ============ Contact ============ */
#contact h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--grad-brand-soft);
  font-size: 1rem;
}

#contact p {
  padding-left: 4px;
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(232, 84, 30, 0.32);
  text-decoration: none;
}

/* ============ Legal ============ */
#legal {
  font-size: 0.94rem;
}

#legal p:last-child {
  margin-top: 1.4em;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ============ Footer ============ */
#site-footer {
  position: relative;
  padding: 46px 20px 60px;
  text-align: center;
  color: #ffe9d2;
  background: linear-gradient(135deg, #3a2413 0%, #5a2f14 45%, #8a2a12 100%);
  border-top: 1px solid rgba(245, 166, 35, 0.3);
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
}

#site-footer p {
  margin: 0 auto 10px;
  max-width: 900px;
  color: #ffe9d2;
  font-size: 0.9rem;
}

#site-footer p:nth-child(2) {
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, #ffd28a, #ff9a5c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#site-footer a {
  color: #ffd7ae;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

#site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(232, 84, 30, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(232, 84, 30, 0.55);
}

/* ============ Responsive ============ */
@media (min-width: 760px) {
  #news,
  #articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  #articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #testimonials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  #testimonials > h2 {
    grid-column: 1 / -1;
  }
  #testimonials blockquote {
    margin: 0;
  }
}

@media (max-width: 980px) {
  .header-inner {
    gap: 10px;
  }
  #site-search {
    flex: 1 1 100%;
    order: 5;
  }
  #main-nav {
    order: 4;
    flex: 1 1 100%;
  }
  #main-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 15px;
  }

  main {
    padding: 0 14px 44px;
  }

  main > section,
  main > nav {
    margin-bottom: 30px;
  }

  main > section {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .hero-slider .slide svg {
    border-radius: var(--radius-md);
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
  }

  .hero-stats {
    gap: 6px 16px;
    padding: 12px 16px;
  }

  #mobile-menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  #main-nav {
    display: none;
    flex-basis: 100%;
  }

  #main-nav.open {
    display: block;
    animation: fadeIn 0.3s var(--ease) both;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }

  #main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  #site-search {
    flex-basis: 100%;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #sitemap a,
  #links a,
  .anchor-nav a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  #testimonials blockquote {
    padding: 16px 16px 16px 46px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .hero-stats {
    font-size: 0.84rem;
  }

  #news article,
  #articles article {
    padding: 16px;
  }
}

/* ============ Dark mode tweaks ============ */
html[data-theme="dark"] body,
body.dark-mode {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 166, 35, 0.12), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(232, 84, 30, 0.1), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(201, 60, 26, 0.08), transparent 60%);
}

html[data-theme="dark"] #site-header,
body.dark-mode #site-header {
  background: rgba(23, 17, 12, 0.78);
}

html[data-theme="dark"] #hero::before,
body.dark-mode #hero::before {
  background: radial-gradient(circle, rgba(245, 166, 35, 0.18), transparent 68%);
}

html[data-theme="dark"] #faq summary:hover,
body.dark-mode #faq summary:hover {
  color: var(--brand);
}

html[data-theme="dark"] #site-footer,
body.dark-mode #site-footer {
  background: linear-gradient(135deg, #120c08 0%, #241209 45%, #3a1408 100%);
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  .hero-slider .slider-prev,
  .hero-slider .slider-next,
  .anchor-nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
</style>