:root {
  --brand: #6C5CE7;
  --brand-2: #A29BFE;
  --brand-3: #00CEC9;
  --accent: #FD79A8;
  --bg: #F6F5FF;
  --bg-soft: #FFFFFF;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #1E1B33;
  --text-soft: #5A5678;
  --text-mute: #8B87A8;
  --line: rgba(108, 92, 231, 0.16);
  --line-strong: rgba(108, 92, 231, 0.32);
  --shadow-sm: 0 2px 8px rgba(38, 30, 90, 0.06);
  --shadow-md: 0 12px 32px rgba(38, 30, 90, 0.10);
  --shadow-lg: 0 24px 64px rgba(38, 30, 90, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #6C5CE7 0%, #8E7CFF 42%, #00CEC9 100%);
  --grad-brand: linear-gradient(135deg, #6C5CE7, #A29BFE);
  --grad-soft: linear-gradient(135deg, rgba(108,92,231,0.10), rgba(0,206,201,0.10));
  --glass-blur: saturate(160%) blur(18px);
}

html[data-theme="dark"] {
  --bg: #0E0C1B;
  --bg-soft: #17142B;
  --bg-elev: rgba(30, 26, 52, 0.72);
  --text: #EDEBFF;
  --text-soft: #B9B4DC;
  --text-mute: #8A85B0;
  --line: rgba(162, 155, 254, 0.18);
  --line-strong: rgba(162, 155, 254, 0.36);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #241F4D 0%, #3B2E8C 45%, #0B6E6B 100%);
  --grad-soft: linear-gradient(135deg, rgba(108,92,231,0.18), rgba(0,206,201,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;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(108, 92, 231, 0.16), transparent 60%),
    radial-gradient(900px 520px at 96% 4%, rgba(0, 206, 201, 0.14), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(0, 206, 201, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1, h2, h3, h4 {
  line-height: 1.32;
  color: var(--text);
  letter-spacing: 0.2px;
  margin: 0 0 .6em;
  font-weight: 800;
}

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }

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

ul, ol { color: var(--text-soft); }

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

blockquote {
  margin: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand-2);
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .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: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

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

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
  transition: transform .45s var(--ease);
}

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

.brand-name {
  font-size: 1.12rem;
  letter-spacing: 0.5px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(108, 92, 231, 0.10);
  transform: translateY(-1px);
}

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

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

.site-search:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

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

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
  filter: brightness(1.05);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: transform .3s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

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

.menu-toggle { display: none; }

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  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); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }

/* ============ MAIN / SECTION ============ */
main {
  display: block;
}

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

.section > h2:first-child,
.section > h1:first-child {
  position: relative;
  padding-bottom: 14px;
}

.section > h2:first-child::after,
.section > h1:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

.lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 92ch;
}

.section h2 { margin-top: 1.6em; }
.section h3 { margin-top: 1.4em; }

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 20px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(72px, 8vw, 96px);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease-in-out infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slider::before,
.hero-slider::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  z-index: -1;
}

.hero-slider::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.85), transparent 70%);
}

.hero-slider::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -60px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.85), transparent 70%);
}

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

.slide {
  display: none;
  max-width: 720px;
  animation: slideIn .6s var(--ease) both;
}

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

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

.slide-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.28;
  margin-bottom: .5em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.slide-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 60ch;
  margin-bottom: 1.6em;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.slide-cta::after {
  content: "→";
  transition: transform .3s var(--ease);
}

.slide-cta:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.slide-cta:hover::after { transform: translateX(5px); }

.slider-controls {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(20px, 4vw, 36px);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -48px;
  padding: 0 clamp(12px, 3vw, 28px);
  position: relative;
  z-index: 3;
}

.stat {
  background: var(--bg-elev);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ============ TIMELINE ============ */
.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 26px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: 0.5;
}

.timeline li {
  position: relative;
  padding: 12px 18px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

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

/* ============ LISTS / CARDS ============ */
.advantage-list,
.scenario-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.advantage-list li,
.scenario-list li {
  position: relative;
  padding: 20px 22px 20px 52px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.advantage-list li::before,
.scenario-list li::before {
  content: "✦";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
}

.advantage-list li:hover,
.scenario-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

/* generic content lists */
.section ul:not([class]),
.section ol:not([class]) {
  padding-left: 1.3em;
}

.section ul:not([class]) li,
.section ol:not([class]) li {
  margin-bottom: 8px;
}

/* ============ NEWS ============ */
.news-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.news-list li {
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.news-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.news-list time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(108, 92, 231, 0.10);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.news-list h3 {
  margin: 0 0 .4em;
  font-size: 1.05rem;
}

.news-list h3 a { color: var(--text); }
.news-list h3 a:hover { color: var(--brand); }
.news-list p { margin: 0; font-size: 0.92rem; }

/* ============ ARTICLES ============ */
.post {
  position: relative;
  margin-top: 20px;
  padding: 24px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.post::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.post:hover::before { opacity: 1; }

.post h3 { margin-top: 0; }
.post h3 a { color: var(--text); }
.post h3 a:hover { color: var(--brand); }

.post-meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: .8em;
}

.post-summary {
  font-size: 0.94rem;
  margin-bottom: 1em;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
}

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

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

/* ============ FAQ ============ */
#faq details {
  margin-top: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

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

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

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: background .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;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.12);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
}

/* ============ CONTACT ============ */
.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.contact-list li {
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ SITEMAP / LINKS / META ============ */
.sitemap-list,
.friend-links,
.page-meta-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-2px);
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.3);
}

.page-meta-list {
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.page-meta-list li {
  padding: 10px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 40px;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 20s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  filter: blur(20px);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 28px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5em;
}

.footer-contact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy a:hover { color: #fff; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  z-index: 90;
  font-family: inherit;
}

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

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

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

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .site-search input { width: 130px; }
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: var(--bg-elev);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

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

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

  .header-tools { margin-left: auto; }

  .site-search { display: none; }

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

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

  body { font-size: 15px; }

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

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

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

  .section { padding: 40px 16px; }

  .hero { padding: 0 14px; margin-top: 16px; }

  .hero-slider {
    padding: 26px 22px 78px;
    border-radius: var(--radius);
  }

  .slide-cta {
    padding: 11px 22px;
    font-size: 0.9rem;
  }

  .slider-controls {
    right: 16px;
    bottom: 16px;
  }

  .slider-controls button {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: -28px;
    padding: 0 6px;
  }

  .stat { padding: 14px 10px; }

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

  .advantage-list,
  .scenario-list,
  .news-list,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .advantage-list li,
  .scenario-list li {
    padding: 16px 18px 16px 46px;
  }

  .advantage-list li::before,
  .scenario-list li::before {
    left: 14px;
    top: 15px;
  }

  .post { padding: 20px 18px; }

  #faq summary { padding: 15px 46px 15px 16px; font-size: 0.95rem; }

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

  .timeline { padding-left: 22px; }

  .timeline li { padding: 12px 14px; }

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

  .footer-inner { padding: 32px 16px 22px; }
}

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

/* ============ PRINT ============ */
@media print {
  .site-header,
  .breadcrumb,
  .slider-controls,
  .back-to-top,
  .theme-toggle,
  .menu-toggle,
  .site-search {
    display: none !important;
  }

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

  .hero-slider,
  .site-footer {
    background: #eee !important;
    color: #000 !important;
    box-shadow: none;
  }

  .slide-title,
  .slide-desc,
  .footer-brand,
  .footer-contact,
  .footer-copy {
    color: #000 !important;
  }

  a { color: #000; text-decoration: underline; }
}