/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

/* 头部样式 */
header {
    width: 100%;
}

.header-top {
    background-color: #e4393c;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.header-top h1 {
    font-size: 2em;
}

/* 导航栏样式 */
.main-nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-nav > li > a {
    font-weight: bold;
}

.main-nav a:hover {
    background-color: #e7e7e7;
    color: #e4393c;
}

/* 下拉菜单样式 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content li {
    border-bottom: 1px solid #eee;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    padding: 12px 20px;
    color: #666;
    font-size: 0.9em;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加箭头指示器 */
.dropdown > a:after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Banner样式 */
.banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-container {
    display: flex;
    width: 300%; /* 3张图片的宽度 */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-container img {
    width: 33.333%; /* 每张图片占1/3宽度 */
    height: 100%;
    object-fit: cover;
}

/* 轮播图按钮样式 */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 指示器样式 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #fff;
}

/* 主要内容区域样式 */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 运动员卡片样式 */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.player-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.player-card h3 {
    padding: 15px;
    margin: 0;
    text-align: center;
}

.player-card p {
    padding: 0 15px 15px;
    text-align: center;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
} 