/* ============ 诸天万界 · 游戏中心 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg1: #07060f;
  --bg2: #14102a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #e8e6f5;
  --dim: #9b97b8;
  --primary: #7c6cff;
  --primary2: #b28cff;
  --pink: #ff8fb3;
  --cyan: #5cd6e8;
  --gold: #f5c26b;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  background: radial-gradient(1200px 700px at 15% -5%, #241d4d 0%, transparent 55%),
              radial-gradient(1000px 600px at 110% 15%, #1d2b52 0%, transparent 50%),
              linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg1) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 星点 */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars i {
  position: absolute; border-radius: 50%; background: #fff;
  opacity: .55; animation: twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .18; transform: scale(.8); } to { opacity: .75; transform: scale(1.15); } }
.glow { position: fixed; width: 480px; height: 480px; border-radius: 50%; filter: blur(120px); opacity: .16; pointer-events: none; z-index: 0; }
.glow-a { background: #6a5cff; top: -160px; left: -120px; }
.glow-b { background: #2f7fd4; bottom: -180px; right: -100px; }

.wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 28px 18px 60px; }

/* 顶栏 */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 26px 18px 6px; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-emoji { font-size: 40px; filter: drop-shadow(0 0 18px rgba(180,150,255,.55)); }
.brand h1 { font-size: 26px; letter-spacing: 2px; background: linear-gradient(90deg, #fff, #c9b8ff 60%, #8fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { color: var(--dim); font-size: 13px; margin-top: 3px; letter-spacing: 1px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.who { color: var(--pink); font-size: 14px; }

/* 卡片容器 */
.card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }

/* 布局：主区 + 右侧粘性侧栏（试玩/教程） */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; align-items: start; margin-top: 26px; }
.layout-main { min-width: 0; }
.layout-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 36px); overflow-y: auto; }

