:root {
  --haze-50: #f2faf6;
  --haze-100: #e0f2e9;
  --haze-200: #c3e5d5;
  --haze-300: #9bd3bb;
  --haze-400: #6bbd9c;
  --haze-500: #3f9f7d;
  --haze-600: #2a8465;
  --haze-700: #1f7a5c;
  --haze-800: #185a45;
  --haze-900: #114033;
  --gold-300: #f9dfa1;
  --gold-400: #f4c95d;
  --gold-500: #e5b13a;
  --ink-900: #0e1a16;
  --ink-800: #16241f;
  --ink-700: #1f332b;
  --ink-600: #2c453b;
  --ink-500: #4a6358;
  --ink-400: #6f877c;
  --ink-300: #9aada4;
  --ink-200: #c6d4cd;
  --ink-100: #e4ece8;
  --ink-50: #f4f8f6;
  --white: #ffffff;
  --bg: var(--haze-50);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-alt: rgba(255, 255, 255, 0.5);
  --border: rgba(31, 122, 92, 0.14);
  --text: var(--ink-800);
  --text-soft: var(--ink-500);
  --text-mute: var(--ink-400);
  --accent: var(--haze-700);
  --accent-soft: var(--haze-100);
  --gold: var(--gold-400);
  --shadow-sm: 0 2px 8px rgba(17, 64, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 64, 51, 0.09);
  --shadow-lg: 0 18px 48px rgba(17, 64, 51, 0.14);
  --shadow-glow: 0 0 0 1px rgba(31, 122, 92, 0.08), 0 12px 32px rgba(31, 122, 92, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --blur: saturate(160%) blur(18px);
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.32s;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a1512;
  --surface: rgba(22, 38, 33, 0.66);
  --surface-solid: #14231d;
  --surface-alt: rgba(30, 50, 43, 0.5);
  --border: rgba(155, 211, 187, 0.14);
  --text: #e6f1ec;
  --text-soft: #a9c2b8;
  --text-mute: #7f9a8f;
  --accent: #6bbd9c;
  --accent-soft: rgba(63, 159, 125, 0.16);
  --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 18px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(107, 189, 156, 0.18), 0 12px 32px rgba(0, 0, 0, 0.5);
}

*,
*::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);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(107, 189, 156, 0.22), transparent 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(244, 201, 93, 0.16), transparent 60%),
    radial-gradient(800px 520px at 50% 108%, rgba(31, 122, 92, 0.12), transparent 60%);
  background-attachment: fixed;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(63, 159, 125, 0.18), transparent 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(229, 177, 58, 0.1), transparent 60%),
    radial-gradient(800px 520px at 50% 108%, rgba(31, 122, 92, 0.22), transparent 60%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}

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

[data-theme="dark"] a:hover,
[data-theme="dark"] a:focus-visible {
  color: var(--gold-400);
}

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

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

h1 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
}

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

h4 {
  font-size: 1.05rem;
  color: var(--text);
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
  color: var(--text-soft);
}

strong {
  color: var(--text);
}

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

blockquote {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(31, 122, 92, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(31, 122, 92, 0.36);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(120deg, var(--haze-700), var(--haze-500) 55%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .brand-text {
  background: linear-gradient(120deg, var(--haze-300), var(--haze-400) 55%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
}

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

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 14px;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 159, 125, 0.16);
}

.site-search input {
  width: 138px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  padding: 5px 0;
  outline: none;
  transition: width 0.3s var(--ease);
}

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

.site-search input:focus {
  width: 180px;
}

.site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--haze-600), var(--haze-700));
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 122, 92, 0.32);
  filter: brightness(1.06);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  gap: 22px;
}

.hero-slides {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.94) 0%, rgba(42, 132, 101, 0.9) 48%, rgba(24, 90, 69, 0.94) 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slides::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 88% 8%, rgba(244, 201, 93, 0.32), transparent 62%),
    radial-gradient(480px 300px at 6% 96%, rgba(155, 211, 187, 0.28), transparent 60%);
  z-index: -1;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 22px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

