/* ==========================================================================
   Web3加速 (web3-jiasu.ink) - 量子纠缠与超距作用 · 云服务落地页样式表
   配色：#020617 深空黑 | #3B82F6 纠缠蓝 | #EC4899 纠缠粉
   动效：纠缠连线 SVG + 大型光晕呼吸 + 2粒子纠缠超距作用动画 + 反向旋转虚线轨道
   ========================================================================== */

:root {
  /* 配色规范 */
  --bg-primary: #020617; /* 深空黑 */
  --bg-secondary: #080e22;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.45);
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #8fa0b5; /* WCAG AA 4.5:1+ 达标对比度 */
  
  --accent-blue: #3B82F6; /* 纠缠蓝 */
  --accent-pink: #EC4899; /* 纠缠粉 */
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  
  /* 量子渐变与辉光 */
  --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #EC4899 100%);
  --gradient-btn: linear-gradient(135deg, #3B82F6 0%, #EC4899 100%);
  --gradient-btn-hover: linear-gradient(135deg, #60A5FA 0%, #F472B6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --btn-glow: 0 0 30px rgba(59, 130, 246, 0.6);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-btn: 12px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-quantum: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

section, article, [id] {
  scroll-margin-top: 85px;
}

/* 无障碍键盘访问与焦点样式 */
.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  background: var(--accent-blue);
  color: #ffffff;
  padding: 10px 18px;
  z-index: 99999;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.skip-link:focus, .skip-link:focus-visible {
  top: 16px;
  outline: 2px solid #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: transparent !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img, svg {
  vertical-align: middle;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   背景动效：2 个大型蓝/粉光晕呼吸缩放 + 纠缠连线 SVG 流动
   置于 z-index: 0，确保永不被 body 底色遮挡，全屏可见
   ========================================================================== */

.quantum-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #020617;
}

/* 量子矩阵网格层 */
.quantum-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
  pointer-events: none;
}

.quantum-blur-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.orb-blue {
  width: 600px;
  height: 600px;
  top: -50px;
  left: 12%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(59, 130, 246, 0) 75%);
  filter: blur(80px);
  animation: orbBreathBlue 8s ease-in-out infinite alternate;
}

.orb-pink {
  width: 650px;
  height: 650px;
  top: 20%;
  right: 8%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38) 0%, rgba(236, 72, 153, 0.12) 50%, rgba(236, 72, 153, 0) 75%);
  filter: blur(85px);
  animation: orbBreathPink 10s ease-in-out infinite alternate;
}

@keyframes orbBreathBlue {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.25) translate(50px, 35px);
    opacity: 0.85;
  }
}

@keyframes orbBreathPink {
  0% {
    transform: scale(1.25) translate(0, 0);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.85) translate(-50px, -35px);
    opacity: 0.45;
  }
}

.quantum-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.q-dash-line {
  animation: dashFlowAnim 22s linear infinite;
}

.q-dash-line.line-flow-2 {
  animation-duration: 28s;
  animation-direction: reverse;
}

.q-dash-line.line-flow-3 {
  animation-duration: 18s;
}

.q-dash-line.line-flow-4 {
  animation-duration: 25s;
  animation-direction: reverse;
}

@keyframes dashFlowAnim {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 1000;
  }
}

.q-node-pulse {
  animation: nodeGlowPulse 2.5s ease-in-out infinite alternate;
}

.q-node-pulse.pulse-delay-1 {
  animation-delay: 0.8s;
}

.q-node-pulse.pulse-delay-2 {
  animation-delay: 1.6s;
}

