/* ============================================================
 * style.css · 平台公共样式（深棕金挂机平台风格）
 * 大厅与游戏详情页共用；补原站缺失的 /css/style.css
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: #0d0905;
  color: #c9a86a;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { border: 0; }
.hidden { display: none !important; }

/* ---------- 顶栏（游戏详情页） ---------- */
.topbar {
  width: 750px; height: 120px; margin: 0 auto;
  display: flex; background: #1c1208; border: 1px solid #3d2c14; border-top: 0;
}
.topbar .left {
  width: 240px; height: 120px; flex: none; padding: 16px 14px;
  border-right: 1px solid #3d2c14; overflow: hidden;
}
.topbar .left .logo { font-size: 24px; font-weight: 800; color: #f2c14e; letter-spacing: 2px; line-height: 34px; }
.topbar .left .sub { font-size: 13px; color: #b8945a; line-height: 22px; margin-top: 6px; }
.topbar .left .who { font-size: 13px; color: #e0b45a; line-height: 24px; margin-top: 4px; }
.topbar .nav { flex: 1; height: 120px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 52px; gap: 6px; padding: 8px; }
.nav-btn {
  display: flex; align-items: center; justify-content: center; height: 52px;
  background: #241708; border: 1px solid #8a5f24; border-radius: 6px;
  color: #e6bd60; font-size: 15px; cursor: pointer; user-select: none;
}
.nav-btn:hover { background: #3a2810; border-color: #c79a45; color: #f5d67a; }
.nav-btn.on { background: linear-gradient(#ecc05a, #cf9c33); border-color: #e8c168; color: #3a2708; font-weight: 700; }

/* ---------- 内容区 ---------- */
.content {
  width: 750px; margin: 0 auto; background: #181008;
  border: 1px solid #3d2c14; border-top: 0; min-height: calc(100vh - 170px);
}
.title-bar {
  height: 48px; line-height: 48px; text-align: center; font-size: 22px;
  color: #eec25f; font-weight: 700; letter-spacing: 3px;
  border-bottom: 1px solid #3d2c14; background: #1f1409;
}
.body { padding: 14px 14px 24px; }
.footer {
  width: 750px; margin: 0 auto; padding: 18px 0 26px; text-align: center;
  color: #8a6a3a; font-size: 14px; letter-spacing: 1px;
}
.empty { padding: 26px 10px; text-align: center; color: #8a6a3a; font-size: 14px; }
.dim { color: #8a6a3a; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 120; display: flex;
  align-items: center; justify-content: center; background: rgba(0, 0, 0, .68);
  padding: 20px;
}
.modal {
  width: 560px; max-width: 96vw; max-height: 86vh; display: flex; flex-direction: column;
  background: #221608; border: 1px solid #8a5f24; border-radius: 8px;
  box-shadow: 0 12px 46px rgba(0, 0, 0, .65); overflow: hidden;
}
.m-head {
  height: 48px; flex: none; padding: 0 14px; display: flex; align-items: center;
  justify-content: space-between; background: #2c1d0d; border-bottom: 1px solid #4a3716;
  color: #eec25f; font-size: 17px; font-weight: 700;
}
.m-head .x { cursor: pointer; color: #c9a86a; font-size: 24px; line-height: 48px; padding: 0 4px; }
.m-head .x:hover { color: #f5d67a; }
.m-body { padding: 16px; overflow: auto; font-size: 14px; line-height: 1.8; color: #c9a86a; }

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-block; padding: 7px 18px; border: 1px solid #8a5f24; border-radius: 6px;
  background: #241708; color: #e6bd60; font-size: 14px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #3a2810; border-color: #c79a45; color: #f5d67a; }
.btn.primary { background: linear-gradient(#ecc05a, #cf9c33); border-color: #e8c168; color: #3a2708; font-weight: 700; }
.btn.primary:hover { background: linear-gradient(#f5cd6e, #dfa93c); }
.btn.danger { border-color: #8a3a2a; color: #ff8a72; }
.btn.danger:hover { background: #3a1810; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input {
  height: 38px; padding: 0 10px; border: 2px solid #6d4c1d; border-radius: 4px;
  background: #2c1d0d; color: #f0e2c0; font-size: 15px; outline: none; font-family: inherit;
}
.input:focus { border-color: #c79a45; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.form-row label { width: 90px; flex: none; color: #e0b45a; font-size: 14px; }
.form-row .input { flex: 1; }
.msg { min-height: 20px; font-size: 13px; color: #ff7a66; margin-top: 4px; }
.msg.ok { color: #4cd07a; }

/* ---------- 卡片 ---------- */
.card {
  background: #2a1c0d; border: 1px solid #8a5f24; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px; color: #c9a86a; font-size: 14px; line-height: 1.8;
}
.card .card-title { color: #eec25f; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.card .card-row { display: flex; justify-content: space-between; gap: 10px; }
.card b { color: #ffd76a; }

/* ---------- 功能弹窗（签到/特权/赞助/客服） ---------- */
.feature-tips { font-size: 13px; color: #8a6a3a; line-height: 1.9; margin-top: 8px; }
.checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 14px; }
.checkin-cell {
  text-align: center; padding: 10px 2px; border-radius: 8px;
  border: 1px solid #4a3716; background: #241708; font-size: 12px; color: #b8945a;
}
.checkin-cell.done { border-color: #3f8f5f; color: #8fd48f; background: rgba(63, 143, 95, .12); }
.checkin-cell.next { border-color: #ffd76a; color: #ffd76a; background: rgba(255, 215, 106, .1); }
.checkin-cell b { display: block; font-size: 16px; color: #ffd76a; margin-top: 4px; }
.checkin-cell.done b { color: #8fd48f; }
.center { text-align: center; }
.sponsor-row { display: flex; gap: 8px; margin: 10px 0; }
.sponsor-row .input { flex: 1; }
.priv-badge {
  display: inline-block; padding: 2px 14px; border-radius: 999px;
  background: linear-gradient(#ecc05a, #cf9c33); color: #3a2708; font-weight: 700; font-size: 14px;
}
.priv-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.priv-table th, .priv-table td { border: 1px solid #4a3716; padding: 7px 8px; text-align: center; }
.priv-table th { color: #eec25f; background: #2c1d0d; }
.copy-line { display: flex; gap: 0; margin-top: 8px; }
.copy-line input { flex: 1; height: 36px; border: 2px solid #6d4c1d; border-right: 0; border-radius: 4px 0 0 4px; background: #2c1d0d; color: #f0e2c0; padding: 0 10px; outline: none; }
.copy-line button { width: 90px; height: 36px; border: 0; border-radius: 0 4px 4px 0; background: linear-gradient(#ecc05a, #cf9c33); color: #3a2708; font-weight: 700; cursor: pointer; }

/* ---------- 登录页 ---------- */
.login-wrap { width: 750px; min-height: 100vh; margin: 0 auto; background: #181008; border: 1px solid #3d2c14; border-top: 0; padding: 90px 0 0; }
.login-logo { text-align: center; font-size: 42px; font-weight: 900; letter-spacing: 8px; color: #f2c14e; text-shadow: 0 0 18px rgba(242, 193, 78, .35); }
.login-sub { text-align: center; font-size: 15px; color: #b8945a; margin-top: 10px; letter-spacing: 3px; }
.login-card { width: 460px; margin: 40px auto 0; background: #221608; border: 1px solid #8a5f24; border-radius: 10px; padding: 26px 28px; }
.login-card .title { font-size: 20px; color: #eec25f; text-align: center; margin-bottom: 20px; font-weight: 700; }
.login-card .input { width: 100%; height: 44px; font-size: 16px; margin-bottom: 14px; }
.login-card .btn { width: 100%; height: 46px; font-size: 18px; }
.login-hint { margin-top: 16px; font-size: 12px; color: #8a6a3a; text-align: center; line-height: 1.9; }

/* ---------- 登录 / 注册页（参考站风格） ---------- */
.auth-frame {
  width: 750px; min-height: 100vh; margin: 0 auto; background: #1f1409;
  border-left: 1px solid #2e2110; border-right: 1px solid #2e2110;
}
.auth-tabs { padding: 14px 24px 12px; border-bottom: 1px solid #2c2114; }
.auth-tab {
  display: block; line-height: 40px; font-size: 21px; font-weight: 800;
  letter-spacing: 1px; color: #e6b45a; text-decoration: none;
}
.auth-tab.login { color: #ff5a3c; }
.auth-tab.reg { color: #2fd6a2; }
.auth-tab:hover { filter: brightness(1.15); }
.auth-head {
  height: 62px; line-height: 62px; padding: 0 26px; color: #f0c96a;
  font-size: 30px; font-weight: 900; letter-spacing: 5px;
  background: linear-gradient(#2b1d0d, #221509);
  border-top: 1px solid #3b2a15; border-bottom: 1px solid #3b2a15;
}
.auth-body { padding: 46px 0 40px; }
.auth-form { width: 540px; margin: 0 auto; }
.auth-row { display: flex; align-items: center; margin-bottom: 20px; }
.auth-row > label {
  width: 100px; flex: none; padding-right: 12px; text-align: right;
  color: #e6b45a; font-size: 20px; font-weight: 700; letter-spacing: 1px;
  white-space: nowrap;
}
.auth-input {
  flex: 1; height: 52px; padding: 0 14px; outline: none;
  border: 2px solid #8a5f24; border-radius: 8px;
  background: #1c1208; color: #e6bd60; font-size: 18px; font-family: inherit;
}
.auth-input::placeholder { color: #8a6a3a; }
.auth-input:focus { border-color: #c79a45; }
.auth-msg { min-height: 24px; padding-left: 96px; margin-bottom: 8px; font-size: 14px; color: #ff6a52; }
.auth-msg.ok { color: #4cd07a; }
.auth-actions { display: flex; align-items: center; gap: 26px; padding-left: 96px; margin-top: 4px; }
.auth-btn {
  width: 216px; height: 58px; border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(#f2d06d, #d19a2a); color: #2e1d06;
  font-size: 27px; font-weight: 900; letter-spacing: 8px; font-family: inherit;
  box-shadow: 0 3px 0 #8a5f24;
}
.auth-btn:hover { filter: brightness(1.07); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-link { color: #e6b45a; font-size: 19px; cursor: pointer; text-decoration: none; }
.auth-link:hover { color: #ffd76a; }
.auth-hint { padding-left: 96px; margin: -10px 0 20px; font-size: 13px; color: #a98a5a; }
.auth-hint a { color: #d8b45c; }
.cap-row { display: flex; align-items: center; gap: 10px; flex: 1; }
.cap-img {
  width: 132px; height: 46px; flex: none; cursor: pointer;
  border: 1px solid #6d4c1d; border-radius: 5px; background: #f4eddc;
}
.auth-footer {
  width: 540px; margin: 52px auto 0; padding: 16px 0 14px; text-align: center;
  border: 2px solid #8a5f24; border-radius: 6px; background: #1c1208;
}
.auth-footer .name { font-size: 26px; font-weight: 900; color: #f0c96a; letter-spacing: 5px; }
.auth-copy { text-align: center; color: #8a6a3a; font-size: 13px; margin-top: 14px; padding-bottom: 26px; }

@media (max-width: 780px) {
  .auth-frame { width: 100%; border: 0; }
  .auth-form { width: 100%; padding: 0 18px; box-sizing: border-box; }
  .auth-row > label { width: 82px; font-size: 16px; }
  .auth-actions, .auth-msg, .auth-hint { padding-left: 82px; }
  .auth-input { height: 46px; font-size: 16px; }
  .auth-btn { width: 150px; height: 50px; font-size: 22px; }
  .auth-footer { width: calc(100% - 36px); }
}

.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.info-item { background: #241708; border: 1px solid #4a3716; border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.info-item span { color: #e0b45a; }
.info-item b { display: block; color: #ffd76a; margin-top: 4px; font-size: 16px; }

/* ---------- 管理后台表格 ---------- */
.admin-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.admin-toolbar .input { flex: 1; min-width: 180px; }
.table-wrap { border: 1px solid #4a3716; border-radius: 6px; overflow: auto; background: #1f1409; }
table.admin { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin th, table.admin td { padding: 8px 10px; border-bottom: 1px solid #3a2a12; text-align: left; white-space: nowrap; }
table.admin th { background: #2c1d0d; color: #eec25f; position: sticky; top: 0; }
table.admin tr:hover td { background: #241708; }
table.admin .ok { color: #4cd07a; }
table.admin .off { color: #8a6a3a; }
table.admin .warn { color: #ff8a72; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px;
  border: 1px solid #8a5f24; color: #e6bd60;
}
.badge.admin { border-color: #b06bff; color: #c9a7ff; }
.badge.banned { border-color: #8a3a2a; color: #ff8a72; }

@media (max-width: 780px) {
  .topbar, .content, .footer, .login-wrap { width: 100%; }
  .topbar { flex-direction: column; height: auto; }
  .topbar .left { width: 100%; height: auto; border-right: 0; border-bottom: 1px solid #3d2c14; }
  .topbar .nav { height: auto; grid-auto-rows: 46px; }
  .nav-btn { height: 46px; font-size: 13px; }
  .info-list { grid-template-columns: 1fr; }
}
