/**
 * ABV2 数据展示中心 — 设计系统 v3.0
 * 遵循 DUX 主题设计规范：主色 #07C160，文本 #333/#999，BEM 命名
 * 亮色/暗色（.darking）双模式
 */

/* ═══════════════ 设计令牌 ═══════════════ */
.abv2dc {
    --dc-primary: #07C160;
    --dc-primary-dark: #06a852;
    --dc-primary-soft: rgba(7, 193, 96, 0.1);
    --dc-oti: #f97316;
    --dc-oti-soft: rgba(249, 115, 22, 0.1);
    --dc-dii: #3b82f6;
    --dc-dii-soft: rgba(59, 130, 246, 0.1);
    --dc-gim: #8b5cf6;
    --dc-gim-soft: rgba(139, 92, 246, 0.1);
    --dc-up: #07C160;
    --dc-down: #ef4444;
    --dc-flat: #9ca3af;
    --dc-text: #333333;
    --dc-text-2: #666666;
    --dc-muted: #999999;
    --dc-bg: #ffffff;
    --dc-bg-soft: #f8f9fa;
    --dc-line: #f0f0f0;
    --dc-line-2: #e5e7eb;
    --dc-radius: 12px;
    --dc-radius-sm: 8px;
    --dc-radius-xs: 6px;
    --dc-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    --dc-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
    --dc-transition: all 0.25s ease;

    max-width: 100%;
    color: var(--dc-text);
    font-size: 14px;
    line-height: 1.6;
}

.darking .abv2dc {
    --dc-text: #e5e7eb;
    --dc-text-2: #b0b6bd;
    --dc-muted: #8a9199;
    --dc-bg: #14181b;
    --dc-bg-soft: #1a1f24;
    --dc-line: #23282d;
    --dc-line-2: #2b3138;
    --dc-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --dc-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
    --dc-primary-soft: rgba(7, 193, 96, 0.16);
    --dc-oti-soft: rgba(249, 115, 22, 0.16);
    --dc-dii-soft: rgba(59, 130, 246, 0.16);
    --dc-gim-soft: rgba(139, 92, 246, 0.16);
}

.abv2dc *, .abv2dc *::before, .abv2dc *::after { box-sizing: border-box; }
.abv2dc a { color: inherit; text-decoration: none; transition: var(--dc-transition); }
.abv2dc a:hover { color: var(--dc-primary); }
.abv2dc button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
.abv2dc input, .abv2dc select { font-family: inherit; }

/* ═══════════════ Hero 头部 ═══════════════ */
.abv2dc-hero {
    position: relative;
    border-radius: var(--dc-radius);
    background: linear-gradient(135deg, #0a3d24 0%, #0d5c33 45%, #07C160 100%);
    overflow: hidden;
    margin-bottom: 20px;
}

.abv2dc-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.abv2dc-hero::after {
    content: '';
    position: absolute;
    bottom: -70%;
    left: 8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.abv2dc-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 36px 32px;
}

.abv2dc-hero--compact .abv2dc-hero__inner { padding: 26px 32px; }

.abv2dc-hero__title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.abv2dc-hero__subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
}

.abv2dc-hero__search {
    position: relative;
    flex: 0 1 360px;
    min-width: 240px;
}

.abv2dc-hero__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.abv2dc-hero__search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: var(--dc-transition);
}

.abv2dc-hero__search-input::placeholder { color: rgba(255, 255, 255, 0.55); }

.abv2dc-hero__search-input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* ═══════════════ 指标分段控件 ═══════════════ */
.abv2dc-metrics {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    background: var(--dc-bg-soft);
    border: 1px solid var(--dc-line);
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}

.abv2dc-metrics::-webkit-scrollbar { display: none; }

.abv2dc-metrics__tab {
    flex: 1 0 auto;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dc-text-2);
    white-space: nowrap;
    transition: var(--dc-transition);
}

.abv2dc-metrics__tab:hover { color: var(--dc-primary); }

.abv2dc-metrics__tab.is-active {
    background: var(--dc-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.35);
}

/* ═══════════════ 筛选工具栏 ═══════════════ */
.abv2dc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.abv2dc-toolbar__group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.abv2dc-toolbar__label {
    font-size: 13px;
    color: var(--dc-muted);
    flex-shrink: 0;
}

.abv2dc-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.abv2dc-chip {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--dc-text-2);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line-2);
    transition: var(--dc-transition);
}

