/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
}

/* 导航栏样式 */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #f2352f;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search {
    position: relative;
}

.search input {
    width: 200px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    font-size: 14px;
}

.search img {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.app-download {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 球员详情容器 */
.player-detail-container {
    max-width: 1400px;
    margin: 20px auto;
}

/* 球员基本信息部分 */
.player-info-section {
    background-color: #ffffff;
    border-bottom: 1px solid #f2f2f2;
}

.player-info-content {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

.player-avatar {
    max-width: 225px;
    max-height: 203px;
    object-fit: cover;
}

.player-basic-info {
    flex: 1;
}

.player-english-name {
    color: #999997;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.player-chinese-name {
    color: #333333;
    font-size: 39px;
    margin-bottom: 10px;
}

.player-jersey {
    font-size: 0;
}

.jersey-number {
    color: #333333;
    font-size: 37px;
    font-weight: 500;
    margin-right: 2px;
}

.player-position {
    color: #999999;
    font-size: 16px;
}

.player-detail-info {
    flex: 1;
    font-family: SourceHanSansCN, PingFang SC, Sans-Serif, serif;
    font-weight: 400;
    font-size: 16px;
    color: #333;
}

.player-detail-info .player-detail-info-title {
    color: #86909C;
    font-weight: 500;
}

.player-physical,
.player-birthday,
.player-nationality {
    color: #333333;
    font-size: 16px;
    margin-bottom: 10px;
}

.player-flag img {
    width: 194px;
    height: 132px;
    object-fit: cover;
}

/* 标签页部分 */
.tab-section {
    background-color: #ffffff;
    margin-bottom: 20px;
}

.tab-content {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #f2f2f2;
}

.tab-item {
    flex: 1;
    padding: 20px 0;
    color: #bcbcbd;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;

    font-family: SourceHanSansCN, PingFang SC, Sans-Serif, serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
}

.tab-item.active {
    color: #f2352f;
}

.font_red {
    color: #f2352f;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 5px;
    background-color: #f2352f;
    border-radius: 4px;
}

/* 数据统计部分 */
.stats-section {
    background-color: #ffffff;
    padding: 24px;
}

/* 联赛和赛季选择器 */
.league-season-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.league-select,
.season-select {
    background-color: #2c2c2e;
    color: #ffffff;
    border: none;
    padding: 0 10px;
    width: 140px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
}

/* 基本数据 */
.basic-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f2f2f2;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.stat-value {
    color: #1d2129;
    font-family: 'DIN', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: #86909c;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-rank {
    color: #aaaaaa;
    font-size: 12px;
}

.stat-rank span {
    color: #e21c34;
}

/* 数据分类部分 */
.stats-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f2f2f2;
}

.category-title {
    color: #999999;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 0 24px;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-stats .stat-item {
    flex: 1;
    min-width: 120px;
}

/* 球员数据部分 */
.player-data {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

/* 左侧：个人能力雷达图 */
.left-section {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
}

.ability-section {
    position: relative;
}

.ability-section .section-title {
    font-size: 18px;
    font-weight: 500;
    color: #ff0000 !important;
    margin-bottom: 24px;
}

.radar-chart {
    width: 100%;
    height: 400px;
}

/* 右侧：记录部分 */
.right-section {
    width: 770px;
    min-height: 710px;
}

.record-section {
    font-family: SourceHanSansCN, PingFang SC, Sans-Serif, serif;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333333;
    padding: 10px 16px;
}

.record-header .section-title {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 0;
}

.expand-icon {
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.record-content {
    padding: 16px;
}

/* 转会记录 */
.transfer-record {
    font-family: SourceHanSansCN, PingFang SC, Sans-Serif, serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
}

.transfer-record:last-child {
    border-bottom: none;
}

.transfer-info {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
}

.team-name {
    font-size: 14px;
    color: #333333;
}

.transfer-arrow {
    width: 20px;
    height: 20px;
}
.transfer-arrow img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transfer-details {
    text-align: right;
}

.transfer-type {
    font-size: 14px;
    color: #333333;
    margin-bottom: 4px;
}

.transfer-fee {
    font-size: 12px;
    color: #aaaaaa;
}

/* 伤病纪律 */
.injury-record {
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
}
.injured_line{
    position: relative;
}
.injured_line::after{
    content: '';
    position: absolute;
    width: 1px;
    height: 60%;
    background-color: #626264;
    top: 50px;
    left: 65px;
}

.injury-record:last-child {
    border-bottom: none;
}

.injury-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.injury-days {
    font-size: 14px;
    color: #333333;
    width: 50px;
}

.injury-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 46px;
    position: relative;
}
.injury-details::after{
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color: #626264;
}

.injury-type {
    font-size: 14px;
    color: #333333;
    margin-right: 16px;
}

.injury-date {
    font-size: 12px;
    color: #aaaaaa;
}

/* 荣誉记录 */
.honor-record {
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
}
.honor-record .honor-icon {
    height: 32px;
    width: 32px;
}
.honor-record .honor-icon img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.honor-record:last-child {
    border-bottom: none;
}

.honor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.honor-name {
    font-size: 14px;
    color: #333333;
}

.honor-times {
    font-size: 14px;
    color: #333333;
}

.honor-years {
    display: flex;
    gap: 16px;
}

.honor-year {
    font-size: 12px;
    color: #aaaaaa;
}

/* 页脚样式 */
.footer {
    background-color: #383838;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-link-group h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-link-group a {
    display: block;
    color: #86909c;
    font-size: 12px;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-link-group img {
    width: 96px;
    height: 96px;
    margin-top: 10px;
}

.footer-link-group p {
    color: #86909c;
    font-size: 12px;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 24px;
}

.footer-divider {
    background-color: #000000;
    height: 1px;
    margin-bottom: 20px;
}

.footer-copyright {
    color: #86909c;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 22px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: #86909c;
    font-size: 12px;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {

    .header-content,
    .footer-content,
    .footer-bottom {
        padding: 0 20px;
    }

    .player-info-content {
        padding: 20px;
        gap: 20px;
    }

    .player-avatar {
        max-width: 180px;
        max-height: 160px;
    }

    .player-chinese-name {
        font-size: 32px;
    }

    .jersey-number {
        font-size: 30px;
    }

    .category-stats .stat-item {
        flex: 1 1 calc(25% - 15px);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .player-info-content {
        flex-direction: column;
        text-align: center;
    }

    .player-detail-info {
        text-align: center;
    }

    .basic-stats,
    .category-stats {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-link-group {
        text-align: center;
    }
}