:root {
  --brand: #c0392b;
  --brand-dark: #962d22;
  --brand-light: #e74c3c;
  --accent: #f39c12;
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #2b2622;
  --text-muted: #6b6259;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(43, 38, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 38, 34, 0.1);
  --shadow-lg: 0 16px 48px rgba(43, 38, 34, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-banner: linear-gradient(135deg, #c0392b 0%, #e74c3c 45%, #f39c12 100%);
  --gradient-banner-soft: linear-gradient(135deg, rgba(192, 57, 43, 0.92) 0%, rgba(231, 76, 60, 0.88) 50%, rgba(243, 156, 18, 0.85) 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.dark {
  --bg: #14100e;
  --bg-alt: #1d1815;
  --bg-glass: rgba(29, 24, 21, 0.65);
  --bg-glass-strong: rgba(29, 24, 21, 0.88);
  --text: #f2ede8;
  --text-muted: #a89f96;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --gradient-banner: linear-gradient(135deg, #7d241b 0%, #a33027 45%, #b87410 100%);
  --gradient-banner-soft: linear-gradient(135deg, rgba(125, 36, 27, 0.92) 0%, rgba(163, 48, 39, 0.88) 50%, rgba(184, 116, 16, 0.85) 100%);
}

*,
*::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.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(231, 76, 60, 0.08), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(243, 156, 18, 0.08), transparent 40%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-light);
}

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

ul,
ol {
  list-style: none;
}

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

#site-header.sticky {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-strong);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}

.logo svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(192, 57, 43, 0.35));
  transition: transform var(--transition);
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background var(--transition), transform 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 {
  color: var(--brand);
  background: rgba(192, 57, 43, 0.08);
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-search:focus-within {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

.site-search input {
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
  width: 180px;
  min-width: 0;
  outline: none;
}

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

.site-search button {
  border: none;
  cursor: pointer;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--gradient-banner);
  transition: filter var(--transition), transform var(--transition);
}

.site-search button:hover {
  filter: brightness(1.1);
}

.site-search button:active {
  transform: scale(0.97);
}

.theme-toggle,
.menu-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  color: var(--brand);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
}

/* ============ Main layout ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > section {
  margin-top: 56px;
  padding: 40px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition);
}

main > section.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

main > section.hero {
  margin-top: 32px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

main > section.hero:hover {
  box-shadow: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin-top: 24px;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

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

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

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

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

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

/* ============ Hero ============ */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-banner);
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}

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

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 12px);
  pointer-events: none;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.hero-slider .slide h1,
.hero-slider .slide h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  max-width: 900px;
}

.hero-slider .slide p {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.85;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

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

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-stats .stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(231, 76, 60, 0.35);
}

.stat-num {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ Typography inside sections ============ */
main > section h2 {
  position: relative;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 24px;
  padding-left: 18px;
  letter-spacing: 0.01em;
}

main > section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: 3px;
  background: var(--gradient-banner);
}

main > section h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

main > section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
  flex-shrink: 0;
}

main > section h2 + p,
main > section h3 + p {
  margin-bottom: 8px;
}

main > section p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

main > section p a {
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}

main > section ul,
main > section ol {
  margin: 12px 0 16px;
  display: grid;
  gap: 10px;
}

main > section ul li,
main > section ol li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

main > section ul li:hover,
main > section ol li:hover {
  transform: translateX(4px);
  border-color: rgba(231, 76, 60, 0.3);
  box-shadow: var(--shadow-md);
}

main > section ul li::before {
  content: "◆";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-light);
  font-size: 0.7rem;
}

main > section ol {
  counter-reset: step;
}

main > section ol li {
  counter-increment: step;
}

main > section ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-banner);
  border-radius: 50%;
}

/* ============ Articles ============ */
#articles > article,
#news article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles > article:hover,
#news article:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 76, 60, 0.3);
  box-shadow: var(--shadow-md);
}

#articles > article h3,
#news article h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.5;
}

#articles > article h3::before,
#news article h3::before {
  display: none;
}

#articles > article p,
#news article p {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

#articles > article time,
#news article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
  padding: 2px 10px;
  background: rgba(192, 57, 43, 0.08);
  border-radius: var(--radius-pill);
}

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-banner);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

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

#articles > article a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.42);
  filter: brightness(1.05);
}

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

#articles > h3[id^="article-"] {
  padding: 20px 24px;
  margin: 32px 0 12px;
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#articles > h3[id^="article-"]::before {
  display: none;
}

