/* =========================================================
   SoulAI 全站样式表
   主题：深紫黑底 + 紫罗兰星辉（暗夜浪漫风）
   ========================================================= */

/* ---------- CSS 变量：主题配色 ---------- */
:root {
  /* 紫罗兰主色 */
  --violet: #9662F1;
  --violet-deep: #673AB7;
  --violet-light: #B08AF7;
  --violet-soft: #C4A5F9;
  --violet-glow: #D8B4FE;
  --pink-violet: #E879F9;
  --neon-violet: #9333EA;

  /* 背景层级 */
  --bg-primary: #1A0F2E;
  --bg-deep: #0F0820;
  --bg-card: #241638;
  --bg-card-hover: #2F1F4A;

  /* 文字层级 */
  --text-primary: #F5F3FF;
  --text-secondary: #A89CC4;
  --text-muted: #6F6589;

  /* 描边 / 分割线 */
  --border-soft: rgba(150, 98, 241, 0.12);
  --border-medium: rgba(150, 98, 241, 0.25);
  --border-strong: rgba(150, 98, 241, 0.45);

  /* 投影 */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 32px rgba(150, 98, 241, 0.55);
  --shadow-card: 0 6px 24px rgba(15, 8, 32, 0.55);

  /* 渐变 */
  --gradient-primary: linear-gradient(277deg, #9662F1 8%, #673AB7 96%);
  --gradient-hero: radial-gradient(ellipse at 50% 30%, rgba(150, 98, 241, 0.25) 0%, #1A0F2E 60%, #0F0820 100%);
  --gradient-text: linear-gradient(135deg, #C4A5F9 0%, #E879F9 50%, #9662F1 100%);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* 容器 */
  --container-max: 1200px;
  --container-padding: 24px;

  /* 字体 */
  --font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image: var(--gradient-hero);
  background-attachment: fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--violet-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- 装饰背景：星点 + 光斑 ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.starfield::before {
  top: -150px;
  left: -100px;
}

.starfield::after {
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.18) 0%, transparent 70%);
}

.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: twinkle 4s ease-in-out infinite;
}

.star.purple {
  background: rgba(216, 180, 254, 0.7);
  box-shadow: 0 0 6px rgba(216, 180, 254, 0.8);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ---------- 通用容器 / 区块 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-light);
  background: rgba(150, 98, 241, 0.12);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(150, 98, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(150, 98, 241, 0.12);
  border-color: var(--border-strong);
  color: var(--violet-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn i {
  font-size: 0.95em;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 8, 32, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(15, 8, 32, 0.92);
  box-shadow: var(--shadow-sm);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  min-width: 0;
  z-index: 100;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--text-primary);
  flex-shrink: 0;
  text-decoration: none;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border-medium), 0 0 20px rgba(150, 98, 241, 0.4);
}

.brand-name {
  /* 直接使用纯亮紫色，避免 background-clip:text 在不同浏览器/字体下
     渲染时盒高与字符 ascender 不匹配导致字符上下被裁切的问题。
     品牌名稳定可读优先于渐变效果。 */
  color: var(--violet-light);
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(150, 98, 241, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--text-primary);
  background: rgba(150, 98, 241, 0.1);
}

.nav-menu a i {
  font-size: 13px;
  color: var(--violet-light);
}

.nav-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 语言切换器 */
.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(150, 98, 241, 0.1);
}

.lang-toggle i.fa-globe {
  color: var(--violet-light);
}

.lang-toggle i.fa-chevron-down {
  font-size: 11px;
  transition: transform var(--transition-fast);
}

.lang-switcher.open .lang-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 110;
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-menu a:hover {
  background: rgba(150, 98, 241, 0.12);
  color: var(--text-primary);
}

.lang-menu a.active {
  color: var(--violet-light);
  background: rgba(150, 98, 241, 0.1);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background: rgba(150, 98, 241, 0.1);
}

/* ---------- Hero 区（单栏居中・舞台感重构版） ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  text-align: center;
}

/* Hero 装饰背景：中心光晕 + 旋转光环 */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, 110%);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%,
      rgba(150, 98, 241, 0.45) 0%,
      rgba(232, 121, 249, 0.18) 28%,
      transparent 65%);
  filter: blur(50px);
  animation: hero-glow-pulse 7s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
}

.hero-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(150, 98, 241, 0.14);
  transform: translate(-50%, -50%);
  animation: hero-ring-spin 36s linear infinite;
}

.hero-rings span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-glow);
  box-shadow: 0 0 12px rgba(216, 180, 254, 0.9);
  transform: translateX(-50%);
}

.hero-rings span:nth-child(1) {
  width: 360px;
  height: 360px;
}

.hero-rings span:nth-child(2) {
  width: 560px;
  height: 560px;
  border-color: rgba(232, 121, 249, 0.1);
  animation-duration: 54s;
  animation-direction: reverse;
}

.hero-rings span:nth-child(2)::after {
  background: var(--pink-violet);
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.85);
}