.abv2dc-chip:hover { border-color: var(--dc-primary); color: var(--dc-primary); }

.abv2dc-chip.is-active {
    background: var(--dc-primary);
    border-color: var(--dc-primary);
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(7, 193, 96, 0.3);
}

.abv2dc-chips--squad { margin-bottom: 16px; }

/* 自定义下拉 */
.abv2dc-select { position: relative; }

.abv2dc-select__control {
    appearance: none;
    -webkit-appearance: none;
    min-width: 150px;
    height: 34px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--dc-line-2);
    border-radius: 999px;
    background: var(--dc-bg);
    color: var(--dc-text);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--dc-transition);
}

.abv2dc-select__control:hover, .abv2dc-select__control:focus { border-color: var(--dc-primary); }

.abv2dc-select__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--dc-muted);
    pointer-events: none;
}

/* ═══════════════ 快捷筛选 ═══════════════ */
.abv2dc-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.abv2dc-quick__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: var(--dc-radius-sm);
    font-size: 13px;
    color: var(--dc-text-2);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
    transition: var(--dc-transition);
}

.abv2dc-quick__btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--dc-shadow-hover);
    color: var(--dc-text);
}

.abv2dc-quick__icon { font-size: 12px; font-weight: 700; }
.abv2dc-quick__icon--up { color: var(--dc-up); }
.abv2dc-quick__icon--down { color: var(--dc-down); }
.abv2dc-quick__icon--hot { color: #f59e0b; }

/* ═══════════════ 通用卡片 ═══════════════ */
.abv2dc-card {
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
}

/* ═══════════════ 榜单表格 ═══════════════ */
.abv2dc-table-card {
    overflow: hidden;
    margin-bottom: 18px;
}

.abv2dc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.abv2dc-table thead th {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dc-muted);
    text-align: left;
    letter-spacing: 0.3px;
    background: var(--dc-bg-soft);
    border-bottom: 1px solid var(--dc-line);
    white-space: nowrap;
}

.abv2dc-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--dc-line);
    vertical-align: middle;
    white-space: nowrap;
}

.abv2dc-table tbody tr:last-child td { border-bottom: none; }

.abv2dc-table__row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.abv2dc-table__row:hover { background: var(--dc-primary-soft); }

.abv2dc-table__empty {
    padding: 48px 16px !important;
    text-align: center;
    color: var(--dc-muted);
    font-size: 14px;
}

/* 列对齐 */
.abv2dc-table .col-rank { width: 52px; text-align: center; }
.abv2dc-table .col-pos { width: 64px; }
.abv2dc-table .col-score,
.abv2dc-table .col-oti,
.abv2dc-table .col-dii,
.abv2dc-table .col-gim,
.abv2dc-table .col-form,
.abv2dc-table .col-change { text-align: center; }

/* 排名徽章：金/银/铜 */
.abv2dc-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-muted);
    background: var(--dc-bg-soft);
}

.abv2dc-rank--top-1 {
    color: #7c5b00;
    background: linear-gradient(135deg, #ffe98a 0%, #f5c518 100%);
    box-shadow: 0 2px 6px rgba(245, 197, 24, 0.45);
}

.abv2dc-rank--top-2 {
    color: #4b5563;
    background: linear-gradient(135deg, #f3f4f6 0%, #c9ced6 100%);
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.4);
}

.abv2dc-rank--top-3 {
    color: #7c4a1e;
    background: linear-gradient(135deg, #f6c89b 0%, #d98d4e 100%);
    box-shadow: 0 2px 6px rgba(217, 141, 78, 0.4);
}

/* 球员名 */
.abv2dc-player-link {
    font-weight: 600;
    color: var(--dc-text);
}

.abv2dc-player-link:hover { color: var(--dc-primary); }

/* 位置徽章 */
.abv2dc-pos {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--dc-radius-xs);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--dc-muted);
    background: var(--dc-bg-soft);
}

