/* 页面banner */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/matches-banner.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #fff;
    margin-bottom: 40px;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffd700;
}

/* 赛事分类导航 */
.matches-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-item:hover,
.nav-item.active {
    background: #f5f5f5;
}

.nav-item i {
    display: block;
    font-size: 32px;
    color: #c00;
    margin-bottom: 10px;
}

.nav-item span {
    font-size: 16px;
    color: #333;
}

/* 赛事日历 */
.calendar-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 20px;
}

.month-selector button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

.month-selector h3 {
    font-size: 20px;
    color: #333;
}

.calendar-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.pro { background: #c00; }
.dot.amateur { background: #f90; }
.dot.youth { background: #0c0; }

.calendar-grid {
    border: 1px solid #eee;
    border-radius: 6px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #666;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-cell {
    min-height: 100px;
    padding: 10px;
    border: 1px solid #eee;
    position: relative;
}

.date {
    font-size: 14px;
    color: #666;
}

.event {
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.event.pro { background: #c00; }
.event.amateur { background: #f90; }
.event.youth { background: #0c0; }

/* 比赛结果 */
.results-section {
    margin-bottom: 40px;
}

.results-list {
    display: grid;
    gap: 20px;
}

.result-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.match-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.match-type {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
}

.match-type.pro { background: #c00; }
.match-type.amateur { background: #f90; }
.match-type.youth { background: #0c0; }

.match-time {
    color: #666;
    font-size: 14px;
}

.match-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team .name {
    font-size: 16px;
    color: #333;
}

.team .score {
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

.team .score.win {
    color: #c00;
}

.vs {
    font-size: 20px;
    color: #999;
}

.match-detail {
    text-align: center;
}

.btn-detail {
    display: inline-block;
    padding: 5px 20px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: #e5e5e5;
}

/* 积分排名 */
.ranking-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #c00;
    color: #fff;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ranking-table th {
    background: #f5f5f5;
    color: #333;
    font-weight: bold;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-1 {
    background: #fff9f9;
}

.rank-1 td {
    color: #c00;
    font-weight: bold;
}

/* 赛事报名 */
.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.registration-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.event-image {
    position: relative;
    height: 200px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
}

.event-type.pro { background: #c00; }
.event-type.amateur { background: #f90; }
.event-type.youth { background: #0c0; }

.event-info {
    padding: 20px;
}

.event-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.event-meta i {
    margin-right: 5px;
}

.event-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.status.open {
    background: #e6f7e6;
    color: #0c0;
}

.deadline {
    font-size: 14px;
    color: #666;
}

.btn-register {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #c00;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #a00;
} 