/* ══════════════════════════════════════════════════════════════════════════
   艺诺射箭 · 对外公开成绩「极简无框高保真」统一视觉体系 (v2026.12)
   - 彻底告别密密麻麻的表格竖线与生硬黑框
   - 柔和浅灰底 #f4f6f9 + 纯白大圆角悬浮卡 + 极轻水平分隔线
   - 等宽数字 (tabular-nums) 严格垂直对齐 + 国际靶面色系箭值胶囊
   - 手机端自动卡片化顺滑体验；打印时 (@media print) 自动切换为清晰公文黑白版
   ══════════════════════════════════════════════════════════════════════════ */
:root {
    --pr-bg: #f4f6f9;
    --pr-surface: #ffffff;
    --pr-surface-subtle: #f8fafc;
    --pr-border: rgba(15, 23, 42, 0.08);
    --pr-border-light: rgba(15, 23, 42, 0.055);
    --pr-ink: #0f172a;
    --pr-sub: #475569;
    --pr-muted: #94a3b8;
    --pr-primary: #1d4ed8;
    --pr-primary-soft: #eff6ff;
    --pr-emerald: #059669;
    --pr-emerald-soft: #ecfdf5;
    --pr-shadow: 0 2px 12px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.025);
    --pr-shadow-hover: 0 10px 26px rgba(15, 23, 42, 0.075);
    --pr-radius-lg: 18px;
    --pr-radius-md: 12px;
    --pr-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    --pr-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html, body,
body.pr-body,
body:has(.pr-page) {
    background-color: var(--pr-bg) !important;
    color: var(--pr-ink) !important;
}

.pr-page {
    background: var(--pr-bg);
    min-height: 100vh;
    font-family: var(--pr-font);
    color: var(--pr-ink);
    padding-bottom: 56px;
    -webkit-font-smoothing: antialiased;
}

/* 移动端隐藏后台顶部导航栏，首屏直达极简成绩页 */
@media (max-width: 991.98px) {
    body > .page > header.navbar {
        display: none !important;
    }
    .pr-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* 毛玻璃轻盈吸顶顶栏 */
.pr-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pr-border-light);
}

.pr-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 18px;
}

.pr-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pr-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pr-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: var(--pr-surface-subtle);
    color: var(--pr-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 13px;
    transition: all 0.15s;
}
.pr-back-btn:hover {
    background: #e2e8f0;
    color: var(--pr-ink);
    text-decoration: none;
}

.pr-bar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pr-ink);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pr-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 0;
    background: var(--pr-surface-subtle);
    color: var(--pr-sub);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.pr-btn:hover {
    background: var(--pr-primary-soft);
    color: var(--pr-primary);
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .pr-btn-icon-mob span { display: none; }
    .pr-btn-icon-mob { padding: 7px 10px; }
}

/* 主容器 */
.pr-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 18px 24px;
}

/* 赛事 Hero 顶卡（替代生硬文字头） */
.pr-doc-head {
    background: var(--pr-surface);
    border-radius: var(--pr-radius-lg);
    padding: 22px 26px;
    box-shadow: var(--pr-shadow);
    margin-bottom: 18px;
    text-align: left;
    border: 0;
}

.pr-doc-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--pr-ink);
    letter-spacing: -0.35px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.pr-doc-sub {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pr-primary);
    margin-bottom: 8px;
}

.pr-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12.5px;
    color: var(--pr-sub);
}

/* 组别切换胶囊条（零黑框，丝滑横滑） */
.pr-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pr-pills::-webkit-scrollbar { display: none; }

.pr-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    border: 0;
    background: var(--pr-surface);
    color: var(--pr-sub);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: all 0.16s;
}
.pr-pill:hover {
    background: var(--pr-primary-soft);
    color: var(--pr-primary);
    text-decoration: none;
}
.pr-pill.active {
    background: var(--pr-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.24);
}

/* 分段轮次切换 + 柔和搜索条 */
.pr-filter-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pr-seg {
    display: inline-flex;
    background: #e9eef5;
    padding: 4px;
    border-radius: 12px;
    gap: 3px;
    border: 0;
}

.pr-seg-item {
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pr-sub);
    text-decoration: none;
    border: 0;
    transition: all 0.15s;
}
.pr-seg-item:hover {
    color: var(--pr-ink);
    text-decoration: none;
}
.pr-seg-item.active {
    background: #ffffff;
    color: var(--pr-ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.pr-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pr-surface);
    border: 0;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: var(--pr-shadow);
    min-width: 220px;
    flex: 0 1 280px;
}
.pr-search i { color: var(--pr-muted); font-size: 13px; }
.pr-search input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    color: var(--pr-ink);
    width: 100%;
}
.pr-search input::placeholder { color: var(--pr-muted); }