.abv2dc-pos--fw { color: #ea580c; background: var(--dc-oti-soft); }
.abv2dc-pos--mf { color: #059669; background: rgba(5, 150, 105, 0.1); }
.abv2dc-pos--df { color: #2563eb; background: var(--dc-dii-soft); }
.abv2dc-pos--gk { color: #7c3aed; background: var(--dc-gim-soft); }

/* 指标色彩 */
.abv2dc-m { font-weight: 600; font-variant-numeric: tabular-nums; }
.abv2dc-m--oti { color: var(--dc-oti); }
.abv2dc-m--dii { color: var(--dc-dii); }
.abv2dc-m--gim { color: var(--dc-gim); }

.abv2dc-overall {
    font-size: 15px;
    font-weight: 700;
    color: var(--dc-primary);
    font-variant-numeric: tabular-nums;
}

.abv2dc-form { font-weight: 600; color: var(--dc-text-2); font-variant-numeric: tabular-nums; }

/* 变化值 */
.abv2dc-change {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--dc-radius-xs);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.abv2dc-change.is-up { color: var(--dc-up); background: var(--dc-primary-soft); }
.abv2dc-change.is-down { color: var(--dc-down); background: rgba(239, 68, 68, 0.08); }
.abv2dc-change.is-flat { color: var(--dc-flat); background: transparent; }

/* ═══════════════ 分页 ═══════════════ */
.abv2dc-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0 10px;
}

.abv2dc-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--dc-radius-sm);
    font-size: 13px;
    color: var(--dc-text-2);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line-2);
    cursor: pointer;
    transition: var(--dc-transition);
    user-select: none;
}

.abv2dc-page-btn:hover:not([disabled]) { border-color: var(--dc-primary); color: var(--dc-primary); }

.abv2dc-page-btn.is-active {
    background: var(--dc-primary);
    border-color: var(--dc-primary);
    color: #ffffff;
    font-weight: 600;
}

.abv2dc-page-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.abv2dc-page-btn.is-dots { border: none; background: transparent; }

/* ═══════════════ 返回链接 ═══════════════ */
.abv2dc-back { margin-bottom: 14px; }

.abv2dc-back__link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--dc-muted);
}

.abv2dc-back__link:hover { color: var(--dc-primary); }

/* ═══════════════ 详情页：头部 ═══════════════ */
.abv2dc-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.abv2dc-player-head__name {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.abv2dc-player-head__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.abv2dc-player-head__meta-item { font-size: 13px; color: var(--dc-muted); }

.abv2dc-team-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--dc-radius-xs);
    font-size: 12px;
    font-weight: 600;
    color: var(--dc-primary);
    background: var(--dc-primary-soft);
}

.abv2dc-overall-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
}

.abv2dc-overall-badge.is-high {
    background: linear-gradient(135deg, var(--dc-primary) 0%, #0aa84f 100%);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
}

.abv2dc-overall-badge.is-mid {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.abv2dc-overall-badge.is-low {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

.abv2dc-overall-badge__num {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.abv2dc-overall-badge__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

/* ═══════════════ 详情页：区块 ═══════════════ */
.abv2dc-section { margin-bottom: 22px; }

.abv2dc-section__title {
    position: relative;
    margin: 0 0 14px;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 700;
}

.abv2dc-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--dc-primary);
}

/* 三大核心指数卡片（环形图版） */
.abv2dc-metric-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.abv2dc-metric-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px 18px;
    border-radius: var(--dc-radius);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--dc-transition);
}

.abv2dc-metric-card:hover { transform: translateY(-2px); box-shadow: var(--dc-shadow-hover); }

