/* Page-specific styles for tools/chartable.html (per-class stat table). */

/* body 背景由 unified-style.css 统一处理。这里仅覆盖 unified 的 flex 布局。 */
body {
    display: block;
}

.page-title {
    text-align: center;
    color: #00d4ff;
    font-size: 2.5em;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                 0 0 40px rgba(0, 212, 255, 0.3);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.nav-container {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(12, 24, 56, 0.55);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.class-group {
    margin-bottom: 15px;
}

.class-group:last-child {
    margin-bottom: 0;
}

.class-label {
    display: inline-block;
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1em;
    margin-right: 15px;
    min-width: 100px;
    text-align: right;
}

.nav-container a {
    display: inline-block;
    padding: 8px 18px;
    margin: 5px;
    background: rgba(0, 212, 255, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-container a:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.table-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

table {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(12, 24, 56, 0.55) !important;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: none;
}

table.active {
    display: table;
}

table:hover {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

thead {
    text-align: center;
}

thead tr:first-child th {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 160, 255, 0.3)) !important;
    color: #00d4ff !important;
    font-size: 1.2em;
    font-weight: 700;
    padding: 15px !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    border: none !important;
}

thead tr:nth-child(2) th {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #60a5fa !important;
    font-size: 0.85em;
    padding: 10px 5px !important;
    border-color: rgba(0, 212, 255, 0.15) !important;
}

tbody tr {
    background: rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease;
}

tbody tr:nth-child(even) {
    background: rgba(0, 212, 255, 0.05) !important;
}

tbody tr:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
}

tbody td {
    padding: 8px !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
    font-size: 0.9em;
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00d4ff, #00a0ff);
    color: #0a0e27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 212, 255, 0.3);
    z-index: 100;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, #00e4ff, #00b0ff);
    color: #0a0e27;
}

.jump-container {
    background: rgba(12, 24, 56, 0.55);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.jump-container h3 {
    color: #00d4ff;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.jump-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.jump-controls label {
    color: #60a5fa;
    font-weight: 600;
}

.jump-controls select,
.jump-controls input {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #e2e8f0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
}

.jump-controls select option {
    background: #1a2332;
    color: #e2e8f0;
    padding: 8px;
}

.jump-controls select optgroup {
    background: #0f172a;
    color: #00d4ff;
    font-weight: 700;
}

.jump-controls select:focus,
.jump-controls input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.jump-controls select {
    min-width: 150px;
}

.jump-controls input {
    width: 100px;
}

.jump-btn {
    background: linear-gradient(135deg, #00d4ff, #00a0ff);
    color: #0a0e27;
    border: 2px solid rgba(0, 212, 255, 0.3);
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.jump-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #00e4ff, #00b0ff);
}

.reset-btn {
    background: rgba(255, 59, 48, 0.8);
    color: white;
    border: 2px solid rgba(255, 59, 48, 0.5);
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.5);
    background: rgba(255, 69, 58, 0.9);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #60a5fa;
    font-size: 1.2em;
}

.empty-state-icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
}

tbody tr.highlight {
    background: rgba(0, 212, 255, 0.3) !important;
    color: #00d4ff !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    animation: highlightPulse 1.5s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        background: rgba(0, 212, 255, 0.3) !important;
    }
    50% {
        background: rgba(0, 212, 255, 0.5) !important;
    }
}

@media (max-width: 768px) {
    .table-container {
        padding: 0 10px;
    }
    .page-title {
        font-size: 1.8em;
    }

    .table-container {
        grid-template-columns: 1fr;
    }

    tbody td {
        font-size: 0.8em;
        padding: 6px 3px !important;
    }

    thead tr:nth-child(2) th {
        font-size: 0.75em;
        padding: 8px 3px !important;
    }
}
