:root {
  --bg: #0a0c12;
  --bg-2: #0f121b;
  --panel: #12151f;
  --panel-2: #171b27;
  --border: #242a3a;
  --text: #e6e9f0;
  --muted: #8b93a7;
  --accent: #3ed88c;
  --accent-2: #2bb673;
  --danger: #ef5b5b;
  --warn: #e0b040;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(62, 216, 140, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(70, 110, 220, 0.10), transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.brand span { color: var(--accent); font-size: 14px; margin-left: 8px; font-weight: 600; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.nav-links .nav-cta { color: var(--accent); border: 1px solid rgba(62,216,140,0.4); }

/* ---------- layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 32px 20px 60px; width: 100%; flex: 1; }
.page-title { font-size: 30px; margin: 0 0 8px; }
.section-title { font-size: 22px; margin: 36px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: "Consolas", "Cascadia Mono", monospace; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 46px; margin: 0 0 18px; letter-spacing: 1px; line-height: 1.3; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 auto 28px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: .15s;
}
.btn:hover { border-color: #38405a; text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #06210f;
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; display: block; }
.btn-tiny { padding: 5px 10px; font-size: 13px; border-radius: 6px; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-ico { font-size: 28px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.section { margin-top: 48px; }
.section h2 { font-size: 25px; margin-bottom: 20px; }

/* ---------- plans ---------- */
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  width: 260px;
}
.plan-hot { border-color: rgba(62,216,140,0.5); box-shadow: 0 0 0 1px rgba(62,216,140,0.15) inset; }
.plan-name { color: var(--muted); font-size: 17px; }
.plan-price { font-size: 44px; font-weight: 800; margin: 10px 0; color: #fff; }
.plan-days { color: var(--muted); font-size: 15px; }

/* ---------- features ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.feature-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature-item h3 { margin: 0 0 8px; font-size: 17px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.step { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.step-no {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  background: rgba(62,216,140,0.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step-body h3 { margin: 0 0 6px; font-size: 17px; }
.step-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.steps-plain { color: var(--muted); line-height: 2; }
.steps-plain code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; color: var(--accent); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq-item h4 { margin: 0 0 6px; font-size: 16px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- downloads ---------- */
.dl-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.dl-name { font-size: 17px; font-weight: 600; }
.dl-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dl-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.dl-hash { color: #5a6379; font-size: 11px; margin-top: 6px; word-break: break-all; font-family: monospace; }
.tag { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--accent); margin-left: 6px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- forms ---------- */
input, select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
input:focus, select:focus { border-color: var(--accent-2); }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }

.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-row input, .form-row select { flex: 1 1 160px; }
.form-wrap input { flex: 1 1 220px; }

/* ---------- auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px;
}
.auth-card h2 { margin: 0 0 6px; }
.auth-card input { width: 100%; }
.auth-card .btn { margin-top: 22px; }
.auth-switch { color: var(--muted); font-size: 14px; text-align: center; margin-top: 18px; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.account-grid h3 { margin: 0 0 16px; }
.account-grid h4 { margin: 24px 0 10px; font-size: 16px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.kv span { color: var(--muted); }
.status { padding: 12px 14px; border-radius: 10px; font-size: 15px; margin-bottom: 8px; }
.status-ok { background: rgba(62,216,140,0.12); color: var(--accent); }
.status-bad { background: rgba(239,91,91,0.12); color: var(--danger); }
.redeem-form { display: flex; gap: 10px; }
.redeem-form input { flex: 1; }

/* ---------- flash ---------- */
.flash-wrap { margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; font-size: 15px; }
.flash-ok { background: rgba(62,216,140,0.12); color: var(--accent); border: 1px solid rgba(62,216,140,0.3); }
.flash-error { background: rgba(239,91,91,0.12); color: var(--danger); border: 1px solid rgba(239,91,91,0.3); }

/* ---------- notice ---------- */
.notice { background: rgba(224,176,64,0.12); color: var(--warn); border: 1px solid rgba(224,176,64,0.3); border-radius: 10px; padding: 14px 18px; }
.buy-actions { text-align: center; margin: 28px 0; }

/* ---------- admin stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 20px 0 28px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }
.quick-links { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.pill-ok { color: var(--accent); border-color: rgba(62,216,140,0.35); background: rgba(62,216,140,0.10); }
.pill-bad { color: var(--danger); border-color: rgba(239,91,91,0.35); background: rgba(239,91,91,0.10); }

/* ---------- panels & tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
tr:last-child td { border-bottom: none; }
td form { display: inline; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 22px 20px;
  display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 10px;
}
.footer-links a { color: var(--muted); }

/* ---------- homepage ---------- */
.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  background: rgba(62, 216, 140, 0.08);
  border: 1px solid rgba(62, 216, 140, 0.4);
  border-radius: 22px;
  padding: 7px 20px;
  margin-bottom: 24px;
}
.section-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
  max-width: 820px;
  margin: 0 0 14px;
}
.section-lead.wide { max-width: none; }
.ph-note { color: #5a6379; font-size: 13px; margin-top: 14px; }

/* 滚动游戏界面 */
.scroll-strip {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.scroll-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}
.scroll-strip:hover .scroll-track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.scroll-card {
  position: relative;
  width: 150px;
  height: 225px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0d15;
}
.scroll-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scroll-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 视频占位 */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.video-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 172px;
  background: linear-gradient(160deg, #10131c, #0a0d15);
  border-bottom: 1px dashed var(--border);
}
a.video-ph { border-bottom-style: solid; }
a.video-ph:hover { filter: brightness(1.15); text-decoration: none; }
.play {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.ph-tag {
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}
.video-title { padding: 14px 16px 4px; font-size: 16px; font-weight: 600; }
.video-desc { padding: 0 16px 16px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* 视频封面 + 点击后弹窗播放 */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(160deg, #10131c, #0a0d15);
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-load {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .15s;
}
.video-load:hover { background: rgba(0, 0, 0, 0.08); }

/* 大播放窗（模态） */
body.modal-open { overflow: hidden; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.video-modal-box {
  position: relative;
  width: min(92vw, 1200px);
  z-index: 1;
}
.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { background: var(--panel-2); }

.quote {
  margin: 26px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #cfd5e2;
  font-size: 15px;
  line-height: 2;
}

/* 所需硬件 */
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.hw-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.hw-ico { font-size: 30px; margin-bottom: 10px; }
.hw-card h3 { margin: 0 0 8px; font-size: 18px; }
.hw-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hw-card strong { color: #cfd5e2; }
.hw-img { display: block; width: 100%; max-width: 220px; height: 150px; object-fit: contain; margin: 14px auto 0; }
.hw-img-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.hw-img-row .hw-img { margin: 0; max-width: 46%; }
.hw-img-row .hw-img-trackball { height: 116px; }

/* 两种游玩模式 */
.mode-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.mode-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.mode-card h3 { margin: 0 0 12px; font-size: 19px; color: var(--accent); }
.mode-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.mode-fit { color: #cfd5e2; font-size: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.mode-note {
  background: rgba(224, 176, 64, 0.08);
  border: 1px solid rgba(224, 176, 64, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--warn);
  font-size: 13px;
}
.mode-media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 14px;
}

/* 体感通用模版 */
.mtpl { margin-top: 20px; }
.mtpl-window {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 898 / 530;
  background: #0a0d15;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.mtpl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mtpl-hidden { display: none; }
.mtpl-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}
.mtpl-ph-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 216, 140, 0.12);
  color: var(--accent);
  border: 1px solid rgba(62, 216, 140, 0.4);
  font-size: 20px;
}
.mtpl-ph-text { font-size: 14px; }
.mtpl-desc {
  margin: 14px 0 0;
  min-height: 3em;
  color: #cfd5e2;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}
.mtpl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.mtpl-tab {
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
}
.mtpl-tab:hover { color: #fff; border-color: #38405a; }
.mtpl-tab.active {
  background: rgba(62, 216, 140, 0.15);
  border-color: rgba(62, 216, 140, 0.5);
  color: var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .plans, .feature-list, .account-grid, .stat-grid,
  .video-grid, .hw-grid, .mode-compare { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .grid-3, .plans, .feature-list, .account-grid, .stat-grid,
  .video-grid, .hw-grid, .mode-compare { grid-template-columns: 1fr; }
  .nav-inner { flex-direction: column; gap: 10px; }
}