.abv2dc-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.abv2dc-metric-card--oti::before { background: linear-gradient(90deg, var(--dc-oti), #fdba74); }
.abv2dc-metric-card--dii::before { background: linear-gradient(90deg, var(--dc-dii), #93c5fd); }
.abv2dc-metric-card--gim::before { background: linear-gradient(90deg, var(--dc-gim), #c4b5fd); }

.abv2dc-metric-card__ring-wrap {
    position: relative;
    width: 92px;
    height: 92px;
}

.abv2dc-ring { width: 100%; height: 100%; display: block; }

.abv2dc-ring__track { stroke: var(--dc-line-2); stroke-width: 7; }

.abv2dc-ring__bar {
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.abv2dc-metric-card__val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.abv2dc-metric-card__info { margin-top: 12px; }

.abv2dc-metric-card__label { font-size: 13px; font-weight: 600; color: var(--dc-text); }

.abv2dc-metric-card__delta { margin: 6px 0 2px; min-height: 20px; }

.abv2dc-metric-card__pct { font-size: 11px; color: var(--dc-muted); }

/* 辅助指标 */
.abv2dc-aux-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.abv2dc-aux-card {
    padding: 18px 20px;
    border-radius: var(--dc-radius);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
    text-align: center;
}

.abv2dc-aux-card__val {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.abv2dc-aux-card__delta { margin: 4px 0; min-height: 18px; }

.abv2dc-aux-card__bar {
    height: 5px;
    border-radius: 3px;
    background: var(--dc-line);
    margin: 8px 14px 4px;
    overflow: hidden;
}

.abv2dc-aux-card__bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--dc-primary), #34d17b);
}

.abv2dc-aux-card__label { font-size: 12px; color: var(--dc-muted); }

/* Delta 通用 */
.abv2dc-delta {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--dc-radius-xs);
    font-size: 12px;
    font-weight: 600;
}

.abv2dc-delta.is-up { color: var(--dc-up); background: var(--dc-primary-soft); }
.abv2dc-delta.is-down { color: var(--dc-down); background: rgba(239, 68, 68, 0.08); }
.abv2dc-delta.is-flat { color: var(--dc-flat); }

/* 疲劳风险 */
.abv2dc-fatigue { font-weight: 600; }
.abv2dc-fatigue--low { color: var(--dc-up); }
.abv2dc-fatigue--medium { color: #f59e0b; }
.abv2dc-fatigue--high { color: var(--dc-down); }

/* 统计网格 */
.abv2dc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 8px 0;
}

.abv2dc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 14px 8px;
    border-right: 1px solid var(--dc-line);
}

.abv2dc-stat:nth-child(4n) { border-right: none; }
.abv2dc-stat:nth-child(n+5) { border-top: 1px solid var(--dc-line); }

.abv2dc-stat__num {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.abv2dc-stat__label { font-size: 12px; color: var(--dc-muted); }

.abv2dc-per90 {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--dc-text-2);
}

.abv2dc-per90 strong { color: var(--dc-primary); }

/* 趋势图 */
.abv2dc-chart-card { padding: 18px 20px; }

.abv2dc-chart-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--dc-bg-soft);
    border: 1px solid var(--dc-line);
}

.abv2dc-chart-tabs__btn {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--dc-text-2);
    transition: var(--dc-transition);
}

.abv2dc-chart-tabs__btn.is-active {
    background: var(--dc-primary);
    color: #ffffff;
    font-weight: 600;
}

.abv2dc-trend-chart { width: 100%; height: 300px; }

/* Z-Score 网格 */
.abv2dc-zscore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 8px 0;
}

.abv2dc-zscore {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 8px;
    border-right: 1px solid var(--dc-line);
}

.abv2dc-zscore:nth-child(4n) { border-right: none; }
.abv2dc-zscore:nth-child(n+5) { border-top: 1px solid var(--dc-line); }

.abv2dc-zscore__label { font-size: 12px; color: var(--dc-muted); }
.abv2dc-zscore__val { font-size: 17px; font-variant-numeric: tabular-nums; }

/* 按钮 */
.abv2dc-actions { margin-top: 8px; }

.abv2dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: var(--dc-primary);
    box-shadow: 0 3px 10px rgba(7, 193, 96, 0.3);
    transition: var(--dc-transition);
    cursor: pointer;
}

.abv2dc-btn:hover {
    background: var(--dc-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(7, 193, 96, 0.4);
}

/* 提示条 */
.abv2dc-notice {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--dc-radius-sm);
    font-size: 13px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.darking .abv2dc-notice {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
}

/* 空态 */
.abv2dc-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--dc-muted);
    background: var(--dc-bg);
    border-radius: var(--dc-radius);
}

/* 估算数据标记 */
.abv2dc-est {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    vertical-align: middle;
    cursor: help;
}

.darking .abv2dc-est {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

/* ═══════════════ 球队页 ═══════════════ */
.abv2dc-team-head {
    padding: 22px 28px;
    margin-bottom: 18px;
}

.abv2dc-team-head__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.abv2dc-team-head__sub { font-size: 15px; font-weight: 500; color: var(--dc-muted); }
.abv2dc-team-head__vs { color: var(--dc-primary); font-weight: 800; margin: 0 6px; }

.abv2dc-team-head__meta { display: flex; gap: 14px; flex-wrap: wrap; }
.abv2dc-team-head__meta-item { font-size: 13px; color: var(--dc-muted); }

/* 阵容均值条 */
.abv2dc-squad-avg {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.abv2dc-squad-avg__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.abv2dc-squad-avg__label { font-size: 12px; color: var(--dc-muted); }

.abv2dc-squad-avg__val {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 阵容卡片 */
.abv2dc-squad-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.abv2dc-squad-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--dc-radius);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
    cursor: pointer;
    transition: var(--dc-transition);
}

.abv2dc-squad-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dc-shadow-hover);
    border-color: var(--dc-primary);
}

