/* ====================================================================
   AI Plus Hub - 现代化高转化 SaaS 样式表
   ==================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-tertiary: #171f33;
  --card-bg: rgba(23, 31, 51, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(59, 130, 246, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.4);
  
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-rose: #f43f5e;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 背景光效微粒子氛围 */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* 顶部公告栏 */
.top-notice-bar {
  background: linear-gradient(90deg, #1e3a8a, #4338ca, #3b82f6);
  color: #fff;
  font-size: 13px;
  padding: 7px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 导航头 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-dim);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: #fff;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

/* 主容器 */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* HERO SECTION */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
}

.trust-pill svg {
  color: #34d399;
}

/* 流程条 Step bar */
.workflow-section {
  margin: 30px 0 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
}

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

.workflow-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--radius-md);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* 套餐矩阵 PRICING */
.section-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
}

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

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

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.highlight {
  border-color: #3b82f6;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.2) 0%, rgba(23, 31, 51, 0.8) 100%);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.card-badge.popular {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

.card-badge.claude {
  background: linear-gradient(90deg, #d97706, #ea580c);
  color: #fff;
}

.card-badge.pro {
  background: linear-gradient(90deg, #0284c7, #2563eb);
  color: #fff;
}

.card-badge.team {
  background: linear-gradient(90deg, #059669, #10b981);
  color: #fff;
}

.card-head {
  margin-bottom: 18px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-dim);
  min-height: 36px;
  line-height: 1.4;
}

.card-pricing-wrap {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 20px;
  font-weight: 700;
  color: #60a5fa;
}

.amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}

.unit {
  font-size: 13px;
  color: var(--text-dim);
}

.price-extra {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.price-extra del {
  color: var(--text-dim);
}

.features-list {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 11px;
  line-height: 1.4;
}

.features-list li svg {
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-buy-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-buy-primary:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  transform: translateY(-1px);
}

.btn-buy-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
}

.btn-buy-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 核心优势对比表格 COMPARISON TABLE */
.comparison-section {
  margin-bottom: 70px;
}

.table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--card-border);
}

.compare-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
}

.compare-table th.highlight-col {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
}

.compare-table td.highlight-col {
  background: rgba(59, 130, 246, 0.04);
  font-weight: 600;
  color: #fff;
}

.badge-tag-good {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34d399;
}

.badge-tag-bad {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f87171;
}

.badge-tag-warn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
}

/* FAQ 常见问题 */
.faq-section {
  margin-bottom: 70px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

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

.faq-question {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-toggle-icon {
  transition: transform 0.25s ease;
  color: var(--text-dim);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: #60a5fa;
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 底部 CTA 卡片 */
.cta-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(67, 56, 202, 0.5));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-xl);
  padding: 44px 30px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 24px;
}

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

/* 页脚 */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  background: rgba(10, 13, 20, 0.95);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ====================================================================
   弹窗组件 (Modals)
   ==================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-head {
  text-align: center;
  margin-bottom: 20px;
}

.modal-head h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-head p {
  font-size: 13px;
  color: var(--text-dim);
}

/* 收银台弹窗内容 */
.checkout-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.detail-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--card-border);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

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

.pay-radio-label {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.pay-radio-label.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

/* 客服弹窗内容 */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
}

.qr-image-frame {
  width: 190px;
  height: 190px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-id-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.copy-badge-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
}

/* 实时成交悬浮弹幕通知 */
.live-toast-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  background: rgba(16, 21, 34, 0.95);
  border: 1px solid var(--card-border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.live-toast-bar.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.toast-info p {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.toast-info span {
  font-size: 11px;
  color: var(--text-dim);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .live-toast-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
