:root {
  --bg-deep: #000;
  --bg-mid: #141c2e;
  --bg-card: rgba(15, 23, 42, 0.55);
  --border: rgba(212, 175, 88, 0.28);
  --border-soft: rgba(212, 175, 88, 0.14);
  --gold: #f6d889;
  --gold-dim: #d4af58;
  --text: #eef2f8;
  --text-muted: #9aa8c2;
  --text-soft: #b8c4d8;
  --link: #7eb8ff;
  --ok: #3ecf7a;
  --err: #ff8f8f;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --nav-h: 60px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(2, 6, 23, 0.45);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}

.nav-pill {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 88, 0.15);
  color: var(--gold);
  font-size: 13px;
}

/* 主容器 */
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 20px 40px;
}

/* 通用面板 */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.panel-narrow {
  max-width: 440px;
  margin: 0 auto;
}

.panel-wide {
  max-width: 760px;
  margin: 0 auto;
}

.panel-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.panel-desc {
  margin: 0 0 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* 表单 */
.form-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(8, 12, 22, 0.9);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--gold-dim);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.form-check input { width: auto; margin: 0; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #d4af58, #a67c2d);
  color: #1a1208;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.92; text-decoration: none; }

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 16px;
}

.btn-ghost {
  background: rgba(70, 86, 112, 0.85);
  color: #eef3ff;
}

.btn-alipay {
  background: linear-gradient(180deg, #4aa3ff, #1677ff);
  color: #fff;
}

.btn-wxpay {
  background: linear-gradient(180deg, #3ddc84, #07c160);
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-row .btn { flex: 1; }

/* 提示 */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-ok {
  background: rgba(31, 77, 46, 0.75);
  border: 1px solid rgba(62, 207, 122, 0.4);
  color: #c8f5d8;
}

.alert-err {
  background: rgba(77, 31, 31, 0.75);
  border: 1px solid rgba(255, 143, 143, 0.35);
  color: #ffd0d0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.form-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

/* 首页 */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

.hero-intro h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}

.hero-intro .lead {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 15px;
}

.hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-features li {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.5);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 13px;
}

.hero-features li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(31, 77, 46, 0.45);
  color: #b8f5c8;
  border: 1px solid rgba(62, 207, 122, 0.25);
}

.auth-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--gold);
}

.auth-panel .hint {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.user-summary {
  margin: 16px 0;
  padding: 16px;
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid var(--border-soft);
}

.user-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.user-summary-row:last-child { border-bottom: 0; }

.user-summary-row span { color: var(--text-muted); }
.user-summary-row strong { color: var(--gold); }

/* 套餐区 */
.section {
  margin-bottom: 24px;
}

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

.section-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(10, 14, 24, 0.7);
  transition: border-color 0.15s, transform 0.15s;
}

.pricing-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.pricing-head {
  padding: 20px 20px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.pricing-head h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
}

.pricing-duration {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  color: #ffdf8a;
  line-height: 1.2;
  margin-bottom: 8px;
}

.pricing-price small {
  font-size: 16px;
  font-weight: 400;
  margin-right: 2px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 12px;
}

.pricing-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-actions {
  width: 100%;
  margin-top: auto;
}

.pay-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pay-btns .btn {
  padding: 10px 6px;
  font-size: 13px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* 购买流程 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-item {
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--radius);
  background: rgba(8, 12, 22, 0.45);
  border: 1px solid var(--border-soft);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 88, 0.2);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.step-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text);
}

.step-item p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* 用户中心 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.stat-card {
  padding: 16px;
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid var(--border-soft);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-ok { background: rgba(31, 77, 46, 0.8); color: #b8f5c8; }
.badge-err { background: rgba(77, 31, 31, 0.8); color: #ffb4b4; }

/* 支付页 */
.pay-panel { text-align: center; }

.pay-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--link);
}

.pay-qr-box {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin: 16px 0;
}

.pay-qr-box img { display: block; }

.pay-status {
  color: var(--text-muted);
  font-size: 14px;
}

.pay-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.pay-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(31, 77, 46, 0.9);
  color: #b8f5c8;
  font-size: 28px;
  line-height: 56px;
}

.site-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* 软件下载 */
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(8, 12, 22, 0.5);
  border: 1px solid var(--border-soft);
}

.download-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(212, 175, 88, 0.15);
  color: var(--gold);
  font-size: 26px;
}

.download-info {
  flex: 1;
  min-width: 0;
}

.download-info h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--gold);
}

.download-version {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
}

.download-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.download-btn {
  flex-shrink: 0;
  min-width: 120px;
  padding: 12px 24px;
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { padding: 0 14px; }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
  .site-nav .nav-hide-sm { display: none; }
  .panel { padding: 20px 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .download-card {
    flex-direction: column;
    text-align: center;
  }
  .download-btn { width: 100%; }
}