.abv2dc-squad-card__name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 7px;
}

.abv2dc-squad-card__sub {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.abv2dc-squad-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.abv2dc-overall-mini {
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.abv2dc-overall-mini.is-high { color: var(--dc-primary); }
.abv2dc-overall-mini.is-mid { color: #f59e0b; }
.abv2dc-overall-mini.is-low { color: var(--dc-flat); }

.abv2dc-squad-card__right .abv2dc-fatigue { font-size: 12px; }

/* ═══════════════ 比赛对比页 ═══════════════ */
.abv2dc-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 26px 24px;
}

.abv2dc-vs__side { text-align: center; }

.abv2dc-vs__name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.abv2dc-vs__metrics {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.abv2dc-vs__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.abv2dc-vs__metric strong { font-size: 17px; font-variant-numeric: tabular-nums; }

.abv2dc-vs__center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dc-primary) 0%, #0aa84f 100%);
    box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}

.abv2dc-top5 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.abv2dc-top5__side { padding: 18px 20px; }

.abv2dc-top5__team {
    margin: 0 0 12px;
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--dc-line);
}

.abv2dc-top5__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--dc-line);
}

.abv2dc-top5__item:last-child { border-bottom: none; }

.abv2dc-top5__name { flex: 1; font-weight: 600; }
.abv2dc-top5__name:hover { color: var(--dc-primary); }

/* ═══════════════ 搜索页 ═══════════════ */
.abv2dc-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.abv2dc-search-bar__box {
    position: relative;
    flex: 1;
}

.abv2dc-search-bar__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--dc-muted);
    pointer-events: none;
}

.abv2dc-search-bar__input {
    width: 100%;
    height: 46px;
    padding: 0 18px 0 42px;
    border: 1px solid var(--dc-line-2);
    border-radius: 999px;
    background: var(--dc-bg);
    color: var(--dc-text);
    font-size: 14px;
    outline: none;
    transition: var(--dc-transition);
}

.abv2dc-search-bar__input:focus {
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 3px var(--dc-primary-soft);
}

.abv2dc-search__hot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.abv2dc-search__hot-label { font-size: 13px; color: var(--dc-muted); margin-right: 2px; }

.abv2dc-search__hot-tag {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--dc-text-2);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line-2);
    transition: var(--dc-transition);
}

.abv2dc-search__hot-tag:hover {
    border-color: var(--dc-primary);
    color: var(--dc-primary);
    background: var(--dc-primary-soft);
}

.abv2dc-search__group-title {
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dc-text-2);
}

.abv2dc-search__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: var(--dc-radius);
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
    transition: var(--dc-transition);
}

.abv2dc-search__item:hover {
    transform: translateY(-1px);
    box-shadow: var(--dc-shadow-hover);
    border-color: var(--dc-primary);
}

.abv2dc-search__item-main { display: flex; flex-direction: column; gap: 2px; }
.abv2dc-search__item-sub { font-size: 12px; color: var(--dc-muted); }

.abv2dc-search__empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--dc-muted);
}

/* ═══════════════ 球队综合页 Hero ═══════════════ */
.abv2dc-hero--team .abv2dc-hero__inner,
.abv2dc-hero--player .abv2dc-hero__inner { flex-wrap: nowrap; }

.abv2dc-hero__team {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.abv2dc-hero__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;
}

.abv2dc-hero__league {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 6px;
}

.abv2dc-hero__stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.abv2dc-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 12px 14px;
    border-radius: var(--dc-radius);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.abv2dc-hero__stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.abv2dc-hero__stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    white-space: nowrap;
}

/* 球员详情 Hero */
.abv2dc-hero--player { position: relative; }

.abv2dc-hero__back {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 2;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: var(--dc-transition);
}

.abv2dc-hero__back:hover { background: rgba(255, 255, 255, 0.3); color: #ffffff; }

.abv2dc-hero--player .abv2dc-hero__inner { padding-top: 54px; }

.abv2dc-hero__player {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.abv2dc-hero__avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.abv2dc-hero__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--dc-primary);
}