@keyframes heroGlow {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.9;
  }
  to {
    transform: scale(1.12) translate3d(2%, -2%, 0);
    opacity: 1;
  }
}

.slide {
  display: none;
  padding: clamp(26px, 4.4vw, 52px);
  color: #f3fbf7;
  animation: slideIn 0.7s var(--ease);
}

.slide.is-active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.24);
  max-width: 26ch;
}

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

.slide h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin-bottom: 0.5em;
}

.slide p {
  color: rgba(243, 251, 247, 0.88);
  max-width: 66ch;
  font-size: clamp(0.94rem, 1.4vw, 1.02rem);
}

.slide .hero-sub {
  margin-bottom: 0.9em;
}

.slide .hero-answer {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.94rem;
  line-height: 1.72;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  margin: 18px 12px 0 0;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), background-color 0.26s var(--ease), color 0.26s var(--ease);
}

.btn-primary {
  color: var(--haze-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400) 55%, var(--gold-500));
  box-shadow: 0 10px 26px rgba(229, 177, 58, 0.36);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(229, 177, 58, 0.46);
  color: var(--haze-900);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  position: relative;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 120px;
  background: radial-gradient(closest-side, rgba(63, 159, 125, 0.22), transparent);
  opacity: 0;
  transition: opacity 0.34s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 159, 125, 0.34);
}

.stat:hover::after {
  opacity: 1;
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--haze-700), var(--haze-500) 60%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .stat-num {
  background: linear-gradient(120deg, var(--haze-300), var(--haze-400) 60%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ============ Breadcrumb & Anchor Nav ============ */
.breadcrumb,
.anchor-nav {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 20px;
}

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

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-300);
  margin-right: 2px;
}

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

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

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

.anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 60;
  margin-top: 14px;
  padding: 0 20px;
}

.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
}

.anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.anchor-nav li {
  margin: 0;
  flex: 0 0 auto;
}

.anchor-nav a {
  display: block;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============ Sections ============ */
main {
  display: block;
}

main > section {
  position: relative;
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: clamp(22px, 3.4vw, 38px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 72px);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 159, 125, 0.24);
}

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

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--haze-600), var(--haze-400) 55%, var(--gold-400));
}

main > section > h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--haze-500);
  line-height: 1.4;
}

main > section > h3:first-of-type {
  margin-top: 0.6em;
}

main > section > p:first-of-type {
  font-size: 1.02rem;
  color: var(--text);
}

/* ============ Cards: articles / news ============ */
#news,
#articles {
  display: grid;
  gap: 16px;
}

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

#news article,
#articles article {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease), border-color 0.36s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--haze-600), var(--haze-400) 55%, var(--gold-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 159, 125, 0.3);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 0;
  border-left: 0;
  font-size: 1.06rem;
  line-height: 1.5;
}

#articles article h3 {
  font-size: 1.04rem;
}

#news article p,
#articles article p {
  margin-bottom: 0.6em;
  font-size: 0.94rem;
}

#news article time,
#articles article time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

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

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

/* ============ Reviews ============ */
#reviews {
  display: grid;
  gap: 16px;
}

#reviews > h2 {
  grid-column: 1 / -1;
}

#reviews blockquote {
  position: relative;
  padding: 22px 24px 18px 52px;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 3.2rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--haze-400);
  opacity: 0.55;
}

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

#reviews blockquote p {
  margin-bottom: 10px;
  font-size: 0.96rem;
  color: var(--text);
}

#reviews blockquote footer {
  font-size: 0.82rem;
  color: var(--text-mute);
  font-style: normal;
}

/* ============ FAQ ============ */
#faq {
  display: grid;
  gap: 12px;
}

#faq > h2 {
  grid-column: 1 / -1;
}

