/* 面板层样式 —— 设计令牌来自 tokens.css（珍珠玻璃/Pearl Glass，MIT，移植自陪玩代肝 admin-web）
   页面与组件只引用令牌，不手写取值。 */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "SF Pro Text", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, "Noto Sans SC", sans-serif;
  font-size: 15px; line-height: 1.6;
  background: var(--canvas);
  color: var(--ink);
  /* 环境光 + 全页游戏底图（参考竞品：暗化大图打底，内容浮于其上） */
  background-image:
    linear-gradient(rgba(10, 12, 16, .88), rgba(10, 12, 16, .92)),
    radial-gradient(1200px 500px at 15% -10%, var(--ambient-a), transparent 60%),
    url('/img/hero_rust.jpg');
  background-size: auto, auto, cover;
  background-position: center, center, center 30%;
  background-attachment: fixed, fixed, fixed;
}

/* ── 顶栏（frame 深框 + 玻璃 pill） ─────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 0 22px; height: var(--topbar-h);
  background: var(--frame); color: var(--plate-ink);
  border-bottom: 1px solid var(--plate-line);
  box-shadow: var(--e2);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 16px; letter-spacing: .02em; display: flex; align-items: center; gap: 9px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(35,109,233,.45); }
nav { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.acct { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--plate-soft); }
.acct b { color: var(--plate-ink); }

/* ── 导航按钮（pill 玻璃胶囊） ───────────────────────────────── */
nav .navbtn, .topbar button {
  background: var(--pill-bg); color: var(--plate-ink);
  border: 1px solid var(--plate-line); border-radius: 999px;
  padding: 7px 16px; font-size: 14px; cursor: pointer;
  box-shadow: var(--pill-inset); transition: all .18s var(--ease-premium);
  font-family: inherit;
}
nav .navbtn:hover, .topbar button:hover { background: var(--blue-soft); border-color: var(--blue); }
nav .navbtn.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--e-accent); }

/* ── 主画布 ─────────────────────────────────────────────────── */
main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 60px; }
h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 20px; margin: 26px 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--ink-soft); }
.mt { margin-top: 22px; }
.hidden { display: none; }