.abv2dc-hero__statsbar {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding: 16px 32px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.abv2dc-hero__sb-item { flex: 1; text-align: center; }

.abv2dc-hero__sb-num {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.abv2dc-hero__sb-label { font-size: 11px; color: rgba(255, 255, 255, 0.72); }

.abv2dc-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.abv2dc-hero__meta-item { font-size: 13px; color: rgba(255, 255, 255, 0.75); }

.abv2dc-hero__team-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.abv2dc-hero--player .abv2dc-pos { background: rgba(255, 255, 255, 0.2); color: #fff; }

.abv2dc-hero__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.abv2dc-hero__badge--high { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.24); }
.abv2dc-hero__badge--mid { border-color: rgba(255, 214, 102, 0.6); }
.abv2dc-hero__badge--low { border-color: rgba(255, 255, 255, 0.25); }

.abv2dc-hero__badge-num {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.abv2dc-hero__badge-label { font-size: 11px; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }

/* ═══════════════ 区块备注 ═══════════════ */
.abv2dc-section__note {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--dc-muted);
}

/* ═══════════════ 指标说明图例 ═══════════════ */
.abv2dc-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: var(--dc-radius-sm);
    background: var(--dc-bg-soft);
    border: 1px solid var(--dc-line);
    font-size: 12px;
    color: var(--dc-text-2);
}

.abv2dc-legend__item {
    cursor: help;
    transition: var(--dc-transition);
}

.abv2dc-legend__item:hover { color: var(--dc-text); }

/* ═══════════════ 近期走势 ═══════════════ */
.abv2dc-form-card { padding: 20px 22px; }

.abv2dc-form-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.abv2dc-form-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    cursor: default;
    transition: var(--dc-transition);
}

.abv2dc-form-dot:hover { transform: scale(1.12); }

.abv2dc-form-dot--w { color: #ffffff; background: var(--dc-primary); box-shadow: 0 2px 8px rgba(7, 193, 96, 0.35); }
.abv2dc-form-dot--d { color: var(--dc-text-2); background: #e5e7eb; }
.abv2dc-form-dot--l { color: #ffffff; background: var(--dc-down); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }

.darking .abv2dc-form-dot--d { color: #d1d5db; background: #2b3138; }

.abv2dc-form-text--w { color: var(--dc-up); }
.abv2dc-form-text--d { color: var(--dc-muted); }
.abv2dc-form-text--l { color: var(--dc-down); }

.abv2dc-recent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
}

.abv2dc-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--dc-line);
    font-size: 13px;
}

.abv2dc-recent-list .abv2dc-recent-item:nth-last-child(-n+2) { border-bottom: none; }

.abv2dc-recent-item__date { color: var(--dc-muted); width: 42px; flex-shrink: 0; }

.abv2dc-recent-item__league {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--dc-text-2);
    background: var(--dc-bg-soft);
    border: 1px solid var(--dc-line);
    flex-shrink: 0;
    min-width: 64px;
    text-align: center;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abv2dc-recent-item__venue {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--dc-radius-xs);
    font-size: 11px;
    color: var(--dc-text-2);
    background: var(--dc-bg-soft);
    flex-shrink: 0;
}

.abv2dc-recent-item__opp { flex: 1; font-weight: 500; }

.abv2dc-recent-item__score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════ AI 预测表现 ═══════════════ */
.abv2dc-pred-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
}

.abv2dc-pred-card {
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.abv2dc-pred-card--main {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.08) 0%, rgba(7, 193, 96, 0.02) 100%);
    border-color: rgba(7, 193, 96, 0.25);
}

.abv2dc-pred-card__rate {
    font-size: 32px;
    font-weight: 800;
    color: var(--dc-primary);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.abv2dc-pred-card__rate--sm { font-size: 22px; color: var(--dc-text); }

.abv2dc-pred-card__bar {
    height: 6px;
    border-radius: 3px;
    background: var(--dc-line);
    margin: 10px 4px;
    overflow: hidden;
}

.abv2dc-pred-card__bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--dc-primary), #34d17b);
}

.abv2dc-pred-card__label { font-size: 13px; font-weight: 600; margin-top: 4px; }
.abv2dc-pred-card__sub { font-size: 11px; color: var(--dc-muted); margin-top: 3px; }

/* ═══════════════ QA 折叠区块 ═══════════════ */
.abv2dc-qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.abv2dc-qa-item {
    background: var(--dc-bg);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    overflow: hidden;
    transition: var(--dc-transition);
}

