/* ============================================================
   pricing.css — 付费计划页专属样式
   依赖：shared.css（全局变量 & 导航/页脚/容器）
   ============================================================ */

/* ─── Hero ───────────────────────────────────────────── */
.pricing-hero {
  text-align: center;
  padding: 64px 24px 48px;
  background:
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%),
    radial-gradient(ellipse 50% 40% at 50% -10%, rgba(99,102,241,0.08) 0%, transparent 60%);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}

.pricing-hero .hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pricing-hero .hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ─── 计费切换 ────────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 20px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}

.toggle-label.active {
  color: #818cf8;
}

.save-badge {
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 7px;
  margin-left: 5px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #374151;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: #6366f1;
}

input:checked + .slider::before {
  transform: translateX(18px);
}

/* ─── 定价网格 ───────────────────────────────────────── */
.plans-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

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

/* ─── 定价卡片 ───────────────────────────────────────── */
.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}

.plan-card:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.3);
}

.plan-card.recommended {
  border-color: #6366f1;
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.18);
  transform: translateY(-6px);
}

.plan-card.recommended:hover {
  transform: translateY(-8px);
}

.recommended-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* 图标 */
.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.plan-icon svg {
  width: 24px;
  height: 24px;
}

.free-icon { background: rgba(148, 163, 184, 0.12); color: var(--text-secondary); }
.personal-icon { background: rgba(99, 102, 241, 0.12); color: var(--accent); }
.family-icon { background: rgba(99, 102, 241, 0.12); color: var(--accent-light); }
.enterprise-icon { background: rgba(245, 158, 11, 0.12); color: var(--warning); }

.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 价格 */
.plan-price-area {
  margin-bottom: 20px;
}

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

.currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.price-period strong {
  color: #818cf8;
}

/* CTA 按钮 */
.cta-btn {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 24px;
}

.free-btn {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.free-btn:hover {
  background: rgba(148, 163, 184, 0.18);
}

.personal-btn {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-light);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
}

.personal-btn:hover {
  background: rgba(99, 102, 241, 0.18);
}

.family-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.family-btn:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.enterprise-btn {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
}

.enterprise-btn:hover {
  background: rgba(245, 158, 11, 0.18);
}

/* 功能列表 */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.feature-item.disabled {
  opacity: 0.4;
}

.feature-item.highlight span:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

.feat-check {
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-x {
  color: #475569;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item em {
  color: #818cf8;
  font-style: normal;
  font-weight: 600;
}

/* ─── 对比表 ─────────────────────────────────────────── */
.compare-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.compare-section h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.compare-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.compare-table th,
.compare-table td {
  padding: 12px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
}

.compare-table th {
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.compare-table th.feature-col,
.compare-table td.feature-col {
  text-align: left;
  color: var(--text-primary);
  font-size: 14px;
}

.compare-table th.highlight-col {
  background: rgba(99, 102, 241, 0.08);
  color: #818cf8;
}

.compare-table td.highlight-col {
  background: rgba(99, 102, 241, 0.04);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .group-row td {
  background: rgba(148, 163, 184, 0.06);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  padding: 8px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table .check {
  color: var(--success);
  font-weight: 700;
  font-size: 15px;
}

.compare-table .cross {
  color: #475569;
  font-size: 14px;
}

.compare-table tr:hover td:not(.group-row td) {
  background: rgba(255, 255, 255, 0.02);
}

/* ─── FAQ ────────────────────────────────────────────── */
.pricing-faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.pricing-faq h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.pricing-faq .faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.pricing-faq .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.pricing-faq .faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pricing-faq .faq-arrow {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s;
  line-height: 1;
}

.pricing-faq .faq-item.open .faq-arrow {
  transform: rotate(90deg);
  color: #818cf8;
}

.pricing-faq .faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  margin-top: -1px;
  padding-top: 14px;
}

.pricing-faq .faq-item.open .faq-a {
  display: block;
}

.pricing-faq .faq-a strong {
  color: var(--text-primary);
}

.pricing-faq .faq-a em {
  color: #818cf8;
  font-style: normal;
}

/* ─── Bottom CTA ──────────────────────────────────────── */
.pricing-bottom-cta {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 64px 24px;
  text-align: center;
}

.pricing-bottom-cta h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.pricing-bottom-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.pricing-bottom-cta .cta-main-btn {
  display: inline-block;
  background: #fff;
  color: #6366f1;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pricing-bottom-cta .cta-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ─── 高级服务：数据删牌 ─────────────────────────────── */
.removal-premium-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
}
.section-label {
  display: inline-block;
  padding: 4px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-focus);
  border-radius: 50px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.removal-premium-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.premium-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.removal-premium-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  text-align: left;
  background: var(--bg-card);
  border: 2px solid #6366f1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}
.removal-premium-left {
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.removal-premium-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 16px;
  width: fit-content;
}
.removal-premium-left h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.removal-premium-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.removal-premium-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.removal-premium-features li {
  font-size: 13px;
  color: var(--text-secondary);
}
.removal-premium-cta {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}
.removal-premium-cta:hover {
  color: var(--accent-hover);
}

.removal-premium-right {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.removal-premium-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.rm-currency { font-size: 20px; font-weight: 600; }
.rm-amount { font-size: 48px; font-weight: 800; line-height: 1; }
.rm-period { font-size: 16px; opacity: 0.8; }
.rm-yearly {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 24px;
}
.rm-subscribe-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #fff;
  color: #6366f1;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rm-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #6366f1;
}
.rm-guarantee {
  font-size: 12px;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .removal-premium-card {
    grid-template-columns: 1fr;
  }
  .removal-premium-features {
    grid-template-columns: 1fr;
  }
}

/* ─── 响应式 ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card.recommended {
    transform: none;
  }

  .plan-card.recommended:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 600px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero h1 {
    font-size: 24px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 10px;
    font-size: 12px;
  }
}

/* ─── 企业本地数据安全方案 ─────────────────────────────── */
.enterprise-security-section {
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.enterprise-security-section .section-label {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.enterprise-security-section h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.enterprise-security-section .premium-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.enterprise-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.enterprise-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.enterprise-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.3);
}

.enterprise-plan-card.ep-featured {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(160deg, rgba(99,102,241,0.06) 0%, var(--bg-card) 50%);
}

.ep-recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.ep-header {
  margin-bottom: 24px;
}

.ep-icon {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 16px;
}

.ep-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ep-tagline {
  font-size: 13px;
  color: var(--text-secondary);
}

.ep-price-area {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ep-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.ep-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.ep-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.ep-price-custom {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.ep-period {
  font-size: 13px;
  color: var(--text-muted);
}

.ep-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ep-features li::before {
  content: none;
}

.ep-cta-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all var(--transition);
  box-sizing: border-box;
}

.ep-cta-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ep-cta-btn.ep-cta-primary {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
}

.ep-cta-btn.ep-cta-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* 亮点行 */
.ep-highlights {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
}

.ep-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ep-highlight-item svg {
  color: #818cf8;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .enterprise-plans-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .ep-highlights {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
