/* ============================================================
   全站共享基础样式（深色主题）
   统一调色板：
     强调青 #4ecdc4 | 背景渐变 #1a1a2e→#16213e | 面板 #2a2a40/#1e1e30
     边框 #3a3a55 | 分隔线 #333/#444 | 正文 #e0e0e0 | 次要 #888
     正/负 #4caf50 / #f44336
   各页面只保留自身特有样式，公共基础规则统一放这里。
   ============================================================ */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 页面基础 ---------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

.container {
    width: 100%;
    padding: 20px;
}

/* ---------- 页头 ---------- */
header {
    text-align: center;
    padding: 28px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 24px;
}
header h1 {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 10px;
}
header p {
    color: #888;
    font-size: 0.95rem;
}

/* ---------- 卡片区块 ---------- */
.section {
    background: linear-gradient(145deg, #2a2a40 0%, #1e1e30 100%);
    border: 1px solid #3a3a55;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
}
.section h2 {
    color: #4ecdc4;
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

/* ---------- 通用数据表格 ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #444;
}
.data-table th {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    font-weight: 600;
}
.data-table tr:hover {
    background: rgba(78, 205, 196, 0.04);
}
.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- 工具类 ---------- */
.pos { color: #4caf50; }
.neg { color: #f44336; }
.zero { color: #777; }
.muted { color: #888; font-size: 0.85rem; }
.loading { color: #888; padding: 20px; }
.error { color: #f44336; padding: 20px; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.tag.red    { background: rgba(244, 67, 54, 0.2);  color: #f44336; }
.tag.orange { background: rgba(255, 152, 0, 0.2);  color: #ff9800; }
.tag.green  { background: rgba(76, 175, 80, 0.2);  color: #4caf50; }
.tag.call   { background: rgba(76, 175, 80, 0.2);  color: #4caf50; }
.tag.raise  { background: rgba(255, 152, 0, 0.2);  color: #ff9800; }
.tag.mixed  { background: rgba(78, 205, 196, 0.2);  color: #4ecdc4; }
.tag.fold   { background: rgba(244, 67, 54, 0.2);  color: #f44336; }

/* ---------- 导航菜单（原 nav.html 内联样式） ---------- */
.nav-toggle {
    position: fixed;
    top: 5px;
    left: 5px;
    width: 26px;
    height: 26px;
    background: #2a2a40;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 1001;
    transition: all 0.3s;
}
.nav-toggle:hover {
    background: #3a3a50;
    border-color: #4ecdc4;
}
.nav-toggle span {
    display: block;
    width: 12px;
    height: 2px;
    background: #4ecdc4;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1002;
}
.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}
.nav-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    background: linear-gradient(145deg, #2a2a40 0%, #1e1e30 100%);
    border: 1px solid #3a3a55;
    border-radius: 10px;
    padding: 10px;
    width: 290px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1003;
}
.nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.nav-menu-title {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #444;
}
.nav-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4ecdc4;
    letter-spacing: 0.5px;
    padding: 8px 10px 2px 10px;
    margin-top: 4px;
    border-top: 1px solid #3a3a55;
}
.nav-group-title.nav-group-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.nav-group-title.nav-group-toggle:hover {
    color: #e0e0e0;
}
.nav-group .nav-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
    display: inline-block;
}
.nav-group.collapsed .nav-chevron {
    transform: rotate(-90deg);
}
.nav-group.collapsed .nav-group-body {
    display: none;
}
.nav-subgroup {
    position: relative;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 6px 0;
}
.nav-subgroup:last-child {
    margin-bottom: 0;
}
.nav-subgroup-label {
    position: absolute;
    left: 26px;
    top: 6px;
    bottom: 6px;
    width: 22px;
    writing-mode: vertical-rl;
    color: #4ecdc4;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    padding: 4px 0;
    background: rgba(78, 205, 196, 0.12);
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-subgroup-body {
    /* 报表 menu-item 使用统一 padding-left，icon 与普通菜单对齐 */
}
.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 60px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #e0e0e0;
}
.nav-menu-item:hover {
    background: rgba(78, 205, 196, 0.15);
}
.nav-menu-item.active {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
}
.nav-menu-item .text {
    display: flex;
    flex-direction: column;
}
.nav-menu-item .text .title {
    font-weight: 600;
    font-size: 0.85rem;
}
.nav-menu-item .text .desc {
    font-size: 0.65rem;
    color: #888;
}
.game-switch {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
}
.game-switch-btn {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    color: #aaa;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #3a3a55;
    transition: all 0.2s;
}
.game-switch-btn:hover {
    color: #e0e0e0;
    border-color: #4ecdc4;
}
.game-switch-btn.active {
    color: #fff;
    background: rgba(78, 205, 196, 0.25);
    border-color: #4ecdc4;
}

/* ---------- 页脚备案号（原 icp.html 内联样式） ---------- */
.icp-footer {
    text-align: center;
    padding: 18px 10px 14px;
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.3px;
}
.icp-footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
.icp-footer a:hover {
    color: #4ecdc4;
}
.icp-footer .sep {
    margin: 0 8px;
    color: #777;
}
.icp-footer .gongan img {
    height: 14px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
}
.icp-footer .back-top {
    display: inline-block;
    margin-left: 12px;
    padding: 0 4px;
    color: #aaa;
    font-size: 0.95rem;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
    user-select: none;
}
.icp-footer .back-top:hover {
    color: #4ecdc4;
}
