/* ==================== 会员系统 - 暗色金色游戏站风格 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0e14;
  --bg-soft: #12161f;
  --card: #171c28;
  --card-hover: #1d2434;
  --border: #262e42;
  --gold: #f0b90b;
  --gold-light: #ffd75e;
  --gold-dark: #b8860b;
  --text: #e8eaf0;
  --text-light: #9aa3b5;
  --danger: #ef4444;
  --success: #22c55e;
  --blue: #3b82f6;
  --radius: 10px;
}

html, body { min-height: 100vh; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(1200px 500px at 50% -100px, rgba(240,185,11,0.08), transparent 60%),
              linear-gradient(180deg, #0b0e14 0%, #0e1220 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==================== 顶部导航 ==================== */
.topbar {
  background: rgba(10, 13, 20, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; }
.logo .logo-gold { color: var(--gold); }
.logo .logo-sub { font-size: 0.7rem; color: var(--text-light); font-weight: 400; margin-left: 6px; letter-spacing: 2px; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-light); font-size: 0.95rem;
  transition: all .2s;
}
.nav a:hover, .nav a.active { color: var(--gold); background: rgba(240,185,11,0.08); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--gold); border-radius: 20px; color: var(--gold);
  font-size: 0.9rem; font-weight: 600;
}
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; transition: all .2s; text-align: center;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1200; box-shadow: 0 2px 12px rgba(240,185,11,0.3);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-light); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,0.3); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==================== 横幅 / 公告 ==================== */
.hero {
  text-align: center; padding: 56px 20px 40px;
  background: radial-gradient(800px 300px at 50% 0%, rgba(240,185,11,0.12), transparent 70%);
}
.hero h1 { font-size: 2.2rem; font-weight: 800; }
.hero h1 .gold { color: var(--gold); }
.hero p { color: var(--text-light); margin-top: 10px; font-size: 1.05rem; }
.hero .hero-badge {
  display: inline-block; margin-top: 18px; padding: 8px 22px; border-radius: 24px;
  background: rgba(240,185,11,0.1); border: 1px solid rgba(240,185,11,0.35); color: var(--gold-light);
  font-size: 0.95rem;
}

.notice-bar {
  background: linear-gradient(90deg, rgba(240,185,11,0.12), rgba(240,185,11,0.04));
  border: 1px solid rgba(240,185,11,0.25); border-radius: var(--radius);
  padding: 12px 18px; margin: 20px 0; display: flex; align-items: center; gap: 10px;
  color: var(--gold-light); font-size: 0.95rem;
}
.notice-bar .notice-tag {
  background: var(--gold); color: #1a1200; font-size: 0.75rem; font-weight: 700;
  padding: 2px 10px; border-radius: 4px; white-space: nowrap;
}

/* ==================== 福利卡片区 ==================== */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.benefit-card {
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all .25s; position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px;
  border-radius: 50%; background: rgba(240,185,11,0.07);
}
.benefit-card:hover { transform: translateY(-3px); border-color: rgba(240,185,11,0.5); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.benefit-icon { font-size: 1.8rem; }
.benefit-card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.benefit-card h3 .gold { color: var(--gold); }
.benefit-card p { color: var(--text-light); font-size: 0.88rem; min-height: 40px; }
.benefit-card .btn { margin-top: 12px; }
.benefit-card.hot {
  border-color: rgba(240,185,11,0.45);
  background: linear-gradient(160deg, rgba(240,185,11,0.08), var(--card) 60%);
}

/* ==================== 区块标题 ==================== */
.section-title {
  display: flex; align-items: center; gap: 10px; margin: 34px 0 18px;
  font-size: 1.25rem; font-weight: 700;
}
.section-title::before { content: '◆'; color: var(--gold); font-size: 0.9rem; }
.section-title .more { margin-left: auto; font-size: 0.85rem; color: var(--text-light); font-weight: 400; }
.section-title .more:hover { color: var(--gold); }

/* ==================== 游戏卡片 ==================== */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(240,185,11,0.45); box-shadow: 0 8px 30px rgba(0,0,0,0.45); }
.game-cover {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; color: rgba(255,255,255,0.9);
  background: linear-gradient(135deg, #3a2f12, #6b4e0d 50%, #3a2f12);
  position: relative;
}
.game-cover .game-cover-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.55);
  color: var(--gold-light); font-size: 0.72rem; padding: 2px 10px; border-radius: 4px;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.game-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.game-body p { color: var(--text-light); font-size: 0.85rem; flex: 1; }
