/* ============================================================
 * MCPEMAP · v2 新功能样式（独立文件，避免改动已缓存的 style.css）
 * 全部用站点 CSS 变量，自动适配深浅色。
 * ========================================================== */

/* 表格（版本对照 / 字段说明 / 徽章字段 / 后台纠错） */
.table-wrap { width: 100%; overflow-x: auto; margin: 6px 0 18px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.info-table th { color: var(--text-sub); font-weight: 600; background: var(--bg-soft, transparent); }
.info-table td code { background: var(--bg-soft, #f2f2f7); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
html[data-theme="dark"] .info-table td code { background: #2a2a30; }

/* 今日在线情况：四宫格 */
.stat-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-mini > div { background: var(--bg-soft, #f6f6f9); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 12px; text-align: center; }
.stat-mini b { display: block; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-mini span { font-size: 12.5px; color: var(--text-sub); }
@media (max-width: 560px) { .stat-mini { grid-template-columns: repeat(2, 1fr); } }

/* 印象标签 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-pill { background: var(--accent-weak, #e8f2fd); color: var(--accent); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.tag-pill i { font-style: normal; opacity: .7; margin-left: 4px; font-size: 12px; }
html[data-theme="dark"] .tag-pill { background: #0a1a2c; }
.tag-form .mt { font-weight: 600; margin-bottom: 8px; }
.tag-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.tag-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--text-sub); cursor: pointer; }
.tag-opt input { width: auto; min-height: auto; }

/* 24 小时热度柱状图 */
.heat { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 10px 4px 0; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.heat-col { flex: 1 1 0; min-width: 18px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.heat-bar { width: 100%; max-width: 26px; background: linear-gradient(180deg, var(--accent), var(--accent-weak, #cfe6ff)); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
.heat-h { font-size: 10.5px; color: var(--text-dim); margin-top: 5px; }
@media (max-width: 600px) { .heat-h { font-size: 9px; } .heat-col { min-width: 12px; } }

/* 进服指南 · 步骤序号 */
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; }

/* API 文档页 */
.api-url { display: inline-block; background: var(--bg-soft, #f2f2f7); padding: 6px 10px; border-radius: 8px; font-size: 13px; word-break: break-all; }
html[data-theme="dark"] .api-url { background: #23232a; }
.code-block { background: #1c202e; color: #d6e2f0; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 8px 0 14px; }
.badge-prev { display: inline-block; background: #1c202e; border-radius: 8px; padding: 6px; margin: 4px 0; }

/* 后台纠错 · 小按钮 */
.mini-btn { background: var(--ok); color: #fff; border: none; border-radius: 7px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.mini-btn.ghost { background: transparent; color: var(--text-sub); border: 1px solid var(--line); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