/* ── 玻璃卡片（surface 配方） ────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px; margin: 0 0 16px;
  box-shadow: var(--e1), var(--edge);
}
.narrow { max-width: 430px; }

/* ── 前台 hero（暗色霓虹渐变，游戏行业视觉） ───────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 44px; border-radius: var(--r-lg);
  background:
    linear-gradient(90deg, rgba(9, 14, 24, .93) 0%, rgba(12, 22, 44, .78) 46%, rgba(16, 42, 92, .42) 100%),
    url('/img/hero_rust.jpg') right center / cover no-repeat;
  border: 1px solid rgba(76, 141, 255, .25);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255,255,255,.08);
  color: #eaf1ff; margin-bottom: 22px;
  min-height: 320px; display: flex; align-items: center;
}
.hero-inner { max-width: 720px; }
.hero::after { /* 右上霓虹光晕 */
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(130,221,45,.22), transparent 65%); pointer-events: none;
}
.hero h1 { font-size: 36px; color: #fff; text-shadow: 0 2px 24px rgba(35,109,233,.45); }
.hero h1 span { background: linear-gradient(90deg, #82dd2d, #4c8dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(234,241,255,.78); max-width: 660px; margin: 10px 0 20px; }
.hero .eyebrow { color: rgba(234,241,255,.5); }
.hero .row button { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.hero .row button.primary { background: linear-gradient(90deg, var(--blue), #5aa0ff); border: none; box-shadow: var(--e-accent); }
.hero .stat-strip .s { color: rgba(234,241,255,.6); }
.hero .stat-strip .s b { color: #fff; }

/* ── 游戏卡片（海报图 + 悬浮抬升） ─────────────────────────── */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gamecard { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium); }
.gamecard:hover { transform: translateY(-4px); box-shadow: var(--e3), var(--edge); }
.gamecard .gimg { height: 150px; width: 100%; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.gamecard .gimg-ph { height: 150px; display: grid; place-items: center; font-size: 34px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.gamecard .gbody { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.gamecard .gname { font-size: 18px; font-weight: 700; }
.gamecard .gdesc { color: var(--ink-muted); font-size: 13px; min-height: 38px; }
.gamecard .gprice { font-family: var(--font-mono); font-size: 15px; }
.gamecard .gprice b { color: var(--red-text); font-size: 19px; }
.gamecard .row { margin-top: auto; }

.stat-strip { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.stat-strip .s { font-size: 13px; color: var(--ink-soft); }
.stat-strip .s b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }

/* ── 表格 ───────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: left; padding: calc(var(--cell-px) / 2) 10px; border-bottom: 1px solid var(--line); font-size: 14px; min-height: var(--row-h); }
th { color: var(--ink-soft); font-weight: 600; font-size: 13px; }
tr:hover td { background: var(--hover-bg); }
.up { color: var(--leaf-text); }
.down { color: var(--red-text); }

/* ── 表单 ───────────────────────────────────────────────────── */
label { display: block; margin: 12px 0; color: var(--ink-muted); font-size: 14px; }
label input, label select { display: block; width: 100%; margin-top: 4px; }
input, select, textarea {
  background: var(--input-bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  padding: 9px 12px; font-size: 15px; outline: none; font-family: inherit;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* ── 按钮（蓝色主操作 = e-accent；普通 = pill） ─────────────── */
button {
  background: var(--pill-bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; cursor: pointer;
  box-shadow: var(--pill-inset); transition: all .18s var(--ease-premium); font-family: inherit;
}
button:hover { border-color: var(--blue); color: var(--blue); }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--e-accent); }
button.primary:hover { background: var(--blue-hover); color: #fff; }
button.danger { background: var(--red-soft); border-color: var(--red); color: var(--red-text); }
button.linkbtn { background: none; border: none; color: var(--blue); text-decoration: underline; box-shadow: none; }
button.buy { padding: 5px 13px; margin-right: 6px; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.hint { color: var(--ink-soft); font-size: 13px; }
.dim { color: var(--ink-faint); }
.warn { color: #b47207; font-size: 13px; }
.tag { background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.meta { color: var(--ink-muted); font-size: 13px; margin: 6px 0; }
.kv { margin-right: 12px; font-family: var(--font-mono); font-size: 12.5px; }
.conn { font-family: var(--font-mono); background: var(--plate-bg); color: var(--plate-ink);
  border-radius: var(--r-xs); padding: 7px 12px; display: inline-block; margin: 6px 0;
  border: 1px solid var(--plate-line); font-size: 13px; }

/* ── 状态徽章 ───────────────────────────────────────────────── */
.st { font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.st-running { background: var(--lime-soft); color: var(--leaf-text); }
.st-provisioning, .st-stopped, .st-starting { background: rgba(180, 114, 7, .13); color: #b47207; }
.st-suspended { background: rgba(255, 90, 80, .1); color: var(--red-text); }
.st-error { background: var(--red-soft); color: var(--red-text); }
.st-deleted { background: var(--groove-bg); color: var(--ink-faint); }
.insthead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ── 工作台读数板（plate 深色铭牌，仪器化排版） ─────────────── */
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.plate {
  background: var(--plate-bg); color: var(--plate-ink);
  border: 1px solid var(--plate-line); border-radius: var(--r-sm);
  padding: 12px 16px; font-family: var(--font-mono);
}
.plate .plabel { font-size: 10.5px; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--plate-soft); }
.plate .pval { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.plate .psub { font-size: 11px; color: var(--plate-soft); }

/* ── 控制台（黑底等宽终端） ─────────────────────────────────── */
.console {
  background: var(--dark-surface); color: #cfe3cf;
  border: 1px solid var(--plate-line); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55;
  height: 320px; overflow-y: auto; padding: 12px 14px; margin-top: 10px;
  white-space: pre-wrap; word-break: break-all;
}
.console .cline { padding: 1px 0; }
.console .cmdline { color: var(--lime); }
.conbar { display: flex; gap: 8px; margin-top: 10px; }
.conbar input { flex: 1; font-family: var(--font-mono); }

/* ── KPI（运营总览） ────────────────────────────────────────── */
.kpis { display: flex; gap: 14px; flex-wrap: wrap; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px; min-width: 150px; box-shadow: var(--e1), var(--edge); }
.klabel { color: var(--ink-soft); font-size: 13px; }
.kval { font-size: 24px; font-weight: 700; margin-top: 4px; font-family: var(--font-mono); }

/* ── toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  padding: 11px 20px; border-radius: var(--r-sm); max-width: 88vw; z-index: var(--layer-toast);
  box-shadow: var(--e3); font-size: 14px;
}
.toast.bad { background: #2a1416; border-color: var(--red); color: var(--red-text); }
.toast.hidden { display: none; }

/* ── 为什么选我们（三列，不掉行） ───────────────────────────── */
.sec-head { text-align: center; margin: 34px 0 18px; }
.sec-head h2 { margin: 0 0 6px; font-size: 24px; }
.sec-sub { color: var(--ink-soft); font-size: 14px; margin: 0; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.why-card {
  display: flex; gap: 16px; align-items: flex-start; margin: 0;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 16px; padding: 22px 22px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(76, 141, 255, .55); background: rgba(255, 255, 255, .08); }
.wic {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: rgba(76, 141, 255, .13); box-shadow: inset 0 0 0 1px rgba(76, 141, 255, .35);
}
.wic svg { width: 27px; height: 27px; fill: none; stroke: #5a9cff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wtitle { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.wdesc { color: var(--ink-muted); font-size: 13.5px; line-height: 1.65; }

/* 优惠活动区块 */
.promo {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(130,221,45,.12), rgba(76,141,255,.10));
  border: 1px dashed rgba(130,221,45,.4);
}
.promo h3 { margin-bottom: 4px; }
.promo p { color: var(--ink-muted); font-size: 14px; margin: 4px 0 0; }
.promo b { color: var(--leaf-text); }

/* 前台页脚 */
footer { text-align: center; color: var(--ink-faint); font-size: 12.5px; padding: 30px 0 40px; }

/* ── 2026-10-28 商业化：定价卡 / 开服流程 ────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--e1), var(--edge);
  transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--e3), var(--edge); }
.price-card.hot { border-color: rgba(130,221,45,.45); box-shadow: var(--e3), 0 0 0 1px rgba(130,221,45,.2); }
.price-card .ptag {
  position: absolute; top: -11px; right: 16px; background: var(--lime, #82dd2d); color: #10230a;
  font-size: 11.5px; font-weight: 700; padding: 2px 12px; border-radius: 999px;
}
.price-card .pname { color: var(--ink-muted); font-size: 13.5px; font-weight: 600; }
.price-card .pprice { margin: 8px 0 12px; font-family: var(--font-mono); }
.price-card .pprice b { font-size: 34px; letter-spacing: -.02em; color: var(--ink); }
.price-card .pprice span { color: var(--ink-faint); font-size: 13px; margin-left: 4px; }
.price-card ul { list-style: none; margin: 0 0 16px; padding: 0; }
.price-card li { padding: 5px 0 5px 22px; position: relative; font-size: 13.5px; color: var(--ink-muted); border-bottom: 1px dashed var(--line); }
.price-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--leaf-text, #82dd2d); font-weight: 700; }
.price-card .buybtn { width: 100%; justify-content: center; }
.price-card .buybtn.primary { background: linear-gradient(90deg, var(--blue), #5aa0ff); border: none; color: #fff; box-shadow: var(--e-accent); }
.center { text-align: center; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--e1), var(--edge); position: relative;
}
.step .snum {
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-family: var(--font-mono);
  margin-bottom: 8px;
}
.step .sname { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.step .sdesc { color: var(--ink-muted); font-size: 13px; }

.gamecard.hot { border-color: rgba(255, 120, 60, .4); }
.gamecard .gimg { height: 168px; }

/* ── 滚动浮现动画（往下拉逐个出现） ────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, .8, .36, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* 步骤卡：编号渐变 + hover 抬升 */
.step { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--e3), var(--edge); }
.step .snum { background: linear-gradient(135deg, var(--blue), #5aa0ff); color: #fff; width: 32px; height: 32px; font-size: 14px; }

/* ── 大页脚（四栏，浮于游戏底图之上） ─────────────────────── */
.site-foot {
  margin-top: 40px; padding: 42px 26px 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 10, 14, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.fbrand .fname { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.fbrand p { color: var(--ink-muted); font-size: 13px; line-height: 1.7; margin: 0 0 8px; }
.ftitle { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.fcol { display: flex; flex-direction: column; gap: 9px; }
.fcol a, .fcol span { color: var(--ink-muted); font-size: 13px; text-decoration: none; }
.fcol a:hover { color: var(--blue); }
.foot-base { text-align: center; color: var(--ink-faint); font-size: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
