:root {
  --bg: #0b1020;
  --panel: #101935;
  --card: #172347;
  --text: #eaf0ff;
  --muted: #a5b3d9;
  --brand: #4f8cff;
  --brand2: #27c3a7;
  --line: #2a3d73;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 800px at 80% -100px, #1b2b5f 0%, var(--bg) 55%);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}
.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.menu {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.menu a {
  color: var(--muted);
  font-size: 14px;
}
.menu a:hover {
  color: var(--text);
}
.hero {
  padding: 78px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
}
.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.btns {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 11px 18px;
  font-weight: 600;
  display: inline-block;
}
.btn.primary {
  background: linear-gradient(135deg, #3e74f0, #429eff);
  border: none;
}
.btn.ghost:hover {
  border-color: #4c6bc2;
}
.hero-panel {
  background: linear-gradient(150deg, rgba(79, 140, 255, 0.2), rgba(39, 195, 167, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
}
.hero-panel h3 {
  margin: 0 0 10px;
}
.hero-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.section {
  padding: 30px 0;
}
.section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}
.desc {
  color: var(--muted);
  margin: 0 0 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 35, 71, 0.68);
  border-radius: 14px;
  padding: 16px;
}
.card h3, .card h4 {
  margin: 0 0 10px;
}
.card p, .card li {
  color: var(--muted);
  line-height: 1.7;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.step {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 25, 53, 0.78);
  padding: 12px;
}
.step b {
  display: block;
  margin-bottom: 8px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.plan {
  background: rgba(16, 25, 53, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
}
.plan .name {
  font-size: 18px;
  font-weight: 700;
}
.plan .price {
  margin: 8px 0;
  font-weight: 700;
  color: #8fd3ff;
}
.plan .price.hidden {
  display: none;
}
.switch-tip {
  margin-top: 10px;
  color: #ffd29c;
  font-size: 13px;
}
.cta-area {
  margin-top: 12px;
}
.cta-area.hidden {
  display: none;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dl-card {
  background: rgba(23, 35, 71, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}
.meta {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.9;
}
.changelog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}
.changelog-item {
  padding: 12px 14px;
  background: rgba(16, 25, 53, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.changelog-item:last-child {
  border-bottom: 0;
}
.changelog-item h4 {
  margin: 0 0 6px;
}
.changelog-item ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
}
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #b8c8f3;
}
@media (max-width: 980px) {
  .hero-grid, .download-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .cards, .plan-grid, .steps {
    grid-template-columns: 1fr;
  }
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(23, 35, 71, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 28px 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.contact-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
}
.contact-label {
  font-size: 18px;
  font-weight: 700;
}
.contact-hint {
  font-size: 13px;
  color: var(--muted);
}

/* QR Modal */
.qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.qr-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 32px 24px;
  text-align: center;
  max-width: 340px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.qr-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.qr-close:hover {
  color: #333;
}
.qr-img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid #eee;
}
.qr-tip {
  margin: 14px 0 0;
  font-size: 14px;
  color: #666;
}
