:root {
  --brand-primary: #1e3a8a;
  --brand-secondary: #3b82f6;
}

body.home-body {
  background: #f0f2f5;
  font-family: 'Microsoft YaHei UI', 'Segoe UI', sans-serif;
  min-height: 100vh;
}

.navbar-brand-custom {
  font-weight: 700;
  color: #fff !important;
  font-size: 1.1rem;
  text-decoration: none;
}

.navbar-custom {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.page-wrapper {
  min-height: calc(100vh - 56px - 48px);
  padding: 1.5rem 0;
}

.footer-custom {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  padding: 14px 0;
  text-align: center;
}

.home-body .card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.home-body .btn-primary {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

.home-body .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 4.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.pricing-card-promo {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.pricing-card-promo:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.pricing-card-promo.featured {
  border: 2px solid #3b82f6;
}

.badge-promo {
  position: absolute;
  top: 15px;
  right: -30px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(45deg);
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.feature-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: inline-block;
}

.advantage-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
  transition: transform 0.2s;
}

.advantage-card:hover {
  transform: translateY(-3px);
}

.software-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.software-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
}

.original-price-strike {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.95rem;
}

.price-text {
  font-size: 2rem;
  font-weight: 800;
  color: #1e3a8a;
}

.text-slate-800 { color: #1e293b; }

.download-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 12px;
  color: white;
  height: 100%;
}

@media (min-width: 1200px) {
  .col-custom-5 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
  }
}

.auth-card-wrap {
  max-width: 420px;
  margin: 40px auto;
}
.auth-card-wrap.auth-card-wide {
  max-width: 520px;
}
.auth-header {
  text-align: center;
  padding: 8px 0 16px;
}
.auth-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0;
}
.auth-header p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 6px 0 0;
}
.auth-footer {
  text-align: center;
  padding: 16px 0 0;
  font-size: 0.9rem;
}
.verify-status {
  margin-top: 8px;
  font-size: 13px;
  min-height: 20px;
}

.home-plans-wrap .software-header { font-size: 1rem; margin-bottom: 1rem; }
.home-plans-wrap .pricing-card-promo { margin-bottom: 0; }

.pay-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-pay {
  width: 100%;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-alipay { background: #1677ff; }
.btn-alipay:hover { background: #0958d9; }
.btn-wxpay { background: #07c160; }
.btn-wxpay:hover { background: #059a4d; }
.pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,.25);
  font-size: 12px;
  font-weight: 700;
}
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pay-modal.is-open { display: flex; }
.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}
.pay-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.pay-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}
.pay-modal-close:hover { color: #374151; }
.pay-modal-title { margin: 0 0 6px; font-size: 18px; }
.pay-modal-sub { margin: 0 0 18px; font-size: 14px; color: #64748b; }
body.pay-modal-open { overflow: hidden; }
