:root {
  --color-primary: #ff6b6b;
  --color-primary-dark: #e85555;
  --color-secondary: #4ecdc4;
  --color-accent: #ffd93d;
  --color-purple: #a29bfe;
  --color-orange: #ff9f43;
  --bg-body: #f6f5fb;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f0eef8;
  --bg-header: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.78);
  --text-main: #1a1a2e;
  --text-sub: #4a4a63;
  --text-muted: #7a7a92;
  --border-soft: rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #ff6b6b 0%, #a29bfe 48%, #4ecdc4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(162, 155, 254, 0.14), rgba(78, 205, 196, 0.14));
  --gradient-btn: linear-gradient(135deg, #ff6b6b, #ff9f43);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-base: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg-body: #12121f;
  --bg-surface: #1c1c2e;
  --bg-surface-alt: #191927;
  --bg-header: rgba(18, 18, 31, 0.72);
  --bg-glass: rgba(40, 40, 62, 0.55);
  --bg-glass-strong: rgba(40, 40, 62, 0.82);
  --text-main: #f2f1fa;
  --text-sub: #c2c1d6;
  --text-muted: #8f8ea8;
  --border-soft: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --gradient-hero: linear-gradient(135deg, #b23a3a 0%, #5a52a8 48%, #2f8c86 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(162, 155, 254, 0.16), rgba(78, 205, 196, 0.16));
}

*,
*::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-base);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-body);
  background-image: radial-gradient(circle at 12% 8%, rgba(255, 107, 107, 0.1), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(78, 205, 196, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(162, 155, 254, 0.1), transparent 46%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-sub); }

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

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--text-sub); }
li { margin-bottom: 0.5em; }

strong { color: var(--text-main); font-weight: 700; }

blockquote {
  margin: 1.2em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--color-primary);
  background: var(--bg-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

blockquote p { margin: 0; font-style: normal; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), height 0.3s var(--ease);
}

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

.header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-logo {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

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

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

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-main);
}

.brand-slogan {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
}

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

.main-nav li { margin: 0; }

.main-nav a {
  display: block;
  padding: 8px 13px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  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: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-btn);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-main);
  background: var(--bg-glass);
}

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

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

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

.site-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.site-search input {
  width: 150px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: width 0.3s var(--ease);
}

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

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

.site-search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search button:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.4);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-glass);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-glass);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 107, 107, 0.36);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 107, 107, 0.46);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ Layout ============ */
main { padding-top: var(--header-h); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background: var(--gradient-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section > .container > h2 {
  position: relative;
  padding-bottom: 14px;
}

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

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 40px 20px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.28), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.slide {
  display: none;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 52px 48px;
  position: relative;
  z-index: 2;
  animation: slideFade 0.6s var(--ease);
}

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

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

.slide-text h1,
.slide-text h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  margin-bottom: 1em;
}

.hero-answer {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.4em;
}

.hero-answer strong { color: #fff; }

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

.hero-actions .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary:hover {
  color: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.02);
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.slide-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(900px) rotateY(-6deg);
  transition: transform 0.6s var(--ease);
}

.slide-visual:hover {
  transform: perspective(900px) rotateY(0deg) scale(1.02);
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.dot.is-active {
  width: 30px;
  border-radius: var(--radius-pill);
  background: #fff;
}

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

.stat {
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-suffix {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 20px 0;
}

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

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

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

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [aria-current="page"] { color: var(--text-main); font-weight: 600; }

/* ============ Cards / Lists ============ */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 1.6em;
  position: relative;
}

.timeline li {
  position: relative;
  padding: 14px 18px 14px 34px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient-btn);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.16);
}

.timeline li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

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

.feature-list li {
  margin: 0;
  padding: 18px 20px 18px 48px;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  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: 18px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient-btn);
}

.feature-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 107, 0.35);
}

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

.scene-list li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.scene-list li:hover {
  transform: translateY(-4px);
  background: var(--bg-glass-strong);
}

.howto-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 1em;
}