.hero-rings span:nth-child(3) {
  width: 760px;
  height: 760px;
  border-color: rgba(216, 180, 254, 0.07);
  animation-duration: 80s;
}

.hero-rings span:nth-child(3)::after {
  background: var(--violet-light);
  box-shadow: 0 0 14px rgba(176, 138, 247, 0.75);
}

@keyframes hero-ring-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Hero 内容区（单栏居中） */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--violet-light);
  background: rgba(150, 98, 241, 0.12);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow i {
  font-size: 11px;
}

.hero-title {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-actions .btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 28px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta i {
  color: var(--violet-light);
  font-size: 12px;
}

/* Hero 信任徽章带 */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 8px;
  background: rgba(36, 22, 56, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-trust-avatars {
  display: inline-flex;
  align-items: center;
}

.hero-trust-avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg-deep);
  margin-left: -8px;
  flex-shrink: 0;
}

.hero-trust-avatars span:first-child {
  margin-left: 0;
}

.hero-trust-avatars span:nth-child(1) { background: linear-gradient(135deg, #9662F1, #E879F9); }
.hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #673AB7, #9333EA); }
.hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #C4A5F9, #9662F1); }
.hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, #E879F9, #B08AF7); }
.hero-trust-avatars span:nth-child(5) {
  background: rgba(150, 98, 241, 0.18);
  color: var(--violet-light);
  font-size: 12px;
}

.hero-trust-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.hero-trust-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ---------- Features 核心特色 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(150, 98, 241, 0.2), rgba(103, 58, 183, 0.1));
  border: 1px solid var(--border-medium);
  color: var(--violet-light);
  font-size: 22px;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(150, 98, 241, 0.5);
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- Scenes 使用场景 ---------- */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scene-card {
  padding: 28px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(36, 22, 56, 0.6), rgba(15, 8, 32, 0.4));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.scene-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(47, 31, 74, 0.8), rgba(36, 22, 56, 0.6));
}

.scene-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(150, 98, 241, 0.4);
}

