/* ============================================================
   逃离尼基塔 · 全站整合样式表
   PART A  基础主题 + 官网首页（home.html）
   PART B  赛季通行证（pass.html）
   PART C  玩家审核平台（portal.html，body.portal 作用域）
   ============================================================ */

/* ============================================================
   PART A · 基础主题 + 官网首页
   ============================================================ */

:root {
  --bg: #12100d;        /* 页面底色 */
  --bg2: #1a1712;       /* 次级底色（条纹区块） */
  --card: #211d16;      /* 卡片底色 */
  --line: #3a332a;      /* 边框线 */
  --txt: #e8e0d0;       /* 主文字 */
  --dim: #9a8f7a;       /* 次级文字 */
  --gold: #d8a24a;      /* 主题金 */
  --gold-dim: #8a6a2f;  /* 暗金（边框） */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }

/* ===== 导航栏 ===== */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw;
  background: rgba(18,16,13,.95);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-size: 20px; font-weight: bold; color: var(--gold); letter-spacing: 2px; }
.logo span { color: var(--txt); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--dim); font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
/* 导航右侧容器：普通链接 + 通行证独立板块 */
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-pass {
  color: #16130f; background: var(--gold); font-size: 14px; font-weight: bold;
  padding: 7px 18px; border-radius: 4px; letter-spacing: 2px; transition: .2s;
  border: 1px solid var(--gold);
}
.nav-pass:hover { background: #e8b35c; transform: translateY(-1px); }

/* ===== 首屏横幅 ===== */
.hero {
  text-align: center;
  padding: 0 6vw;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(rgba(18,16,13,.55), rgba(18,16,13,.88)),
    url('bg-hero.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 44px; letter-spacing: 6px; margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: var(--dim); font-size: 17px; max-width: 720px; margin: 0 auto 36px; line-height: 1.8; }
.hero .tags { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.tag {
  font-size: 13px; color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 6px 16px; border-radius: 3px; background: rgba(216,162,74,.06);
}
.btn {
  display: inline-block; padding: 14px 42px; font-size: 16px; font-weight: bold;
  border-radius: 4px; transition: .2s; letter-spacing: 1px; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #16130f; }
.btn-gold:hover { background: #e8b35c; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--gold-dim); color: var(--gold); }
.hero-btns { display: flex; gap: 14px; }
.btn-ghost:hover { background: rgba(216,162,74,.1); }

/* ===== 区块通用 ===== */
section { padding: 64px 6vw; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; letter-spacing: 3px; }
.section-title p { color: var(--dim); margin-top: 10px; font-size: 14px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: var(--gold); margin: 18px auto 0;
}

/* ===== 特色卡片 ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 32px 26px; transition: .2s;
}
.feature:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
.feature .icon { font-size: 30px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 10px; color: var(--gold); }
.feature p { color: var(--dim); font-size: 14px; line-height: 1.7; }

/* ===== 加入步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; counter-reset: step; }
.step { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 40px; font-weight: bold; color: rgba(216,162,74,.18);
  position: absolute; top: 12px; right: 18px;
}
.step h3 { color: var(--gold); font-size: 16px; margin-bottom: 10px; }
.step p { color: var(--dim); font-size: 13.5px; line-height: 1.7; }

/* ===== 审核平台入口模块 ===== */
.portal-entry {
  max-width: 1200px; margin: 0 auto;
  background: linear-gradient(135deg, #26200f 0%, #1d1a12 100%);
  border: 1px solid var(--gold-dim); border-radius: 8px;
  padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.portal-entry .left h3 { font-size: 24px; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.portal-entry .left p { color: var(--dim); font-size: 14.5px; line-height: 1.8; max-width: 560px; }
.portal-entry .left p b { color: var(--txt); }
.portal-entry .right { display: flex; flex-direction: column; gap: 12px; }
.portal-entry .right .btn { text-align: center; }
.portal-note { color: var(--dim); font-size: 12.5px; text-align: center; }

/* ===== 服务器信息 ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.info { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 22px; text-align: center; }
.info .k { color: var(--dim); font-size: 13px; margin-bottom: 8px; }
.info .v { color: var(--gold); font-size: 18px; font-weight: bold; }

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 6vw; text-align: center;
  color: var(--dim); font-size: 13px; line-height: 2;
}
footer .flink { margin: 0 12px; }

/* ===== 移动端适配 ===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .nav-links { gap: 14px; }
  .nav-right { gap: 12px; }
  .nav-pass { padding: 5px 12px; font-size: 12.5px; letter-spacing: 1px; }
  .portal-entry { padding: 30px 24px; }
}

/* ===== 温暖文案 + 给作者留言板块 ===== */
.warm-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px;
  max-width: 1200px; margin: 0 auto; align-items: start;
}
.warm-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 22px 24px; margin-bottom: 16px;
  display: flex; gap: 14px; align-items: flex-start;
}
.warm-item:last-child { margin-bottom: 0; }
.warm-item span { font-size: 22px; line-height: 1.4; }
.warm-item p { color: var(--dim); font-size: 14.5px; line-height: 1.8; }

.message-board {
  background: var(--card); border: 1px solid var(--gold-dim);
  border-radius: 8px; padding: 28px 26px;
}
.message-board h3 { color: var(--gold); font-size: 20px; letter-spacing: 2px; margin-bottom: 8px; }
.mb-tip { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.message-board input, .message-board textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--txt); padding: 10px 12px; font-size: 14px;
  font-family: inherit; margin-bottom: 12px; outline: none;
}
.message-board input:focus, .message-board textarea:focus { border-color: var(--gold-dim); }
.message-board textarea { height: 84px; resize: vertical; }
.message-board .btn {
  width: 100%; padding: 12px; cursor: pointer; border: none; font-family: inherit;
}
.message-board .btn:disabled { opacity: .6; cursor: not-allowed; }
.msg-list { margin-top: 18px; max-height: 260px; overflow-y: auto; }
.msg-item { border-top: 1px solid var(--line); padding: 12px 2px; }
.msg-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.msg-head b { color: var(--gold); font-size: 13.5px; }
.msg-head span { color: var(--dim); font-size: 12px; }
.msg-item p { color: var(--txt); font-size: 13.5px; line-height: 1.7; word-break: break-word; }
.msg-empty { color: var(--dim); font-size: 13px; text-align: center; padding: 14px 0; }

@media (max-width: 860px) {
  .warm-grid { grid-template-columns: 1fr; }
}
/* ===== 舔狗日记悬浮窗（左侧） ===== */
.dog-diary {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%);
  width: 230px; z-index: 100;
  background: linear-gradient(160deg, #2b2113 0%, #1d1a12 100%);
  border: 1px solid var(--gold-dim); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  overflow: hidden; transition: width .25s ease;
}
.dog-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--line);
}
.dog-avatar { font-size: 22px; }
.dog-title { color: var(--gold); font-weight: bold; font-size: 14.5px; letter-spacing: 1px; flex: 1; }
.dog-date { color: var(--dim); font-size: 12px; }
.dog-body { padding: 14px 16px 12px; max-height: 300px; transition: max-height .25s ease, padding .25s ease; }
.dog-quote {
  color: var(--txt); font-size: 13.5px; line-height: 1.9;
  padding-left: 10px; border-left: 2px solid var(--gold-dim);
}
.dog-foot { color: var(--dim); font-size: 11.5px; text-align: right; margin-top: 10px; }
.dog-diary.collapsed .dog-body { max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.dog-diary.collapsed { width: 150px; }
.dog-diary.collapsed .dog-date { display: none; }

/* ===== 改枪推荐板块 ===== */
.builds-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px;
  max-width: 1200px; margin: 0 auto; align-items: start;
}
.posts-panel, .build-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 26px 26px 22px;
}
.build-form { border-color: var(--gold-dim); }
.posts-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.posts-head h3, .build-form h3 { color: var(--gold); font-size: 19px; letter-spacing: 2px; }
.posts-refresh {
  background: var(--bg2); border: 1px solid var(--line); color: var(--dim);
  font-size: 12.5px; padding: 5px 14px; border-radius: 4px; cursor: pointer; font-family: inherit;
}
.posts-refresh:hover { color: var(--gold); border-color: var(--gold-dim); }
.posts-list { max-height: 480px; overflow-y: auto; }
.post-item { border-top: 1px solid var(--line); padding: 14px 2px; }
.post-title { color: var(--txt); font-weight: bold; font-size: 15px; margin-bottom: 6px; }
.post-title::before { content: "🔧 "; }
.post-content { color: var(--dim); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.post-meta { display: flex; justify-content: space-between; margin-top: 8px; }
.post-meta b { color: var(--gold); font-size: 12.5px; font-weight: normal; }
.post-meta span { color: var(--dim); font-size: 12px; }
.bf-tip { color: var(--dim); font-size: 13px; margin-bottom: 14px; }
.build-form input, .build-form textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--txt); padding: 10px 12px; font-size: 14px;
  font-family: inherit; margin-bottom: 12px; outline: none;
}
.build-form input:focus, .build-form textarea:focus { border-color: var(--gold-dim); }
.build-form textarea { height: 110px; resize: vertical; }
.build-form .btn { width: 100%; padding: 12px; cursor: pointer; border: none; font-family: inherit; }
.build-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.post-msg { color: var(--green); font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }

@media (max-width: 860px) {
  .builds-grid { grid-template-columns: 1fr; }
  .dog-diary { left: 8px; width: 190px; }
}
/* ===== 帖子复制按钮 ===== */
.post-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.post-copy {
  background: var(--bg2); border: 1px solid var(--line); color: var(--dim);
  font-size: 12px; padding: 3px 12px; border-radius: 4px; cursor: pointer; font-family: inherit;
}
.post-copy:hover { color: var(--gold); border-color: var(--gold-dim); }
.post-copy:disabled { color: var(--green); border-color: var(--green); cursor: default; }

/* ============================================================
   PART B · 赛季通行证（pass.html）
   ============================================================ */

/* ===== 通行证首屏 ===== */
.pass-hero {
  text-align: center;
  padding: 80px 6vw 70px;
  background:
    linear-gradient(rgba(18,16,13,.72), rgba(18,16,13,.94)),
    url('bg-hero.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.pass-hero .season-tag {
  display: inline-block; font-size: 13px; letter-spacing: 4px;
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 6px 18px; border-radius: 3px; margin-bottom: 22px;
  background: rgba(216,162,74,.06);
}
.pass-hero h1 { font-size: 46px; letter-spacing: 8px; margin-bottom: 14px; }
.pass-hero h1 em { color: var(--gold); font-style: normal; }
.pass-hero .sub { color: var(--dim); font-size: 16px; max-width: 640px; margin: 0 auto 34px; line-height: 1.8; }

/* 赛季倒计时 */
.countdown { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cd-cell {
  min-width: 92px; padding: 14px 10px;
  background: var(--card); border: 1px solid var(--gold-dim); border-radius: 6px;
}
.cd-cell .num { font-size: 28px; font-weight: bold; color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-cell .lab { color: var(--dim); font-size: 12px; margin-top: 4px; letter-spacing: 2px; }

/* ===== 我的通行证进度（演示） ===== */
.my-pass {
  max-width: 980px; margin: -42px auto 0; position: relative; z-index: 5;
  background: linear-gradient(135deg, #26200f 0%, #1d1a12 100%);
  border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 26px 32px;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.mp-level {
  width: 86px; height: 86px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--gold-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mp-level .lv { font-size: 30px; font-weight: bold; color: var(--gold); line-height: 1.1; }
.mp-level .lab { font-size: 11px; color: var(--dim); letter-spacing: 2px; }
.mp-main { flex: 1; min-width: 260px; }
.mp-main h3 { color: var(--gold); font-size: 18px; letter-spacing: 2px; margin-bottom: 4px; }
.mp-main .mp-tip { color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.xp-bar {
  height: 14px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 7px; overflow: hidden; position: relative;
}
.xp-bar .fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width .5s ease;
}
.xp-text { color: var(--dim); font-size: 12.5px; margin-top: 8px; }
.mp-demo { display: flex; flex-direction: column; gap: 8px; }
.mp-demo button {
  font-family: inherit; cursor: pointer; font-size: 13px;
  background: var(--bg2); color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 4px; padding: 8px 16px; transition: .2s; letter-spacing: 1px;
}
.mp-demo button:hover { background: rgba(216,162,74,.12); }
.demo-note { font-size: 11px; color: var(--dim); text-align: center; }

/* ===== 奖励轨道（单条横向列表 · 每级免费/进阶双行） ===== */
.track-legend {
  display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap;
  margin-bottom: 16px; color: var(--dim); font-size: 13px;
}
.track-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.track-legend .dot.free { background: #9a8f7a; }
.track-legend .dot.prem { background: var(--gold); }
.track-scroll {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
  padding: 14px 4px 18px; max-width: 1240px; margin: 0 auto;
}
.track-scroll::-webkit-scrollbar { height: 8px; }
.track-scroll::-webkit-scrollbar-track { background: var(--bg2); border-radius: 4px; }
.track-scroll::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }

.lv-col { width: 185px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.lv-head {
  text-align: center; color: var(--gold); font-weight: bold; font-size: 13px;
  letter-spacing: 1px; padding: 3px 0; border: 1px dashed var(--line); border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.lv-col.current .lv-head { background: var(--gold); color: #16130f; border: 1px solid var(--gold); }

.reward {
  position: relative; cursor: pointer; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 12px 12px; transition: .2s;
}
.reward:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.reward.prem { border-color: rgba(216,162,74,.35); background: linear-gradient(160deg, #252014 0%, #211d16 60%); }
.reward.locked { opacity: .5; }
.lv-col.current .reward { border-color: var(--gold); }
.lv-col.current .reward.prem { border-color: var(--gold); box-shadow: 0 0 14px rgba(216,162,74,.2); }
.r-mark { position: absolute; top: 8px; right: 9px; font-size: 13px; }
.r-mark.ok { color: #7fc97f; }
.r-icon { font-size: 26px; margin: 4px 0 8px; }
.r-name {
  color: var(--txt); font-size: 12.5px; font-weight: bold; line-height: 1.5;
  min-height: 38px; display: flex; align-items: center; justify-content: center;
}
.r-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: 1px; margin-top: 6px;
  color: var(--dim); border: 1px solid var(--line); border-radius: 3px; padding: 1px 8px;
}
.reward.prem .r-tag { color: var(--gold); border-color: var(--gold-dim); }
/* 物品图片（替换 emoji 时使用） */
.r-icon .r-img { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; }

/* ===== 月签到 ===== */
.checkin-box {
  max-width: 1000px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 24px 26px 20px;
}
.ck-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.ck-month { color: var(--gold); font-size: 19px; font-weight: bold; letter-spacing: 2px; }
.ck-stat { color: var(--dim); font-size: 13px; margin-top: 2px; line-height: 1.9; }
.ck-stat b { color: var(--gold); }
.ck-demo { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-demo button {
  font-family: inherit; cursor: pointer; font-size: 12.5px; letter-spacing: 1px;
  background: var(--bg2); color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 4px; padding: 8px 14px; transition: .2s;
}
.ck-demo button:hover:not(:disabled) { background: rgba(216,162,74,.12); }
.ck-demo button:disabled { opacity: .55; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-wd { text-align: center; color: var(--dim); font-size: 12px; padding: 2px 0 4px; }
.cal-cell {
  min-height: 58px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 4px; text-align: center;
}
.cal-cell.blank { background: transparent; border-color: transparent; }
.cal-day { display: block; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cal-mark { display: inline-block; font-size: 15px; margin-top: 3px; }
.cal-cell.checked { border-color: #3c5e3c; background: rgba(92,184,92,.08); }
.cal-cell.checked .cal-day { color: #7fc97f; }
.cal-cell.today { border-color: var(--gold); cursor: pointer; box-shadow: 0 0 12px rgba(216,162,74,.22); }
.cal-cell.today .cal-day { color: var(--gold); font-weight: bold; }
.ck-legend {
  display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap;
  margin-top: 16px; color: var(--dim); font-size: 12px; line-height: 1.8;
}
.ck-legend b { color: var(--gold); font-weight: normal; }

/* ===== 物品奖励详情弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,9,6,.78);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.hidden { display: none; }
.modal-box {
  position: relative; width: min(430px, 94vw);
  background: var(--card); border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 36px 30px 28px; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  animation: modal-in .18s ease;
}
@keyframes modal-in { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: var(--dim); font-size: 28px; line-height: 1; cursor: pointer; font-family: inherit;
}
.modal-close:hover { color: var(--gold); }
.m-icon { font-size: 52px; margin-bottom: 10px; }
.m-icon .m-img { width: 76px; height: 76px; object-fit: contain; }
.badge-track {
  display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--dim); margin: 0 4px;
}
.badge-track.prem { border-color: var(--gold-dim); color: var(--gold); background: rgba(216,162,74,.08); }
.m-lv { font-size: 13px; color: var(--gold); font-weight: bold; margin-left: 8px; }
.m-name { color: var(--txt); font-size: 19px; font-weight: bold; margin: 14px 0 10px; }
.m-desc { color: var(--dim); font-size: 13.5px; line-height: 1.8; margin-bottom: 20px; }
.m-action .claim {
  width: 100%; font-family: inherit; cursor: pointer; font-size: 14px; padding: 11px 0;
  border-radius: 4px; transition: .2s; letter-spacing: 1px;
  background: var(--gold); color: #16130f; border: 1px solid var(--gold); font-weight: bold;
}
.m-action .claim:hover:not(:disabled) { background: #e8b35c; }
.m-action .claim:disabled { cursor: default; opacity: .55; background: var(--bg2); color: var(--dim); border-color: var(--line); }
.m-action .claim.claimed { color: #7fc97f; border-color: #3c5e3c; background: rgba(92,184,92,.08); opacity: 1; }

/* ===== 物品兑换 ===== */
.exchange-bar {
  max-width: 1100px; margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.coin-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--gold-dim); border-radius: 8px;
  padding: 16px 26px;
}
.coin-icon { font-size: 30px; }
img.coin-icon { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(216,162,74,.35)); }
.inline-coin { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin: 0 3px 0 1px; }
.coin-num { font-size: 26px; font-weight: bold; color: var(--gold); line-height: 1.15; font-variant-numeric: tabular-nums; }
.coin-lab { color: var(--dim); font-size: 12px; letter-spacing: 2px; }
.coin-tip { color: var(--dim); font-size: 12.5px; line-height: 1.8; text-align: right; }
.exchange-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.ex-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 18px 18px; text-align: center; transition: .2s;
}
.ex-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.ex-icon { font-size: 32px; margin-bottom: 10px; }
.ex-icon .ex-img { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }
.ex-name { color: var(--txt); font-weight: bold; font-size: 14.5px; margin-bottom: 6px; }
.ex-desc { color: var(--dim); font-size: 12px; line-height: 1.6; min-height: 38px; }
.ex-price { color: var(--gold); font-weight: bold; font-size: 15px; margin: 10px 0 2px; }
.ex-limit { color: var(--dim); font-size: 11.5px; margin-bottom: 12px; }
.ex-card .claim {
  width: 100%; font-family: inherit; cursor: pointer;
  font-size: 13px; padding: 8px 0; border-radius: 4px; transition: .2s; letter-spacing: 1px;
  background: var(--gold); color: #16130f; border: 1px solid var(--gold); font-weight: bold;
}
.ex-card .claim:hover:not(:disabled) { background: #e8b35c; }
.ex-card .claim:disabled { cursor: default; opacity: .5; background: var(--bg2); color: var(--dim); border-color: var(--line); }

/* ===== 获取经验 ===== */
.xp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.xp-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 22px 24px; display: flex; align-items: center; gap: 16px;
}
.xp-item .x-icon { font-size: 26px; }
.xp-item h4 { font-size: 14.5px; color: var(--txt); margin-bottom: 4px; }
.xp-item p { color: var(--dim); font-size: 12.5px; }
.xp-item .x-val { margin-left: auto; color: var(--gold); font-weight: bold; font-size: 15px; white-space: nowrap; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 26px; margin-bottom: 14px; }
.faq-item h4 { color: var(--gold); font-size: 15.5px; margin-bottom: 8px; }
.faq-item p { color: var(--dim); font-size: 13.5px; line-height: 1.8; }

/* ===== 通行证移动端适配 ===== */
@media (max-width: 720px) {
  .pass-hero h1 { font-size: 30px; letter-spacing: 4px; }
  .my-pass { margin: -30px 16px 0; padding: 22px; }
  .lv-col { width: 158px; }
  .cal-cell { min-height: 46px; padding: 4px 2px; }
  .checkin-box { padding: 18px 14px 16px; }
}

/* ============================================================
   PART C · 玩家审核平台（portal.html）
   ============================================================ */

body.portal {
  --bg: #12141a;
  --card: #1c1f27;
  --border: #2c313d;
  --text: #d7dbe2;
  --muted: #8a919e;
  --accent: #d8a24a;
  --accent-hover: #e7b462;
  --green: #5cb85c;
  --red: #d9534f;
  --yellow: #e0ad5b;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
}
body.portal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
body.portal .brand { font-weight: 700; font-size: 20px; letter-spacing: 2px; color: var(--accent); }
body.portal .brand span { color: var(--text); font-size: 15px; letter-spacing: 0; margin-left: 8px; font-weight: 400; }
body.portal nav { display: block; position: static; padding: 0; background: none; border: none; }
body.portal nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
body.portal nav a:hover { color: var(--text); }
body.portal nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
body.portal main { flex: 1; padding: 32px 16px; max-width: 980px; width: 100%; margin: 0 auto; }
body.portal .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 30px;
}
body.portal .hidden { display: none !important; }
body.portal h2 { color: var(--accent); margin-bottom: 16px; }
body.portal h3 { margin: 22px 0 8px; color: var(--text); }
body.portal form label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
body.portal input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: #12141a;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
}
body.portal input:focus { outline: none; border-color: var(--accent); }
body.portal button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #262b36;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 14px;
}
body.portal button:hover { border-color: var(--accent); }
body.portal button:disabled { opacity: .45; cursor: not-allowed; }
body.portal button.primary { background: var(--accent); border-color: var(--accent); color: #171207; font-weight: 600; }
body.portal button.primary:hover { background: var(--accent-hover); }
body.portal button.danger { color: #ff9d99; border-color: #6e3a38; }
body.portal button.danger:hover { border-color: var(--red); }
body.portal button.ok { color: #a9e0a9; border-color: #3c5e3c; }
body.portal button.ok:hover { border-color: var(--green); }
body.portal .muted { color: var(--muted); font-size: 13.5px; margin: 10px 0; }
body.portal .muted a { color: var(--accent); }
body.portal .msg { margin-top: 12px; min-height: 20px; font-size: 14px; }
body.portal .msg.ok   { color: var(--green); }
body.portal .msg.err  { color: var(--red); }
body.portal .me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
body.portal .me-item { background: #12141a; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
body.portal .me-item .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
body.portal .me-item .v { font-size: 15px; word-break: break-all; }
body.portal .bind-row { display: flex; gap: 10px; }
body.portal .bind-row input { flex: 1; margin-top: 0; }
body.portal .badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
body.portal .badge.pending  { background: #4a3b1d; color: var(--yellow); }
body.portal .badge.approved { background: #24421f; color: var(--green); }
body.portal .badge.rejected { background: #46201e; color: #ff9d99; }
body.portal .badge.banned   { background: #46201e; color: #ff9d99; }
body.portal .badge.role     { background: #2a3140; color: #9fb4d8; }
body.portal .tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
body.portal .tab.active { background: var(--accent); color: #171207; border-color: var(--accent); font-weight: 600; }
body.portal table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.portal th, body.portal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
body.portal th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
body.portal td .pid { color: var(--muted); font-size: 12.5px; word-break: break-all; }
body.portal td .ops { display: flex; gap: 6px; flex-wrap: wrap; }
body.portal td .ops button { padding: 5px 10px; font-size: 12.5px; }
body.portal select {
  background: #12141a; color: var(--text); border: 1px solid var(--border);
  border-radius: 4px; padding: 4px 6px; font-size: 12.5px;
}
body.portal .empty { color: var(--muted); padding: 24px 0; text-align: center; }
/* 覆盖 PART A 通用规则对审核平台的渗透 */
body.portal section { padding: 0; }
body.portal footer {
  padding: 16px;
  color: #5b6270;
  font-size: 12.5px;
}
body.portal a { color: var(--accent); }
@media (max-width: 640px) {
  body.portal header { padding: 12px 16px; }
  body.portal .card { padding: 20px 16px; }
  body.portal nav a { margin-left: 12px; }
}

/* ===== SPT-AccessGuard 适配：替代原内联样式（严格 CSP 下禁止 style 属性与内联脚本） ===== */
.section-alt { background: var(--bg2); }
.brand a { color: inherit; text-decoration: none; }


/* Keep the administrator table usable on smaller screens. */
#admin-table-wrap { overflow-x: auto; }
#admin-table-wrap table { min-width: 1050px; }

body.portal main { max-width: 1280px; }
body.portal #view-login, body.portal #view-register, body.portal #view-me { max-width: 760px; margin: 0 auto; }
body.portal #form-register label:last-of-type { display: block; }
body.portal #form-register select { display: block; width: 100%; padding: 10px; margin-top: 6px; }