.howto-steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 22px 20px 20px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.howto-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ============ Article Grid ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 1.6em;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  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;
  right: 0;
  height: 4px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 107, 0.3);
}

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

.article-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.5em;
}

.article-card h3 a { color: var(--text-main); }
.article-card h3 a:hover { color: var(--color-primary-dark); }

.article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7em;
}

.article-summary {
  font-size: 0.88rem;
  color: var(--text-sub);
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 0.4em;
}

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

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

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

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

.faq-item[open] {
  border-color: rgba(255, 107, 107, 0.35);
  box-shadow: var(--shadow-md);
}

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

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.3s var(--ease);
}

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

.faq-item summary:hover { background: var(--bg-glass); color: var(--color-primary-dark); }

.faq-answer {
  padding: 0 20px 18px;
  animation: slideFade 0.4s var(--ease);
}

.faq-answer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* ============ News ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 1.4em 0 0;
  display: grid;
  gap: 10px;
}

.news-list li {
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.news-list time {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  background: rgba(255, 107, 107, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

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

.contact-card {
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.contact-card h3 {
  font-size: 1.05rem;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-soft);
}

.contact-card p {
  font-size: 0.88rem;
  margin-bottom: 0.5em;
}

/* ============ Sitemap ============ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 1.4em 0 2em;
}

.sitemap-grid h3 {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.8em;
}

.sitemap-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-grid li { margin-bottom: 8px; }

.sitemap-grid a,
.friend-links a {
  font-size: 0.88rem;
  color: var(--text-sub);
  position: relative;
  padding-left: 14px;
}

.sitemap-grid a::before,
.friend-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-secondary);
  transform: translateY(-50%);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.sitemap-grid a:hover,
.friend-links a:hover { color: var(--color-primary-dark); }

.sitemap-grid a:hover::before,
.friend-links a:hover::before {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.5);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  padding: 0;
  margin: 0.8em 0 0;
}

.friend-links li { margin: 0; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding: 48px 20px 32px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.footer-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.6em;
}

.footer-brand p,
.footer-legal p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

.footer-legal {
  border-left: 1px solid var(--border-soft);
  padding-left: 32px;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 107, 107, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
}

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

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 10px; font-size: 0.85rem; }
  .brand-slogan { display: none; }
  .site-search input { width: 120px; }
  .site-search input:focus { width: 150px; }
}

@media (max-width: 900px) {
  .slide {
    grid-template-columns: 1fr;
    padding: 40px 28px 56px;
  }

  .slide-visual {
    order: -1;
    max-width: 460px;
    margin: 0 auto;
    transform: none;
  }

  .slide-visual:hover { transform: scale(1.02); }

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

  .footer-inner { grid-template-columns: 1fr; }

  .footer-legal {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
  }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

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

  .main-nav.is-open {
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 0 18px;
  }

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

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

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

  .site-search { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  body { font-size: 15px; }

  .header-inner { padding: 0 14px; gap: 10px; }

  .hero { padding: 20px 12px 12px; }

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

  .slide { padding: 30px 20px 52px; gap: 22px; }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .hero-actions .btn { width: 100%; }

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

  .stat { padding: 16px 12px; }

  .section { padding: 52px 0; }

  .container { padding: 0 16px; }

  .article-grid { grid-template-columns: 1fr; gap: 16px; }

  .article-card { padding: 20px; }

  .feature-list,
  .scene-list,
  .howto-steps,
  .contact-grid { grid-template-columns: 1fr; }

  .breadcrumb { padding: 14px 16px 0; }

  .back-to-top { right: 14px; bottom: 18px; width: 42px; height: 42px; }

  .footer-inner { gap: 22px; }

  .site-footer { padding: 36px 16px 26px; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 0.92rem; }
  .hero-answer { font-size: 0.86rem; padding: 12px 14px; }
}

/* ============ Motion & print ============ */
@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; }
}

@media print {
  .site-header,
  .back-to-top,
  .hero-slider,
  .slider-dots,
  .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding-top: 0; }
  .section { padding: 20px 0; }
  a { color: #000; text-decoration: underline; }
}