/* 登录卡片（紧凑，不再全页居中） */
.auth-card { max-width: 460px; margin: 0 0 24px; padding: 24px 26px 22px; }
.auth-card.pulse { animation: pulse 1.6s ease; }
@keyframes pulse {
  0% { box-shadow: 0 12px 36px rgba(0,0,0,.3), 0 0 0 0 rgba(124,108,255,.5); }
  70% { box-shadow: 0 12px 36px rgba(0,0,0,.3), 0 0 0 20px rgba(124,108,255,0); }
  100% { box-shadow: 0 12px 36px rgba(0,0,0,.3), 0 0 0 0 rgba(124,108,255,0); }
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--dim); font-size: 15px; letter-spacing: 4px; cursor: pointer; transition: all .2s; }
.tab.active { background: rgba(124,108,255,.16); border-color: rgba(124,108,255,.4); color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; letter-spacing: 1px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25); color: var(--text); font-size: 15px; outline: none; transition: border .2s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,108,255,.15); }
.auth-msg { min-height: 20px; font-size: 13px; margin: 4px 0 10px; color: var(--dim); }
.auth-msg.err { color: #ff7d8a; }
.auth-msg.ok { color: #7ee0a3; }
.auth-msg.warn { color: var(--gold); }
.auth-note { font-size: 12px; color: var(--dim); text-align: center; margin-top: 12px; line-height: 1.7; }
.forgot-row { text-align: right; margin: 2px 0 2px; }
.forgot-row a { font-size: 11.5px; color: var(--cyan); text-decoration: none; opacity: .85; }
.forgot-row a:hover { opacity: 1; text-decoration: underline; }
.reset-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.reset-head span { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.reset-head a { font-size: 11.5px; color: var(--dim); text-decoration: none; }
.reset-head a:hover { color: var(--cyan); }
.reset-tip { font-size: 11.5px; color: var(--dim); line-height: 1.7; background: rgba(96,192,255,.07); border: 1px solid rgba(96,192,255,.2); border-radius: 8px; padding: 7px 10px; margin-bottom: 12px; }
.reset-tip b { color: #a9d4ff; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-size: 15px; border-radius: 12px; padding: 12px 18px; transition: all .2s; text-decoration: none; }
.btn.primary { width: 100%; background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; font-weight: 600; letter-spacing: 2px; box-shadow: 0 8px 26px rgba(124,108,255,.35); }
.btn.primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); color: var(--text); }
.btn.ghost:hover { border-color: var(--primary2); color: var(--primary2); }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 9px; }

/* 区块标题 */
.section-head { margin: 34px 0 18px; }
.section-head h2 { font-size: 22px; letter-spacing: 2px; }
.section-head .sub { color: var(--dim); font-size: 13px; margin-top: 6px; }

/* 游戏网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .18s, border-color .18s, box-shadow .18s;
  backdrop-filter: blur(10px);
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(124,108,255,.5); box-shadow: 0 16px 44px rgba(0,0,0,.4); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.g-emoji { font-size: 32px; filter: drop-shadow(0 0 12px rgba(255,255,255,.25)); }
.g-badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(124,108,255,.2); color: #c9bcff; border: 1px solid rgba(124,108,255,.35); }
.trial-badge { background: rgba(245,194,107,.15); color: var(--gold); border-color: rgba(245,194,107,.35); }
.game-card h3, .trial-card h3 { font-size: 18px; letter-spacing: 1px; }
.g-desc { font-size: 13px; color: var(--dim); line-height: 1.75; flex: 1; }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.g-tags span { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,.06); color: var(--dim); }
.btn.enter { margin-top: 6px; background: rgba(124,108,255,.14); border: 1px solid rgba(124,108,255,.4); color: #d6ccff; letter-spacing: 2px; }
.btn.enter:hover { background: rgba(124,108,255,.3); color: #fff; }
.btn.enter:disabled { opacity: .55; cursor: wait; }
.btn.enter.locked { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: var(--dim); }
.btn.enter.locked:hover { background: rgba(255,255,255,.09); color: var(--dim); transform: none; }

/* 试玩专区（侧栏紧凑条目） */
.side-card { padding: 18px 16px 20px; }
.side-head { margin-bottom: 12px; }
.side-head h2 { font-size: 17px; letter-spacing: 1px; }
.side-head .sub { color: var(--dim); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.trial-item {
  background: rgba(255,255,255,.035); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.trial-item:hover { border-color: color-mix(in srgb, var(--accent, var(--gold)) 55%, transparent); background: rgba(255,255,255,.06); }
.trial-item.ac-pink { --accent: var(--pink); }
.trial-item.ac-cyan { --accent: var(--cyan); }
.trial-item.ac-gold { --accent: var(--gold); }
.ti-top { display: flex; align-items: center; gap: 8px; }
.ti-top .g-emoji { font-size: 20px; filter: drop-shadow(0 0 8px rgba(255,255,255,.2)); }
.ti-top h3 { font-size: 13.5px; letter-spacing: .5px; flex: 1; min-width: 0; }
.t-btn { padding: 6px 12px; font-size: 12px; margin: 0; flex-shrink: 0; }
.t-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.t-tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 20px;
  background: rgba(255,255,255,.05); color: var(--dim); border: 1px solid rgba(255,255,255,.08);
}

/* API Key 教程（侧栏迷你版） */
.guide-mini { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 2px 0 14px; }
.guide-mini li { font-size: 12px; color: var(--dim); line-height: 1.7; }
.guide-mini code { background: rgba(0,0,0,.3); border: 1px solid var(--panel-border); border-radius: 5px; padding: 1px 6px; color: var(--cyan); }
.guide-link { display: flex; align-items: center; }
.gl-hint { font-size: 12px; color: var(--dim); }

/* API Key 教程 */
/* 消费参考（竖排 · 侧栏） */
.cost-card { padding: 16px 14px 18px; }
.cost-rows { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; }
.cost-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 6px 10px; }
.cost-row .cr-name { font-size: 12px; color: var(--text); }
.cost-row .cr-name em { font-style: normal; font-size: 9.5px; color: var(--dim); border: 1px solid var(--panel-border); border-radius: 4px; padding: 0 4px; margin-left: 3px; vertical-align: 1px; }
.cost-row .cr-p { font-size: 12.5px; font-weight: 700; color: #9fe0bd; white-space: nowrap; }
.fee-tip { font-size: 11px; color: var(--dim); line-height: 1.7; margin: 0 0 8px; background: rgba(255,191,128,.07); border: 1px solid rgba(255,191,128,.22); border-radius: 8px; padding: 6px 9px; }
.fee-tip b { color: #ffd9a8; }
.cost-note { font-size: 10.5px; color: var(--dim); line-height: 1.8; margin: 0; }
.cost-note a { color: var(--cyan); text-decoration: underline; }
@media (max-width: 860px) {
  .cost-grid { grid-template-columns: 1fr; }
  .cost-table { overflow-x: auto; }
}

.foot { text-align: center; color: var(--dim); font-size: 12px; margin-top: 46px; letter-spacing: 1px; }

.hidden { display: none !important; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .layout-side { position: static; max-height: none; }
}

@media (max-width: 640px) {
  .brand h1 { font-size: 21px; }
  .auth-card { margin: 0 0 20px; padding: 22px 18px; }
  .grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
  .trial-item { padding: 9px 10px; }
  .ti-top h3 { font-size: 12.5px; }
}

/* ============ V63：主打推荐（地球Online 强推） ============ */
.game-card.featured {
  border: 1px solid rgba(245, 194, 107, .65);
  background: linear-gradient(160deg, rgba(124, 108, 255, .12) 0%, rgba(245, 194, 107, .06) 100%);
  box-shadow: 0 0 0 1px rgba(245, 194, 107, .25), 0 18px 50px rgba(0, 0, 0, .45);
  position: relative;
  overflow: hidden;
}
.game-card.featured:hover {
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(245, 194, 107, .28), 0 18px 50px rgba(0, 0, 0, .5);
}
.game-card.featured .g-badge.badge-hot {
  background: linear-gradient(90deg, #ff9a3c, #f5c26b);
  color: #231a05;
  border: none;
  font-weight: 700;
  letter-spacing: 1px;
}
.feat-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  transform: rotate(38deg);
  background: linear-gradient(90deg, #ff9a3c, #f5c26b);
  color: #231a05;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  z-index: 2;
}
.btn.enter.hot {
  background: linear-gradient(90deg, #ff9a3c, #f5c26b);
  border: none;
  color: #231a05;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(245, 194, 107, .35);
}
.btn.enter.hot:hover { filter: brightness(1.1); color: #231a05; background: linear-gradient(90deg, #ff9a3c, #f5c26b); }
.btn.enter.locked.hot { background: rgba(245, 194, 107, .18); border: 1px solid rgba(245, 194, 107, .5); color: var(--gold); box-shadow: none; }
.btn.enter.locked.hot:hover { background: rgba(245, 194, 107, .3); color: var(--gold); }
.earth-pro-note {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--dim);
  margin: 4px 0 8px;
  background: linear-gradient(135deg, rgba(245, 194, 107, .12), rgba(124, 108, 255, .1));
  border: 1px solid rgba(245, 194, 107, .28);
  border-radius: 8px;
  padding: 8px 10px;
}
.earth-pro-note b { color: #ffd9a8; }
@media (max-width: 640px) {
  .feat-ribbon { font-size: 9.5px; padding: 3px 34px; top: 12px; right: -30px; }
}

/* ===== 2026-09-19：这个游戏 主推 + 消费高亮 ===== */
.g-selling { font-size: 12.5px; font-weight: 700; color: #f5c26b; margin: 2px 0 7px; letter-spacing: .2px; }
.cost-row-hot { background: rgba(245,194,107,.13); border-color: rgba(245,194,107,.5); }
.cost-row-hot .cr-name { color: var(--gold); font-weight: 700; }

/* ===== 2026-09-20：主页右上角剩余天数 + 验证码续费弹窗 ===== */
.acct-days {
  color: var(--cyan); font-size: 13px; cursor: pointer; user-select: none;
  padding: 5px 11px; border-radius: 9px;
  background: rgba(92,214,232,.1); border: 1px solid rgba(92,214,232,.32);
  transition: background .2s, border-color .2s, color .2s;
}
.acct-days:hover { background: rgba(92,214,232,.2); border-color: var(--cyan); }
.acct-days-warn { color: #ff7d8a; background: rgba(255,125,138,.12); border-color: rgba(255,125,138,.42); }
.acct-days-warn:hover { background: rgba(255,125,138,.22); border-color: #ff7d8a; }
.acct-days-perm { color: var(--gold); background: rgba(245,194,107,.12); border-color: rgba(245,194,107,.4); cursor: default; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex;
  align-items: center; justify-content: center;
  background: rgba(4,3,12,.66); backdrop-filter: blur(4px); padding: 18px;
}
.renew-box {
  width: 100%; max-width: 360px; padding: 22px 22px 18px;
  background: linear-gradient(160deg, #1b1740, #120e2b);
  border: 1px solid var(--panel-border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.renew-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.renew-title { font-size: 17px; color: var(--text); letter-spacing: 1px; }
.renew-close {
  background: transparent; border: none; color: var(--dim);
  font-size: 16px; cursor: pointer; line-height: 1; padding: 2px 4px;
}
.renew-close:hover { color: var(--text); }
.renew-hint { font-size: 12px; line-height: 1.7; color: var(--dim); margin-bottom: 14px; }
.renew-box input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(0,0,0,.32); border: 1px solid var(--panel-border);
  color: var(--text); font-size: 16px; letter-spacing: 2px; text-align: center;
  outline: none; font-family: inherit;
}
.renew-box input:focus { border-color: var(--primary2); }
.renew-msg { min-height: 18px; font-size: 13px; margin: 10px 0 4px; color: var(--dim); }
.renew-msg.err { color: #ff7d8a; }
.renew-msg.ok { color: #7ee0a3; }
.renew-btns { display: flex; gap: 10px; margin-top: 6px; }
.renew-btns button {
  flex: 1; padding: 11px; border-radius: 10px; font-size: 14px;
  cursor: pointer; font-family: inherit; border: 1px solid transparent; transition: filter .2s;
}
.renew-cancel { background: transparent; border-color: rgba(255,255,255,.2); color: var(--text); }
.renew-cancel:hover { border-color: var(--primary2); }
.renew-submit { background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; font-weight: 600; }
.renew-submit:hover { filter: brightness(1.12); }
@media (max-width: 640px) {
  .top-right { gap: 8px; }
  .acct-days { font-size: 12px; padding: 5px 9px; }
}