#faq details {
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(63, 159, 125, 0.34);
  box-shadow: var(--shadow-md);
}

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

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.32s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

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

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

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

/* ============ HowTo / steps ============ */
#howto h4 {
  margin-top: 1.4em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
}

#howto h4 + p {
  margin-top: 0.7em;
}

/* ============ Contact / address ============ */
#contact address {
  font-style: normal;
}

#contact address ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 10px;
}

#contact address li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

#contact address li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--haze-500), var(--gold-400));
  box-shadow: 0 0 0 4px rgba(63, 159, 125, 0.14);
}

#contact address li:hover {
  transform: translateX(4px);
  border-color: rgba(63, 159, 125, 0.3);
  box-shadow: var(--shadow-sm);
}

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

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

#sitemap a,
#friends a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-soft);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.24s var(--ease), background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

#sitemap a:hover,
#friends a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(31, 122, 92, 0.06), rgba(31, 122, 92, 0.14));
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

[data-theme="dark"] #site-footer {
  background: linear-gradient(180deg, rgba(107, 189, 156, 0.06), rgba(10, 21, 18, 0.9));
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 42px 20px 26px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-col h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-col h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--haze-500), var(--gold-400));
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.72;
  margin-bottom: 0.7em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.footer-col a {
  color: var(--text-soft);
  position: relative;
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 34px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

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

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

#back-to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: translate(-50%, -30%) rotate(45deg);
}

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

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

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

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

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

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

@media (min-width: 1024px) {
  #articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav a {
    padding: 6px 9px;
    font-size: 0.86rem;
  }
  .site-search input {
    width: 108px;
  }
  .site-search input:focus {
    width: 140px;
  }
}

@media (max-width: 960px) {
  .main-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    padding-bottom: 12px;
  }
  .main-nav.is-open {
    display: block;
    animation: fadeUp 0.32s var(--ease);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }
  #menu-toggle {
    display: inline-block;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }
  body {
    font-size: 15px;
    background-attachment: scroll;
  }
  .header-inner {
    gap: 8px;
  }
  .brand-text {
    font-size: 1.04rem;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .site-search {
    display: none;
  }
  .header-tools {
    gap: 6px;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 6px 11px;
    font-size: 0.78rem;
  }
  .hero {
    margin-top: 18px;
    padding: 0 14px;
    gap: 16px;
  }
  .hero-slides {
    min-height: auto;
    border-radius: var(--radius-lg);
  }
  .slide {
    padding: 24px 20px 26px;
  }
  .slide h1,
  .slide h2 {
    max-width: none;
  }
  .slide .hero-answer {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 11px 20px;
    font-size: 0.88rem;
    margin: 14px 10px 0 0;
  }
  .hero-stats {
    gap: 10px;
  }
  .stat {
    padding: 15px 12px;
    border-radius: var(--radius-md);
  }
  .stat-label {
    font-size: 0.74rem;
  }
  .breadcrumb,
  .anchor-nav {
    padding: 0 14px;
  }
  .anchor-nav {
    position: static;
    top: auto;
  }
  main > section {
    margin: 16px 12px 0;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    scroll-margin-top: calc(var(--header-h) + 12px);
  }
  main > section > h2 {
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  main > section > h3 {
    padding-left: 11px;
    border-left-width: 3px;
  }
  #news article,
  #articles article {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  #reviews blockquote {
    padding: 18px 18px 15px 44px;
    border-radius: var(--radius-md);
  }
  #reviews blockquote::before {
    font-size: 2.6rem;
    left: 12px;
  }
  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.92rem;
  }
  #faq details p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }
  #contact address li {
    padding: 10px 14px 10px 34px;
  }
  #contact address li::before {
    left: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 16px 20px;
  }
  .footer-bottom {
    padding: 16px 16px 30px;
  }
  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .slide h1 {
    font-size: 1.5rem;
  }
}

@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  #site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    break-inside: avoid;
  }
}