/* ========================================
   律小狐 - 产品说明网站样式
   专业简洁风格 | Multi-page | Mobile-first
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-dark: #0a0a0f;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: rgba(37, 99, 235, 0.08);
  --color-border: #e5e5e7;
  --color-border-light: #f0f0f2;
  --font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
  --nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(30, 58, 138, 0.05), 0 1px 2px rgba(30, 58, 138, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 58, 138, 0.07), 0 1px 4px rgba(30, 58, 138, 0.05);
  --shadow-lg: 0 12px 40px rgba(30, 58, 138, 0.1), 0 4px 12px rgba(30, 58, 138, 0.06);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain overlay — breaks digital flatness */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Home: transparent nav with light text over dark hero */
body.has-dark-hero .nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

body.has-dark-hero .nav .nav-logo {
  color: #ffffff;
}

body.has-dark-hero .nav .nav-link {
  color: rgba(226, 232, 240, 0.8);
}

body.has-dark-hero .nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body.has-dark-hero .nav .nav-link.active {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.22);
}

/* After scrolling past hero: revert to frosted white */
body.has-dark-hero .nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border-light);
}

body.has-dark-hero .nav.scrolled .nav-logo {
  color: var(--color-text);
}

body.has-dark-hero .nav.scrolled .nav-link {
  color: var(--color-text-tertiary);
}

body.has-dark-hero .nav.scrolled .nav-link:hover {
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
}

body.has-dark-hero .nav.scrolled .nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: var(--color-text);
}

.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  color: var(--color-text-tertiary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
}

.nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 8px 20px;
  border-radius: 8px;
  margin-left: 8px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-bg-alt);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Page Layout
   ======================================== */
.page {
  padding-top: var(--nav-height);
}

/* 深色 Hero 页面：Hero 需延伸到透明导航背后直至页顶， clearance 由 Hero 自身 padding 负责 */
body.has-dark-hero .page {
  padding-top: 0;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--color-accent-light);
  border-radius: 6px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.sub-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border-light);
}

/* ========================================
   Hero (Overview Page) — Immersive Dark
   ======================================== */
.hero-page {
  background:
    radial-gradient(ellipse 90% 70% at 78% -5%, rgba(59, 130, 246, 0.24) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 8% 88%, rgba(99, 102, 241, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 96% 78%, rgba(14, 165, 233, 0.13) 0%, transparent 55%),
    linear-gradient(180deg, #0a0f1f 0%, #0b1226 55%, #0d1730 100%);
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Luminous dot grid pattern */
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(96, 165, 250, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 10%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 10%, transparent 95%);
  pointer-events: none;
}

/* Animated aurora glow */
.hero-page::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.17) 0%, rgba(139, 92, 246, 0.09) 45%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 9s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.65; transform: translateX(-50%) scale(1.1); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.28);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
  line-height: 1.08;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #e0eaff 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan {
  font-size: 26px;
  color: #eef2ff;
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
}

.hero-desc {
  font-size: 17px;
  color: rgba(203, 213, 225, 0.82);
  margin-bottom: 38px;
  position: relative;
  z-index: 1;
}

/* Hero Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.hero-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Scroll Hint */
.scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.scroll-hint-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(148, 163, 184, 0.8);
  border-bottom: 2px solid rgba(148, 163, 184, 0.8);
  transform: rotate(45deg);
  opacity: 0.5;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 0.8; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(37, 99, 235, 0.15);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* Glass variant on dark hero */
.hero-page .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-page .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(148, 163, 184, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 0;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 0 36px;
  position: relative;
}

.stat-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff 20%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.role-card {
  padding: 36px 28px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
  transition: all var(--transition-slow);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.role-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(37,99,235,0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

/* Hero slide inside slider */
.hero-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  background: #fafbff;
}

.hero-slide .hero-title {
  font-size: 40px;
  margin-bottom: 16px;
}

.hero-slide .hero-slogan {
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-slide .hero-desc {
  font-size: 15px;
  margin-bottom: 0;
}

/* Section header slide inside slider */
.section-header-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
}

.section-header-slide .section-label {
  margin-bottom: 16px;
}

.section-header-slide .section-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.section-header-slide .section-desc {
  font-size: 15px;
  max-width: 480px;
}

.role-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 44px var(--role-glow, rgba(37, 99, 235, 0.14));
  transform: translateY(-4px);
}

.role-card:hover::before {
  opacity: 1;
}

