: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;
  white-space: nowrap;
  justify-self: start;
}

.navbar-custom {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar-inner-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 36%) 1fr;
  align-items: center;
  column-gap: 12px;
  min-height: 56px;
}

.navbar-auth {
  justify-self: end;
  white-space: nowrap;
}

.header-ann {
  min-width: 0;
  max-width: 100%;
  justify-self: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  overflow: hidden;
}

.header-ann-icon {
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.95;
}

.header-ann-track {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.header-ann-scroll {
  display: flex;
  width: max-content;
  gap: 3rem;
  will-change: transform;
  -webkit-animation: header-ann-marquee var(--ann-duration, 28s) linear infinite;
  animation: header-ann-marquee var(--ann-duration, 28s) linear infinite;
}

.header-ann-text {
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.header-ann:hover .header-ann-scroll {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

@-webkit-keyframes header-ann-marquee {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes header-ann-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .navbar-inner-row {
    grid-template-columns: 1fr auto;
  }
  .header-ann {
    display: none;
  }
}

.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 .btn-portal {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero-section .btn-portal:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  color: #fff;
}

.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%;
}

.home-resource-block {
  padding: 8px 0 4px;
}
.home-resource-head h2 {
  font-size: 1.35rem;
}
.home-dl-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 14px;
  color: #fff;
  padding: 22px 16px 18px;
  box-shadow: 0 8px 20px rgba(245, 87, 108, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(245, 87, 108, .28);
}
.home-dl-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: .95;
}
.home-dl-card h5 {
  font-size: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0;
  color: #fff;
}
.home-dl-btn {
  color: #f5576c !important;
  border-radius: 999px;
}
.home-video-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

@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;
}
.verify-status.is-ok { color: #16a34a; }
.verify-status.is-err { color: #dc2626; }

.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 14px; font-size: 14px; color: #64748b; }
.pay-app-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #475569;
  text-align: left;
}
.pay-app-label select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
body.pay-modal-open { overflow: hidden; }