/* ═══════════ 极简无竖线表格（全站对外页自动受益） ═══════════ */
.pr-scroll-tip {
    display: none;
    font-size: 11.5px;
    color: var(--pr-muted);
    text-align: right;
    margin-bottom: 6px;
}
@media (max-width: 767.98px) {
    .pr-scroll-tip { display: block; }
}

.pr-table-wrap {
    background: var(--pr-surface);
    border-radius: var(--pr-radius-lg);
    box-shadow: var(--pr-shadow);
    overflow-x: auto;
    border: 0;
    -webkit-overflow-scrolling: touch;
}

.pr-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13.5px;
    background: transparent;
}

.pr-table thead th {
    background: #fafbfd;
    color: var(--pr-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 13px 14px;
    border: 0 !important;
    border-bottom: 1px solid var(--pr-border-light) !important;
    white-space: nowrap;
    text-align: center;
}

.pr-table tbody td {
    padding: 13px 14px;
    border: 0 !important;
    border-bottom: 1px solid var(--pr-border-light) !important;
    color: var(--pr-ink);
    vertical-align: middle;
}

.pr-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.pr-row-click {
    cursor: pointer;
    transition: background 0.14s;
}
.pr-row-click:hover td,
.pr-table tbody tr:hover td {
    background: #f8fafd;
}

/* 手机端首列柔和吸左 */
.pr-sticky-1 {
    position: sticky;
    left: 0;
    background: var(--pr-surface);
    z-index: 2;
}
.pr-table thead th.pr-sticky-1 {
    background: #fafbfd;
    z-index: 3;
}
.pr-table tbody tr:hover td.pr-sticky-1 {
    background: #f8fafd;
}

.pr-mono {
    font-family: var(--pr-font);
    font-variant-numeric: tabular-nums;
}

.pr-rank-num {
    font-weight: 800;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--pr-sub);
}

.pr-rk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    background: var(--pr-surface-subtle);
    color: var(--pr-sub);
}
.pr-rk-pill.r1 { background: #fef3c7; color: #b45309; }
.pr-rk-pill.r2 { background: #f1f5f9; color: #475569; }
.pr-rk-pill.r3 { background: #ffedd5; color: #c2410c; }

.pr-name-main {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--pr-ink);
    line-height: 1.3;
}

.pr-sub-text {
    font-size: 12px;
    color: var(--pr-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.pr-score-strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--pr-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}

.pr-target-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--pr-sub);
    background: var(--pr-surface-subtle);
    padding: 3px 9px;
    border-radius: 8px;
}

/* 国际射箭靶面彩色箭值胶囊 */
.pr-arrow-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.pr-arrow-chip.a-gold { background: #fde047; color: #713f12; }
.pr-arrow-chip.a-red  { background: #fca5a5; color: #7f1d1d; }
.pr-arrow-chip.a-blue { background: #93c5fd; color: #1e3a8a; }
.pr-arrow-chip.a-miss { background: #e2e8f0; color: #64748b; }

/* 轻链接与徽章 */
.pr-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 9px;
    background: var(--pr-primary-soft);
    color: var(--pr-primary);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.14s;
}
.pr-link:hover {
    background: var(--pr-primary);
    color: #ffffff;
    text-decoration: none;
}

/* 三甲领奖台卡片（极简克制） */
.pr-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 767.98px) {
    .pr-podium-grid { grid-template-columns: 1fr; gap: 10px; }
}
.pr-podium-card {
    border-radius: var(--pr-radius-lg);
    padding: 16px 20px;
    box-shadow: var(--pr-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pr-podium-1 { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.pr-podium-2 { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }
.pr-podium-3 { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }
.pr-medal-dot {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    flex-shrink: 0;
}
.pr-podium-1 .pr-medal-dot { background: #d97706; }
.pr-podium-2 .pr-medal-dot { background: #64748b; }
.pr-podium-3 .pr-medal-dot { background: #b45309; }

.pr-empty {
    background: var(--pr-surface);
    border-radius: var(--pr-radius-lg);
    padding: 48px 20px;
    text-align: center;
    color: var(--pr-muted);
    font-size: 14px;
    box-shadow: var(--pr-shadow);
}

.pr-print-footer {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--pr-muted);
    padding: 0 4px;
}

/* ═══════════ 打印模式：自动切换为公文级清晰黑白排版 ═══════════ */
@media print {
    html, body, .pr-page { background: #ffffff !important; padding-bottom: 0 !important; }
    .pr-topbar, .d-print-none, .pr-scroll-tip, .pr-podium-grid { display: none !important; }
    .pr-container { max-width: 100% !important; padding: 0 !important; }
    .pr-doc-head, .pr-table-wrap { box-shadow: none !important; border-radius: 0 !important; }
    .pr-table thead th, .pr-table tbody td {
        border-bottom: 1px solid #cccccc !important;
        padding: 6px 8px !important;
    }
    .pr-sticky-1 { position: static !important; }
}