@keyframes nodeGlowPulse {
  0% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* 保证页面前台内容层级安全，在背景之上正常交互 */
.header,
.hero,
.section,
.footer,
.page-container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   导航栏
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-pink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   CTA 按钮规范：蓝到粉渐变，圆角 12px，带 30px 蓝色辉光
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-btn); /* 12px */
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  border-radius: var(--radius-btn); /* 12px */
  box-shadow: var(--btn-glow); /* 30px 蓝色辉光 */
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 20px rgba(236, 72, 153, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-btn);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.btn-large {
  padding: 15px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   主视觉区 (Hero) & 量子纠缠超距作用大标题布局
   左侧：H1「web3加速」使用 Space Grotesk，蓝到粉渐变
   右侧动画：2个纠缠粒子3秒周期靠近远离 + 缩放伸缩连线 + 2层反向旋转虚线轨道
   ========================================================================== */

.hero {
  padding: 70px 0 60px;
  position: relative;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.tag-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

/* 量子大标题双栏容器 */
.hero-quantum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.hero-quantum-left {
  flex: 1;
  text-align: left;
}

.hero-title-quantum {
  font-family: var(--font-quantum);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.hero-title-quantum .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(59, 130, 246, 0.4);
}

.hero-quantum-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 660px;
}

/* 右侧：量子纠缠态舞台 */
.quantum-entanglement-stage {
  width: 320px;
  height: 240px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 2 层虚线圆轨道反向旋转 */
.quantum-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-layer-1 {
  width: 220px;
  height: 220px;
  border: 1.5px dashed rgba(59, 130, 246, 0.4);
  animation: orbitRotateClockwise 16s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.orbit-layer-2 {
  width: 150px;
  height: 150px;
  border: 1.5px dashed rgba(236, 72, 153, 0.4);
  animation: orbitRotateCounter 11s linear infinite;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.1);
}

@keyframes orbitRotateClockwise {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitRotateCounter {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* 2 粒子之间的蓝粉渐变连线（模拟超距作用，随粒子伸缩） */
.entangled-link-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 2.5px;
  background: linear-gradient(90deg, #3B82F6 0%, #EC4899 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7), 0 0 12px rgba(236, 72, 153, 0.7);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: spookyActionAtDistance 3s ease-in-out infinite;
}

@keyframes spookyActionAtDistance {
  0% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, -50%) scaleX(0.35);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 0.85;
  }
}

/* 2 个纠缠粒子（蓝/粉径向渐变球体，左右对称分布，3秒周期靠近远离） */
.entangled-particle {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  top: calc(50% - 14px);
  left: calc(50% - 14px);
  will-change: transform;
}

.particle-quantum-blue {
  background: radial-gradient(circle at 35% 35%, #93c5fd 0%, #3B82F6 55%, #1d4ed8 100%);
  box-shadow: 0 0 16px #3B82F6, 0 0 32px rgba(59, 130, 246, 0.8);
  animation: entangleMoveBlue 3s ease-in-out infinite;
}

.particle-quantum-pink {
  background: radial-gradient(circle at 35% 35%, #fbcfe8 0%, #EC4899 55%, #be185d 100%);
  box-shadow: 0 0 16px #EC4899, 0 0 32px rgba(236, 72, 153, 0.8);
  animation: entangleMovePink 3s ease-in-out infinite;
}

@keyframes entangleMoveBlue {
  0% {
    transform: translateX(-80px);
  }
  50% {
    transform: translateX(-26px);
  }
  100% {
    transform: translateX(-80px);
  }
}

@keyframes entangleMovePink {
  0% {
    transform: translateX(80px);
  }
  50% {
    transform: translateX(26px);
  }
  100% {
    transform: translateX(80px);
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 50px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   通用区块标题
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--accent-pink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   核心优势卡片 (3个图文卡片)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

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

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-points {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feature-points li svg {
  color: var(--accent-pink);
  flex-shrink: 0;
}

/* ==========================================================================
   流媒体与 AI 支持图卡
   ========================================================================== */

.support-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.support-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.badge-ai {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-media {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.support-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.app-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-main);
  transition: all 0.2s;
}

.app-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

.app-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ==========================================================================
   套餐价格对比表
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.95) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 2px solid var(--accent-pink);
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.25);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 14px rgba(236, 72, 153, 0.6);
}

.pricing-header {
  margin-bottom: 24px;
  text-align: center;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features li svg {
  color: var(--accent-blue);
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.plan-features li.disabled svg {
  color: var(--text-muted);
}

/* ==========================================================================
   用户评价
   ========================================================================== */

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: var(--accent-orange);
  margin-bottom: 12px;
  display: flex;
  gap: 3px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-pink);
}

.user-info .user-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.user-info .user-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ 常见问题解答 (默认展开)
   ========================================================================== */

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

details.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.5);
  background: var(--bg-card-hover);
}

summary.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

summary.faq-question .faq-arrow {
  transition: transform 0.25s ease;
  color: var(--accent-pink);
}

details.faq-item[open] summary.faq-question .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

/* ==========================================================================
   页脚 (只保留四个指定标题，新窗口打开)
   ========================================================================== */

.footer {
  margin-top: auto;
  background: #01040f;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 35px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--accent-pink);
}

.footer-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: var(--border-color);
  margin: 0 auto 25px;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ==========================================================================
   独立内页模版样式 (about, terms, privacy, sitemap, knowledge)
   ========================================================================== */

.page-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.page-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent-pink);
  border-radius: 2px;
}

.content-section p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.content-section ul, .content-section ol {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 14px;
}

.content-section li {
  margin-bottom: 8px;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.back-home-link:hover {
  color: var(--accent-pink);
  text-decoration: underline;
}

/* ==========================================================================
   SEO 知识专栏与长文专用样式
   ========================================================================== */

.seo-hub-intro {
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.article-toc-box {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.toc-item a:hover {
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
  transform: translateX(3px);
}

.seo-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.seo-article:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.article-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.article-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-count {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-time {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.article-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 12px;
}

.article-lead {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-pink);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h3::before {
  content: "§";
  color: var(--accent-blue);
  font-weight: bold;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-body li {
  margin-bottom: 8px;
}

.seo-inlink {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.seo-inlink:hover {
  color: var(--accent-pink);
  text-decoration-thickness: 2px;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-btn);
  padding: 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-cta-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.article-cta-text strong {
  color: var(--accent-pink);
}

/* ==========================================================================
   响应式媒体查询 (@media) - 确保手机端单栏优雅自适应、手指点击友好
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pricing-card.featured {
    transform: none;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* 移动端精简模式 */
  }

  .hero-quantum-header {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-quantum-left {
    text-align: center;
  }

  .hero-title-quantum {
    font-size: 2.1rem;
    line-height: 1.3;
  }

  .hero-quantum-sub {
    font-size: 1.02rem;
    margin: 0 auto;
  }

  .quantum-entanglement-stage {
    width: 260px;
    height: 200px;
  }

  .orbit-layer-1 {
    width: 180px;
    height: 180px;
  }

  .orbit-layer-2 {
    width: 120px;
    height: 120px;
  }

  .entangled-link-beam {
    width: 130px;
  }

  @keyframes entangleMoveBlue {
    0% { transform: translateX(-60px); }
    50% { transform: translateX(-20px); }
    100% { transform: translateX(-60px); }
  }

  @keyframes entangleMovePink {
    0% { transform: translateX(60px); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(60px); }
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 18px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .page-card {
    padding: 26px 20px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .btn {
    min-height: 46px; /* 手指友好点击尺寸 */
  }

  .article-cta-box {
    flex-direction: column;
    text-align: center;
  }

  .article-cta-box .btn {
    width: 100%;
  }
}

/* 动效减弱偏好支持 (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
