/* ============================================================
   9GM搜服 · 分类页专属样式 category.css
   各分类页面使用差异化版面：时间轴 / 特征卡 / 职业组合 /
   统计条 / 编号榜单 / 对比表 / 大图交替 / 冰雪蓝调 / 查询工具
   ============================================================ */

/* ---------- 分类页头部（标题 + 简介） ---------- */
.cat-head { margin-top: 18px; padding: 26px 28px; position: relative; overflow: hidden; }
.cat-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 180px at 15% 0%, rgba(255, 120, 40, .16), transparent 70%); pointer-events: none; }
.cat-head h1 { font-family: var(--font-title); font-size: 28px; color: #fff; font-weight: 800; letter-spacing: 2px; display: flex; align-items: center; gap: 12px; }
.cat-head h1 em { font-style: normal; font-size: 13px; color: var(--gold); border: 1px solid rgba(255, 170, 60, .4); background: rgba(255, 140, 50, .08); padding: 2px 10px; border-radius: 20px; font-family: var(--font); letter-spacing: 0; }
.cat-head p { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 2; max-width: 960px; }
.cat-head p b { color: var(--gold); font-weight: 600; }

/* ---------- 分类页统计条 ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.stat-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; transition: .3s; }
.stat-item:hover { transform: translateY(-3px); border-color: rgba(255, 170, 60, .5); }
.stat-item b { display: block; font-size: 26px; font-family: var(--font-title); color: var(--gold); text-shadow: 0 0 18px rgba(255, 170, 60, .4); }
.stat-item span { font-size: 12px; color: var(--text-2); }

/* ---------- 特征卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: relative; overflow: hidden; transition: .3s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 170, 60, .5); box-shadow: var(--shadow); }
.feature-card::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 120, 40, .18), transparent 70%); }
.feature-ico { font-size: 30px; margin-bottom: 10px; display: inline-block; }
.feature-card h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* ---------- 时间轴（最新开服） ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--fire), transparent); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--fire)); box-shadow: 0 0 0 4px rgba(255, 130, 40, .15), 0 0 14px rgba(255, 130, 40, .8); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-head time { font-size: 12px; color: var(--muted); border: 1px solid var(--line-soft); padding: 2px 9px; border-radius: 20px; }
.tl-head b { color: #fff; font-size: 15px; }
.tl-head b a:hover { color: var(--gold); }
.tl-meta { font-size: 12px; color: var(--text-2); margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.tl-meta i { font-style: normal; color: var(--ok); }

/* ---------- 职业组合卡（合击页） ---------- */
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.combo-card { background: linear-gradient(150deg, rgba(30, 18, 8, .9), rgba(14, 10, 16, .9)); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; transition: .3s; }
.combo-card:hover { transform: translateY(-4px); border-color: rgba(255, 190, 90, .6); box-shadow: var(--shadow-gold); }
.combo-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; background: radial-gradient(circle at 35% 30%, rgba(255, 170, 70, .35), rgba(120, 30, 10, .5)); border: 1px solid rgba(255, 180, 80, .5); box-shadow: 0 0 20px rgba(255, 130, 40, .3); }
.combo-card h4 { color: var(--gold); font-size: 16px; margin-bottom: 6px; }
.combo-card p { font-size: 12px; color: var(--text-2); line-height: 1.75; }

