/* ==========================================================
   恋爱飞行棋 · 全站样式 v5「暗夜霓虹」
   深黑底 · 粉橙渐变 · 玻璃拟态 · 高端正规
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #07060b;
  --panel: rgba(255, 255, 255, 0.045);
  --panel2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.18);
  --txt: #f7f5fa;
  --sub: #a49fae;
  --dim: #6f6a7a;
  --pink: #ff2e7e;
  --orange: #ff7a3d;
  --purple: #8b5cf6;
  --blue: #4f9cf9;
  --green: #22c55e;
  --grad: linear-gradient(135deg, #ff2e7e 0%, #ff7a3d 100%);
  --grad2: linear-gradient(135deg, #ff7a3d 0%, #ffb03d 100%);
  --grad3: linear-gradient(135deg, #ff2e7e 0%, #8b5cf6 100%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --glow: 0 8px 28px rgba(255, 46, 126, 0.35);
  --radius: 20px;
}

html { color-scheme: dark; }

/* 原生表单控件统一深色 —— 关键是 select 的展开弹层：
   Windows Chrome 的下拉列表按 color-scheme 渲染，但部分版本/场景下仍给白底，
   此时浅色文字（--txt）落在白底上看不清。给 option 显式不透明深底浅字做双保险。 */
input, select, textarea { color-scheme: dark; }
select option, select optgroup {
  background-color: #14121f;   /* 不透明深底（半透明在弹层里渲染异常） */
  color: #f7f5fa;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
  color: var(--txt);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 46, 126, 0.16), transparent 62%),
    radial-gradient(820px 540px at -8% 28%, rgba(139, 92, 246, 0.13), transparent 62%),
    radial-gradient(760px 560px at 50% 118%, rgba(255, 122, 61, 0.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--pink); }
::selection { background: rgba(255, 46, 126, 0.4); }
input, select, textarea, button { font-family: inherit; }
input, select, textarea { color: var(--txt); background: rgba(255, 255, 255, 0.05); }
input::placeholder, textarea::placeholder { color: var(--dim); }

/* ---------- 背景飘浮爱心 ---------- */
.bg-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-hearts span {
  position: absolute; bottom: -60px; font-size: 24px; opacity: .18;
  filter: drop-shadow(0 0 8px rgba(255, 46, 126, .6));
  animation: floatUp linear infinite;
}
.bg-hearts span:nth-child(1) { left: 6%;  animation-duration: 11s; }
.bg-hearts span:nth-child(2) { left: 18%; animation-duration: 14s; animation-delay: 2s; }
.bg-hearts span:nth-child(3) { left: 32%; animation-duration: 9s;  animation-delay: 4s; }
.bg-hearts span:nth-child(4) { left: 48%; animation-duration: 13s; animation-delay: 1s; }
.bg-hearts span:nth-child(5) { left: 62%; animation-duration: 10s; animation-delay: 3s; }
.bg-hearts span:nth-child(6) { left: 74%; animation-duration: 15s; animation-delay: 5s; }
.bg-hearts span:nth-child(7) { left: 84%; animation-duration: 12s; }
.bg-hearts span:nth-child(8) { left: 92%; animation-duration: 10s; animation-delay: 6s; }
.bg-hearts span:nth-child(9) { left: 12%; animation-duration: 16s; animation-delay: 7s; }
.bg-hearts span:nth-child(10){ left: 55%; animation-duration: 12s; animation-delay: 8s; }
@keyframes floatUp { to { transform: translateY(-110vh) rotate(360deg); opacity: 0; } }

/* ---------- 按钮 ---------- */
.btn {
  border: none; cursor: pointer; border-radius: 999px;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  transition: transform .15s, box-shadow .15s, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.95); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px rgba(255, 46, 126, .35);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 10px 32px rgba(255, 46, 126, .5); }
.btn-primary:disabled { filter: grayscale(.7); opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-grad  { background: var(--grad);  color: #fff; box-shadow: 0 8px 26px rgba(255, 46, 126, .4); }
.btn-grad2 { background: var(--grad2); color: #fff; box-shadow: 0 8px 26px rgba(255, 122, 61, .35); }
.btn-grad:hover, .btn-grad2:hover { filter: brightness(1.1); }
.btn-ghost {
  background: var(--panel2); color: var(--txt);
  border: 1px solid var(--line2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); }
.btn-soft { background: rgba(255, 255, 255, 0.06); color: var(--sub); border: 1px solid var(--line); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; font-weight: 800; }

/* ---------- 顶栏（落地页）：毛玻璃悬浮条，滚动时不与内容穿叠 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  max-width: none; margin: 0 auto;
  /* 全宽背景 + 用 padding 模拟 1120px 居中限位（背景必须铺满视口） */
  padding: 16px max(22px, calc((100% - 1120px) / 2));
  background: rgba(10, 7, 16, .78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar .logo {
  font-weight: 900; font-size: 19px; color: var(--txt); text-decoration: none;
  letter-spacing: .5px; display: inline-flex; align-items: center; gap: 8px;
}
.topbar-right, .header-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill {
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--txt); text-decoration: none;
  background: var(--panel2); border: 1px solid var(--line2);
  transition: all .18s;
}
.pill:hover { background: rgba(255, 255, 255, 0.14); }
.pill-grad { background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
.pill-grad:hover { background: var(--grad); filter: brightness(1.1); }
.pill-online {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #c9f7d6; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
  display: inline-flex; align-items: center; gap: 7px;
}
.pill-online i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- 落地页 Hero ---------- */
.landing { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 6px 22px 80px; }
.hero {
  background: linear-gradient(165deg, rgba(255, 46, 126, 0.09), rgba(139, 92, 246, 0.05) 45%, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 42px 36px;
  animation: pop .5s ease;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 126, .8), rgba(255, 122, 61, .8), transparent);
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-badge {
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 1.5px; color: #ffd9e8;
  background: rgba(255, 46, 126, 0.14); border: 1px solid rgba(255, 46, 126, 0.4);
}
.hero-badge.soft {
  color: var(--sub); letter-spacing: .5px; font-weight: 600;
  background: var(--panel2); border-color: var(--line2);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 900; line-height: 1.25;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--sub); font-size: 15.5px; line-height: 1.9; max-width: 560px; margin-bottom: 26px; }
.hero-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 640px; }
/* flex-basis 必须用 auto：basis 定值(300px)在 column 布局的 hero-form 里会变成高度，
   把激活码输入框撑成 300px 高的大空盒（2026-09-29 实测坑） */
.hero-form .code-input { flex: 1 1 auto; min-width: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.hero-feats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
}
.feat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--sub); font-weight: 600; }
.feat b { font-size: 20px; }

