:root {
  --bg: #070c16;
  --panel: rgba(255,255,255,.06);
  --panel-strong: rgba(255,255,255,.1);
  --text: #e8eef8;
  --muted: rgba(232,238,248,.68);
  --line: rgba(255,255,255,.12);
  --cyan: #31d7e7;
  --blue: #5578ff;
  --purple: #a06bff;
  --green: #28c38a;
  --orange: #ff8a4c;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 68%);
  z-index: -3;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  z-index: -2;
}

.glow-1 {
  width: 45vw;
  height: 45vw;
  background: var(--blue);
  top: -12vw;
  left: -8vw;
}

.glow-2 {
  width: 38vw;
  height: 38vw;
  background: var(--cyan);
  right: -10vw;
  bottom: -10vw;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 38px;
}

.hero, .stats article, .app-card, .contact-card, .pay-card {
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}

.hero {
  border-radius: 28px;
  padding: clamp(26px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -190px;
  background: radial-gradient(circle, rgba(85,120,255,.34), transparent 65%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 24px;
  color: #06101c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(49,215,231,.28);
}

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero p {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 148px;
  z-index: 1;
}

.ghost-btn, .solid-btn {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: .2s ease;
}

.ghost-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
}

.solid-btn {
  color: #06101c;
  background: linear-gradient(135deg, #54f2e2, #61a2ff);
  box-shadow: 0 12px 28px rgba(97,162,255,.25);
}

.ghost-btn:hover, .solid-btn:hover { transform: translateY(-2px); }

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats article {
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats strong { font-size: 16px; }
.stats span { color: var(--muted); font-size: 13px; }

.section { margin-top: 42px; }

.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.4px;
}

.section-head p {
  margin-top: 6px;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  min-height: 190px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
  transition: .22s ease;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
}

.app-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 220px;
  height: 220px;
  background: var(--accent, var(--blue));
  opacity: .16;
  filter: blur(55px);
  border-radius: 50%;
}

.app-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.app-body { min-width: 0; }

.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-title {
  font-size: 20px;
  font-weight: 700;
}

.badge {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.app-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.app-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--panel);
}

.app-link {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 13px;
  color: var(--accent, var(--blue));
}

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

.contact-card {
  border-radius: 22px;
  padding: 22px;
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--panel-strong);
  margin-bottom: 14px;
}

.contact-card h3 { font-size: 18px; }
.contact-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 14px;
}

.muted { color: var(--muted); }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 16px;
}

.pay-card {
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 16px;
}

.pay-card img {
  width: 116px;
  height: 116px;
  border-radius: 14px;
  background: white;
  object-fit: contain;
  padding: 6px;
}

.pay-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pay-card strong { font-size: 13px; }
.pay-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.footer .ver {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.75;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--cyan); }

@media (max-width: 720px) {
  .stats, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(680px, calc(100% - 18px)); padding-top: 24px; }
  .hero { flex-direction: column; align-items: flex-start; border-radius: 24px; }
  .hero-actions { width: 100%; flex-direction: row; }
  .hero-actions a,
  .hero-actions button { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-card { grid-template-columns: 92px 1fr; }
  .pay-card img { width: 92px; height: 92px; }
  .footer { flex-direction: column; }
}

/* ===== 配色预览工具（后面可以删掉） ===== */
body[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: rgba(255,255,255,.72);
  --panel-strong: rgba(255,255,255,.86);
  --text: #172033;
  --muted: rgba(23,32,51,.68);
  --line: rgba(23,32,51,.12);
}

body[data-theme="sand"] {
  --bg: #f4efe7;
  --panel: rgba(255,255,255,.72);
  --panel-strong: rgba(255,255,255,.86);
  --text: #2b2118;
  --muted: rgba(43,33,24,.68);
  --line: rgba(43,33,24,.12);
}

body[data-theme="sky"] {
  --bg: #e9f3ff;
  --panel: rgba(255,255,255,.72);
  --panel-strong: rgba(255,255,255,.86);
  --text: #182a3d;
  --muted: rgba(24,42,61,.68);
  --line: rgba(24,42,61,.12);
}

body[data-theme="mint"] {
  --bg: #eefaf2;
  --panel: rgba(255,255,255,.72);
  --panel-strong: rgba(255,255,255,.86);
  --text: #173327;
  --muted: rgba(23,51,39,.68);
  --line: rgba(23,51,39,.12);
}

body[data-theme="lavender"] {
  --bg: #f2f0ff;
  --panel: rgba(255,255,255,.72);
  --panel-strong: rgba(255,255,255,.86);
  --text: #26203b;
  --muted: rgba(38,32,59,.68);
  --line: rgba(38,32,59,.12);
}

body[data-theme="light"] .bg-grid,
body[data-theme="sand"] .bg-grid,
body[data-theme="sky"] .bg-grid,
body[data-theme="mint"] .bg-grid,
body[data-theme="lavender"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}

body[data-theme="light"] .solid-btn,
body[data-theme="sand"] .solid-btn,
body[data-theme="sky"] .solid-btn,
body[data-theme="mint"] .solid-btn,
body[data-theme="lavender"] .solid-btn {
  color: #06101c;
}

body[data-theme="light"] .footer a,
body[data-theme="sand"] .footer a,
body[data-theme="sky"] .footer a,
body[data-theme="mint"] .footer a,
body[data-theme="lavender"] .footer a {
  color: var(--muted);
}

.theme-picker {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.theme-picker button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.theme-picker button:hover { transform: translateY(-1px); }

.theme-picker button.active {
  background: linear-gradient(135deg, #54f2e2, #61a2ff);
  color: #06101c;
  border-color: transparent;
}

.app-card.coming-soon {
  cursor: default;
  opacity: .88;
  border-style: dashed;
}

.app-card.coming-soon:hover {
  transform: none;
  border-color: var(--line);
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
}

.app-card.coming-soon .app-link {
  color: var(--muted);
}

.pay-card .pay-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== 板块标题图标 ===== */
.section-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
  vertical-align: middle;
  margin-right: 10px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 32%, transparent);
}

/* ===== 使用方法弹窗 ===== */
.usage-modal {
  width: min(680px, calc(100% - 32px));
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(20px);
}

.usage-modal::backdrop {
  background: rgba(4,9,18,.62);
  backdrop-filter: blur(4px);
}

.usage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.usage-head h2 {
  font-size: 24px;
  letter-spacing: -.3px;
}

.usage-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.usage-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.usage-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.usage-steps article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.usage-steps h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  flex: 0 0 auto;
  color: #06101c;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #54f2e2, #61a2ff);
}

.usage-steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.usage-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.usage-actions .solid-btn {
  min-width: 150px;
}

@media (max-width: 640px) {
  .usage-steps { grid-template-columns: 1fr; }
  .usage-head h2 { font-size: 22px; }
  .usage-actions .solid-btn { width: 100%; }
}