/* Per-card signature accent bar */
.role-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--role-accent, var(--color-accent)) 0%, rgba(99, 102, 241, 0.25) 70%, transparent 100%);
  opacity: 0.65;
  transition: opacity var(--transition);
}

.role-card:hover::after {
  opacity: 1;
}

.role-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(99,102,241,0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.role-card:hover .role-icon-wrap {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(99,102,241,0.1) 100%);
  transform: scale(1.05);
}

.role-icon {
  font-size: 24px;
  color: var(--color-accent);
}

.role-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.role-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Accent color variants — standalone classes so any card (role/feature) can inherit */
.role-blue {
  --role-accent: #2563eb;
  --role-bg: rgba(37, 99, 235, 0.08);
  --role-glow: rgba(37, 99, 235, 0.16);
}

.role-indigo {
  --role-accent: #6366f1;
  --role-bg: rgba(99, 102, 241, 0.09);
  --role-glow: rgba(99, 102, 241, 0.17);
}

.role-emerald {
  --role-accent: #059669;
  --role-bg: rgba(5, 150, 105, 0.09);
  --role-glow: rgba(5, 150, 105, 0.15);
}

.role-amber {
  --role-accent: #d97706;
  --role-bg: rgba(217, 119, 6, 0.09);
  --role-glow: rgba(217, 119, 6, 0.16);
}

.role-sky {
  --role-accent: #0284c7;
  --role-bg: rgba(2, 132, 199, 0.09);
  --role-glow: rgba(2, 132, 199, 0.16);
}

.role-violet {
  --role-accent: #7c3aed;
  --role-bg: rgba(124, 58, 237, 0.09);
  --role-glow: rgba(124, 58, 237, 0.16);
}

.role-rose {
  --role-accent: #e11d48;
  --role-bg: rgba(225, 29, 72, 0.08);
  --role-glow: rgba(225, 29, 72, 0.14);
}

.role-icon-wrap {
  background: linear-gradient(135deg, var(--role-bg, var(--color-accent-light)) 0%, rgba(99,102,241,0.04) 100%);
}

.role-icon-wrap .role-icon {
  color: var(--role-accent, var(--color-accent));
}

.role-card:hover .role-icon-wrap {
  background: linear-gradient(135deg, var(--role-bg, var(--color-accent-light)) 0%, rgba(99,102,241,0.08) 100%);
}

/* Role Tags */
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.role-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--role-accent, var(--color-accent));
  background: var(--role-bg, var(--color-accent-light));
  padding: 3px 10px;
  border-radius: 100px;
}

/* ========================================
   Hero Quote
   ======================================== */
.hero-quote {
  text-align: center;
  padding: 64px 0 0;
}

.hero-quote p {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  font-style: italic;
  position: relative;
  display: inline-block;
  letter-spacing: -0.2px;
}

.hero-quote p::before {
  content: "\201C";
  font-size: 56px;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -28px;
  font-style: normal;
  font-weight: 400;
}

/* ========================================
   Advantages (Core Strengths)
   ======================================== */
.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.advantage-card {
  padding: 32px 24px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #6366f1);
  opacity: 0;
  transition: opacity var(--transition);
}

.advantage-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.advantage-card:hover::after {
  opacity: 1;
}

.advantage-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.advantage-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.advantage-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ========================================
   Dual Platform
   ======================================== */
.dual-platform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.platform-block {
  padding: 32px 28px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: all var(--transition);
}

.platform-block:hover {
  box-shadow: var(--shadow-md);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.platform-icon {
  font-size: 24px;
}

.platform-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.platform-list li {
  font-size: 15px;
  padding: 8px 0;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-list li:last-child {
  border-bottom: none;
}

.list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ========================================
   Features Slider
   ======================================== */
.features-slider,
.roles-slider {
  position: relative;
  margin-bottom: 48px;
}

.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track .feature-card,
.slider-track .role-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Roles Slider (legacy, kept for compatibility) */
.roles-slider .slider-btn,
.roles-slider .slider-dots {
  display: none;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-md);
  line-height: 1;
}

.slider-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.slider-prev {
  left: -20px;
}

.slider-next {
  right: -20px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.slider-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

.slider-dot:hover:not(.active) {
  background: var(--color-text-tertiary);
}

/* Roles Grid Desktop */
@media (min-width: 1024px) {
  .roles-slider .slider-track {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .roles-slider .role-card {
    padding: 24px 16px;
  }

  .roles-slider .hero-slide {
    padding: 24px 16px;
  }

  .roles-slider .hero-slide .hero-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .roles-slider .hero-slide .hero-slogan {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .roles-slider .hero-slide .hero-desc {
    font-size: 12px;
  }

  .roles-slider .role-card h3 {
    font-size: 15px;
  }

  .roles-slider .role-card p {
    font-size: 13px;
  }

  .roles-slider .role-tags {
    gap: 6px;
  }

  .roles-slider .role-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* ========================================
   Roles Grid (Overview Page)
   ======================================== */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roles-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .roles-grid .role-card {
    grid-column: span 2;
  }

  /* 3 + 2 centered layout */
  .roles-grid .role-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .roles-grid .role-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Per-card signature accent bar */
.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--role-accent, var(--color-accent)) 0%, rgba(99, 102, 241, 0.25) 70%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 0 36px var(--role-glow, rgba(37, 99, 235, 0.12));
  transform: translateY(-2px);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.feature-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.feature-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--role-accent, var(--color-accent));
  background: var(--role-bg, var(--color-accent-light));
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feature-card ul {
  list-style: none;
}

.feature-card li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}

.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--role-accent, var(--color-accent));
  opacity: 0.5;
}

