:root {
  --bg: #faf7f0;
  --bg-alt: #f2ecdf;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #2f2a22;
  --text-soft: #5c5446;
  --text-muted: #8a8072;
  --brand: #c8a24a;
  --brand-deep: #a8842f;
  --brand-soft: #f0e3c2;
  --line: rgba(47, 42, 34, 0.1);
  --line-strong: rgba(47, 42, 34, 0.18);
  --shadow-sm: 0 2px 8px rgba(47, 42, 34, 0.06);
  --shadow-md: 0 10px 30px rgba(47, 42, 34, 0.1);
  --shadow-lg: 0 24px 60px rgba(47, 42, 34, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #fff8e7 0%, #f3e3bd 45%, #e6cf9c 100%);
  --grad-brand: linear-gradient(135deg, #d8b45c 0%, #c8a24a 50%, #a8842f 100%);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120e;
    --bg-alt: #1b1813;
    --surface: #211d17;
    --surface-soft: rgba(33, 29, 23, 0.72);
    --text: #f3ecdd;
    --text-soft: #cdc3b0;
    --text-muted: #9a907e;
    --brand: #e0bc63;
    --brand-deep: #c8a24a;
    --brand-soft: #3a3225;
    --line: rgba(243, 236, 221, 0.1);
    --line-strong: rgba(243, 236, 221, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --grad-hero: linear-gradient(135deg, #211d16 0%, #2a2419 45%, #33291a 100%);
    --glass: rgba(33, 29, 23, 0.55);
    --glass-border: rgba(243, 236, 221, 0.12);
  }
}

[data-theme="dark"] {
  --bg: #14120e;
  --bg-alt: #1b1813;
  --surface: #211d17;
  --surface-soft: rgba(33, 29, 23, 0.72);
  --text: #f3ecdd;
  --text-soft: #cdc3b0;
  --text-muted: #9a907e;
  --brand: #e0bc63;
  --brand-deep: #c8a24a;
  --brand-soft: #3a3225;
  --line: rgba(243, 236, 221, 0.1);
  --line-strong: rgba(243, 236, 221, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #211d16 0%, #2a2419 45%, #33291a 100%);
  --glass: rgba(33, 29, 23, 0.55);
  --glass-border: rgba(243, 236, 221, 0.12);
}

*,
*::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;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(200, 162, 74, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(200, 162, 74, 0.1), transparent 38%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  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);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; }

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

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.brand { flex-shrink: 0; }

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

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

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(200, 162, 74, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand-link:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(200, 162, 74, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

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

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand-deep);
  background: var(--brand-soft);
  text-decoration: none;
}

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

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.18);
  background: var(--surface);
}

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

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

.site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff8e7;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: var(--brand);
  transform: rotate(12deg);
}

.menu-toggle { display: none; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: slideDown 0.3s var(--ease);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  display: grid;
  gap: 2px;
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

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

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

.section {
  padding: clamp(48px, 7vw, 88px) 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.55), transparent 70%);
  animation: floaty 12s ease-in-out infinite;
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -60px;
  background: radial-gradient(circle, rgba(168, 132, 47, 0.4), transparent 70%);
  animation: floaty 16s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 22px, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.hero-text h1 {
  margin: 0 0 18px;
  background: linear-gradient(120deg, var(--text) 30%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-soft);
  max-width: 62ch;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.18);
}

.hero-points li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.55em + 4px);
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff8e7;
  border-bottom: 2px solid #fff8e7;
  transform: rotate(-45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::before { transform: translateX(120%); }

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff8e7;
  box-shadow: 0 10px 26px rgba(200, 162, 74, 0.4);
}

.btn-primary:hover {
  color: #fff8e7;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(200, 162, 74, 0.55);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 14px;
  animation: heroIn 0.9s var(--ease) both;
}

.hero-visual svg {
  border-radius: var(--radius-md);
  display: block;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

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

/* ============ Stats ============ */
.stats {
  padding: 0 20px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: var(--brand-soft);
}

.stat-num {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ============ Typography blocks ============ */
.section-inner p,
.section-inner li {
  color: var(--text-soft);
}

.section-inner h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  padding-left: 14px;
  position: relative;
}

.section-inner h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  counter-reset: tl;
}

.timeline li {
  position: relative;
  padding: 16px 20px 16px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  counter-increment: tl;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.timeline li::before {
  content: counter(tl);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff8e7;
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}

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

/* ============ Cases / blockquote ============ */
blockquote {
  margin: 18px 0;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  right: 18px;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.18;
  font-family: Georgia, serif;
}

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

blockquote p { margin: 0 0 8px; font-style: italic; }

blockquote footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* ============ Articles ============ */
#articles .section-inner {
  display: block;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.article-card:hover::before { transform: scaleX(1); }

.article-card h3 {
  margin: 0 0 8px;
  padding: 0;
}

.article-card h3::before { display: none; }

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.article-card h3 a:hover { color: var(--brand-deep); text-decoration: none; }

.article-card .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.article-card .meta time {
  padding: 2px 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  font-weight: 600;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.read-more::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}

.read-more:hover { text-decoration: none; }

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

/* ============ FAQ ============ */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

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

.faq-list details:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.faq-list details[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

.faq-list summary:hover { background: var(--brand-soft); }

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-soft);
  animation: fadeIn 0.35s var(--ease);
}

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

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.22), transparent 70%);
  transition: transform 0.5s var(--ease);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.contact-card:hover::after { transform: scale(1.3); }

.contact-card h3 {
  margin: 0 0 12px;
  padding: 0;
}

.contact-card h3::before { display: none; }

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-card li {
  padding-left: 22px;
  position: relative;
  font-size: 0.92rem;
}

.contact-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ============ Sitemap & links ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  background: var(--grad-brand);
  color: #fff8e7;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(200, 162, 74, 0.35);
  text-decoration: none;
}

/* ============ Footer ============ */
#site-footer {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  margin-top: 40px;
}

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

.footer-col h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  padding: 0;
  color: var(--text);
}

.footer-col h3::before { display: none; }

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a::before {
  content: "\203A";
  position: absolute;
  left: -2px;
  opacity: 0;
  transition: opacity 0.25s var(--ease), left 0.25s var(--ease);
  color: var(--brand);
}

.footer-col a:hover {
  color: var(--brand-deep);
  padding-left: 12px;
  text-decoration: none;
}

.footer-col a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 22px 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

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

.footer-bottom p:last-child {
  margin-top: 8px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff8e7;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(200, 162, 74, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
  animation: popIn 0.4s var(--ease);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 18px 36px rgba(200, 162, 74, 0.6);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ Scroll reveal ============ */
@media (prefers-reduced-motion: no-preference) {
  .section-inner,
  .article-card,
  .contact-card,
  .timeline li,
  .feature-list li,
  .faq-list details,
  blockquote {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 16px; }
  .header-tools { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 14px; gap: 10px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 0.98rem; }
  .site-search { display: none; }
  .stats { padding: 0 14px; margin-top: -20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; }
  .section-inner,
  .hero-inner,
  .breadcrumb { padding-left: 14px; padding-right: 14px; }
  .hero { padding-top: 32px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .article-card { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .back-to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
  .brand-logo { width: 38px; height: 38px; }
}

@media (max-width: 420px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.6rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }
}

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

@media print {
  #site-header,
  .back-to-top,
  .hero-visual,
  .site-search,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .article-card,
  .contact-card,
  blockquote,
  .faq-list details {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}