.game-actions { display: flex; gap: 8px; margin-top: 12px; }
.game-actions .btn { flex: 1; padding: 7px 0; font-size: 0.88rem; }

/* ==================== 表单 ==================== */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--text-light); font-size: 0.88rem; margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.95rem; font-family: inherit; transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.form-message { min-height: 22px; font-size: 0.88rem; margin-top: 10px; }
.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }
.auth-switch { text-align: center; margin-top: 16px; color: var(--text-light); font-size: 0.9rem; }
.auth-switch a { color: var(--gold); }

/* ==================== 会员中心 ==================== */
.user-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; margin: 24px 0 40px; }
.user-sidebar { display: flex; flex-direction: column; gap: 14px; }
.user-card {
  background: linear-gradient(160deg, rgba(240,185,11,0.1), var(--card));
  border: 1px solid rgba(240,185,11,0.3); border-radius: var(--radius); padding: 20px;
  text-align: center;
}
.user-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #1a1200;
}
.user-card .username { font-size: 1.1rem; font-weight: 700; }
.user-card .vip-tag {
  display: inline-block; margin-top: 8px; padding: 3px 14px; border-radius: 14px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark)); color: #1a1200;
  font-size: 0.8rem; font-weight: 800;
}
.user-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; text-align: center;
}
.stat-box .stat-num { font-size: 1.25rem; font-weight: 800; color: var(--gold-light); }
.stat-box .stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.user-menu { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.user-menu a {
  display: block; padding: 11px 14px; border-radius: 8px; color: var(--text-light); font-size: 0.93rem;
  transition: all .2s;
}
.user-menu a:hover, .user-menu a.active { color: var(--gold); background: rgba(240,185,11,0.08); }
.user-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-height: 400px; }
.user-content h2 { margin-bottom: 16px; font-size: 1.2rem; }

/* 签到 */
.sign-panel { text-align: center; padding: 20px 0; }
.sign-panel .sign-stats { display: flex; justify-content: center; gap: 30px; margin: 16px 0 20px; }
.sign-panel .sign-stats div { text-align: center; }
.sign-panel .sign-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--gold-light); }
.sign-panel .sign-stats .lbl { font-size: 0.8rem; color: var(--text-light); }
.sign-btn { font-size: 1.05rem; padding: 12px 46px; }

/* 充值 */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.pay-option {
  background: var(--bg-soft); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center; cursor: pointer; transition: all .2s;
}
.pay-option:hover { border-color: rgba(240,185,11,0.5); }
.pay-option.selected { border-color: var(--gold); background: rgba(240,185,11,0.08); }
.pay-option .amount { font-size: 1.4rem; font-weight: 800; color: var(--gold-light); }
.pay-option .gift { font-size: 0.8rem; color: var(--success); margin-top: 4px; }
.pay-option .gift.none { color: var(--text-light); }