/* ---------- 激活页（后台登录等沿用） ---------- */
.page-gate { padding: 10px 0 60px; }
.gate-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: rgba(20, 17, 28, 0.85); backdrop-filter: blur(18px);
  border-radius: 26px; box-shadow: var(--shadow);
  padding: 44px 38px; text-align: center;
  border: 1px solid var(--line);
  animation: pop .5s ease;
  margin: 6vh auto;
}
.gate-logo { font-size: 60px; animation: bounce 2s ease infinite; display: inline-block; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.gate-card h1 {
  font-size: 26px; margin: 8px 0 4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-sub { color: var(--sub); margin-bottom: 22px; font-size: 14px; }
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.code-input {
  padding: 15px 18px; border-radius: 14px; font-size: 16px; text-align: center;
  border: 1px solid var(--line2); outline: none; letter-spacing: 1px;
  transition: border .2s, box-shadow .2s;
}
.code-input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 46, 126, 0.15); }
.alert {
  padding: 13px 17px; border-radius: 14px; font-size: 14px; line-height: 1.8;
  margin-bottom: 16px; font-weight: 600; border: 1px solid transparent;
}
.alert.err  { background: rgba(255, 46, 96, 0.12);  color: #ff8fab; border-color: rgba(255, 46, 96, 0.35); }
.alert.warn { background: rgba(250, 204, 21, 0.09); color: #f5d47a; border-color: rgba(250, 204, 21, 0.28); }
.gate-tips {
  margin-top: 22px; text-align: left; font-size: 13px; color: var(--sub);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 14px; line-height: 1.8;
}
.gate-tips .muted { color: var(--dim); margin-top: 6px; }

/* ---------- 通用页头（内页） ---------- */
.page-game { padding: 0 0 40px; }
.game-header {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 16px 22px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 6, 11, 0.75); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.game-header .logo { font-weight: 900; font-size: 18px; color: var(--txt); text-decoration: none; letter-spacing: .5px; }
.chip {
  background: var(--panel2); color: var(--sub); padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--line);
  transition: all .18s;
}
.chip.link:hover { background: var(--grad); color: #fff; border-color: transparent; }
.chip b { color: var(--txt); }

/* ---------- 游戏布局 ---------- */
.game-wrap {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 20px; max-width: 1180px; margin: 26px auto 0; padding: 0 20px;
  align-items: start;
}
.player-panel {
  background: var(--panel); backdrop-filter: blur(14px);
  border-radius: var(--radius); padding: 18px;
  border: 1px solid var(--line);
  transition: border .3s, transform .3s, box-shadow .3s;
}
.player-panel.active {
  border-color: rgba(255, 46, 126, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 46, 126, 0.3), 0 12px 40px rgba(255, 46, 126, 0.12);
  transform: scale(1.02);
}
#panel0 h2 { color: var(--blue); }
#panel1 h2 { color: var(--pink); }
.player-panel h2 { font-size: 17px; margin-bottom: 12px; text-align: center; }
.hangar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hangar-slot {
  height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed var(--line2);
  transition: all .3s; cursor: pointer;
}
.hangar-slot.empty { opacity: .3; border-style: solid; }
.hangar-slot.movable { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 46, 126, .35); }
.p-stats {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 13px; color: var(--dim);
}
.p-stats b { color: var(--txt); font-size: 16px; }
.p-tag {
  margin-top: 10px; text-align: center; font-size: 12.5px; color: #ffb1cd;
  background: rgba(255, 46, 126, 0.1); border: 1px solid rgba(255, 46, 126, 0.25);
  border-radius: 999px; padding: 5px 0; font-weight: 700; letter-spacing: .5px;
}

/* ---------- 亲密度条 ---------- */
.bond-bar {
  width: 100%; max-width: 620px;
  background: var(--panel); backdrop-filter: blur(14px);
  border-radius: 16px; padding: 13px 18px;
  border: 1px solid var(--line);
}
.bond-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: #ffb1cd; margin-bottom: 8px; }
.bond-days { color: var(--sub); font-weight: 600; }
.bond-track { height: 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bond-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: var(--grad);
  transition: width .8s cubic-bezier(.34,1.3,.64,1);
  box-shadow: 0 0 14px rgba(255, 46, 126, .7);
}
.bond-count { font-size: 12px; color: var(--dim); margin-top: 6px; text-align: right; }
.bond-count span { color: var(--sub); }

/* ---------- 棋盘 ---------- */
.board-zone { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.board {
  position: relative; width: 100%; max-width: 600px; aspect-ratio: 1;
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(255, 46, 126, 0.07), transparent 70%),
    rgba(16, 13, 24, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 60px rgba(255, 46, 126, 0.05);
}
.cell {
  position: absolute; width: 8.6%; height: 8.6%;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: clamp(11px, 2.2vw, 19px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .2s, box-shadow .2s;
}
.cell:hover { transform: scale(1.08); }
.cell.ev-task  { background: rgba(255, 46, 126, 0.16);  border-color: rgba(255, 46, 126, 0.4); }
.cell.ev-truth { background: rgba(79, 156, 249, 0.15);  border-color: rgba(79, 156, 249, 0.4); }
.cell.ev-dare  { background: rgba(255, 122, 61, 0.16);  border-color: rgba(255, 122, 61, 0.42); }
.cell.ev-lucky { background: rgba(250, 204, 21, 0.15);  border-color: rgba(250, 204, 21, 0.42); }
.cell.ev-trap  { background: rgba(139, 92, 246, 0.18);  border-color: rgba(139, 92, 246, 0.45); }
.cell.ev-quiz  { background: rgba(34, 197, 94, 0.14);   border-color: rgba(34, 197, 94, 0.4); }
.cell.start0   { background: rgba(79, 156, 249, 0.3);   border-color: var(--blue); }
.cell.start1   { background: rgba(255, 46, 126, 0.3);   border-color: var(--pink); }
.cell.entry0   { background: rgba(79, 156, 249, 0.3);   border-color: var(--blue); border-style: double; }
.cell.entry1   { background: rgba(255, 46, 126, 0.3);   border-color: var(--pink); border-style: double; }

.board-center {
  position: absolute; left: 30%; top: 30%; width: 40%; height: 40%;
  display: flex; align-items: center; justify-content: center;
}
.heart-big {
  font-size: clamp(50px, 12vw, 110px);
  filter: drop-shadow(0 0 30px rgba(255, 46, 126, 0.5));
  animation: heartbeat 1.6s ease infinite;
}
@keyframes heartbeat { 0%,100%{transform:scale(1)} 12%{transform:scale(1.12)} 24%{transform:scale(1)} 36%{transform:scale(1.08)} 48%{transform:scale(1)} }

/* 飞机棋子 */
.plane {
  position: absolute; width: 7.4%; height: 7.4%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(15px, 3vw, 27px); z-index: 10; cursor: pointer;
  transition: left .38s cubic-bezier(.34,1.4,.64,1), top .38s cubic-bezier(.34,1.4,.64,1), filter .2s;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
  user-select: none;
}
.plane.movable { animation: wiggle .7s ease infinite; }
@keyframes wiggle { 0%,100%{transform:rotate(-8deg) scale(1.1)} 50%{transform:rotate(8deg) scale(1.18)} }

/* ---------- 骰子区 ---------- */
.dice-zone { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.turn-hint { font-size: 15px; font-weight: 700; color: #ffb1cd; min-width: 140px; text-align: center; }
.speed-pick {
  display: inline-flex; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 12px;
}
.speed-btn {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--sub);
  padding: 5px 11px; border-radius: 9px; transition: all .18s ease;
}
.speed-btn:hover { background: rgba(255, 46, 126, 0.12); color: #ffb1cd; }
.speed-btn.active { background: var(--grad); color: #fff; box-shadow: 0 3px 12px rgba(255, 46, 126, .4); }
.dice-bubble {
  position: fixed; z-index: 50; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 24px;
  background: var(--grad);
  color: #fff; font-size: 42px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 50px rgba(255, 46, 126, .55);
  animation: diceShake .5s ease infinite;
}
@keyframes diceShake {
  0%,100% { transform: translate(-50%,-50%) rotate(0); }
  25% { transform: translate(-52%,-50%) rotate(-12deg); }
  75% { transform: translate(-48%,-50%) rotate(12deg); }
}
.hidden { display: none !important; }

/* ---------- 连击 / 情话飘字 ---------- */
.combo-tip {
  position: fixed; z-index: 90; left: 50%; top: 12%;
  transform: translateX(-50%);
  max-width: min(90vw, 520px);
  background: linear-gradient(135deg, rgba(255, 46, 126, 0.96), rgba(255, 122, 61, 0.96));
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.6;
  padding: 14px 24px; border-radius: 18px; text-align: center;
  box-shadow: 0 16px 44px rgba(255, 46, 126, .5);
  animation: comboIn .45s cubic-bezier(.34,1.5,.64,1);
}
@keyframes comboIn {
  from { opacity: 0; transform: translate(-50%, -18px) scale(.85); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: #16121f; border: 1px solid var(--line2);
  border-radius: 26px; padding: 34px 30px; max-width: 430px; width: 100%;
  text-align: center; box-shadow: var(--shadow);
  animation: pop .35s ease;
}
.modal-icon { font-size: 56px; margin-bottom: 8px; filter: drop-shadow(0 0 18px rgba(255, 46, 126, .4)); }
.modal-card h3 { color: var(--txt); font-size: 21px; margin-bottom: 12px; }
.modal-card p {
  font-size: 16px; line-height: 1.8; color: #d8d2e0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.modal-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn-soft { background: rgba(255, 255, 255, 0.06); color: var(--sub); }

/* ---------- 设置弹层 ---------- */
.setup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.setup-row label, .setup-full {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--sub); text-align: left; font-weight: 600;
}
.setup-row input, .setup-full input {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2);
  font-size: 15px; outline: none; width: 100%;
  background: rgba(255, 255, 255, 0.05); color: var(--txt); color-scheme: dark;
  transition: border-color .15s, box-shadow .15s;
}
.setup-row input::placeholder, .setup-full input::placeholder { color: var(--dim); }
.setup-row input:focus, .setup-full input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 46, 126, .14); }
.setup-full { margin-bottom: 4px; }

/* ---------- 默契问答 ---------- */
.quiz-box { margin-top: 16px; }
.quiz-sub { font-size: 13.5px !important; color: var(--dim) !important; background: none !important; border: none !important; padding: 0 0 10px !important; }
.quiz-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.quiz-btns .btn { font-size: 13.5px; padding: 10px 14px; }

/* ---------- 胜利 ---------- */
.win-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(4, 3, 8, 0.78);
  backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.win-card {
  background: linear-gradient(165deg, #1c1526, #120e1a);
  border: 1px solid rgba(255, 46, 126, 0.35);
  border-radius: 30px; padding: 46px 40px; max-width: 450px; width: 100%;
  text-align: center; box-shadow: 0 20px 70px rgba(255, 46, 126, 0.25); animation: pop .4s ease;
}
.win-emoji { font-size: 52px; margin-bottom: 10px; }
.win-card h2 {
  font-size: 26px; margin-bottom: 10px; color: #fff;
  text-shadow: 0 0 24px rgba(255, 46, 126, 0.65);
}
.win-card p { color: var(--sub); margin-bottom: 22px; line-height: 1.8; }
.win-card p b { color: #ffb1cd; font-size: 17px; }
.win-card p .ws-line { display: block; margin-bottom: 4px; }
.win-review {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; margin-bottom: 20px;
  text-align: left; max-height: 180px; overflow-y: auto;
}
.rev-title { font-size: 13px; font-weight: 700; color: #ffb1cd; margin-bottom: 8px; }
.rev-item {
  display: inline-block; font-size: 12.5px; color: var(--sub);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .game-wrap { grid-template-columns: 1fr; }
  .player-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .player-panel h2 { grid-column: 1 / -1; }
  .hangar { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .hangar-slot { height: 48px; font-size: 24px; }
  .p-stats { grid-column: 1 / -1; }
  .p-tag { grid-column: 1 / -1; }
  .setup-row { grid-template-columns: 1fr; }
  .combo-tip { top: auto; bottom: 12%; font-size: 14px; padding: 12px 18px; }
  .hero { padding: 30px 24px; }
  .hero-feats { grid-template-columns: 1fr; }
}

/* ---------- 先手选择 ---------- */
.first-pick-title { font-size: 14px; color: var(--sub); font-weight: 700; margin: 16px 0 10px; text-align: center; }
.first-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.first-btn {
  padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.05); font-size: 15px; font-weight: 800;
  color: var(--txt); cursor: pointer; transition: all .18s;
}
.first-btn:hover { background: rgba(255, 46, 126, 0.1); }
.first-btn.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(255, 46, 126, .4);
}

/* ==========================================================
   🎚️ 内容版式（标准 / 私密 / 秀秀 / 大胆）
   同一副棋盘，只换题目池 —— 卡片式选择 + 底部角标
   ========================================================== */
.mode-pick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 13px; border-radius: 14px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.05);
  color: var(--txt); cursor: pointer; transition: all .18s; text-align: left;
  font-family: inherit; position: relative; overflow: hidden;
}
.mode-card:hover { background: rgba(255, 46, 126, 0.1); border-color: rgba(255, 46, 126, 0.4); }
.mode-card .mc-icon { font-size: 20px; line-height: 1.1; }
.mode-card .mc-name { font-size: 14.5px; font-weight: 800; }
.mode-card .mc-desc { font-size: 11.5px; color: var(--sub); line-height: 1.45; }
.mode-card.active {
  border-color: transparent; background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px rgba(255, 46, 126, .4);
}
.mode-card.active .mc-desc { color: rgba(255, 255, 255, 0.86); }
/* 🔥 大胆版：常驻一层暖色晕染，和其它三档一眼可分 */
.mode-card.adult { background-image: linear-gradient(160deg, rgba(255, 138, 61, 0.16), rgba(255, 46, 126, 0.08)); border-color: rgba(255, 138, 61, 0.42); }
.mode-card.adult.active { background-image: none; }
.mode-note {
  margin-top: 9px; font-size: 12px; line-height: 1.55; color: var(--sub);
  background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--line2);
  border-radius: 11px; padding: 8px 11px;
}
.mode-note.adult { color: #ffcf9a; border-color: rgba(255, 138, 61, 0.45); background: rgba(255, 138, 61, 0.09); }

/* 骰子区旁的当前版式角标（点一下直达版式选择） */
.mode-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--txt);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line2);
  transition: all .18s; white-space: nowrap; user-select: none;
}
.mode-badge:hover { background: rgba(255, 46, 126, 0.14); border-color: rgba(255, 46, 126, 0.45); }
.mode-badge.adult { color: #ffcf9a; border-color: rgba(255, 138, 61, 0.5); background: rgba(255, 138, 61, 0.12); }

/* ==========================================================
   商城 / 代理中心
   ========================================================== */
.page-shop { min-height: 100vh; }
.shop-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 18px 70px; position: relative; z-index: 1; }
.shop-hero { text-align: center; margin-bottom: 30px; }
.shop-hero h1 {
  font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-sub { color: var(--sub); font-size: 15px; margin: 0 0 18px; }
.shop-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 24px; padding: 30px 28px; box-shadow: var(--shadow);
  margin-bottom: 26px; backdrop-filter: blur(14px);
}
.shop-card h2 { font-size: 21px; margin-bottom: 16px; }
.shop-card h3 { margin: 6px 0 10px; color: #ffb1cd; }
.plan-section { margin-bottom: 40px; }
.plan-section h2 { font-size: 21px; margin: 0 0 16px; font-weight: 800; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 16px; }
.plan-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px 20px;
  transition: all .22s ease; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.plan-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .22s;
}
.plan-card:hover { transform: translateY(-5px); border-color: rgba(255, 46, 126, 0.45); box-shadow: 0 16px 44px rgba(255, 46, 126, 0.14); }
.plan-card:hover::after { opacity: 1; }
.plan-card.agent { background: linear-gradient(165deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.03)); border-color: rgba(139, 92, 246, 0.35); }
.plan-name { font-size: 16.5px; font-weight: 800; }
.plan-price {
  font-size: 30px; font-weight: 900; margin: 10px 0 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-desc { font-size: 13.5px; color: var(--sub); margin-bottom: 18px; flex: 1; line-height: 1.7; }
.buy-info { text-align: center; margin: 6px 0 18px; color: var(--sub); font-size: 14px; line-height: 1.8; }
.buy-info b { color: var(--txt); }
.pay-pick-title { font-size: 14px; color: var(--sub); margin: 16px 0 10px; font-weight: 700; }
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-btn {
  position: relative; display: flex; align-items: center;
  padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line2);
  background: rgba(255, 255, 255, 0.05); font-size: 14.5px; font-weight: 700;
  color: var(--txt); cursor: pointer; transition: all .18s; text-align: left;
}
.pay-btn .pay-meta { display: flex; flex-direction: column; gap: 3px; padding-right: 22px; }
.pay-btn .pay-sub { font-size: 11px; font-weight: 500; color: var(--sub); }
.pay-btn .pay-check {
  position: absolute; top: 9px; right: 10px; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; border: 1.5px solid var(--line2); color: transparent;
}
.pay-btn:hover { background: rgba(255, 46, 126, 0.1); border-color: rgba(255, 46, 126, 0.45); }
.pay-btn.active[data-chan="wxpay"] {
  background: linear-gradient(135deg, #09bb07, #0ac46a); border-color: transparent;
  color: #fff; box-shadow: 0 6px 20px rgba(9, 187, 7, 0.3);
}
.pay-btn.active[data-chan="alipay"] {
  background: linear-gradient(135deg, #1677ff, #4096ff); border-color: transparent;
  color: #fff; box-shadow: 0 6px 20px rgba(22, 119, 255, 0.3);
}
.pay-btn.active .pay-sub { color: rgba(255, 255, 255, 0.85); }
.pay-btn.active .pay-check { background: #fff; border-color: #fff; color: #09bb07; }
.pay-btn.active[data-chan="alipay"] .pay-check { color: #1677ff; }
.badge { padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-block; }
.badge.ok  { background: rgba(34, 197, 94, 0.14); color: #6ee7a0; border: 1px solid rgba(34, 197, 94, 0.35); }
.badge.wait { background: rgba(250, 204, 21, 0.1); color: #f5d47a; border: 1px solid rgba(250, 204, 21, 0.3); }
.badge.err  { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.order-result { max-width: 640px; margin: 0 auto 30px; }
.order-meta p { margin: 7px 0; color: var(--sub); font-size: 15px; }
.order-meta b { color: var(--txt); }
.mt { margin-top: 22px; }
.tip { font-size: 13.5px; color: var(--sub); line-height: 1.8; }
.tip a { color: #ff7aa0; font-weight: 700; }
.card-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.card-item {
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255, 46, 126, 0.07); border: 1px dashed rgba(255, 46, 126, 0.4);
  font-weight: 800; letter-spacing: .8px; color: #ffb1cd;
  cursor: pointer; font-size: 15px; text-align: center; transition: all .16s;
}
.card-item:hover { background: rgba(255, 46, 126, 0.14); }

/* 输入框自动填充修正：Chrome autofill 会强制白底，配浅色文字会看不见 */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1c1728 inset;
  -webkit-text-fill-color: #f7f5fa;
  transition: background-color 99999s ease-in-out 0s;
}
.agent-box {
  margin-top: 12px; padding: 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(255, 46, 126, 0.07));
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.agent-box p { margin: 6px 0; font-size: 15px; color: #d8d2e0; }
.agent-box b { color: var(--txt); }
.agent-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.agent-stats .stat {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; text-align: center;
}
.agent-stats .stat span { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 6px; }
.agent-stats .stat b { font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pull-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.pull-form label { font-size: 13.5px; color: var(--sub); font-weight: 600; }
.pull-form input {
  display: block; margin-top: 8px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line2); font-size: 16px; width: 120px; outline: none;
}
.pull-form input:focus { border-color: var(--pink); }

/* ==========================================================
   游戏大厅（参照新版设计）
   ========================================================== */
.page-hall { min-height: 100vh; }
.hall-wrap { max-width: 1020px; margin: 0 auto; padding: 26px 18px 70px; position: relative; z-index: 1; }
.hall-hero { margin-bottom: 30px; }
.hall-hero h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; font-weight: 900; }
.hall-hero .shop-sub { margin: 0; }
.sec-head { margin: 34px 0 18px; }
.sec-head h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.sec-head p { color: var(--sub); font-size: 14px; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.hall-card {
  display: flex; flex-direction: column; text-decoration: none; padding: 22px;
  border-radius: 22px; background: var(--panel);
  border: 1px solid var(--line);
  transition: all .22s ease; position: relative; overflow: hidden;
  color: var(--txt);
}
.hall-card::before {
  content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, var(--c, #ff2e7e) 0%, transparent 70%);
  opacity: .16; transition: opacity .25s;
}
.hall-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c, #ff2e7e) 55%, transparent); box-shadow: 0 18px 46px rgba(0,0,0,.45); }
.hall-card:hover::before { opacity: .32; }
.hall-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hall-icon { font-size: 38px; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c, #ff2e7e) 60%, transparent)); }
.hall-badge {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .5px;
}
.hall-badge.free { background: rgba(34, 197, 94, 0.14); color: #6ee7a0; border: 1px solid rgba(34, 197, 94, 0.4); }
.hall-badge.paid { background: rgba(255, 46, 126, 0.13); color: #ff8fb3; border: 1px solid rgba(255, 46, 126, 0.4); }
/* 已激活（v9.8）：会员看付费游戏的徽章 —— 金色，与「免费」的绿、「付费」的粉都区分开 */
.hall-badge.on   { background: rgba(250, 204, 21, 0.14); color: #fcd34d; border: 1px solid rgba(250, 204, 21, 0.42); }
.hall-badge.hot  { background: var(--grad); color: #fff; border: none; box-shadow: 0 4px 14px rgba(255, 46, 126, .4); }
.hall-name { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.hall-desc { font-size: 13px; color: var(--sub); line-height: 1.7; min-height: 44px; flex: 1; }
.hall-play {
  margin-top: 16px; text-align: center; padding: 11px 0; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c, #ff2e7e) 45%, transparent);
  color: color-mix(in srgb, var(--c, #ff2e7e) 80%, #fff);
  font-size: 13.5px; font-weight: 800; letter-spacing: 1px;
  transition: all .2s;
}
.hall-card:hover .hall-play { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.hall-card.featured { grid-column: span 2; background: linear-gradient(150deg, rgba(255, 46, 126, 0.14), rgba(139, 92, 246, 0.08) 55%, rgba(255, 255, 255, 0.03)); }
.hall-card.featured .hall-desc { min-height: 0; }
@media (max-width: 640px) { .hall-card.featured { grid-column: span 1; } }

/* 分类筛选 chips */
.fchips { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 24px; }
.fchip {
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--sub); background: var(--panel2); border: 1px solid var(--line2);
  cursor: pointer; transition: all .18s;
}
.fchip:hover { color: var(--txt); border-color: rgba(255, 46, 126, 0.45); }
.fchip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .hall-card:hover { border-color: rgba(255, 46, 126, 0.5); }
  .hall-play { border-color: rgba(255, 46, 126, 0.45); color: #ff8fb3; }
}

/* ---------- 小游戏页 ---------- */
.mini-wrap{max-width:680px;margin:0 auto;padding:22px 18px 44px;position:relative;z-index:1}
.mini-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.mini-head h1{font-size:24px;margin:0;font-weight:900}
.mini-card{
  background:var(--panel);border:1px solid var(--line);border-radius:26px;padding:30px 26px;
  box-shadow:var(--shadow);backdrop-filter:blur(14px);text-align:center;
}
.mini-tip{color:var(--sub);font-size:14px;margin:10px 0 20px;line-height:1.7}
.big-btn{
  font-size:18px;padding:15px 42px;border-radius:999px;border:0;cursor:pointer;
  background:var(--grad);color:#fff;font-weight:800;
  box-shadow:0 10px 30px rgba(255,46,126,.4);transition:transform .16s;
}
.big-btn:active{transform:scale(.96)}
.big-btn:disabled{opacity:.5;cursor:not-allowed}
.result{
  margin-top:24px;padding:22px;border-radius:18px;
  background:rgba(255,46,126,0.06);border:1px solid rgba(255,46,126,0.25);
  font-size:18px;font-weight:700;color:#ffd9e8;line-height:1.7;min-height:60px;
  display:flex;align-items:center;justify-content:center;
  animation:pop .35s ease;
}
@keyframes pop{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}
.opt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.opt-grid button{
  padding:14px;border-radius:14px;border:1px solid var(--line2);
  background:rgba(255,255,255,0.05);font-size:15px;font-weight:700;color:var(--txt);cursor:pointer;transition:all .18s;
}
.opt-grid button:hover{background:rgba(255,46,126,0.12);border-color:rgba(255,46,126,0.45)}
.opt-grid button.sel{background:var(--grad);color:#fff;border-color:transparent}
.q-prog{font-size:13px;color:var(--dim);margin-bottom:8px}
.q-text{font-size:19px;font-weight:800;margin:14px 0 20px;line-height:1.6}
.date-row{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:16px 0}
.date-row input{padding:12px 14px;border-radius:12px;border:1px solid var(--line2);font-size:16px;outline:none;color-scheme:dark}
.num-big{
  font-size:52px;font-weight:900;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.1;
}
.dice-pair{display:flex;gap:26px;justify-content:center;margin:20px 0}
.die{
  width:86px;height:86px;border-radius:20px;
  background:rgba(255,255,255,0.05);border:1.5px solid var(--line2);
  display:flex;align-items:center;justify-content:center;
  font-size:40px;font-weight:900;color:#ffd9e8;box-shadow:inset 0 0 24px rgba(255,46,126,.08);
}
.die.roll{animation:diceRoll .4s ease infinite}
@keyframes diceRoll{0%,100%{transform:rotate(0)}50%{transform:rotate(14deg)}}
.bar{height:12px;border-radius:10px;background:rgba(255,255,255,0.08);overflow:hidden;margin-top:16px}
.bar-fill{height:100%;background:var(--grad);width:0;transition:width .5s}
.back{color:#ff7aa0;text-decoration:none;font-weight:700;font-size:15px}

/* ==========================================================
   后台管理（暗色）
   ========================================================== */
.page-admin { min-height: 100vh; }
.admin-nav {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 13px 18px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 6, 11, 0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-nav a {
  padding: 9px 16px; border-radius: 11px; text-decoration: none; font-size: 14px;
  font-weight: 700; color: var(--sub); transition: all .18s;
}
.admin-nav a:hover { background: rgba(255, 46, 126, 0.12); color: #ffb1cd; }
.admin-nav a.active { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.admin-nav a.logout { margin-left: auto; color: #ff8fab; background: rgba(255, 46, 96, 0.1); border: 1px solid rgba(255, 46, 96, 0.3); }
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 18px 70px; position: relative; z-index: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center; backdrop-filter: blur(10px);
}
.stat-card .num { font-size: 28px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lbl { font-size: 13px; color: var(--sub); margin-top: 4px; }
.admin-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 22px; backdrop-filter: blur(10px);
}
.admin-panel h3 { margin-bottom: 14px; font-size: 17px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.form-row label { font-size: 13px; color: var(--sub); font-weight: 600; }
.form-row input, .form-row select {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2);
  font-size: 14px; outline: none;
}
.form-row input:focus, .form-row select:focus { border-color: var(--pink); }
table.cards { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cards th, table.cards td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.cards th { color: var(--sub); background: rgba(255, 255, 255, 0.04); border-radius: 6px; font-weight: 700; }
table.cards tr:hover td { background: rgba(255, 255, 255, 0.025); }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.unused { background: rgba(34, 197, 94, 0.13); color: #6ee7a0; }
.tag.used { background: rgba(79, 156, 249, 0.14); color: #8fc3ff; }
.tag.disabled { background: rgba(255, 46, 96, 0.13); color: #ff8fab; }
.tag.expired { background: rgba(255, 255, 255, 0.07); color: var(--dim); }
.mini-btn {
  border: 1px solid var(--line2); cursor: pointer; padding: 5px 12px; border-radius: 8px; font-size: 12.5px;
  background: rgba(255, 255, 255, 0.06); color: var(--txt); margin-right: 5px; font-weight: 600;
}
.mini-btn.danger { background: rgba(255, 46, 96, 0.12); color: #ff8fab; border-color: rgba(255, 46, 96, 0.35); }
.mini-btn:hover { filter: brightness(1.25); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select {
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line2); font-size: 14px; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--pink); }
.pager { display: flex; gap: 8px; margin-top: 14px; justify-content: center; }
.pager a, .pager span {
  padding: 6px 13px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); color: var(--sub);
  text-decoration: none; font-size: 13.5px; border: 1px solid var(--line);
}
.pager a:hover { color: var(--txt); border-color: rgba(255, 46, 126, 0.45); }
.pager .cur { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
code.copyable { background: rgba(255, 46, 126, 0.09); color: #ffb1cd; padding: 3px 9px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 12px; }
.quick {
  display: block; padding: 16px 18px; border-radius: 15px; text-decoration: none;
  background: rgba(255, 255, 255, 0.04); color: #ff8fb3; font-weight: 700; font-size: 14.5px;
  border: 1px solid var(--line); transition: all .18s;
}
.quick:hover { background: rgba(255, 46, 126, 0.1); transform: translateY(-2px); border-color: rgba(255, 46, 126, 0.4); }

/* ---------- 激活页快捷入口 ---------- */
.gate-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.gate-act {
  display: block; text-align: center; padding: 12px 8px; border-radius: 12px;
  text-decoration: none; font-size: 13.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); color: #ff8fb3; border: 1px solid var(--line);
  transition: all .18s;
}
.gate-act:hover { background: rgba(255, 46, 126, 0.12); transform: translateY(-2px); }
.gate-act.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
@media (max-width: 480px) { .gate-actions { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .plan-grid, .hall-grid { grid-template-columns: 1fr 1fr; }
  .pay-btns { grid-template-columns: 1fr; }
  .agent-stats { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 14px 16px; }
  .landing { padding: 4px 14px 40px; }
}

/* ==========================================================
   v6：页脚 / 客服微信 / 后台精修
   ========================================================== */
.site-footer {
  max-width: 1080px; margin: 0 auto; padding: 30px 20px 44px;
  text-align: center; color: var(--dim); font-size: 12.5px; line-height: 2;
  position: relative; z-index: 1;
}
.site-footer .foot-brand { font-size: 15px; font-weight: 900; color: var(--sub); margin-bottom: 4px; }
.site-footer .foot-links a { color: #ff8fb3; font-weight: 700; text-decoration: none; margin: 0 3px; }
.site-footer .foot-links span { color: var(--sub); }
.site-footer .foot-copy { letter-spacing: .5px; }

/* v9.2 前台减法：后台能力统一收进个人中心，公共页面只保留购买/游戏/账号主路径 */
.agent-slim{margin-top:22px;padding:10px 14px;border:1px solid rgba(255,255,255,.07);border-radius:999px;display:inline-flex;align-items:center;gap:5px}
.agent-slim a{color:#ff8fb3}
.pc-quick-sec{background:linear-gradient(135deg,rgba(255,46,126,.08),rgba(139,92,246,.07));border-color:rgba(255,255,255,.13)}
@media (max-width:620px){
  .agent-slim{max-width:100%;border-radius:14px;justify-content:center;line-height:1.6}
  .pc-quick-sec{padding:20px 16px}
}

.kefu-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 18px; padding: 16px 18px; margin-top: 18px;
}
.kefu-card .k-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4);
}
.kefu-card .k-body { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--sub); min-width: 0; }
.kefu-card .k-body b { color: var(--txt); font-size: 14.5px; }
.kefu-card .k-body code {
  align-self: flex-start; margin-top: 4px; font-family: inherit;
  background: rgba(34, 197, 94, 0.14); border: 1px dashed rgba(34, 197, 94, 0.5);
  color: #86efac; padding: 4px 12px; border-radius: 9px; font-size: 14px; font-weight: 800;
  cursor: pointer; letter-spacing: 1px;
}

/* ---------- 后台精修 ---------- */
.page-admin .admin-nav { border-radius: 0 0 18px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.page-admin .admin-nav .brand {
  font-weight: 900; font-size: 15px; color: var(--txt); margin-right: 8px;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
}
.page-admin .admin-nav .back-site {
  font-size: 12.5px; font-weight: 700; color: #8fc3ff; text-decoration: none;
  border: 1px solid rgba(79, 156, 249, 0.35); background: rgba(79, 156, 249, 0.1);
  padding: 6px 12px; border-radius: 9px; margin-left: 4px;
}
.page-admin .admin-nav .back-site:hover { background: rgba(79, 156, 249, 0.2); }
.admin-panel h3 { display: flex; align-items: center; gap: 8px; }
.admin-panel { transition: border-color .2s; }
.admin-panel:hover { border-color: rgba(255, 46, 126, 0.28); }
table.cards { border-radius: 12px; overflow: hidden; }
table.cards th { position: sticky; top: 0; }
.gm-table td .mini-btn { margin: 2px 4px 2px 0; }
.game-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.game-matrix .gm-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 13px; transition: border-color .15s;
}
.game-matrix .gm-row:hover { border-color: rgba(255, 46, 126, 0.4); }
.game-matrix .gm-row .gi { font-size: 21px; }
.game-matrix .gm-row .gn { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; }
.game-matrix .gm-row .gn small { display: block; color: var(--dim); font-weight: 500; font-size: 11.5px; }
.game-matrix .gm-row select {
  padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.06); color: var(--txt); font-size: 12.5px; font-weight: 700; outline: none;
}
.game-matrix .gm-row select.free-opt { color: #6ee7a0; }
.game-matrix .gm-row select.paid-opt { color: #ff8fb3; }

/* ==========================================================
   v6 · 个人中心 / 资料表单（profile.php / profile_setup.php）
   ========================================================== */
.alert.ok { background: rgba(34, 197, 94, 0.12); color: #7bd88f; border-color: rgba(34, 197, 94, 0.32); }

.profile-wrap { max-width: 900px; margin: 0 auto; padding: 26px 18px 44px; position: relative; z-index: 1; }

/* ---------- 资料表单 ---------- */
.pf-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.pf-head { text-align: center; margin-bottom: 24px; }
.pf-badge {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
  background: var(--grad); color: #fff; padding: 6px 16px; border-radius: 999px;
  box-shadow: var(--glow); margin-bottom: 14px;
}
.pf-head h1 { font-size: 25px; font-weight: 900; margin-bottom: 10px; line-height: 1.35; }
.pf-sub { color: var(--sub); font-size: 13.5px; line-height: 1.75; max-width: 620px; margin: 0 auto; }
.pf-sub b { color: var(--pink); }

.pf-form { margin-top: 26px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pf-grid { grid-template-columns: 1fr; } }

.pf-row { margin-bottom: 16px; display: flex; flex-direction: column; }
.pf-label { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 7px; }
.pf-req { color: var(--pink); }
.pf-hint { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

.pf-form input[type=text], .pf-form input[type=date] {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.05);
  color: var(--txt); font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.pf-form input:focus { border-color: rgba(255, 46, 126, 0.6); box-shadow: 0 0 0 3px rgba(255, 46, 126, 0.13); }
.pf-form input[type=date] { color-scheme: dark; }

/* 头像选择 */
.pf-avatars { display: flex; flex-wrap: wrap; gap: 9px; }
.pf-av {
  width: 46px; height: 46px; font-size: 22px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center; transition: all .16s;
}
.pf-av:hover { transform: translateY(-2px); border-color: rgba(255, 46, 126, 0.45); }
.pf-av.on {
  border-color: transparent; background: var(--grad);
  box-shadow: 0 6px 20px rgba(255, 46, 126, 0.45); transform: translateY(-2px);
}

.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.pf-foot { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 20px; }
.pf-foot b { color: var(--sub); }

/* ---------- 个人中心 ---------- */
.pc-hero {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 46, 126, 0.13), rgba(139, 92, 246, 0.09));
  border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 26px 26px; box-shadow: var(--shadow); backdrop-filter: blur(14px); margin-bottom: 20px;
}
.pc-avatar {
  width: 84px; height: 84px; flex: none; font-size: 42px; border-radius: 26px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow);
}
.pc-hero-main { flex: 1; min-width: 220px; }
.pc-name { font-size: 25px; font-weight: 900; margin-bottom: 5px; }
.pc-greet { color: var(--sub); font-size: 13.5px; margin-bottom: 10px; }
.pc-bio { color: #ffb9d3; font-size: 13.5px; font-style: italic; margin-bottom: 10px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag {
  font-size: 12.5px; font-weight: 700; color: var(--sub);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.pc-tag.on { color: #ffb9d3; background: rgba(255, 46, 126, 0.14); border-color: rgba(255, 46, 126, 0.3); }
.pc-tag b { color: #fff; }

.pc-comp { text-align: center; flex: none; }
.pc-comp-ring {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 8px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--pink) calc(var(--pct, 0) * 1%), rgba(255, 255, 255, 0.09) 0);
}
.pc-comp-ring::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #100d18;
}
.pc-comp-ring span { position: relative; z-index: 1; font-size: 16px; font-weight: 900; }
.pc-comp-txt { font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.pc-comp-txt small { color: var(--dim); font-size: 10.5px; }

.pc-sec {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px; margin-bottom: 20px; backdrop-filter: blur(14px);
}
.pc-h2 { font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.pc-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 11px; }
.pc-info {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 14px;
}
.pc-info span { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 5px; }
.pc-info b { font-size: 14px; word-break: break-all; }
.pc-note { color: var(--dim); font-size: 12.5px; line-height: 1.8; margin-top: 14px; }
.pc-note b { color: var(--pink); }

.pc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 11px; }
.pc-link {
  display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--txt);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  border-radius: 15px; padding: 15px 16px; transition: all .18s;
}
.pc-link:hover { border-color: rgba(255, 46, 126, 0.45); transform: translateY(-2px); background: rgba(255, 46, 126, 0.08); }
.pc-link b { font-size: 22px; }
.pc-link span { font-size: 13.5px; font-weight: 700; }

/* 导航里的个人中心头像按钮 */
.nav-me { display: inline-flex; align-items: center; gap: 7px; }
.nav-me .av {
  width: 24px; height: 24px; border-radius: 8px; font-size: 14px;
  background: var(--grad); display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================================
   联机对战 UI（双人对战 / 在线匹配）· mp.js
   ========================================================== */
.mp-entry {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line2);
  border-radius: 18px; padding: 16px 18px; margin: 16px auto; max-width: 720px;
  backdrop-filter: blur(10px);
}
.mp-title { font-weight: 900; font-size: 15px; margin-bottom: 11px; }
.mp-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-btn {
  flex: 1; min-width: 138px; padding: 12px 18px; border: 0; border-radius: 13px; cursor: pointer;
  font-weight: 800; font-size: 14.5px; color: #fff;
  background: linear-gradient(135deg, #ff2e7e, #ff7a3d);
  box-shadow: 0 8px 22px rgba(255, 46, 126, .35); transition: transform .15s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.mp-btn:hover { filter: brightness(1.08); }
.mp-btn:active { transform: scale(.96); }
.mp-btn.mp-match { background: linear-gradient(135deg, #8b5cf6, #4f9cf9); box-shadow: 0 8px 22px rgba(139, 92, 246, .35); }
.mp-btn:disabled { filter: grayscale(.6); opacity: .6; cursor: not-allowed; }
.mp-hint { color: var(--dim); font-size: 12px; line-height: 1.7; margin-top: 10px; }

/* 浮层 */
.mp-ov {
  position: fixed; inset: 0; z-index: 10000; background: rgba(4, 3, 8, .78);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  backdrop-filter: blur(6px); animation: mpFade .18s ease;
}
@keyframes mpFade { from { opacity: 0 } to { opacity: 1 } }
.mp-dlg {
  background: #14111c; border: 1px solid var(--line2); border-radius: 22px;
  padding: 26px 22px; width: 100%; max-width: 400px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  text-align: center; animation: mpPop .2s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes mpPop { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.mp-dlg h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.mp-dlg-sub { color: var(--sub); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.mp-full { width: 100%; }
.mp-or { color: var(--dim); font-size: 12px; margin: 16px 0; }
.mp-join-row { display: flex; gap: 9px; }
.mp-input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; text-align: center;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .06);
  color: var(--txt); font-size: 18px; font-weight: 800; letter-spacing: 3px; outline: none;
  text-transform: uppercase;
}
.mp-input:focus { border-color: rgba(255, 46, 126, .6); }
.mp-go { flex: none; min-width: 84px; }
.mp-err { color: #ff8fab; font-size: 12.5px; min-height: 18px; margin-top: 9px; }
.mp-close {
  width: 100%; margin-top: 14px; padding: 11px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  color: var(--sub); font-weight: 700; font-size: 13.5px;
}
.mp-codebox {
  font-size: 34px; font-weight: 900; letter-spacing: 7px; padding: 18px 10px;
  border-radius: 15px; background: rgba(255, 46, 126, .12);
  border: 1px dashed rgba(255, 46, 126, .5); color: #ffb9d3; margin-bottom: 14px;
  user-select: all; -webkit-user-select: all;
}
.mp-wait-tip { color: var(--dim); font-size: 12.5px; min-height: 18px; margin-top: 12px; }
.mp-spin {
  width: 34px; height: 34px; margin: 14px auto; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--pink);
  animation: mpSpin .8s linear infinite;
}
@keyframes mpSpin { to { transform: rotate(360deg) } }

/* 对手状态条 */
.mp-bar {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  border-radius: 15px; padding: 10px 14px; margin-bottom: 14px;
}
.mp-side { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.mp-side.right { justify-content: flex-end; }
.mp-side .mp-av { font-size: 22px; flex: none; }
.mp-side .mp-nm { font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-side.act .mp-nm { color: #ffb9d3; }
.mp-side.act { position: relative; }
.mp-side.act::after {
  content: ''; position: absolute; inset: -6px -10px; border-radius: 13px;
  border: 1px solid rgba(255, 46, 126, .55); animation: mpTurnPulse 1.4s ease-in-out infinite;
}
@keyframes mpTurnPulse { 0%,100% { opacity: .35 } 50% { opacity: 1 } }
.mp-vs { text-align: center; flex: none; }
.mp-code-mini {
  display: block; font-size: 11px; color: var(--dim); font-weight: 800; letter-spacing: 2px;
}
.mp-turn { display: block; font-size: 12px; font-weight: 800; color: var(--sub); }
.mp-bot {
  font-size: 9.5px; font-style: normal; background: linear-gradient(135deg, #8b5cf6, #4f9cf9);
  color: #fff; border-radius: 6px; padding: 1px 5px; margin-left: 3px; vertical-align: middle;
}

/* 提示条 */
.mp-toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -18px);
  z-index: 10001; background: rgba(20, 17, 28, .96); border: 1px solid var(--line2);
  color: var(--txt); padding: 12px 22px; border-radius: 14px; font-size: 13.5px;
  font-weight: 700; box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: 88vw; text-align: center;
}
.mp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================
   联机等待遮罩 · 轮到我方操作时自动隐藏（mp-bridge.js）
   ================================================================ */
.mp-waitmask {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(10, 8, 16, .72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit; animation: mpFadeIn .18s ease;
}
@keyframes mpFadeIn { from { opacity: 0 } to { opacity: 1 } }
.mp-waitbox {
  text-align: center; padding: 26px 30px; border-radius: 18px;
  background: rgba(26, 22, 36, .96); border: 1px solid var(--line2);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .55); max-width: 82vw;
}
.mp-waitbox .mp-spin { margin: 0 auto 14px; }
.mp-wait-text { font-size: 14.5px; font-weight: 800; color: var(--txt); line-height: 1.6; }

/* 联机小徽标：加在游戏面板标题旁 */
.mp-online-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
  border-radius: 8px; padding: 3px 9px; margin-left: 8px; vertical-align: middle;
}
.mp-online-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: mpBlink 1.1s ease-in-out infinite;
}
@keyframes mpBlink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ================================================================
   手机版 UI 优化（<= 680px）：更紧凑的间距、更大的点击区、更清晰的层级
   ================================================================ */
@media (max-width: 680px) {
  :root { --r: 16px; }
  body { -webkit-text-size-adjust: 100%; }
  .wrap { padding: 0 14px; }
  .panel { padding: 16px 14px; border-radius: 18px; }

  /* 版面留白收紧（v9.12）：手机端少占屏、少空档 */
  .sec-head { margin: 22px 0 12px; }
  .shop-wrap, .hall-wrap, .admin-wrap { padding: 18px 14px 44px; }
  .mini-wrap, .profile-wrap { padding-bottom: 44px; }
  .site-footer, .foot-copy { margin-bottom: 0; }

  /* 顶部栏：真人可点区域 >=44px，避免误触 */
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar .nav-me { padding: 6px 10px; font-size: 12px; min-height: 0; }
  .topbar .nav-me .av { width: 18px; height: 18px; font-size: 11px; }
  .topbar .logo { font-size: 14px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* 顶栏按钮强制一排（2026-10-01 用户要求：手机版顶栏按钮不许换行叠两排） */
  .topbar-right, .header-right { flex-wrap: nowrap; flex: none; gap: 6px; }
  .topbar .pill, .header-right .pill { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
  .topbar .pill-grad, .header-right .pill-grad { padding: 7px 13px; }

  /* 大标题缩小，避免换行挤压 */
  h1 { font-size: 25px; line-height: 1.25; }
  h2 { font-size: 19px; }
  .tipbar { font-size: 12.5px; line-height: 1.65; padding: 9px 12px; }

  /* 所有按钮统一到易点按尺寸 */
  .act, button.act, .lock-form button, .mp-btn { min-height: 46px; font-size: 15px; }

  /* 游戏容器与棋盘自适应 */
  .gm-board { width: 100% !important; max-width: 96vw; }
  .gm-wrap { padding: 0 2px; }
  .dc-pair { gap: 14px; }
  .die3d { width: 74px; height: 74px; }
  .rx-arena { min-height: 190px; }
  .rx-half .em { font-size: 30px; }
  .rx-half .nm { font-size: 12px; }

  /* 五子棋落子判定区加大，减少点不中的挫败 */
  .gm-cell { min-width: 26px; min-height: 26px; }
  .gm-stone { font-size: 20px; }

  /* 底部悬浮音乐按钮：避开 iPhone home indicator */
  #bgmBtn { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: 14px; }

  /* 联机入口卡片更紧凑 */
  .mp-entry { padding: 14px; }
  .mp-btns { gap: 8px; }
  .mp-btn { flex: 1 1 100%; }

  /* 状态条：名字过长时截断而不是撑破布局 */
  .mp-side .mp-nm { font-size: 12.5px; max-width: 32vw; }

  /* 弹层接近全宽，输入框足够大 */
  .mp-dlg { width: 92vw; padding: 20px 18px; border-radius: 20px; }
  .mp-input { font-size: 17px; letter-spacing: 3px; height: 48px; }
  .mp-codebox { font-size: 26px; letter-spacing: 5px; }

  /* 表格/长内容横向可滚，不撑破页面 */
  .pc-sec, .panel { overflow-x: auto; }

  /* 输入框字号 >=16px 防止 iOS 自动缩放 */
  input, select, textarea { font-size: 16px; }
}

/* 超窄屏（<= 380px）再收一档 */
@media (max-width: 380px) {
  h1 { font-size: 22px; }
  .wrap { padding: 0 10px; }
  .panel { padding: 14px 11px; }
  .die3d { width: 64px; height: 64px; }
  .gm-stone { font-size: 17px; }
}

/* 触屏设备：提升可点性，去掉点击高亮，防止双击缩放 */
@media (hover: none) and (pointer: coarse) {
  .act, .mp-btn, button, a.btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
}

/* ==========================================================
   飞行棋对局设置 · 「资料来自个人中心」只读资料卡
   （个人中心已配置资料时，游戏内不再重复要求填昵称/纪念日）
   ========================================================== */
.setup-from-pc {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 6px; padding: 14px 16px; text-align: left;
  background: linear-gradient(135deg, rgba(255,46,126,.12), rgba(255,46,126,.03));
  border: 1px solid rgba(255,46,126,.28); border-radius: 16px;
}
.setup-from-pc .sfp-av {
  font-size: 30px; line-height: 1; flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.setup-from-pc .sfp-main { flex: 1 1 auto; min-width: 0; }
.setup-from-pc .sfp-name {
  font-size: 17px; font-weight: 900; color: var(--txt);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.setup-from-pc .sfp-name i { font-style: normal; color: var(--pink); }
.setup-from-pc .sfp-sub { font-size: 12.5px; color: var(--sub); margin-top: 3px; line-height: 1.5; }
.setup-from-pc .sfp-edit {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 800; text-decoration: none;
  color: var(--pink); border: 1px solid rgba(255,46,126,.4);
  border-radius: 999px; padding: 6px 13px; white-space: nowrap;
}
.setup-from-pc .sfp-edit:hover { background: rgba(255,46,126,.14); }
@media (max-width: 680px) {
  .setup-from-pc { padding: 12px 13px; gap: 10px; }
  .setup-from-pc .sfp-av { font-size: 26px; }
  .setup-from-pc .sfp-name { font-size: 15.5px; }
}

/* ==========================================================
   单人玩法提示（未接入联机钩子的游戏）
   代替「双人对战 / 在线匹配」入口，避免匹配到对手却什么都不同步的死路
   ========================================================== */
.mp-solo-note {
  margin: 14px 0 4px; padding: 14px 16px; border-radius: 16px;
  text-align: center; line-height: 1.65;
  font-size: 13.5px; color: var(--sub);
  background: rgba(120, 120, 160, .08);
  border: 1px dashed rgba(150, 150, 190, .38);
}
.mp-solo-note b { color: var(--txt); }
.mp-solo-note a { color: var(--pink); text-decoration: none; font-weight: 700; }
.mp-solo-note a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .mp-solo-note { padding: 12px 13px; font-size: 13px; }
}

/* ==========================================================
   联机「对方动态」卡片
   对等同步型玩法（塔罗/抽签/扭蛋/情话/心愿瓶/清单/拼图…）共用：
   双方各玩各的，但要能看见 TA 那边抽到了什么、做到哪一步
   ========================================================== */
.mp-opp {
  margin: 16px 0 4px; padding: 13px 15px; border-radius: 16px;
  background: rgba(255, 46, 126, .07);
  border: 1px solid rgba(255, 46, 126, .22);
}
.mpx-h {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: var(--pink);
  letter-spacing: .3px; margin-bottom: 9px;
}
.mpx-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
  flex: 0 0 auto; animation: mpxPulse 1.8s ease-out infinite;
}
@keyframes mpxPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 46, 126, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 46, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 126, 0); }
}
.mpx-b { font-size: 14px; line-height: 1.62; color: var(--txt); }
.mpx-empty { color: var(--dim); font-size: 13px; }
.mpx-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; margin-bottom: 8px;
  background: rgba(255, 255, 255, .09); color: var(--txt);
}
.mpx-txt { font-size: 15px; font-weight: 700; line-height: 1.55; word-break: break-word; }
.mpx-note { margin-top: 7px; font-size: 12.5px; color: var(--sub); line-height: 1.55; }
.mpx-note b { color: var(--txt); }

/* ==========================================================
   回合结算弹窗 MPR
   每回合结束，双方同时弹出：本回合输赢 + 惩罚任务 + 重来一局 / 退出游戏
   ========================================================== */
.mpr-ov {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(4, 3, 8, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: mprFade .22s ease;
}
@keyframes mprFade { from { opacity: 0 } to { opacity: 1 } }

.mpr-box {
  width: 100%; max-width: 384px; max-height: 88vh; overflow-y: auto;
  border-radius: 22px; padding: 22px 20px 16px;
  background: linear-gradient(162deg, #1b1728 0%, #120f1c 100%);
  border: 1px solid var(--line2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .68);
  text-align: center;
  animation: mprPop .32s cubic-bezier(.2, .9, .3, 1.25);
}
@keyframes mprPop {
  from { transform: scale(.86) translateY(16px); opacity: 0 }
  to   { transform: none; opacity: 1 }
}
.mpr-box.win  { border-color: rgba(52, 211, 153, .55); box-shadow: 0 24px 64px rgba(0,0,0,.68), inset 0 0 0 1px rgba(52,211,153,.2); }
.mpr-box.lose { border-color: rgba(255, 46, 126, .55); box-shadow: 0 24px 64px rgba(0,0,0,.68), inset 0 0 0 1px rgba(255,46,126,.2); }
.mpr-box.draw { border-color: rgba(139, 92, 246, .55); }

.mpr-ribbon {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
  color: var(--sub); background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
}
.mpr-verdict {
  margin: 12px 0 2px; font-size: 28px; font-weight: 900;
  letter-spacing: .5px; line-height: 1.25;
}
.mpr-box.win  .mpr-verdict { color: #6ee7b7; text-shadow: 0 6px 22px rgba(52, 211, 153, .35); }
.mpr-box.lose .mpr-verdict { color: #ff7aa8; text-shadow: 0 6px 22px rgba(255, 46, 126, .35); }
.mpr-box.draw .mpr-verdict { color: #c4b5fd; }

.mpr-score {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 15px 0 2px;
}
.mpr-sc {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 76px;
}
.mpr-sc b {
  font-size: 11.5px; font-weight: 700; color: var(--sub);
  max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpr-sc i {
  font-style: normal; font-size: 25px; font-weight: 900;
  color: var(--txt); line-height: 1.1;
}
.mpr-sc.opp i { color: var(--sub); }
.mpr-vs { font-size: 19px; font-weight: 900; color: var(--dim); }

.mpr-detail {
  margin-top: 9px; font-size: 13px; color: var(--sub); line-height: 1.6;
}

.mpr-punish {
  margin: 16px 0 0; padding: 14px 14px 15px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 122, 61, .14), rgba(255, 46, 126, .1));
  border: 1px dashed rgba(255, 122, 61, .45);
}
.mpr-punish-h {
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: #ffb28a; margin-bottom: 8px;
}
.mpr-punish-t {
  font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--txt);
  word-break: break-word;
}
.mpr-punish-who { margin-top: 9px; font-size: 12.5px; color: var(--sub); }

.mpr-btns { display: flex; gap: 10px; margin-top: 17px; }
.mpr-btn {
  flex: 1 1 0; min-height: 46px; padding: 11px 12px;
  border: 0; border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 800; font-family: inherit;
  color: #fff; background: var(--grad); box-shadow: var(--glow);
  transition: transform .12s ease, filter .12s ease;
}
.mpr-btn:hover { filter: brightness(1.08); }
.mpr-btn:active { transform: scale(.97); }
.mpr-btn.ok { background: linear-gradient(135deg, #8b5cf6, #4f9cf9); box-shadow: 0 8px 24px rgba(139, 92, 246, .35); }
.mpr-btn:disabled { filter: grayscale(.5); opacity: .7; cursor: default; }

.mpr-ack { margin-top: 10px; font-size: 12.5px; color: #6ee7b7; min-height: 16px; }

.mpr-foot {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line);
}
.mpr-link {
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 700; color: var(--sub);
  padding: 7px 11px; border-radius: 10px; transition: all .15s ease;
}
.mpr-link:hover { color: var(--txt); background: rgba(255, 255, 255, .07); }
.mpr-link.danger:hover { color: #ff8fb3; background: rgba(255, 46, 126, .12); }

@media (max-width: 680px) {
  .mpr-ov { padding: 14px; }
  .mpr-box { padding: 19px 15px 13px; border-radius: 19px; max-height: 90vh; }
  .mpr-verdict { font-size: 25px; }
  .mpr-sc { min-width: 66px; }
  .mpr-sc i { font-size: 22px; }
  .mpr-punish-t { font-size: 15px; }
  .mpr-btn { min-height: 48px; font-size: 14.5px; }
  .mpr-link { font-size: 13.5px; }
}

/* ---------- 内容版式：手机适配 ---------- */
@media (max-width: 680px) {
  .mode-card { padding: 11px 11px; }
  .mode-card .mc-desc { font-size: 11px; }
  .mode-badge { font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 400px) {
  .mode-pick { grid-template-columns: 1fr; }
  .mode-card { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
  .mode-card .mc-desc { flex: 1 1 100%; }
}

/* ==========================================================
   飞行棋（game.php）手机适配
   ----------------------------------------------------------
   game.php 只引用 style.css（没有自己的 <style>），所以这里的
   媒体查询即为最终生效值。棋盘本身已是 width:100% + aspect-ratio:1，
   这里主要收拢页头、骰子区、弹窗与棋子槽的尺寸，并让设置弹窗可滚动
   （版式选择让弹窗变高，小屏必须能上下滑）。
   ========================================================== */
@media (max-width: 680px) {
  .game-header { padding: 11px 13px; flex-wrap: wrap; gap: 8px; }
  .game-header .logo { font-size: 16px; }
  /* v9.13：胶囊多时不再被裁掉（未激活/退出整颗消失的 BUG）——
     放宽为可换行：放得下就一排，放不下自动折到第二排，全部可见 */
  .header-right { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 6px; justify-content: flex-end; min-width: 0; }
  .header-right .chip, .header-right .pill, .header-right a, .header-right span { flex: 0 1 auto; }
  .chip { padding: 7px 12px; font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; }

  .game-wrap { gap: 14px; margin-top: 16px; padding: 0 12px; }
  .player-panel { padding: 14px 12px; border-radius: 18px; }
  .player-panel h2 { font-size: 15.5px; margin-bottom: 9px; }
  .hangar-slot { height: 42px; font-size: 21px; }
  .p-stats { font-size: 13px; }

  .board { border-radius: 20px; }

  .dice-zone { gap: 10px; }
  .turn-hint { font-size: 13.5px; min-width: 0; flex: 1 1 100%; }
  .dice-zone .btn { min-height: 46px; font-size: 14.5px; padding: 12px 17px; }
  .speed-btn { padding: 7px 12px; font-size: 12.5px; }
  .dice-bubble { width: 76px; height: 76px; font-size: 34px; border-radius: 20px; }

  /* 设置 / 胜利弹窗：接近全宽 + 可滚动（iOS 输入框字号 >=16px 防缩放） */
  .modal-card { padding: 24px 18px; border-radius: 22px; max-height: 88vh; overflow-y: auto; }
  .modal-card h3 { font-size: 19px; }
  .modal-icon { font-size: 46px; margin-bottom: 6px; }
  .modal-card p { font-size: 15px; }
  .modal-btns { gap: 8px; margin-top: 16px; }
  .modal-btns .btn { min-height: 46px; }
  .setup-row { gap: 10px; margin: 14px 0 10px; }
  .setup-full { margin-bottom: 2px; }
  .first-pick { gap: 9px; }
  .first-btn { padding: 12px 9px; font-size: 14px; }

  .win-card { padding: 28px 20px; border-radius: 24px; max-height: 88vh; overflow-y: auto; }
  .win-emoji { font-size: 38px; }
  .win-card h2 { font-size: 20px; }
  .win-card p { margin-bottom: 16px; }

  .bond-head { font-size: 12.5px; flex-wrap: wrap; gap: 4px; }
  .p-tag { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .game-header { padding: 10px 11px; }
  .game-header .logo { font-size: 15px; }
  .chip { padding: 6px 10px; font-size: 11.5px; }
  .hangar-slot { height: 38px; font-size: 19px; }
  .win-card h2 { font-size: 18px; }
}

/* ============ v9.9 更多甜蜜玩法（首页 fun-grid） ============ */
.fun-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0 6px}
.fun-card{display:flex;flex-direction:column;gap:5px;background:var(--panel);border:1px solid var(--line);
  border-radius:18px;padding:16px 16px 14px;text-decoration:none;color:var(--text,#f7f5fa);
  transition:border-color .15s,transform .15s}
.fun-card:hover{border-color:rgba(255,143,179,.55);transform:translateY(-2px)}
.fun-card .fun-ico{font-size:26px}
.fun-card b{font-size:14.5px}
.fun-card .fun-sub{font-size:12px;color:var(--sub);line-height:1.7}

/* ============ v9.11c 盲盒双卡（首页 hero 正下方最显眼位） ============ */
.duo-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:880px;margin:18px auto 6px}
.duo-card{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:18px;text-decoration:none;
  background:linear-gradient(135deg,rgba(255,143,179,.16),rgba(255,143,179,.05));border:1px solid rgba(255,143,179,.45);
  transition:transform .18s,border-color .18s}
.duo-card.duo-gold{background:linear-gradient(135deg,rgba(255,209,102,.15),rgba(255,209,102,.04));border-color:rgba(255,209,102,.45)}
.duo-card:hover{transform:translateY(-3px);border-color:rgba(255,143,179,.85)}
.duo-card.duo-gold:hover{border-color:rgba(255,209,102,.85)}
/* v9.14：影视出租（蓝）/ 号卡办理（青）——首页首屏增值服务双卡 */
.duo-card.duo-blue{background:linear-gradient(135deg,rgba(79,156,249,.16),rgba(79,156,249,.05));border-color:rgba(79,156,249,.45)}
.duo-card.duo-blue:hover{border-color:rgba(79,156,249,.85)}
.duo-blue .duo-go{color:#7cb8ff}
.duo-card.duo-teal{background:linear-gradient(135deg,rgba(60,220,180,.15),rgba(60,220,180,.04));border-color:rgba(60,220,180,.45)}
.duo-card.duo-teal:hover{border-color:rgba(60,220,180,.85)}
.duo-teal .duo-go{color:#5ce2c4}
.duo-ico{font-size:30px}
.duo-body{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.duo-body b{font-size:15px}
.duo-body span{font-size:12px;color:var(--sub)}
.duo-go{font-size:12.5px;font-weight:800;color:#ff8fb3;white-space:nowrap}
.duo-gold .duo-go{color:#ffd166}
@media(max-width:640px){.duo-grid{grid-template-columns:1fr;gap:10px;margin:14px auto 4px}.duo-card{padding:13px 14px}.duo-ico{font-size:26px}}

/* ==========================================================
   全环境录音组件 CLRecorder（v9.15）
   网页内录（安全上下文）/ 手机录音机 / 选择音频文件 三层降级，
   UI 必须让用户一眼看懂「现在按下去会发生什么」。
   ========================================================== */
.clrec { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.clrec-main {
  width: 100%; padding: 11px 18px; border: 0; border-radius: 13px; cursor: pointer;
  font-size: 14px; font-weight: 900; color: #fff; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(255, 46, 126, 0.28);
}
.clrec-main.recording {
  background: linear-gradient(135deg, #ff2e4d, #ff7a3d);
  animation: clrecPulse 1.1s ease-in-out infinite;
}
@keyframes clrecPulse { 0%, 100% { opacity: 1; } 50% { opacity: .68; } }
.clrec-alts { display: flex; gap: 8px; flex-wrap: wrap; }
.clrec-alt {
  flex: 1; min-width: 132px; padding: 9px 12px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--txt); font-size: 12.5px; font-weight: 700;
}
.clrec-alt:hover { border-color: rgba(255, 46, 126, 0.45); background: rgba(255, 46, 126, 0.08); }
.clrec-hint { font-size: 12px; color: var(--sub); line-height: 1.65; }
.clrec-hint.err { color: #ff8fa3; }
.clrec-prev {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 11px;
}
.clrec-prev audio { flex: 1; min-width: 170px; height: 36px; }
.clrec-meta { font-size: 12px; color: var(--sub); white-space: nowrap; }
.clrec-clear {
  padding: 6px 12px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--txt);
}
.clrec-input { position: absolute !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
  .clrec-main { font-size: 13.5px; padding: 12px 14px; }
  .clrec-prev audio { min-width: 118px; }
}

/* ==========================================================
   功能页统一设计系统 tp-*（v9.16）
   ----------------------------------------------------------
   🔴 此前影视出租 / 号卡办理 / 玩法页各写一套内联样式：同一个
   hero / 面板 / 表单 / 卡片 / 空状态重复实现六遍，视觉互相打架，
   空状态只有一行灰字，货架页下半屏大片纯黑。
   本段抽成全站唯一实现，页面只写「这一页特有」的样式。
   命名 tp- = Tool/Feature Page，全站查重无冲突。
   ========================================================== */

/* ---------- 页面容器：自带顶部渐变光晕，解决下半屏纯黑 ---------- */
.tp-wrap {
  max-width: 1020px; margin: 0 auto; padding: 26px 16px 64px;
  position: relative; z-index: 1;
}
.tp-wrap::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: min(760px, 92%); height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 46, 126, .13), transparent 72%);
}
.tp-wrap > * { position: relative; }

/* ---------- Hero：徽章行 + 渐变大标题 + 副文案 + 统计胶囊 ---------- */
.tp-hero { text-align: center; margin-bottom: 26px; }
.tp-hero h1 {
  font-size: clamp(24px, 5vw, 34px); font-weight: 900; margin: 10px 0 10px; line-height: 1.3;
}
.tp-hero h1 em {
  font-style: normal; background: linear-gradient(120deg, #ff5c9d, #b827ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tp-sub { color: var(--sub); font-size: 14px; line-height: 1.9; max-width: 620px; margin: 0 auto; }
.tp-stats { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.tp-stats span {
  font-size: 12.5px; color: var(--sub); background: var(--panel2);
  border: 1px solid var(--line2); padding: 7px 15px; border-radius: 999px; font-weight: 700;
}
.tp-stats b {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 900;
}

/* ---------- 区块标题（kicker + h2） ---------- */
.tp-head { margin: 34px 0 16px; }
.tp-head .kicker-sm { margin-bottom: 4px; }
.tp-head h2 { font-size: 23px; font-weight: 900; margin-bottom: 5px; }
.tp-head p { color: var(--sub); font-size: 13.5px; }

/* ---------- 面板卡（我的xx中心 / 须知 / 推广位） ---------- */
.tp-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; margin-top: 20px; transition: border-color .2s;
}
.tp-panel:hover { border-color: rgba(255, 46, 126, .3); }
.tp-panel > h3 { font-size: 17px; font-weight: 900; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tp-panel .muted { color: var(--sub); font-size: 12.5px; line-height: 1.85; }
.tp-panel .muted b { color: #ffb1cd; }

/* ---------- 货架栅格：手机一律单列（修 rent 两列挤爆） ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 15px; margin-top: 16px; }
@media (max-width: 700px) { .tp-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- 商品/内容卡：渐变描边 + hover 上浮（对齐 plan-card 档次） ---------- */
.tp-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 17px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tp-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 46, 126, .1), transparent 42%, transparent 70%, rgba(139, 92, 246, .08));
  opacity: 0; transition: opacity .18s;
}
.tp-card:hover { transform: translateY(-5px); border-color: rgba(255, 46, 126, .45); box-shadow: 0 16px 44px rgba(255, 46, 126, .14); }
.tp-card:hover::after { opacity: 1; }
.tp-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; position: relative; }
.tp-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(150deg, rgba(255, 46, 126, .16), rgba(139, 92, 246, .1));
  border: 1px solid rgba(255, 46, 126, .28);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  filter: drop-shadow(0 0 12px rgba(255, 46, 126, .25));
}
.tp-name { font-size: 15.5px; font-weight: 900; line-height: 1.4; }
.tp-price { font-size: 21px; font-weight: 900; color: #ff5c9d; position: relative; }
.tp-price b {
  background: linear-gradient(120deg, #ff5c9d, #ff9a5c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 24px;
}
.tp-price small { font-size: 12px; color: var(--sub); font-weight: 700; }
.tp-meta { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--sub); line-height: 2; position: relative; }
.tp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.tp-tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: var(--panel2); border: 1px solid var(--line2); color: var(--sub);
}
.tp-tag.pink  { background: rgba(255, 46, 126, .14); color: #ff8fb3; border-color: rgba(255, 46, 126, .4); }
.tp-tag.blue  { background: rgba(79, 156, 249, .14); color: #9fd0ff; border-color: rgba(79, 156, 249, .42); }
.tp-tag.gold  { background: rgba(255, 209, 102, .13); color: #ffd166; border-color: rgba(255, 209, 102, .42); }
.tp-tag.green { background: rgba(34, 197, 94, .13);  color: #6ee7a0; border-color: rgba(34, 197, 94, .38); }
.tp-tag.purple{ background: rgba(139, 92, 246, .15); color: #c4b0ff; border-color: rgba(139, 92, 246, .45); }
.tp-acts { display: flex; gap: 9px; margin-top: auto; position: relative; }
.tp-acts .btn { flex: 1; text-align: center; }

/* ---------- 统一表单：label 竖排 + focus 光晕 ---------- */
.tp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tp-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11.5px; color: var(--sub); font-weight: 700;
}
.tp-form label.w, .tp-form .w { grid-column: 1 / -1; }
.tp-form input, .tp-form select, .tp-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .05);
  color: var(--txt); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.tp-form input:focus, .tp-form select:focus, .tp-form textarea:focus {
  border-color: rgba(255, 46, 126, .6); box-shadow: 0 0 0 4px rgba(255, 46, 126, .13);
}
.tp-form .btn { grid-column: 1 / -1; }
@media (max-width: 620px) { .tp-form { grid-template-columns: 1fr; } }

/* ---------- 账号密码展示条（出租发货 / 订单凭据） ---------- */
.tp-cred {
  position: relative; font-size: 12.5px; line-height: 2; word-break: break-all;
  background: rgba(0, 0, 0, .3); border: 1px dashed rgba(255, 143, 179, .45);
  border-radius: 12px; padding: 10px 13px;
}
.tp-cred b { color: #ffb1cd; }

/* ---------- 空状态：大图标底座 + 标题 + 引导，替代一行灰字 ---------- */
.tp-empty { text-align: center; padding: 44px 18px; }
.tp-empty .e-ico {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 46, 126, .18), rgba(139, 92, 246, .08));
  border: 1px solid rgba(255, 46, 126, .3);
  filter: drop-shadow(0 0 22px rgba(255, 46, 126, .22));
}
.tp-empty .e-title { font-size: 16.5px; font-weight: 900; margin-bottom: 7px; }
.tp-empty .e-desc { color: var(--sub); font-size: 13px; line-height: 1.9; max-width: 420px; margin: 0 auto 16px; }

/* ---------- 流程条（三/四步走） ---------- */
.tp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; counter-reset: tps; }
.tp-step {
  position: relative; padding: 15px 14px; border-radius: 15px;
  background: rgba(255, 143, 179, .06); border: 1px solid rgba(255, 143, 179, .22);
}
.tp-step::before {
  counter-increment: tps; content: counter(tps);
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 900; color: #fff; background: var(--grad);
  margin-bottom: 8px; box-shadow: 0 4px 12px rgba(255, 46, 126, .35);
}
.tp-step b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.tp-step p { margin: 0; font-size: 12px; color: var(--sub); line-height: 1.7; }

/* ---------- 折叠问答 / 轻量须知 ---------- */
.tp-faq details {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 13px; padding: 0 15px; margin-bottom: 9px; transition: border-color .15s;
}
.tp-faq details:hover, .tp-faq details[open] { border-color: rgba(255, 46, 126, .35); }
.tp-faq summary {
  padding: 13px 0; font-size: 13.5px; font-weight: 800; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary .ar { margin-left: auto; color: var(--dim); transition: transform .18s; font-size: 12px; }
.tp-faq details[open] summary .ar { transform: rotate(90deg); }
.tp-faq details > div, .tp-faq details p { margin: 0 0 13px; font-size: 12.5px; color: var(--sub); line-height: 1.9; }
.tp-faq b { color: var(--txt); }

/* ---------- 「我的xx」订单列表项 ---------- */
.tp-item {
  position: relative; border: 1px solid rgba(255, 143, 179, .3); border-radius: 14px;
  padding: 12px 14px; margin-top: 10px; font-size: 13px; line-height: 1.95;
  background: rgba(255, 255, 255, .03); transition: border-color .15s;
}
.tp-item:hover { border-color: rgba(255, 143, 179, .55); }
.tp-item b { color: #ffb1cd; }
.tp-item .tp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tp-item .muted { color: var(--sub); font-size: 12px; }
.tp-item.done { border-color: rgba(34, 197, 94, .32); }
.tp-item.busy { border-color: rgba(255, 209, 102, .4); }

/* ---------- 筛选条（运营商 / 分类横滑胶囊） ---------- */
.tp-bar { display: flex; gap: 8px; overflow-x: auto; margin: 20px 0 4px; padding-bottom: 4px; scrollbar-width: none; }
.tp-bar::-webkit-scrollbar { display: none; }
.tp-bar a, .tp-bar button {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 800; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--sub);
  text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s;
}
.tp-bar a:hover, .tp-bar button:hover { color: var(--txt); border-color: rgba(255, 46, 126, .4); }
.tp-bar a.on, .tp-bar button.on {
  background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(255, 46, 126, .35);
}

/* ---------- 页脚相关功能链接 ---------- */
.tp-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.tp-links a {
  color: var(--sub); font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); transition: color .15s, border-color .15s, transform .15s;
}
.tp-links a:hover { color: #ff8fb3; border-color: rgba(255, 46, 126, .45); transform: translateY(-2px); }

/* ---------- 全站统一：原生控件聚焦光晕 + 暗色 audio ---------- */
input:focus, select:focus, textarea:focus { border-color: rgba(255, 46, 126, .55); }
audio { color-scheme: dark; }