.abv2dc-qa-item:hover { border-color: var(--dc-primary); }

.abv2dc-qa-item__q {
    position: relative;
    padding: 15px 44px 15px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: var(--dc-transition);
}

.abv2dc-qa-item__q::-webkit-details-marker { display: none; }

.abv2dc-qa-item__q::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--dc-muted);
    border-bottom: 2px solid var(--dc-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: var(--dc-transition);
}

.abv2dc-qa-item[open] .abv2dc-qa-item__q {
    color: var(--dc-primary);
    border-bottom: 1px solid var(--dc-line);
}

.abv2dc-qa-item[open] .abv2dc-qa-item__q::after {
    transform: translateY(-30%) rotate(225deg);
    border-color: var(--dc-primary);
}

.abv2dc-qa-item__a {
    padding: 14px 18px 16px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--dc-text-2);
}

/* ═══════════════ SEO 摘要 ═══════════════ */
.abv2dc-seo-summary {
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: var(--dc-radius);
    background: var(--dc-bg-soft);
    border: 1px solid var(--dc-line);
}

.abv2dc-seo-summary p {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--dc-text-2);
}

/* ═══════════════ 响应式 ═══════════════ */
@media (max-width: 768px) {
    .abv2dc-hero__inner { padding: 24px 20px; }
    .abv2dc-hero__title { font-size: 20px; }
    .abv2dc-hero__search { flex: 1 1 100%; }

    .abv2dc-toolbar { flex-direction: column; align-items: stretch; }
    .abv2dc-toolbar__group { width: 100%; }
    .abv2dc-select { flex: 1; }
    .abv2dc-select__control { width: 100%; }

    /* 表格横滚 + 隐藏次要列 */
    .abv2dc-table-card { overflow-x: auto; }
    .abv2dc-table { min-width: 640px; }
    .abv2dc-table thead th,
    .abv2dc-table tbody td { padding: 10px 10px; }

    .abv2dc-metric-cards,
    .abv2dc-aux-cards { grid-template-columns: 1fr; }

    .abv2dc-stats-grid,
    .abv2dc-zscore-grid { grid-template-columns: repeat(2, 1fr); }
    .abv2dc-stat:nth-child(2n),
    .abv2dc-zscore:nth-child(2n) { border-right: none; }
    .abv2dc-stat:nth-child(n+3),
    .abv2dc-zscore:nth-child(n+3) { border-top: 1px solid var(--dc-line); }

    .abv2dc-squad-list { grid-template-columns: 1fr; }
    .abv2dc-top5 { grid-template-columns: 1fr; }
    .abv2dc-vs { grid-template-columns: 1fr; gap: 20px; }
    .abv2dc-vs__center { margin: 0 auto; }

    .abv2dc-player-head { flex-direction: column; text-align: center; }
    .abv2dc-player-head__meta { justify-content: center; }
    .abv2dc-search-bar { flex-direction: column; }
    .abv2dc-search-bar .abv2dc-btn { width: 100%; }

    /* 球队综合页移动端 */
    .abv2dc-hero--team .abv2dc-hero__inner,
    .abv2dc-hero--player .abv2dc-hero__inner { flex-wrap: wrap; }
    .abv2dc-hero__avatar { width: 64px; height: 64px; }
    .abv2dc-hero__statsbar { padding: 14px 10px 2px; flex-wrap: wrap; }
    .abv2dc-hero__sb-item { flex: 1 0 30%; }
    .abv2dc-metric-card__ring-wrap { width: 80px; height: 80px; }
    .abv2dc-hero__stats { width: 100%; justify-content: space-between; }
    .abv2dc-hero__stat { flex: 1; min-width: 0; padding: 10px 6px; }
    .abv2dc-hero__stat-num { font-size: 18px; }
    .abv2dc-hero__logo { width: 48px; height: 48px; }
    .abv2dc-recent-list { grid-template-columns: 1fr; }
    .abv2dc-recent-list .abv2dc-recent-item:nth-last-child(-n+2) { border-bottom: 1px dashed var(--dc-line); }
    .abv2dc-recent-list .abv2dc-recent-item:last-child { border-bottom: none; }
    .abv2dc-pred-grid { grid-template-columns: repeat(2, 1fr); }
    .abv2dc-pred-card--main { grid-column: 1 / -1; }
}
