/* ========== 基础 ========== */
:root {
  --bg: #0b0f14;
  --bg-soft: #111823;
  --surface: #151d2a;
  --surface-2: #1a2434;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2f7;
  --text-dim: #9aa8bb;
  --text-mute: #6b7a8f;
  --primary: #07c160;
  --primary-strong: #05a352;
  --primary-soft: rgba(7, 193, 96, 0.14);
  --gradient: linear-gradient(135deg, #07c160 0%, #2ee6a1 100%);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ========== 导航 ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 15, 20, 0.9); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand-accent { color: var(--primary); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color .25s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--gradient);
  color: #04170d;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(7, 193, 96, 0.5); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 16px 42px; font-size: 17px; }
.btn-block { width: 100%; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 170px 0 110px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(7, 193, 96, 0.13), transparent 60%),
    radial-gradient(700px 420px at 85% 30%, rgba(46, 126, 230, 0.12), transparent 60%),
    linear-gradient(180deg, #0d131c 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.1);
  border: 1px solid rgba(7, 193, 96, 0.3);
  color: #58e6a3;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.5); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(7, 193, 96, 0); }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 640px;
  margin: 24px auto 40px;
  font-size: 18px;
  color: var(--text-dim);
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 42px;
  font-size: 14px;
  color: var(--text-mute);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== 区块 ========== */
.section { padding: 100px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 30%, var(--bg-soft) 70%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.section-desc { margin-top: 12px; color: var(--text-dim); font-size: 16px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ========== 卡片 ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 193, 96, 0.35);
  background: var(--surface-2);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-green  { background: rgba(7, 193, 96, 0.14); color: #34d97f; }
.icon-blue   { background: rgba(46, 126, 230, 0.14); color: #5aa2f0; }
.icon-purple { background: rgba(147, 101, 255, 0.14); color: #a585ff; }
.icon-orange { background: rgba(255, 152, 60, 0.14); color: #ffa24d; }
.icon-teal   { background: rgba(30, 195, 190, 0.14); color: #35cfc9; }
.icon-red    { background: rgba(240, 82, 82, 0.14); color: #f26d6d; }

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); }

/* ========== 步骤 ========== */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}
.step {
  flex: 1;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-6px); }

.step-num {
  font-size: 30px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-mute);
}
@media (max-width: 760px) {
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}

/* ========== 价格 ========== */
.price-card { position: relative; text-align: center; padding: 36px 30px; }
.price-card:hover { border-color: rgba(7, 193, 96, 0.4); }

.price-hot {
  border-color: rgba(7, 193, 96, 0.5);
  background: linear-gradient(180deg, rgba(7, 193, 96, 0.09), var(--surface) 55%);
}
.price-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #04170d;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .5px;
}

.price-name { font-size: 16px; font-weight: 600; color: var(--text-dim); margin-bottom: 14px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 6px; }
.price-cur { font-size: 22px; font-weight: 700; color: var(--primary); }
.price-num { font-size: 46px; font-weight: 800; letter-spacing: 1px; }
.price-per { font-size: 15px; color: var(--text-mute); }
.price-save { font-size: 13px; color: var(--primary); margin-bottom: 12px; }

.price-list { text-align: left; margin: 18px 0 24px; display: grid; gap: 10px; }
.price-list li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 26px;
  position: relative;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--primary-soft);
  border-radius: 50%;
}
.price-list li::after {
  content: "";
  position: absolute;
  left: 6.5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 4.5px; height: 8px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
}

/* ========== 下载 ========== */
.section-download { padding: 110px 0; }
.download-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.download-icon {
  width: 84px; height: 84px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: var(--shadow);
}

.download-meta {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-mute);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.changelog {
  margin-top: 40px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.changelog-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.changelog ul { display: grid; gap: 6px; }
.changelog li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.changelog li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========== FAQ ========== */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s ease;
}
.faq-item:hover { border-color: rgba(7, 193, 96, 0.3); }

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-mute);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--primary); }

.faq-item p {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ========== 页脚 ========== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: grid; justify-items: center; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.footer-text { font-size: 13.5px; color: var(--text-mute); }
.footer-note { font-size: 12.5px; color: var(--text-mute); opacity: .8; }

/* ========== 响应式 ========== */
@media (max-width: 760px) {
  .hero { padding: 130px 0 80px; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 28px; }
  .nav-links { display: none; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26303f; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #334152; }

/* 淡入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ========== 导航用户区 ========== */
.nav-auth { display: flex; gap: 10px; align-items: center; }

.user-menu { position: relative; }
.user-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .25s ease;
}
.user-name:hover { border-color: rgba(7, 193, 96, 0.5); }
.user-name::after {
  content: "";
  width: 7px; height: 7px;
  border: solid var(--text-mute);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
}

.user-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 140px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
  z-index: 110;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.user-dropdown a:hover { background: rgba(7, 193, 96, 0.12); color: var(--text); }

/* ========== 模态框 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 12, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: maskIn .25s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 32px 30px;
  position: relative;
  box-shadow: var(--shadow);
  animation: modalIn .28s cubic-bezier(.22, .9, .36, 1);
}
.modal-pay { max-width: 400px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--text-mute); margin-bottom: 26px; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input::placeholder { color: var(--text-mute); }
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.code-row { display: flex; gap: 10px; }
.code-row .form-input { flex: 1; }
.btn-code {
  flex-shrink: 0;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-code:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-code:disabled { opacity: .5; cursor: not-allowed; }

.modal-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
}
.modal-switch a { color: var(--primary); cursor: pointer; font-weight: 600; }
.modal-switch a:hover { text-decoration: underline; }

/* ========== 支付弹窗 ========== */
.pay-order-info {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 22px;
}
.pay-plan { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--primary); }

.pay-tabs { display: flex; gap: 12px; margin-bottom: 22px; }
.pay-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.pay-tab svg { width: 18px; height: 18px; }
.pay-tab:hover { border-color: rgba(7, 193, 96, 0.4); color: var(--text); }
.pay-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 18px auto;
}
.qr-box canvas, .qr-box img {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.pay-order-no {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  margin: 6px 0 18px;
  word-break: break-all;
}

.btn-simulate {
  margin-top: 10px;
  font-size: 13px;
  padding: 10px;
  opacity: .75;
}

/* 支付成功 */
.pay-success-icon {
  width: 84px; height: 84px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn .5s cubic-bezier(.22, 1.4, .36, 1);
}
@keyframes popIn {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== 我的订阅 ========== */
.sub-status { text-align: center; padding: 10px 0; }
.sub-status-icon {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-name { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.sub-row { font-size: 14px; color: var(--text-dim); padding: 4px 0; }
.sub-row b { color: var(--primary); font-size: 17px; }
.sub-empty p { font-size: 16px; color: var(--text-dim); margin-bottom: 6px; }
.sub-hint { font-size: 13.5px; color: var(--text-mute); }
.sub-empty .btn { margin-top: 20px; }

/* ========== Toast 提示 ========== */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #202b3a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .3s ease;
  max-width: 80vw;
  text-align: center;
  pointer-events: none;
}
.toast.error { background: #d64545; }
.toast.success { background: var(--primary-strong); }

/* ========== 响应式补充 ========== */
@media (max-width: 600px) {
  .nav-auth .btn { padding: 8px 12px; font-size: 13px; }
  .modal { padding: 28px 20px 24px; }
}