#articles > h3[id^="article-"] + p {
  padding: 0 4px 24px;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ============ Blockquotes (cases) ============ */
blockquote {
  position: relative;
  margin: 14px 0;
  padding: 18px 22px 18px 52px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 6px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

blockquote:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 76, 60, 0.3);
  box-shadow: var(--shadow-md);
}

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

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

#faq details:hover {
  border-color: rgba(231, 76, 60, 0.3);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(231, 76, 60, 0.45);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand);
  background: rgba(192, 57, 43, 0.1);
  border-radius: 50%;
  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(--brand);
  background: rgba(192, 57, 43, 0.04);
}

#faq details p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-muted);
  animation: fadeIn 0.4s ease;
}

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

/* ============ Contact address ============ */
address {
  font-style: normal;
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

address p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

address a {
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}

/* ============ Sitemap & links ============ */
#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

#sitemap ul li,
#links ul li {
  padding: 14px 16px 14px 44px;
}

#sitemap ul li a,
#links ul li a {
  font-weight: 600;
  color: var(--text);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--brand);
}

/* ============ Meta info ============ */
#meta-info p {
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  margin: 0;
}

#meta-info p:last-child {
  border-bottom: none;
}

/* ============ Footer ============ */
footer {
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border);
  padding: 32px 24px 40px;
  text-align: center;
}

footer p {
  max-width: 1240px;
  margin: 0 auto 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

footer a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

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

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-banner);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

#back-to-top:active {
  transform: scale(0.95);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  border-radius: 6px;
  border: 2px solid var(--bg);
}

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

/* ============ Selection ============ */
::selection {
  background: rgba(231, 76, 60, 0.3);
  color: var(--text);
}

/* ============ Responsive: Tablet ============ */
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 20px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .site-search {
    margin-left: auto;
  }

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

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

  main > section {
    padding: 32px 28px;
  }

  .hero-slider .slide {
    padding: 44px 40px 40px;
  }
}

/* ============ Responsive: Mobile ============ */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 15px;
  }

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

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

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

  .theme-toggle {
    order: 2;
    width: 38px;
    height: 38px;
  }

  .site-search {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .site-search input {
    flex: 1;
    width: auto;
    padding: 10px 16px;
  }

  .site-search button {
    padding: 10px 20px;
  }

  .main-nav {
    order: 5;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    overflow: visible;
  }

  .main-nav.open {
    display: flex;
    animation: fadeIn 0.35s ease;
  }

  .main-nav a {
    display: block;
    padding: 11px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .main-nav a::after {
    display: none;
  }

  main {
    padding: 0 14px 56px;
  }

  .breadcrumb {
    margin-top: 16px;
    font-size: 0.8rem;
  }

  main > section {
    margin-top: 32px;
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  main > section.hero {
    margin-top: 20px;
  }

  main > section h2 {
    font-size: 1.25rem;
    padding-left: 14px;
    margin-bottom: 18px;
  }

  main > section h2::before {
    width: 5px;
  }

  main > section h3 {
    font-size: 1rem;
    margin-top: 22px;
  }

  .hero-slider {
    min-height: 0;
    border-radius: var(--radius-md);
  }

  .hero-slider .slide {
    padding: 32px 22px 28px;
  }

  .hero-slider .slide h1,
  .hero-slider .slide h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .hero-slider .slide p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 16px;
  }

  .hero-stats .stat {
    padding: 18px 10px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  main > section ul li,
  main > section ol li {
    padding: 11px 14px 11px 40px;
    font-size: 0.9rem;
  }

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

  #articles > h3[id^="article-"] {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  #articles > h3[id^="article-"] + p {
    font-size: 0.9rem;
    padding-bottom: 18px;
  }

  blockquote {
    padding: 16px 16px 16px 44px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.2rem;
  }

  #faq summary {
    padding: 15px 50px 15px 16px;
    font-size: 0.92rem;
  }

  #faq summary::after {
    right: 14px;
    width: 26px;
    height: 26px;
  }

  #faq details p {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }

  address {
    padding: 18px 16px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  footer {
    padding: 26px 16px 32px;
  }
}

/* ============ Responsive: Small mobile ============ */
@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero-slider .slide h1,
  .hero-slider .slide h2 {
    font-size: 1.2rem;
  }
}

/* ============ Reduced motion ============ */
@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;
  }

  main > section {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  footer,
  .theme-toggle,
  .menu-toggle,
  .site-search {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}