:root {
  --bg-deep: #070b14;
  --bg-card: rgba(15, 23, 42, 0.72);
  --border: rgba(212, 175, 88, 0.28);
  --gold: #f6d889;
  --text: #eef2f8;
  --text-muted: #9aa8c2;
  --link: #7eb8ff;
  --ok: #3ecf7a;
  --err: #ff8f8f;
  --radius: 12px;
  --container: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(212, 175, 88, 0.12), transparent 35%),
    linear-gradient(180deg, #070b14 0%, #101827 100%);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.site-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a,
.nav-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-pill { color: var(--gold); }

.site-main { padding: 28px 24px 48px; }

.site-main > section + section {
  margin-top: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
}

.hero-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-tagline {
  margin: 0 0 16px;
  font-size: 15px;
}

.hero-highlights {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-check {
  color: var(--ok);
  font-weight: 700;
  line-height: 1.6;
  flex-shrink: 0;
}

.hero-copy .btn-row {
  margin-top: 4px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.panel-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--gold);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.btn-block { width: 100%; margin-top: 16px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-ok { background: rgba(62, 207, 122, 0.12); border: 1px solid rgba(62, 207, 122, 0.35); }
.alert-err { background: rgba(255, 143, 143, 0.12); border: 1px solid rgba(255, 143, 143, 0.35); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-value { font-size: 18px; font-weight: 600; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-left: 6px;
}

.badge-ok { background: rgba(62, 207, 122, 0.15); color: var(--ok); }
.badge-err { background: rgba(255, 143, 143, 0.15); color: var(--err); }

.ip-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.form-footer {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
}

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--text-muted);
  font-size: 13px;
}

.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 900px) {
  .download-grid { grid-template-columns: 1fr; }
}

.download-version {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(246, 216, 137, 0.12);
  color: var(--gold);
  font-size: 12px;
}

.download-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.download-meta .hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 216, 137, 0.18);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  width: 100%;
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  width: 100%;
}

.pricing-price span {
  font-size: 16px;
  margin-right: 2px;
}

.pricing-days {
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
}

.pricing-desc {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  width: 100%;
}

.pricing-card .btn,
.pricing-card .js-buy-btn {
  width: 100%;
  margin-top: auto;
}

.pay-panel { max-width: 520px; }

.pay-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-summary .stat-label {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
}

.pay-amount {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

.pay-qr-wrap {
  text-align: center;
  margin: 20px 0;
}

.pay-qr-wrap img {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.pay-status {
  margin-top: 12px;
  color: var(--text-muted);
}

.pay-status-ok {
  color: var(--ok);
}

body.pay-modal-open {
  overflow: hidden;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pay-modal[hidden] {
  display: none !important;
}

.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(6px);
}

.pay-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pay-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pay-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.pay-modal-title {
  margin: 0 0 4px;
  padding-right: 28px;
  font-size: 20px;
}

.pay-modal-desc,
.pay-modal-tip {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pay-modal-tip {
  margin: 6px 0 0;
  text-align: center;
}

.pay-modal-error {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 143, 143, 0.12);
  border: 1px solid rgba(255, 143, 143, 0.35);
  color: var(--err);
  font-size: 12px;
}

.pay-summary-modal {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 10px;
  padding: 16px 18px;
}

.pay-summary-modal .pay-summary-order-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-summary-modal .stat-label {
  min-width: auto;
  margin-right: 0;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

.pay-summary-modal .pay-summary-value,
.pay-summary-modal .pay-summary-package {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.pay-summary-modal .pay-amount {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.pay-summary-modal .pay-summary-order {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  word-break: break-all;
}

.pay-modal-dialog .pay-qr-wrap {
  margin: 0 0 6px;
}

.pay-qr-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.pay-modal-dialog .pay-qr-wrap img {
  display: block;
  width: 280px;
  height: 280px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.pay-modal-dialog .pay-status {
  margin-top: 8px;
  font-size: 13px;
}

.pay-modal-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 14px;
}

.pay-modal-loading[hidden] {
  display: none !important;
}

.pay-modal-pick {
  margin-top: 4px;
}

.pay-type-list {
  display: grid;
  gap: 10px;
}

.pay-type-btn {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(246, 216, 137, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pay-type-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(126, 184, 255, 0.45);
}

.pay-type-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