/* ========================================
   Compare Table
   ======================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
  margin-bottom: 48px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.compare-table thead th {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr {
  transition: background var(--transition);
}

.compare-table tbody tr:hover {
  background: var(--color-accent-light);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

/* Winner column (律小狐) — highlighted */
.compare-table th:last-child {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
}

.compare-table td:last-child {
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.05);
  border-left: 1px solid rgba(37, 99, 235, 0.12);
}

/* Table check/cross marks */
.table-check,
.table-cross {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
}

.table-check {
  background: rgba(37, 99, 235, 0.1);
}

.table-check::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
}

.table-cross {
  background: rgba(110, 110, 115, 0.08);
}

.table-cross::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1 1l6 6M7 1l-6 6' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========================================
   Summary Block
   ======================================== */
.summary-block {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #141428 50%, #1a1a2e 100%);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 24px 60px rgba(20, 20, 40, 0.28);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-block::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.summary-block::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.summary-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.summary-quote {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  letter-spacing: 0.3px;
}

/* ========================================
   Section Headers - Centered Variant
   ======================================== */
.section-header-center {
  text-align: center;
}

.section-header-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Ambient section — soft radial depth for plain sections */
.section-ambient {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(37, 99, 235, 0.045) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
    var(--color-bg);
}

/* Heading text balance (progressive enhancement) */
.section-title,
.hero-title,
.cta-title {
  text-wrap: balance;
}

.summary-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.summary-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}

/* ========================================
   CTA Block
   ======================================== */
.cta-block {
  margin-top: 48px;
}

.cta-inner {
  text-align: center;
  padding: 64px 36px;
  background:
    radial-gradient(ellipse 80% 90% at 15% -10%, rgba(139, 92, 246, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 80% at 95% 110%, rgba(14, 165, 233, 0.4) 0%, transparent 55%),
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(147, 197, 253, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.28);
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 16px;
  color: rgba(219, 234, 254, 0.92);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-btn {
  position: relative;
  z-index: 1;
}

/* Inverted button on the blue CTA block */
.cta-inner .btn-primary {
  background: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}

.cta-inner .btn-primary:hover {
  background: #f0f6ff;
  color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.cta-inner .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* ========================================
   Guide - Steps
   ======================================== */
.guide-block {
  margin-bottom: 56px;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-top: 50px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border-light));
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(37, 99, 235, 0.28);
  animation: step-pulse 3s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 10px rgba(37, 99, 235, 0.08); }
}