.scene-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.scene-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Gallery 角色画廊 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  cursor: pointer;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(150, 98, 241, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.gallery-avatar.g1 { background: linear-gradient(135deg, #9662F1, #E879F9); }
.gallery-avatar.g2 { background: linear-gradient(135deg, #673AB7, #9333EA); }
.gallery-avatar.g3 { background: linear-gradient(135deg, #C4A5F9, #9662F1); }
.gallery-avatar.g4 { background: linear-gradient(135deg, #E879F9, #B08AF7); }
.gallery-avatar.g5 { background: linear-gradient(135deg, #B08AF7, #673AB7); }
.gallery-avatar.g6 { background: linear-gradient(135deg, #D8B4FE, #9333EA); }
.gallery-avatar.g7 { background: linear-gradient(135deg, #9333EA, #E879F9); }
.gallery-avatar.g8 { background: linear-gradient(135deg, #9662F1, #B08AF7); }
.gallery-avatar.g9 { background: linear-gradient(135deg, #673AB7, #D8B4FE); }

.gallery-name {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.gallery-role {
  font-size: 13.5px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.gallery-tag {
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(150, 98, 241, 0.12);
  color: var(--violet-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}

/* ---------- Stats 平台数据 ---------- */
.stats-section {
  background: linear-gradient(180deg, transparent, rgba(150, 98, 241, 0.06), transparent);
}

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

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1.1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Testimonials 用户评价 ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-size: 28px;
  color: var(--violet);
  opacity: 0.6;
  margin-bottom: 8px;
  line-height: 1;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- FAQ 常见问题 ---------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.open {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  width: 100%;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--violet-light);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(150, 98, 241, 0.15);
  color: var(--violet-light);
  font-size: 12px;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient-primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* ---------- CTA 区 ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-card {
  position: relative;
  padding: 72px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(150, 98, 241, 0.18), rgba(232, 121, 249, 0.1));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(150, 98, 241, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-sub {
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(15, 8, 32, 0.6));
  border-top: 1px solid var(--border-soft);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 360px;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(150, 98, 241, 0.1);
  color: var(--violet-light);
  font-size: 15px;
  border: 1px solid var(--border-soft);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--violet-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-legal a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--violet-light);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 90;
}

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

.back-to-top:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(150, 98, 241, 0.7);
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }

  .features-grid,
  .gallery-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
  }

  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-rings span:nth-child(1) { width: 320px; height: 320px; }
  .hero-rings span:nth-child(2) { width: 480px; height: 480px; }
  .hero-rings span:nth-child(3) { width: 640px; height: 640px; }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 18px;
  }

  section {
    padding: 64px 0;
  }

  .nav {
    height: 60px;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
    gap: 8px;
  }

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

  .nav-actions {
    gap: 6px;
  }

  .lang-toggle {
    padding: 7px 12px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(15, 8, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-120%);
    transition: transform var(--transition-base), visibility 0s linear var(--transition-base);
    z-index: 95;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--transition-base), visibility 0s linear 0s;
  }

  .nav-menu a {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

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

  .nav-actions .btn {
    display: none;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero-glow {
    width: min(640px, 130%);
    filter: blur(40px);
  }

  .hero-rings span:nth-child(1) { width: 240px; height: 240px; }
  .hero-rings span:nth-child(2) { width: 360px; height: 360px; }
  .hero-rings span:nth-child(3) { width: 480px; height: 480px; }

  .hero-trust {
    padding: 6px 14px 6px 8px;
    gap: 10px;
  }

  .hero-trust-avatars span {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-left: -7px;
  }

  .hero-trust-text {
    font-size: 12.5px;
    white-space: normal;
  }

  .features-grid,
  .gallery-grid,
  .testimonials-grid,
  .scenes-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .cta-card {
    padding: 56px 24px;
  }

  .section-head {
    margin-bottom: 44px;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }

  /* 极窄屏隐藏语言名称，仅保留地球图标，节省横向空间 */
  .lang-toggle .lang-name {
    display: none;
  }

  .lang-toggle {
    padding: 7px 10px;
    gap: 6px;
  }

  .lang-toggle i.fa-chevron-down {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}

/* ==================================================
   内页通用样式（FAQ / 用户手册 / 法律 / 反馈 等）
================================================== */

/* ---------- 页面顶部标题区 ---------- */
.page-hero {
  position: relative;
  padding: 140px 0 72px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 110%);
  height: 520px;
  background: radial-gradient(closest-side, rgba(150, 98, 241, 0.42), rgba(150, 98, 241, 0) 72%);
  filter: blur(40px);
  z-index: -1;
  animation: hero-glow-pulse 7s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 98, 241, 0.45), transparent);
}

.page-hero .container {
  position: relative;
}

.page-hero .crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-hero .crumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.page-hero .crumbs a:hover {
  color: var(--violet-light);
}

.page-hero .crumbs i {
  font-size: 10px;
  color: var(--text-muted);
}

.page-hero .crumbs .current {
  color: var(--violet-light);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}

.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 8px 16px;
  background: rgba(150, 98, 241, 0.1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-meta i {
  color: var(--violet-light);
}

/* ---------- 内页正文区域 ---------- */
.page-section {
  padding: 60px 0 100px;
}

.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.page-layout-single {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- 目录 (TOC) ---------- */
.toc {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: rgba(26, 15, 46, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toc h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc h3 i {
  color: var(--violet-light);
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.toc a:hover,
.toc a.active {
  color: var(--violet-light);
  background: rgba(150, 98, 241, 0.08);
  border-left-color: var(--violet-light);
}

/* ---------- 内容区（通用 prose） ---------- */
.prose {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.85;
}

.prose article + article {
  margin-top: 56px;
}

.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  scroll-margin-top: 96px;
}

.prose h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.prose h3 {
  font-size: clamp(17px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.prose p {
  margin: 0 0 16px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose ul li,
.prose ol li {
  margin-bottom: 8px;
}

.prose ul li::marker {
  color: var(--violet-light);
}

.prose a {
  color: var(--violet-light);
  text-decoration: underline;
  text-decoration-color: rgba(150, 98, 241, 0.4);
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.prose a:hover {
  color: #fff;
}

.prose blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: rgba(150, 98, 241, 0.08);
  border-left: 3px solid var(--violet-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.prose .callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(150, 98, 241, 0.12), rgba(91, 51, 195, 0.06));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.prose .callout i {
  color: var(--violet-light);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.prose .callout p {
  margin: 0;
  font-size: 14.5px;
}

/* ---------- FAQ 分类 + 列表 ---------- */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.faq-tab {
  padding: 10px 18px;
  background: rgba(26, 15, 46, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.faq-tab:hover,
.faq-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.faq-group {
  margin-bottom: 56px;
}

.faq-group-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--violet-light);
  scroll-margin-top: 96px;
}

/* ---------- 技术支持卡片 ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.support-card {
  padding: 28px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-light);
  box-shadow: var(--shadow-glow);
}

.support-card .ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}

.support-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.support-card .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-light);
  font-size: 13.5px;
  font-weight: 600;
}

.support-card .link:hover {
  color: #fff;
}

/* ---------- 反馈表单 ---------- */
.feedback-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group label .req {
  color: #ff6b9b;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 8, 32, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--violet-light);
  background: rgba(15, 8, 32, 0.85);
  box-shadow: 0 0 0 3px rgba(150, 98, 241, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.form-success {
  display: none;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: rgba(70, 200, 140, 0.12);
  border: 1px solid rgba(70, 200, 140, 0.5);
  border-radius: var(--radius-sm);
  color: #6df0bd;
  font-size: 14px;
}

.form-success.show {
  display: block;
}

/* ---------- 联系信息条 ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.contact-strip .item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(26, 15, 46, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.contact-strip .item i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(150, 98, 241, 0.15);
  color: var(--violet-light);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-strip .item .label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-strip .item .value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* ---------- 内页响应式 ---------- */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .feedback-form {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 110px 0 56px;
  }

  .page-section {
    padding: 40px 0 72px;
  }

  .prose article + article {
    margin-top: 40px;
  }
}