/* 模拟支付 */
.qr-box {
  width: 190px; height: 190px; margin: 18px auto; border-radius: 12px; padding: 14px;
  background: #fff; display: flex; align-items: center; justify-content: center; position: relative;
}
.qr-pattern {
  width: 100%; height: 100%; background:
    linear-gradient(#000 2px, transparent 2px) 0 0 / 16px 16px,
    linear-gradient(90deg, #000 2px, transparent 2px) 0 0 / 16px 16px;
  opacity: 0.85; border-radius: 6px; position: relative;
}
.qr-pattern::before, .qr-pattern::after {
  content: ''; position: absolute; width: 34px; height: 34px; border: 6px solid #000; border-radius: 4px;
}
.qr-pattern::before { top: 6px; left: 6px; }
.qr-pattern::after { bottom: 6px; right: 6px; }
.qr-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 30px; height: 30px; background: var(--gold); border-radius: 6px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.list-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.list-table th, .list-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.list-table th { color: var(--text-light); font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.list-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; }
.status-badge.paid { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-badge.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-badge.banned { background: rgba(239,68,68,0.15); color: #f87171; }
.status-badge.normal { background: rgba(59,130,246,0.15); color: #60a5fa; }
.empty-state { text-align: center; color: var(--text-light); padding: 40px 0; }

/* ==================== 文章 / 详情 ==================== */
.article { max-width: 780px; margin: 30px auto 60px; }
.article h1 { font-size: 1.7rem; margin-bottom: 8px; }
.article .article-meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 24px; }
.article .article-content { line-height: 1.9; color: #d5dae4; }
.article .article-content h2, .article .article-content h3 { color: var(--gold-light); margin: 20px 0 10px; }
.article .article-content p { margin: 10px 0; }
.article .article-content ul, .article .article-content ol { padding-left: 22px; margin: 10px 0; }
.article .article-content li { margin: 4px 0; }
.article .article-content code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }

/* 游戏详情 */
.game-detail { max-width: 780px; margin: 30px auto 60px; }
.game-detail-header { display: flex; gap: 20px; align-items: flex-start; }
.game-detail-cover { width: 200px; height: 120px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.game-detail-cover .game-cover { height: 100%; }
.game-detail-info h1 { font-size: 1.6rem; }
.game-detail-info .tagline { color: var(--text-light); margin: 6px 0 14px; }
.game-detail-guide { margin-top: 30px; }
.game-detail-guide h2 { color: var(--gold-light); margin-bottom: 12px; font-size: 1.2rem; }
.game-detail-guide .guide-content { line-height: 1.9; color: #d5dae4; }

/* ==================== 后台 ==================== */
.admin-body { background: #0b0e14; }
.admin-header {
  display: flex; align-items: center; gap: 20px; padding: 14px 24px;
  background: rgba(10,13,20,0.95); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.admin-header h1 { font-size: 1.2rem; }
.admin-header .spacer { flex: 1; }
.admin-tabs { display: flex; gap: 6px; padding: 16px 24px 0; flex-wrap: wrap; }
.admin-tab {
  padding: 9px 18px; border-radius: 8px 8px 0 0; background: transparent; border: 1px solid transparent;
  color: var(--text-light); cursor: pointer; font-size: 0.93rem; font-weight: 600; transition: all .2s;
}
.admin-tab:hover { color: var(--gold); }
.admin-tab.active { background: var(--card); border-color: var(--border); border-bottom-color: var(--card); color: var(--gold); }
.admin-content { max-width: 1100px; margin: 0 auto; padding: 22px 24px 60px; }
.admin-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: none; }
.admin-panel.active { display: block; }
.admin-panel h2 { margin-bottom: 16px; font-size: 1.15rem; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-toolbar input, .admin-toolbar select {
  padding: 8px 12px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.9rem;
}
.admin-toolbar input:focus, .admin-toolbar select:focus { outline: none; border-color: var(--gold); }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; border-radius: 6px; }
.btn-sm + .btn-sm { margin-left: 6px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; padding: 26px;
}
.modal h3 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ==================== 页脚 ==================== */
.footer { text-align: center; color: var(--text-light); font-size: 0.82rem; padding: 30px 20px 40px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer .gold { color: var(--gold); }

/* ==================== 提示 ==================== */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 12px 24px; border-radius: 10px; z-index: 300; opacity: 0; pointer-events: none;
  transition: all .3s; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); color: #4ade80; }
.toast.error { border-color: var(--danger); color: #fca5a5; }

/* ==================== 响应式 ==================== */
@media (max-width: 860px) {
  .benefits, .game-grid, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .user-layout { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .game-detail-header { flex-direction: column; }
  .game-detail-cover { width: 100%; }
  .topbar-inner { gap: 10px; flex-wrap: wrap; height: auto; padding: 10px 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 560px) {
  .benefits, .game-grid, .pay-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
}