/* ---------- 编号榜单（中变页） ---------- */
.num-list { counter-reset: num; }
.num-item { counter-increment: num; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); transition: background .2s; }
.num-item:last-child { border-bottom: none; }
.num-item:hover { background: rgba(255, 140, 50, .05); }
.num-item::before { content: counter(num, decimal-leading-zero); font-family: var(--font-title); font-size: 26px; font-weight: 800; color: rgba(255, 150, 50, .35); flex-shrink: 0; width: 46px; text-align: center; }
.num-item:nth-child(1)::before { color: var(--gold); text-shadow: 0 0 14px rgba(255, 190, 80, .8); }
.num-item:nth-child(2)::before { color: #c9d2e2; }
.num-item:nth-child(3)::before { color: #d9825a; }
.num-info { flex: 1; min-width: 0; }
.num-info b { color: #fff; font-size: 15px; }
.num-info b a:hover { color: var(--gold); }
.num-info span { display: block; font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* ---------- 版本对比表 ---------- */
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th { background: rgba(255, 130, 40, .14); color: var(--gold); padding: 12px 14px; font-size: 14px; text-align: center; border: 1px solid var(--line); }
.cmp-table td { padding: 12px 14px; font-size: 13px; color: var(--text-2); text-align: center; border: 1px solid var(--line-soft); }
.cmp-table td:first-child { color: #fff; font-weight: 600; text-align: left; }
.cmp-table tr:hover td { background: rgba(255, 140, 50, .05); }

/* ---------- 大图交替（单职业页） ---------- */
.media-rows { display: flex; flex-direction: column; gap: 22px; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.media-row.rev .mr-img { order: 2; }
.mr-img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.mr-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.media-row:hover .mr-img img { transform: scale(1.05); }
.mr-body h3 { color: var(--gold); font-size: 19px; margin-bottom: 10px; font-family: var(--font-title); }
.mr-body p { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.mr-body .tags { margin-top: 12px; }

/* ---------- 冰雪主题（蓝色调） ---------- */
.snow-mode .panel { border-color: rgba(90, 190, 255, .22); }
.snow-mode .panel-title, .snow-mode .sec-title { color: var(--cyan); }
.snow-mode .sec-title::before { background: linear-gradient(180deg, #fff, var(--cyan)); box-shadow: 0 0 12px rgba(90, 220, 255, .8); }
.snow-mode .game-card:hover { border-color: rgba(90, 200, 255, .6); box-shadow: 0 16px 40px rgba(60, 160, 255, .25); }
.snow-card { position: relative; border-radius: 14px; overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; border: 1px solid rgba(90, 200, 255, .25); }
.snow-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.snow-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6, 16, 30, .95)); }
.snow-card .sc-txt { position: relative; z-index: 2; padding: 18px; }
.snow-card .sc-txt h4 { color: #fff; font-size: 18px; }
.snow-card .sc-txt p { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.snow-tip { background: linear-gradient(150deg, rgba(20, 60, 100, .35), rgba(8, 16, 32, .6)); border: 1px solid rgba(90, 200, 255, .25); border-radius: 14px; padding: 16px 18px; font-size: 13px; color: var(--text-2); line-height: 1.9; }
.snow-tip b { color: var(--cyan); }

/* ---------- 打金收益面板 ---------- */
.gold-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gold-cell { background: linear-gradient(150deg, rgba(60, 40, 4, .5), rgba(20, 16, 6, .7)); border: 1px solid rgba(255, 200, 90, .3); border-radius: 14px; padding: 16px; text-align: center; }
.gold-cell b { display: block; font-size: 22px; color: #ffd76a; font-family: var(--font-title); }
.gold-cell span { font-size: 12px; color: var(--text-2); }

/* ---------- 广告查询工具 ---------- */
.query-tool { padding: 26px; text-align: center; background: radial-gradient(700px 220px at 50% 0%, rgba(255, 120, 40, .14), transparent 70%); }
.qt-input-row { display: flex; gap: 12px; max-width: 720px; margin: 18px auto 0; flex-wrap: wrap; justify-content: center; }
.qt-input-row input { flex: 1; min-width: 220px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; color: #fff; font-size: 15px; outline: none; transition: .25s; }
.qt-input-row input:focus { border-color: rgba(255, 170, 60, .65); box-shadow: 0 0 0 3px rgba(255, 140, 40, .15); }
.qt-input-row select { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 14px; outline: none; }
.qt-input-row select option { background: #14161f; }
.qt-btn { padding: 12px 34px; border-radius: 12px; background: linear-gradient(120deg, #ffb347, var(--fire) 55%, var(--red-deep)); color: #fff; font-size: 15px; font-weight: 700; box-shadow: var(--shadow-gold); transition: .25s; }
.qt-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.qt-tips { font-size: 12px; color: var(--muted); margin-top: 12px; }
.qt-hot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.qt-hot a { font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); padding: 4px 12px; border-radius: 20px; transition: .2s; }
.qt-hot a:hover { color: var(--gold); border-color: rgba(255, 170, 60, .5); }

.qt-result { margin-top: 22px; text-align: left; }
.qt-empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.qt-empty b { color: var(--gold); }

/* 查询结果高亮 */
.qt-hl { color: var(--gold); font-weight: 700; }

/* 步骤条（查询教程） */
.steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------- 分类页响应式 ---------- */
@media (max-width: 1100px) {
  .feature-grid, .combo-grid { grid-template-columns: repeat(2, 1fr); }
  .media-row { grid-template-columns: 1fr; }
  .media-row.rev .mr-img { order: 0; }
}
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gold-panel { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cat-head { padding: 18px 16px; }
  .cat-head h1 { font-size: 22px; flex-wrap: wrap; }
  .feature-grid, .combo-grid { grid-template-columns: 1fr; }
  .num-item::before { font-size: 20px; width: 34px; }
  .qt-input-row select { width: 100%; }
}
