/* ==========================================================================
   瑶瑶领先 (yyssr.click) - 赛博科技视觉与响应式样式系统 (V4 Hero重构版)
   ========================================================================== */

:root {
  --bg-dark: #030712;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border-glow: rgba(139, 92, 246, 0.35);
  --border-glow-hover: rgba(59, 130, 246, 0.75);
  
  --primary-purple: #a855f7;
  --primary-blue: #3b82f6;
  --primary-cyan: #06b6d4;
  --primary-pink: #ec4899;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* 宇宙星空背景 Canvas */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* 鼠标光彩尾翼 Canvas */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

/* 蓝紫渐变文字通用类 */
.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 科技感玻璃拟态卡片 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.25);
}

/* 顶栏 Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8));
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
  transform: rotate(15deg) scale(1.1);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-recommend {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #38bdf8;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-recommend:hover {
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  transform: scale(1.05);
}

.btn-register {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  transition: var(--transition);
}

.btn-register:hover {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
  transform: scale(1.05);
}

/* 主内容容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-title-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 图2的字放大 (Font size enlarged to 4.2rem for impact) */
.hero-h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

/* 把图1 (双统计数据栏) 挪到 H1 标题正下方的专属组件 */
.hero-stats-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.4);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  margin-top: 0.25rem;
}

.hero-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
}

.hero-stat-item strong {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  color: rgba(255, 255, 255, 0.25);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-desc {
  max-width: 780px;
  margin: 1rem auto 0 auto;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* 文章区 Spotlight 交互卡片 */
.section-articles {
  padding: 5rem 0;
}

.section-header-box {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

.cyber-articles-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.spotlight-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.4);
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.spotlight-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.spotlight-excerpt {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.articles-stack-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-item {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.stack-item:hover, .stack-item.active {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.stack-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stack-number {
  font-family: monospace;
  font-weight: 800;
  color: #38bdf8;
  font-size: 0.85rem;
}

.stack-item-title {
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.stack-arrow {
  color: #9ca3af;
  font-size: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.stack-item:hover .stack-arrow {
  color: #a855f7;
  transform: translateX(4px);
}

/* Pricing 切换台 */
.section-pricing {
  padding: 5rem 0;
}

.billing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.billing-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.billing-label.active {
  color: #ffffff;
}

.toggle-switch {
  position: relative;
  width: 64px;
  height: 34px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 9999px;
  cursor: pointer;
  padding: 3px;
  transition: background 0.3s ease;
}

.toggle-dot {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-switch.yearly .toggle-dot {
  transform: translateX(30px);
  background: linear-gradient(135deg, #ec4899, #06b6d4);
}

.discount-tag {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #f472b6;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
}

.matrix-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.matrix-pricing-card {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: var(--transition);
}

.matrix-pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
}

.matrix-pricing-card.featured {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid #a855f7;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
}

.matrix-pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ec4899, #a855f7, #3b82f6);
  z-index: -1;
  opacity: 0.6;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

.plan-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.plan-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.plan-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.plan-amount .currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 2px;
}

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

.plan-specs {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-specs li {
  padding: 0.6rem 0;
  color: #d1d5db;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spec-icon {
  color: #34d399;
  font-weight: bold;
}

/* 用户评价与测速仪 */
.section-reviews {
  padding: 5rem 0;
}

.h4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.speedtest-widget {
  padding: 2rem;
}

.speedtest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.speedtest-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speedtest-node-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.5);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.node-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.node-metrics {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.node-ping {
  font-size: 0.875rem;
  font-weight: 700;
  color: #34d399;
  font-family: monospace;
}

.node-speed {
  font-size: 0.875rem;
  color: #38bdf8;
  font-family: monospace;
}

.reviews-widget {
  padding: 2rem;
  position: relative;
}

.review-slider-box {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-card {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.review-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.review-content {
  font-size: 1.05rem;
  font-style: italic;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* FAQ 动态并排 */
.section-faq {
  padding: 5rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  cursor: pointer;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f3f4f6;
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* 设备保护模块 */
.section-devices {
  padding: 5rem 0;
  text-align: center;
}

.devices-wrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.device-card {
  padding: 1.75rem;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.device-icon {
  font-size: 2.5rem;
  color: #38bdf8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.device-name {
  font-weight: 700;
  font-size: 1rem;
}

/* 页脚 Footer */
.site-footer {
  background: rgba(3, 7, 18, 0.95);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.pbn-links-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  font-size: 0.85rem;
}

.pbn-label {
  color: #6b7280;
  font-weight: 500;
}

.pbn-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.pbn-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.copyright {
  color: #6b7280;
  font-size: 0.825rem;
}

/* 响应式适配 Responsive */
@media (max-width: 1100px) {
  .matrix-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cyber-articles-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .h4-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .hero-h1 {
    font-size: 2.5rem;
  }
  .hero-section {
    padding-top: 7rem;
  }
  .hero-stats-badge {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    font-size: 0.85rem;
  }
  .hero-stat-divider {
    display: none;
  }
  .matrix-pricing-grid {
    grid-template-columns: 1fr;
  }
  .devices-wrapper {
    gap: 1rem;
  }
  .device-card {
    width: 140px;
    padding: 1.25rem;
  }
  .pbn-links-area {
    flex-wrap: wrap;
    border-radius: 12px;
    gap: 0.75rem;
  }
}
