:root {
  --brand: #ff7a59;
  --brand-2: #ff9f7a;
  --brand-3: #ffd4c2;
  --accent: #6c5ce7;
  --accent-2: #a29bfe;
  --mint: #00c9a7;
  --bg: #fff8f5;
  --bg-alt: #ffffff;
  --bg-soft: #fff1eb;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #2b2320;
  --text-soft: #6b5e58;
  --text-mute: #9a8d87;
  --border: rgba(255, 122, 89, 0.16);
  --shadow-sm: 0 4px 14px rgba(255, 122, 89, 0.10);
  --shadow-md: 0 12px 32px rgba(255, 122, 89, 0.16);
  --shadow-lg: 0 24px 60px rgba(255, 122, 89, 0.20);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --brand: #ff8f72;
  --brand-2: #ffab8c;
  --brand-3: #4a2f28;
  --accent: #a29bfe;
  --accent-2: #c7c2ff;
  --mint: #2ee6c4;
  --bg: #14100f;
  --bg-alt: #1c1715;
  --bg-soft: #221a17;
  --card: rgba(38, 30, 27, 0.72);
  --card-solid: #221a17;
  --glass: rgba(40, 32, 29, 0.55);
  --glass-border: rgba(255, 143, 114, 0.22);
  --text: #f4ece8;
  --text-soft: #c9b9b2;
  --text-mute: #9c8b84;
  --border: rgba(255, 143, 114, 0.18);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 89, 0.14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(108, 92, 231, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0, 201, 167, 0.10), transparent 45%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

.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;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ============ HEADER ============ */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

#siteHeader.is-scrolled {
  box-shadow: var(--shadow-sm);
}

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

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

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease);
}

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

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

.main-nav a:hover {
  color: var(--brand);
  background: rgba(255, 122, 89, 0.08);
}

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

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

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn svg * {
  stroke: var(--text);
  fill: none;
}

.icon-btn#themeToggle svg path {
  fill: var(--text);
  stroke: none;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}

.menu-btn {
  display: none;
}

.search-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 16px;
  animation: slideDown 0.35s var(--ease);
}

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

.search-bar form {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  min-width: 0;
}

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

.search-bar button {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-mute);
}

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

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

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

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

section {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

section > h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  position: relative;
  padding-left: 18px;
  letter-spacing: 0.3px;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

section > h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

section > h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--brand);
}

section p {
  color: var(--text-soft);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

section > p {
  max-width: 900px;
}

/* ============ HERO ============ */
.hero {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 44px clamp(22px, 4vw, 56px) 88px;
  background: linear-gradient(135deg, #ff7a59 0%, #ff9f7a 38%, #a29bfe 100%);
  background-size: 200% 200%;
  animation: gradientMove 14s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}

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

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.28), transparent 38%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(6px);
  pointer-events: none;
}

.slide {
  position: relative;
  z-index: 2;
  display: none;
  animation: fadeUp 0.6s var(--ease);
}

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

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

.slide h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.14);
}

.slide h2 {
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.96);
}

.hero-answer {
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 820px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}

.slide p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 780px;
}

.cta {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  background: #fff8f5;
  color: var(--accent);
}

.carousel-controls {
  position: absolute;
  left: clamp(22px, 4vw, 56px);
  right: clamp(22px, 4vw, 56px);
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-prev,
.carousel-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.carousel-dots button[aria-selected="true"] {
  width: 30px;
  border-radius: var(--radius-pill);
  background: #fff;
}

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

.stat {
  padding: 22px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -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-mute);
}

/* ============ CARDS / CONTENT BLOCKS ============ */
section article {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  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;
}

section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

section article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

section article:hover::before {
  opacity: 1;
}

section article h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.5;
}

section article .meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

section article p {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

section article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

section article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

section article a:hover::after {
  transform: translateX(5px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

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

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

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transition: transform 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--brand);
  background: rgba(255, 122, 89, 0.06);
}

#faq details p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeUp 0.4s var(--ease);
}

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 62px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  color: var(--text-soft);
  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: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow-sm);
}

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

/* ============ BLOCKQUOTE ============ */
blockquote {
  position: relative;
  margin: 18px 0;
  padding: 22px 24px 22px 60px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(108, 92, 231, 0.10));
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

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

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow-md);
}

/* ============ CONTACT ============ */
#contact h3 + p {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  line-height: 2;
}

/* ============ FOOTER ============ */
footer {
  margin-top: 70px;
  padding: 54px 20px 30px;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 89, 0.08));
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, var(--maxw));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
  opacity: 0.5;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 26px;
}

footer h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

footer p {
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 880px;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer ul a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

footer ul a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.footer-meta {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
}

/* ============ BACK TO TOP ============ */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

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

#backToTop:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-lg);
}

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-nav ul {
    gap: 2px;
  }

  .main-nav a {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  .hero-carousel {
    min-height: 380px;
    padding-bottom: 82px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 16px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  }

  .main-nav.is-open {
    max-height: 460px;
    overflow-y: auto;
    padding: 10px 0 16px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 16px;
  }

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

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

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

  section {
    margin-top: 44px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero-carousel {
    padding: 28px 20px 84px;
    border-radius: var(--radius);
    min-height: 360px;
  }

  .hero-answer {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .cta {
    width: 100%;
    text-align: center;
    padding: 13px 24px;
  }

  .carousel-controls {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .carousel-prev,
  .carousel-next {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  section article {
    padding: 20px 18px;
  }

  #faq summary {
    padding: 15px 48px 15px 18px;
    font-size: 0.95rem;
  }

  #faq details p {
    padding: 0 18px 18px;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
  }

  blockquote {
    padding: 20px 18px 20px 50px;
  }

  blockquote::before {
    left: 14px;
    font-size: 2.6rem;
  }

  #backToTop {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

  footer {
    padding: 40px 16px 24px;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 18px 12px;
  }
}

/* ============ ACCESSIBILITY / MOTION ============ */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media print {
  #siteHeader,
  #backToTop,
  .carousel-controls,
  .search-bar {
    display: none !important;
  }

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