/* ==========================================
   Solaris / 云梯 - 现代科技风全套 UI 设计系统 
   (Modern Cyber Dark & Glow Aesthetic System)
   ========================================== */

:root {
  --bg-color: #0b0f19;            /* 极深蓝黑沉浸底色 */
  --sidebar-bg: #111827;         /* 侧边栏 Slate-900 */
  --card-bg: #131b2e;            /* 科技卡片 Slate-850 */
  --card-hover-bg: #1a243d;
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-color: #3b82f6;       /* 科技炫蓝 */
  --primary-glow: #60a5fa;
  --accent-orange: #ff6b35;       /* 高亮活力橙 */
  --accent-pink: #ec4899;         /* 霓虹粉紫 */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warn-color: #f59e0b;
  --input-bg: #0b0f19;
}

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

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

/* ==========================================
   1. 统一头部 Header 导航栏 
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  fill: var(--primary-color);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-header-cta {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
  transition: all 0.25s ease;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* ==========================================
   2. Landing Page 落地页 hero 巨幕与内容块
   ========================================== */
.landing-container {
  padding-top: 72px;
}

.hero-section {
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #fff;
}

.text-gradient-pink {
  background: linear-gradient(135deg, #ec4899, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #e05627, #ff6b35);
  color: #fff;
  border: none;
  padding: 13px 34px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 区域通用标题 */
.section-wrapper {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.section-title span {
  color: var(--primary-glow);
}

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

/* ==========================================
   3. Pricing 订阅方案卡片网格 (高亮周订阅)
   ========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 周订阅 - 主推热门 Card */
.pricing-card.popular {
  border: 2px solid #ff6b35;
  box-shadow: 0 0 35px rgba(255, 107, 53, 0.25);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, var(--card-bg) 100%);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 0 45px rgba(255, 107, 53, 0.4);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

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

.price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 28px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-orange);
  line-height: 1;
}

.pricing-card.popular .price-currency,
.pricing-card.popular .price-amount {
  color: #ff6b35;
}

.price-unit {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
}

.btn-plan-select {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.25s ease;
}

.btn-plan-select:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pricing-card.popular .btn-plan-select {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.pricing-card.popular .btn-plan-select:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.55);
}

/* ==========================================
   4. Features 功能特点 4 栏卡片
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.25);
  background: var(--card-hover-bg);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================
   5. FAQ 常见问题手风琴组件
   ========================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-glow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* ==========================================
   6. 统一登录/注册 Modal 模态框
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.auth-card {
  width: 90%;
  max-width: 400px;
  background: #1e293b;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  position: relative;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.tab-header {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.tab-item.active {
  color: var(--primary-glow);
  border-bottom: 2px solid var(--primary-glow);
  font-weight: 600;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: var(--primary-glow);
}

.password-wrapper {
  position: relative;
}

.toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-primary-block {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.btn-primary-block:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

/* ==========================================
   7. 登录后 Dashboard 侧边栏与主区 
   ========================================== */
.layout-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
}

.sidebar-brand {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
  padding: 24px 16px;
  flex: 1;
}

.menu-group-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 12px;
}

.menu-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.menu-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-glow);
  font-weight: 600;
}

.main-content {
  margin-left: 240px;
  flex: 1;
  background: var(--bg-color);
  min-height: 100vh;
}

.top-header {
  height: 72px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 80;
}

.header-breadcrumb {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

.content-body {
  padding: 32px;
}

.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.dash-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.sub-plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-glow);
}

.sub-plan-expire {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 16px;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.golden-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 700;
}

.sub-url-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--primary-glow);
  word-break: break-all;
  border: 1px solid var(--border-color);
}

.qr-wrapper {
  text-align: center;
}

.qr-img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.qr-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 按钮通用组 */
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* 页脚 Footer */
.site-footer {
  background: #080c14;
  border-top: 1px solid var(--border-color);
  padding: 60px 40px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease forwards;
}

.toast.success { border-color: var(--success-color); }
.toast.error { border-color: var(--danger-color); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .footer-content { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
}