.step-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.step-img {
  margin: 20px auto 8px;
  max-width: 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid #1e293b;
  background: var(--color-bg-alt);
  box-shadow:
    0 24px 48px -12px rgba(30, 58, 138, 0.22),
    0 8px 20px -6px rgba(30, 58, 138, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: zoom-in;
  position: relative;
}

.step-img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 32px 64px -12px rgba(30, 58, 138, 0.3),
    0 12px 28px -6px rgba(37, 99, 235, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* 悬停时显示放大提示 */
.step-img::after {
  content: "\1F50D 点击放大";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.step-img:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.step-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Graceful placeholder when a screenshot is missing */
.step-img.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-width: 400px;
  border-radius: var(--radius);
  border: 1px dashed rgba(37, 99, 235, 0.28);
  cursor: default;
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, #f5f8ff 0%, #eef2ff 100%);
  box-shadow: none;
  transform: none;
}

.step-img.img-missing::after {
  content: "📷 产品截图待补充";
  position: static;
  padding: 0;
  background: none;
  backdrop-filter: none;
  opacity: 1;
  transform: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  letter-spacing: 0.5px;
}

/* ========================================
   Guide - 截图灯箱（点击放大）
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 520px);
  max-height: 86vh;
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* ========================================
   Guide - Flow
   ======================================== */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.flow-item {
  padding: 24px 24px 24px 28px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
  transition: all var(--transition);
  position: relative;
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.flow-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 32px rgba(37, 99, 235, 0.1);
}

.flow-item:nth-child(1) { border-left-color: #2563eb; }
.flow-item:nth-child(2) { border-left-color: #6366f1; }
.flow-item:nth-child(3) { border-left-color: #059669; }
.flow-item:nth-child(4) { border-left-color: #d97706; }

.flow-item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.flow-step-num {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: 3px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.flow-item:nth-child(1) .flow-step-num { background: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.flow-item:nth-child(2) .flow-step-num { background: #6366f1; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.flow-item:nth-child(3) .flow-step-num { background: #059669; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
.flow-item:nth-child(4) .flow-step-num { background: #d97706; box-shadow: 0 2px 8px rgba(217,119,6,0.3); }

.flow-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 4px;
  letter-spacing: -0.3px;
}

.flow-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item[open] {
  background: rgba(37, 99, 235, 0.04);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding: 0 24px 20px;
}

/* ========================================
   Page Hero (Features / Guide pages)
   ======================================== */
.page-hero {
  padding: 110px 0 84px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 70% at 78% -5%, rgba(59, 130, 246, 0.24) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 8% 88%, rgba(99, 102, 241, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 96% 78%, rgba(14, 165, 233, 0.13) 0%, transparent 55%),
    linear-gradient(180deg, #0a0f1f 0%, #0b1226 55%, #0d1730 100%);
  position: relative;
  overflow: hidden;
}

/* Luminous dot grid pattern */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(96, 165, 250, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 10%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 10%, transparent 95%);
  pointer-events: none;
}

/* Animated aurora glow */
.page-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.17) 0%, rgba(139, 92, 246, 0.09) 45%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 9s ease-in-out infinite;
}

.page-hero .section-label {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero .section-title {
  font-size: 44px;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #e0eaff 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .section-desc {
  margin: 0 auto;
  max-width: 600px;
  color: rgba(203, 213, 225, 0.82);
  position: relative;
  z-index: 1;
}

/* ========================================
   Guide Page Layout (Sidebar + Content)
   ======================================== */
.guide-page {
  padding-top: 80px;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(37, 99, 235, 0.035) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
}

.guide-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.guide-content {
  order: 1;
  flex: 1;
  min-width: 0;
}

.guide-sidebar {
  order: 2;
  flex: 0 0 200px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.guide-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.guide-nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition);
  border-right: 3px solid transparent;
}

.guide-nav-link:hover {
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.04);
}

.guide-nav-link.active {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.06);
  border-right-color: var(--color-accent);
  font-weight: 600;
}

.guide-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: none;
}

.guide-section.active {
  display: block;
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section .section-header {
  margin-bottom: 32px;
}

.guide-section .section-title {
  font-size: 24px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.footer-brand .logo-icon {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-tagline::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Fade-in Animation
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.fade-in-delay-1 { transition-delay: 0.05s; }
.fade-in-delay-2 { transition-delay: 0.1s; }
.fade-in-delay-3 { transition-delay: 0.15s; }
.fade-in-delay-4 { transition-delay: 0.2s; }

/* ========================================
   Responsive - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .hero-title {
    font-size: 64px;
  }

  .page-hero .section-title {
    font-size: 48px;
  }

  .roles {
    grid-template-columns: 1fr 1fr;
  }

  .advantages {
    grid-template-columns: 1fr 1fr;
  }

  .dual-platform {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
  }
}

/* ========================================
   Responsive - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }

  .hero-page {
    padding: 120px 0 100px;
  }

  .hero-title {
    font-size: 72px;
  }

  .page-hero .section-title {
    font-size: 52px;
  }

  .roles {
    grid-template-columns: repeat(4, 1fr);
  }

  .advantages {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   Mobile Nav - Tabs (< 768px)
   ======================================== */
@media (max-width: 767px) {
  .nav-toggle {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px 0;
    gap: 0;
  }

  .nav-logo {
    align-self: flex-start;
    margin-bottom: 12px;
  }

  .nav-links {
    display: flex;
    position: static;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    padding: 0 0 12px;
    gap: 6px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-links li {
    flex: 1;
  }

  .nav-link {
    display: block;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-bg-alt);
    color: var(--color-text-tertiary);
    transition: all var(--transition);
  }

  .nav-link:hover {
    background: var(--color-border-light);
    color: var(--color-text-secondary);
  }

  .nav-link.active {
    background: var(--color-accent-light);
    color: var(--color-accent);
  }

  /* 深色 Hero 页面：页面顶部导航未变白，标签需半透明浅色才能在深底上看清 */
  body.has-dark-hero .nav:not(.scrolled) .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
  }

  body.has-dark-hero .nav:not(.scrolled) .nav-link.active {
    background: rgba(96, 165, 250, 0.35);
    color: #ffffff;
  }

  body.has-dark-hero .nav:not(.scrolled) .nav-links {
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  .nav-cta {
    display: none;
  }

  .page {
    padding-top: 110px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .hero-page {
    padding: 132px 0 48px;
  }

  .page-hero {
    padding: 132px 0 36px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-desc {
    font-size: 15px;
  }

  .page-hero .section-title {
    font-size: 26px;
  }

  .page-hero .section-desc {
    font-size: 15px;
  }

  .stat-item {
    padding: 0 16px;
  }

  .stat-num {
    font-size: 26px;
  }

  .stat-label {
    font-size: 11px;
  }

  .summary-block {
    padding: 32px 10px;
  }

  .summary-text {
    font-size: 16px;
  }

  .summary-sub {
    font-size: 14px;
    text-align: left;
    padding: 0 20px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 14px;
  }

  .hero-quote {
    padding: 48px 0 0;
  }

  .hero-quote p {
    font-size: 17px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .slider-prev {
    left: -6px;
  }

  .slider-next {
    right: -6px;
  }

  /* Guide page mobile */
  .guide-page {
    padding-top: 80px;
  }

  .guide-layout {
    flex-direction: row;
    gap: 12px;
    padding: 0 16px;
  }

  .guide-content {
    order: 1;
    flex: 1;
    min-width: 0;
  }

  .guide-sidebar {
    order: 2;
    flex: 0 0 auto;
    position: sticky;
    top: 110px;
    z-index: 10;
    background: var(--color-bg);
    max-height: calc(100vh - 120px);
    align-self: flex-start;
  }

  .guide-nav {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }

  .guide-nav-link {
    border-left: none;
    border-right: 3px solid transparent;
    padding: 6px 10px;
    font-size: 12px;
    white-space: normal;
  }

  .guide-nav-link.active {
    border-right-color: var(--color-accent);
    border-bottom-color: transparent;
  }

  .guide-section {
    padding: 32px 0;
  }

  .guide-section .section-title {
    font-size: 20px;
  }

  /* CTA mobile */
  .cta-inner {
    padding: 40px 20px;
  }

  .cta-title {
    font-size: 20px;
  }

  /* Scroll-top mobile */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Hero slide mobile */
  .hero-slide {
    padding: 36px 20px;
  }

  .hero-slide .hero-title {
    font-size: 32px;
  }

  .hero-slide .hero-slogan {
    font-size: 18px;
  }

  .hero-slide .hero-desc {
    font-size: 15px;
  }

  /* Section header slide mobile */
  .section-header-slide {
    padding: 36px 20px;
  }

  .section-header-slide .section-title {
    font-size: 22px;
  }

  .section-header-slide .section-desc {
    font-size: 14px;
  }

  /* Hero tags mobile */
  .hero-tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Role card mobile */
  .role-card {
    padding: 28px 20px;
  }

  .role-card p {
    font-size: 14px;
  }

  /* Feature card mobile */
  .feature-card {
    padding: 24px 20px;
  }

  .feature-card h4 {
    font-size: 16px;
  }

  /* Advantage card mobile */
  .advantage-card {
    padding: 24px 20px;
  }

  .advantage-card h4 {
    font-size: 16px;
  }

  .advantage-icon {
    font-size: 28px;
  }

  /* Flow item mobile */
  .flow-item {
    padding: 20px 16px 20px 24px;
  }

  .flow-item h4 {
    font-size: 15px;
  }

  .flow-item p {
    font-size: 13px;
  }

  /* Steps mobile */
  .step {
    gap: 16px;
  }

  .steps::before {
    left: 14px;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .step-content h4 {
    font-size: 16px;
  }

  .step-content p {
    font-size: 14px;
  }

  /* Compare table mobile */
  .table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  /* FAQ mobile */
  .faq-item summary {
    padding: 16px 20px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 0 20px 16px;
    font-size: 13px;
  }

  /* Footer mobile */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
