/* 服务页专属样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}
.stat-cell {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.stat-icon {
    width: 42px !important;
    height: 42px !important;
    image-rendering: pixelated;
    flex-shrink: 0;
    margin-top: 2px;
}
.stat-content {
    flex: 1;
}
.stat-label {
    color: #3A4A5A;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1A2A3A;
    line-height: 1.2;
}
.stat-unit {
    font-size: 14px;
    color: #5A6A7A;
    margin-left: 2px;
    font-weight: 400;
}
.stat-unit-sm {
    font-size: 12px;
    color: #5A6A7A;
    font-weight: 400;
    margin-right: 2px;
}
.stat-memory-sep {
    font-size: 20px;
    font-weight: 400;
    color: #5A6A7A;
    margin: 0 4px;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.matrix-expand-btn {
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    user-select: none;
}
.matrix-expand-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration-color: rgba(255, 255, 255, 0.6);
}
.section-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(107, 154, 196, 0.3);
    flex-shrink: 0;
}
.section-header img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    flex-shrink: 0;
}
.service-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.service-btn-card {
    flex: 1;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-btn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.service-btn-card h4 {
    font-size: 32px;
    color: #1A2A3A;
    margin-bottom: 8px;
    font-weight: 600;
}
.service-btn-card p {
    font-size: 14px;
    color: #5A6A7A;
}

/* ========== 在线矩阵 ========== */
.matrices-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.matrix-block {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.matrix-block-title {
    font-size: 16px;
    font-weight: 600;
    color: #3A2A1A;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px 2px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.matrix-cell {
    aspect-ratio: 6 / 5;
    cursor: pointer;
    transition: opacity 0.15s;
    background: transparent;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}
.matrix-cell.s-g {
    border-color: #22c55e;
    background: #22c55e;
}
.matrix-cell.s-o {
    border-color: #f97316;
    background: #f97316;
}
.matrix-cell.s-r {
    border-color: #ef4444;
    background: #ef4444;
}
.matrix-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    flex-wrap: wrap;
}
.matrix-legend .legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}
.legend-swatch.s-g { background: #22c55e; }
.legend-swatch.s-o { background: #f97316; }
.legend-swatch.s-r { background: #ef4444; }
.legend-swatch.s-n { background: #e0e0e0; }

@media (max-width: 900px) {
    .matrices-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .matrix-block {
        max-width: 100%;
        width: 100%;
    }
    .matrix-grid {
        gap: 1px;
        padding: 6px;
    }
}

/* ========== 在线玩家 ========== */
.players-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.players-block {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.players-block-title {
    font-size: 16px;
    font-weight: 600;
    color: #3A2A1A;
    margin-bottom: 10px;
}
.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    align-items: center;
}
.player-tag {
    display: inline-block;
    background: rgba(107, 154, 196, 0.15);
    color: #1A2A3A;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.players-empty {
    color: #7A6A5A;
    font-size: 13px;
}

/* 移动端 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .service-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .stat-number {
        font-size: 28px;
    }
    .service-btn-card h4 {
        font-size: 28px;
    }
}
