/* ==========================================================================
   魔戒机场 - 黑曜流动 · 新拟物暗黑奢华设计系统 (Liquid Metal Obsidian)
   ========================================================================== */

:root {
  --bg-deep: #06070a;
  --bg-surface: #0c0e14;
  --bg-card: rgba(16, 20, 30, 0.65);
  --bg-card-hover: rgba(22, 28, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(168, 85, 247, 0.5);

  --accent-purple: #9333ea;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-glow: rgba(248, 250, 252, 0.95);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-glow: 0 0 50px -10px rgba(124, 58, 237, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* 背景流动光晕与网格基板 */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-ambient::before {
  content: "";
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 65vh;
  background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.18), rgba(147, 51, 234, 0.12) 40%, transparent 75%);
  filter: blur(80px);
}

.bg-ambient::after {
  content: "";
  position: absolute;
  top: 45%;
  right: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  filter: blur(90px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* 通用容器 */
.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   导航栏 (Floating Frosted Glass Capsule)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 20px;
  z-index: 100;
  padding: 0 20px;
}

.nav-capsule {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 9999px;
  background: rgba(14, 18, 28, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-ring {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-ring-inner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: linear-gradient(135deg, #f8fafc, #9333ea, #06b6d4) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-pulse 4s ease-in-out infinite alternate;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
  box-shadow: 0 0 8px var(--accent-purple);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #9333ea, #6366f1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero 首屏 (液态金属魔戒 + 极速折跃主视觉)
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.15);
  animation: float-gentle 4s ease-in-out infinite;
}

.kicker-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 900px;
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #e2e8f0 45%, #a855f7 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-cta .btn-primary {
  padding: 13px 32px;
  font-size: 16px;
}

.hero-cta .btn-secondary {
  padding: 13px 30px;
  font-size: 16px;
}

/* 3D 液态金属魔戒展示台 */
.ring-stage {
  position: relative;
  width: min(720px, 100%);
  height: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ring-telemetry {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ring-telemetry.left {
  left: 20px;
  top: 30%;
}

.ring-telemetry.right {
  right: 20px;
  top: 35%;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
}

.badge-card i {
  font-size: 16px;
}

.badge-card strong {
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Bento Grid 特性矩阵 (Glass Bento Cards)
   ========================================================================== */
.section-heading {
  text-align: center;
  margin-bottom: 54px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-purple);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 90px;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-size: 22px;
  margin-bottom: 22px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.speed-meter {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speed-meter .stat {
  display: flex;
  flex-direction: column;
}

.speed-meter .stat span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.speed-meter .stat strong {
  font-size: 22px;
  font-family: var(--font-mono);
  color: #38bdf8;
}

/* ==========================================================================
   套餐方案 (Pricing Obsidian Glass Cards)
   ========================================================================== */
.pricing-section {
  padding: 40px 0 90px;
}

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

.pricing-card {
  position: relative;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(30, 24, 54, 0.8) 0%, rgba(14, 18, 28, 0.7) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.25);
}

.badge-featured {
  position: absolute;
  top: -13px;
  right: 28px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.5);
}

.card-plan-header {
  margin-bottom: 20px;
}

.card-plan-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.card-plan-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}

.card-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-plan-price small {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-plan-price strong {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-family: var(--font-mono);
}

.card-plan-price span {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

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

.plan-features li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  padding: 13px;
}

/* ==========================================================================
   客户端下载模块 (Downloads Section)
   ========================================================================== */
.downloads-section {
  padding: 50px 0 90px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  text-decoration: none;
  color: var(--text-primary);
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.client-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.2);
}

.client-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.client-card:hover .client-icon svg {
  transform: scale(1.1);
  fill: #38bdf8;
}

.client-card b {
  font-size: 16px;
  margin-bottom: 4px;
}

.client-card small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   页脚与状态栏 (Footer & Status)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  padding: 60px 0 30px;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
  max-width: 360px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 12px;
  font-weight: 500;
  margin-top: 14px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* ==========================================================================
   动画与关键帧
   ========================================================================== */
@keyframes ring-pulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.05) rotate(180deg); opacity: 1; }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* 响应式适配 */
@media (max-width: 992px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .col-8, .col-4, .col-6 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .ring-stage { height: 320px; }
  .ring-telemetry { display: none; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
