/* 全局样式 */
    :root {
        --primary-blue: #165DFF;
        --primary-blue-light: #4080FF;
        --primary-blue-dark: #0E42D2;
        --light-blue: #E8F3FF;
        --gradient-blue: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
        --red-team: #F53F3F;
        --red-team-light: #F76767;
        --blue-team: #168CFF;
        --blue-team-light: #4AA3FF;
        --gray-light: #F5F7FA;
        --gray: #E5E6EB;
        --gray-dark: #C9CDD4;
        --text-primary: #1D2129;
        --text-secondary: #4E5969;
        --text-tertiary: #86909C;
    }
    
    body {
        background-color: var(--gray-light);
        color: var(--text-primary);
        font-size: 14px;
        line-height: 1.5;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    /* ================== 导航栏样式 ================== */
    .navbar-custom {
        background: var(--gradient-blue) !important;
        box-shadow: 0 4px 20px rgba(22, 93, 255, 0.15);
        padding: 0.8rem 0;
    }
    
    .navbar-custom .navbar-brand {
        font-weight: 600;
        font-size: 1.25rem;
        color: white !important;
    }
    
    .navbar-custom .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        transition: color 0.3s ease;
    }
    
    .navbar-custom .nav-link:hover {
        color: white !important;
    }
    
    /* ================== 加载遮罩 ================== */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        backdrop-filter: blur(4px);
    }
    
    /* ================== 召唤师卡片 ================== */
    .summoner-card {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
        padding: 24px;
        margin-bottom: 24px;
        border: 1px solid var(--gray);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .summoner-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(149, 157, 165, 0.2);
    }
    
    /* ================== 头像区域 ================== */
    .avatar-container {
        position: relative;
        width: 110px;
        height: 110px;
        margin: 0 auto;
    }
    
    .avatar-progress {
        position: absolute;
        top: -8px;
        left: -8px;
        width: 126px;
        height: 126px;
        transform: rotate(-90deg);
    }
    
    .avatar-progress circle {
        fill: none;
        stroke-width: 8;
        stroke-linecap: round;
    }
    
    .avatar-progress-bg {
        stroke: rgba(22, 93, 255, 0.1);
    }
    
    .avatar-progress-bar {
        stroke: url(#blue-gradient);
        stroke-dasharray: 314;
        stroke-dashoffset: 314;
        transition: stroke-dashoffset 0.5s ease;
    }
    
    .avatar-img {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        border: 4px solid white;
        box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
        object-fit: cover;
    }
    
    .level-badge {
        position: absolute;
        bottom: 2px;
        right: 2px;
        background: var(--gradient-blue);
        color: white;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(22, 93, 255, 0.3);
        border: 2px solid white;
    }
    
    /* ================== 段位容器 ================== */
    .rank-container {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .rank-card {
        background: rgba(22, 93, 255, 0.05);
        border: 1px solid rgba(22, 93, 255, 0.1);
        border-radius: 10px;
        padding: 16px 12px;
        min-width: 120px;
        text-align: center;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        flex: 1;
    }
    
    .rank-card:hover {
        background: rgba(22, 93, 255, 0.1);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(22, 93, 255, 0.1);
    }
    
    .rank-title {
        font-size: 12px;
        color: var(--text-tertiary);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .rank-value {
        font-weight: 700;
        color: var(--primary-blue);
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .rank-lp {
        font-size: 11px;
        color: var(--text-secondary);
        background: rgba(22, 93, 255, 0.08);
        padding: 2px 8px;
        border-radius: 10px;
        display: inline-block;
    }
    
    /* ================== 资产侧边栏 ================== */
    .assets-sidebar {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
        padding: 20px;
        height: 100%;
        border: 1px solid var(--gray);
    }
    
    .assets-sidebar h5 {
        font-weight: 600;
        color: var(--primary-blue);
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--light-blue);
    }
    
    .asset-item {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-light);
        align-items: center;
    }
    
    .asset-item:last-child {
        border-bottom: none;
    }
    
    .asset-label {
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .asset-value {
        font-weight: 600;
        color: var(--text-primary);
    }
    
    /* ================== 战绩列表 ================== */
    .match-list {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
        padding: 20px;
        border: 1px solid var(--gray);
    }
    
    /* ================== 战绩项 ================== */
    .match-item {
        border: 1px solid var(--gray);
        border-radius: 10px;
        padding: 16px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: white;
    }
    
    .match-item:hover {
        background-color: var(--light-blue);
        border-color: var(--primary-blue-light);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(22, 93, 255, 0.08);
    }
    
    .match-item.active {
        border-left: 4px solid var(--primary-blue);
    }
    
    .win-bg {
        background: linear-gradient(135deg, rgba(22, 168, 94, 0.05) 0%, rgba(22, 168, 94, 0.02) 100%);
    }
    
    .lose-bg {
        background: linear-gradient(135deg, rgba(245, 63, 63, 0.05) 0%, rgba(245, 63, 63, 0.02) 100%);
    }
    
    /* ================== 英雄头像 ================== */
    .hero-avatar-wrapper {
        position: relative;
        display: inline-block;
    }
    
    .hero-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%; /* 改为圆形 */
        object-fit: cover;
        border: 2px solid var(--gray);
        transition: all 0.2s ease;
    }
    
    .hero-avatar-wrapper:hover .hero-avatar {
        border-color: var(--primary-blue);
        transform: scale(1.05);
    }
    
    .hero-level {
        position: absolute;
        bottom: 2px;
        right: 2px;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
        backdrop-filter: blur(2px);
    }
    
    /* ================== 英雄信息区域 ================== */
    .hero-info-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .game-result-badge {
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .game-queue {
        font-size: 11px;
        color: var(--text-secondary);
        font-weight: 500;
    }
    
    /* ================== 召唤师技能容器（战绩列表）================== */
    .spells-container {
        display: flex;
        gap: 4px; /* 增加间距 */
    }
    
    .spell-icon {
        width: 24px; /* 加大图标 */
        height: 24px; /* 加大图标 */
        border-radius: 4px; /* 稍微增加圆角 */
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .spell-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* ================== KDA显示区域 ================== */
    .kda-display {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .kda-numbers {
        font-size: 16px;
        font-weight: 700;
    }
    
    .kda-ratio-with-icon {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: var(--text-tertiary);
        background-color: var(--gray-light);
        padding: 2px 8px;
        border-radius: 10px;
    }
    
    .kda-icon {
        font-size: 10px;
        color: var(--text-secondary);
    }
    
    .kda-win {
        color: #00B42A; /* 胜利颜色 */
    }
    
    .kda-lose {
        color: #F53F3F; /* 失败颜色 */
    }
    
    /* ================== 符文区域（战绩列表）================== */
    .runes-container {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 8px;
        margin-top: 4px; /* 增加上边距 */
    }
    
    .rune-primary {
        display: flex;
        align-items: center;
        gap: 6px; /* 增加间距 */
        font-size: 11px;
        font-weight: 600;
    }
    
    .rune-secondary {
        display: flex;
        align-items: center;
        gap: 6px; /* 增加间距 */
        font-size: 11px;
        color: var(--text-secondary);
    }
    
    .rune-icon {
        width: 20px; /* 加大符文图标 */
        height: 20px; /* 加大符文图标 */
        border-radius: 4px; /* 增加圆角 */
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .rune-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* ================== 出装备格子 - 加大并在一行显示7个 ================== */
    .item-slots {
        display: flex;
        gap: 3px; /* 格子之间的间距 */
        flex-wrap: nowrap; /* 不换行 */
        width: 100%; /* 占满可用宽度 */
        justify-content: flex-start; /* 左对齐 */
    }

    .item-slot {
        width: 28px; /* 稍微调小一点，确保7个都能显示 */
        height: 28px; /* 稍微调小一点 */
        flex-shrink: 0; /* 防止格子被压缩 */
        background-color: var(--gray);
        border-radius: 3px; /* 稍微增加圆角 */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .item-slot.empty {
        background-color: var(--gray-light);
        border: 1px dashed var(--gray-dark);
    }

    .item-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 3px;
    }

    /* ================== 数据统计 - 改为竖排 ================== */
    .stats-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .stat-item-vertical {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .stat-label-vertical {
        font-size: 11px;
        color: var(--text-tertiary);
        min-width: 36px;
    }

    .stat-value-vertical {
        font-weight: 700;
        color: var(--primary-blue);
        font-size: 13px;
    }

    /* ================== 游戏信息 - 改为竖排 ================== */
    .game-info-vertical {
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: flex-end;
    }
    
    /* ================== 对局详情（展开的详细信息）================== */
    .match-details {
        display: none;
        padding: 20px;
        margin-top: 12px;
        background-color: var(--gray-light);
        border-radius: 8px;
        border: 1px solid var(--gray);
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* ================== 队伍头部 - 详情页 ================== */
    .team-header {
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-weight: 600;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .blue-team {
        background: linear-gradient(135deg, var(--blue-team) 0%, var(--blue-team-light) 100%);
        color: white;
    }
    
    .red-team {
        background: linear-gradient(135deg, var(--red-team) 0%, var(--red-team-light) 100%);
        color: white;
    }
    
    .team-result {
        font-size: 12px;
        background-color: rgba(255, 255, 255, 0.2);
        padding: 4px 12px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    /* ================== 玩家详情列表 - 竖排布局（全部玩家列表）================== */
    .players-list-vertical {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .player-detail-item {
        display: flex;
        align-items: center;
        padding: 12px 16px; /* 增加左右内边距，为放大的图标腾出空间 */
        background-color: white;
        border-radius: 8px;
        border: 1px solid var(--gray);
        transition: all 0.2s ease;
    }
    
    .player-detail-item:hover {
        background-color: var(--light-blue);
        border-color: var(--primary-blue-light);
    }
    
    .player-detail-item.current-player {
        background-color: rgba(22, 93, 255, 0.05);
        border-left: 3px solid var(--primary-blue);
    }
    
    /* ================== 玩家详情头像区域（全部玩家列表）================== */
    .player-detail-avatar {
        position: relative;
        margin-right: 12px;
    }
    
    .player-detail-avatar-img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--gray);
    }
    
    .player-detail-level {
        position: absolute;
        bottom: 2px;
        right: 2px;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        font-size: 10px;
        padding: 1px 4px;
        border-radius: 3px;
        font-weight: 600;
        backdrop-filter: blur(2px);
    }
    
    /* ================== 玩家详情信息区域（全部玩家列表）================== */
    .player-detail-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 100px; /* 增加最小宽度 */
    }
    
    .player-detail-name {
        font-weight: 600;
        font-size: 14px; /* 从13px增加到14px，放大字体 */
        color: var(--text-primary);
    }
    
    .player-detail-position {
        font-size: 12px; /* 从11px增加到12px，放大字体 */
        color: var(--text-tertiary);
    }
    
    /* ================== 玩家详情KDA区域（全部玩家列表）================== */
    .player-detail-kda {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 24px; /* 增加左边距 */
        min-width: 90px; /* 增加最小宽度 */
    }
    
    .player-detail-kda-numbers {
        font-weight: 700;
        font-size: 15px; /* 从14px增加到15px，放大字体 */
    }
    
    .player-detail-kda-ratio {
        font-size: 12px; /* 从11px增加到12px，放大字体 */
        color: var(--text-tertiary);
        background-color: var(--gray-light);
        padding: 2px 10px; /* 增加内边距 */
        border-radius: 8px;
    }
    
    /* ================== 玩家详情召唤师技能（全部玩家列表）- 放大 ================== */
    .player-detail-spells {
        display: flex;
        gap: 4px; /* 增加间距 */
        margin-left: 20px; /* 增加左边距 */
        min-width: 60px; /* 增加最小宽度 */
    }
    
    .player-detail-spell-icon {
        width: 24px; /* 从20px增加到24px，放大图标 */
        height: 24px; /* 从20px增加到24px，放大图标 */
        border-radius: 4px; /* 增加圆角 */
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease; /* 添加悬停效果 */
    }
    
    .player-detail-spell-icon:hover {
        transform: scale(1.1); /* 悬停时稍微放大 */
        border-color: var(--primary-blue);
    }
    
    .player-detail-spell-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* ================== 玩家详情符文区域（全部玩家列表）- 放大 ================== */
    .player-detail-runes {
        display: flex;
        flex-direction: column;
        gap: 4px; /* 增加间距 */
        margin-left: 20px; /* 增加左边距 */
        min-width: 80px; /* 增加最小宽度 */
    }
    
    .player-detail-rune {
        display: flex;
        align-items: center;
        gap: 6px; /* 增加间距 */
    }
    
    .player-detail-rune-icon {
        width: 20px; /* 从16px增加到20px，放大图标 */
        height: 20px; /* 从16px增加到20px，放大图标 */
        border-radius: 4px; /* 增加圆角 */
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease; /* 添加悬停效果 */
    }
    
    .player-detail-rune-icon:hover {
        transform: scale(1.1); /* 悬停时稍微放大 */
    }
    
    .player-detail-rune-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .player-detail-rune-name {
        font-size: 11px; /* 从10px增加到11px，放大字体 */
        font-weight: 500;
        white-space: nowrap;
    }
    
    .player-detail-rune-primary {
        color: var(--text-primary);
        font-weight: 600; /* 增加字体粗细 */
    }
    
    .player-detail-rune-secondary {
        color: var(--text-secondary);
        font-weight: 500; /* 增加字体粗细 */
    }
    
    /* ================== 玩家详情出装格子（全部玩家列表）================== */
    .player-detail-items {
        display: flex;
        gap: 3px; /* 增加间距 */
        margin-left: 20px; /* 增加左边距 */
    }
    
    .player-detail-item-slot {
        width: 26px; /* 从24px增加到26px，放大图标 */
        height: 26px; /* 从24px增加到26px，放大图标 */
        background-color: var(--gray);
        border-radius: 4px; /* 增加圆角 */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .player-detail-item-slot:hover {
        transform: scale(1.1);
        border-color: var(--primary-blue);
    }
    
    .player-detail-item-slot.empty {
        background-color: var(--gray-light);
        border: 1px dashed var(--gray-dark);
    }
    
    .player-detail-item-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px; /* 增加圆角 */
    }
    
    /* ================== 玩家详情统计数据（全部玩家列表）================== */
    .player-detail-stats {
        display: flex;
        flex-direction: column;
        gap: 4px; /* 增加间距 */
        margin-left: 20px; /* 增加左边距 */
        text-align: right;
        min-width: 90px; /* 增加最小宽度 */
    }
    
    .player-detail-stat {
        font-size: 12px; /* 从11px增加到12px，放大字体 */
        color: var(--text-secondary);
    }
    
    .player-detail-stat-value {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 13px; /* 从12px增加到13px，放大字体 */
    }
    
    /* ================== 徽章 ================== */
    .status-badge {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .badge-public {
        background-color: #00B42A;
        color: white;
    }
    
    .badge-private {
        background-color: #F53F3F;
        color: white;
    }
    
    /* ================== 分页 ================== */
    .pagination .page-link {
        color: var(--primary-blue);
        border: 1px solid var(--gray);
        margin: 0 2px;
        border-radius: 6px !important;
    }
    
    .pagination .page-item.active .page-link {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
        color: white;
    }
    
    /* ================== 响应式调整 ================== */
    @media (max-width: 768px) {
        /* 头像区域响应式 */
        .avatar-container {
            width: 90px;
            height: 90px;
        }
        
        .avatar-img {
            width: 90px;
            height: 90px;
        }
        
        .avatar-progress {
            width: 106px;
            height: 106px;
        }
        
        .level-badge {
            width: 30px;
            height: 30px;
            font-size: 12px;
        }
        
        /* 战绩列表响应式 */
        .hero-avatar {
            width: 50px;
            height: 50px;
        }
        
        .match-item {
            padding: 12px;
        }
        
        .item-slots {
            gap: 2px;
        }
        
        .item-slot {
            width: 22px;
            height: 22px;
        }
        
        .spell-icon {
            width: 20px;
            height: 20px;
        }
        
        .stats-column {
            gap: 3px;
        }
        
        .stat-label-vertical {
            font-size: 10px;
            min-width: 32px;
        }
        
        .stat-value-vertical {
            font-size: 12px;
        }
        
        /* 符文响应式 */
        .rune-icon {
            width: 18px;
            height: 18px;
        }
        
        .rune-primary, .rune-secondary {
            font-size: 10px;
            gap: 4px;
        }
        
        /* ================== 详情页响应式（全部玩家列表）================== */
        .player-detail-item {
            flex-wrap: wrap;
            padding: 10px 12px; /* 减少内边距 */
        }
        
        .player-detail-avatar-img {
            width: 40px;
            height: 40px;
        }
        
        /* 放大后的召唤师技能响应式调整 */
        .player-detail-spell-icon {
            width: 22px; /* 稍微减小，但仍然比原来大 */
            height: 22px; /* 稍微减小，但仍然比原来大 */
        }
        
        /* 放大后的符文响应式调整 */
        .player-detail-rune-icon {
            width: 18px; /* 稍微减小，但仍然比原来大 */
            height: 18px; /* 稍微减小，但仍然比原来大 */
        }
        
        /* 放大后的出装格子响应式调整 */
        .player-detail-item-slot {
            width: 22px; /* 稍微减小，但仍然比原来大 */
            height: 22px; /* 稍微减小，但仍然比原来大 */
        }
        
        /* 各个元素的间距调整 */
        .player-detail-kda,
        .player-detail-spells,
        .player-detail-runes,
        .player-detail-items,
        .player-detail-stats {
            margin-left: 12px;
            margin-top: 4px;
        }
        
        .player-detail-runes {
            min-width: 50px;
        }
        
        /* 放大后的字体响应式调整 */
        .player-detail-name {
            font-size: 13px; /* 稍微减小 */
        }
        
        .player-detail-position {
            font-size: 11px; /* 稍微减小 */
        }
        
        .player-detail-kda-numbers {
            font-size: 14px; /* 稍微减小 */
        }
        
        .player-detail-stat {
            font-size: 11px; /* 稍微减小 */
        }
        
        .player-detail-stat-value {
            font-size: 12px; /* 稍微减小 */
        }
    }

    @media (max-width: 576px) {
        /* 小屏幕响应式 */
        .item-slots {
            gap: 1px;
        }
        
        .item-slot {
            width: 18px;
            height: 18px;
        }
        
        /* ================== 详情页小屏幕响应式（全部玩家列表）================== */
        .player-detail-item {
            padding: 8px 10px; /* 进一步减少内边距 */
        }
        
        /* 进一步减小图标大小 */
        .player-detail-spell-icon {
            width: 20px;
            height: 20px;
        }
        
        .player-detail-rune-icon {
            width: 16px;
            height: 16px;
        }
        
        .player-detail-item-slot {
            width: 20px;
            height: 20px;
        }
        
        /* 进一步调整间距 */
        .player-detail-kda,
        .player-detail-spells,
        .player-detail-runes,
        .player-detail-items {
            margin-left: 8px;
        }
        
        .player-detail-stats {
            margin-left: 12px;
        }
        
        /* 进一步减小字体大小 */
        .player-detail-name {
            font-size: 12px;
        }
        
        .player-detail-kda-numbers {
            font-size: 13px;
        }
    }