/* ===== 存档快照样式 ===== */

.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 2rem 0;
}

/* 存档横幅 */
.archive-banner {
    background: #fff3cd;
    border-bottom: 1px solid #ffe69c;
    color: #664d03;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    text-align: center;
}

/* 地图 */
.map-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
}

#ring-map {
    position: relative;
    width: 100%;
    max-width: 700px;
    min-width: 280px;
    margin: 0 auto;
}

#ring-map svg {
    display: block;
    width: 100%;
    height: auto;
}

.player-marker {
    cursor: default;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.75rem;
    color: #495057;
    font-size: 0.85rem;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* 排行榜 */
#rank-table td,
#rank-table th {
    vertical-align: middle;
    white-space: nowrap;
}

#rank-table tr.top-1 {
    background-color: #fff8e1;
}

.rank-medal {
    font-size: 1rem;
}

/* 约战存档表 */
#duel-result-section .table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

#duel-result-section .table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

.duel-table-wrap {
    max-height: 620px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

#duel-result-section table {
    min-width: 720px;
    width: 100%;
}

#duel-result-section th,
#duel-result-section td {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    vertical-align: middle;
    white-space: nowrap;
}

#duel-result-section thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

#duel-result-section th:nth-child(1),
#duel-result-section td:nth-child(1),
#duel-result-section th:nth-child(2),
#duel-result-section td:nth-child(2) {
    width: 14%;
}

#duel-result-section th:nth-child(3),
#duel-result-section td:nth-child(3),
#duel-result-section th:nth-child(4),
#duel-result-section td:nth-child(4) {
    width: 11%;
}

#duel-result-section th:nth-child(5),
#duel-result-section td:nth-child(5) {
    width: 9%;
}

#duel-result-section th:nth-child(6),
#duel-result-section td:nth-child(6),
#duel-result-section th:nth-child(7),
#duel-result-section td:nth-child(7) {
    width: 10%;
}

.duel-group-header td {
    font-weight: 700;
    text-align: center;
    border-top: 2px solid #dee2e6;
}

.duel-round-header td {
    font-weight: 700;
    text-align: center;
    background-color: #e9ecef !important;
    letter-spacing: 0.05em;
}

/* 结果颜色 */
.text-pending { color: #fd7e14 !important; }
.text-completed { color: #198754 !important; }

/* 提交状态 */
.submit-status {
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-align: center;
    display: inline-block;
    min-width: 50px;
}

.submit-status.pending {
    background-color: #ffc10720;
    color: #fd7e14;
}

.submit-status.submitted {
    background-color: #19875420;
    color: #198754;
}

.submit-status.timeout {
    background-color: #dc354520;
    color: #dc3545;
}

/* 备注 */
.notes {
    background-color: #f8f9fa;
    border-left: 4px solid #0dcaf0;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.8rem;
}

.notes h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.notes ul {
    padding-left: 20px;
    margin-bottom: 0;
}

/* 页脚 */
footer {
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0;
}

#page-views,
#unique-visitors {
    font-weight: bold;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.1);
}

#page-views { color: #4d96ff; }
#unique-visitors { color: #6bcb77; }
