* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e2837;
    --accent-color: #ff4d4f;
    --bg-color: #f5f7fa;
    --text-color: #333;
    --border-radius: 8px;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-logo span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

/* 头部样式 */
header {
    background: linear-gradient(rgba(30, 40, 55, 0.85), rgba(54, 77, 121, 0.9)), url('cs.jpg');
    background-size: 110% auto;
    background-position: -150px 39%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 15rem 0 6rem;
    margin-top: 64px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.4));
    opacity: 1;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}

.matches-container {
    position: relative;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

.section-header {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding-top: 3rem;
}

.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(30,40,55,0.05);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 比赛卡片样式 */
.match-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.match-card .match-teams {
    text-align: center;
}

.match-card .match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-card .match-score {
    text-align: center;
}

.match-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
}

.match-teams .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
    padding: 0.3rem 0;
}

/* 左侧队伍名称靠右对齐 */
.match-teams .team-name:first-child {
    text-align: right;
}

/* 右侧队伍名称靠左对齐 */
.match-teams .team-name:last-child {
    text-align: left;
}

/* 悬停提示框样式 */
.match-teams .team-name:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* 添加小三角箭头 */
.match-teams .team-name:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: -5px;
    z-index: 1000;
}

.match-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.status-live {
    background-color: #f5222d;
    color: white;
}

.status-upcoming {
    background-color: #52c41a;
    color: white;
}

.status-finished {
    background-color: #8c8c8c;
    color: white;
}

/* 页脚样式 */
footer {
    background-color: #1a1f2e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: #ff4655;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff4655;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #888;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
        min-width: 100%;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.1em;
    }

    .footer-bottom {
        margin-top: 30px;
        font-size: 0.9em;
    }
}

/* 移动端底部栏适配 */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section p {
        max-width: 300px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0 0.8rem;
    }

    .footer-content {
        gap: 1.2rem;
        padding: 0 0.8rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.8rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .nav-links {
        background-color: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-card {
        padding: 1.2rem;
    }
    
    .match-card .match-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    main {
        margin: 0.5rem auto;
        padding: 0.5rem;
    }
}

/* 战队样式 */
.teams-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teams-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 1rem;
}

/* 战队卡片基础样式 */
.team-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    padding-right: 2.5rem; /* 为排名徽章留出空间 */
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.team-stats div {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.team-points {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* 前三名战队网格布局 */
.top-teams {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.5rem;
    margin: 0 auto 1rem;
    padding: 0 0.5rem;
    align-items: flex-end;
    max-width: 1400px;
    width: 95%;
}

/* 调整卡片顺序 */
.rank-2 {
    order: 1;
}

.rank-1 {
    order: 2;
    padding: 2rem 1.5rem !important;
    margin-bottom: 0;
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 160, 0, 0.04)) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    z-index: 2;
    min-height: 320px !important;
}

.rank-3 {
    order: 3;
}

/* 前三名战队卡片样式 */
.team-card.top-team {
    position: relative;
    padding: 1.5rem 1.2rem;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-card.top-team .team-name {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 1rem 0.3rem 0;
    width: 100%;
}

.team-card.top-team .team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 0 0.3rem;
    width: 100%;
}

.team-card.top-team .team-stats div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.team-card.top-team .team-points {
    font-size: 1.2rem;
    padding: 1rem 0.3rem 0;
    margin-top: auto;
    text-align: center;
}

/* 排名徽章颜色和效果 */
.rank-1 .rank-badge { 
    background: linear-gradient(135deg, #ffd700, #ffa000);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.rank-2 .rank-badge { 
    background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}
.rank-3 .rank-badge { 
    background: linear-gradient(135deg, #dd9933, #a05a20);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}

/* 前三名卡片特殊效果 */
.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 160, 0, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.rank-2 {
    background: linear-gradient(135deg, rgba(224, 224, 224, 0.05), rgba(176, 176, 176, 0.02));
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.rank-3 {
    background: linear-gradient(135deg, rgba(221, 153, 51, 0.05), rgba(160, 90, 32, 0.02));
    border: 1px solid rgba(205, 127, 50, 0.1);
}

/* 装饰性边角 */
.team-card.top-team::before,
.team-card.top-team::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-width: 2px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.team-card.top-team::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.team-card.top-team::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

/* 为不同排名设置不同的边角颜色 */
.rank-1::before, .rank-1::after {
    border-color: rgba(255, 215, 0, 0.6);
}

.rank-2::before, .rank-2::after {
    border-color: rgba(192, 192, 192, 0.6);
}

.rank-3::before, .rank-3::after {
    border-color: rgba(205, 127, 50, 0.6);
}

/* 悬停效果增强 */
.team-card.top-team:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.team-card.top-team:hover::before {
    transform: translate(4px, 4px);
}

.team-card.top-team:hover::after {
    transform: translate(-4px, -4px);
}

/* 前三名卡片内容样式 */
.team-card.top-team .team-name {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.8rem;
    padding: 1rem 0.3rem 0;
    width: 100%;
}

.team-card.top-team .team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0 0.3rem;
    width: 100%;
}

.team-card.top-team .team-stats div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.team-card.top-team .team-points {
    font-size: 1rem;
    padding: 0.8rem 0.3rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--accent-color);
    font-weight: 600;
    border-top: 1px solid rgba(0,0,0,0.08);
    width: 100%;
}

/* 前三名标题渐变效果 */
.rank-1 .team-name {
    background: linear-gradient(90deg, #ffd700, #ffa000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-2 .team-name {
    background: linear-gradient(90deg, #c0c0c0, #808080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-3 .team-name {
    background: linear-gradient(90deg, #cd7f32, #a05a20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-teams {
        grid-template-columns: 0.9fr 1.1fr 0.9fr;
        gap: 0.8rem;
        max-width: 100%;
        width: 100%;
    }

    .team-card.top-team {
        min-height: 220px;
        padding: 1rem 0.8rem;
    }

    .rank-1 {
        min-height: 260px !important;
        padding: 1.2rem 1rem !important;
    }

    .team-card.top-team .team-name {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        padding: 0.4rem 0.2rem 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-card.top-team .team-stats {
        gap: 0.4rem;
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }

    .team-card.top-team .team-stats div {
        font-size: 0.85rem;
        gap: 0.2rem;
        white-space: nowrap;
    }

    .team-card.top-team .team-points {
        font-size: 0.9rem;
        padding: 0.5rem 0.2rem 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .top-teams {
        grid-template-columns: 0.85fr 1fr 0.85fr;
        gap: 0.5rem;
    }

    .team-card.top-team {
        min-height: 180px;
        padding: 0.8rem 0.6rem;
    }

    .rank-1 {
        min-height: 220px !important;
        padding: 1rem 0.8rem !important;
    }

    .team-card.top-team .team-name {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        padding: 0.3rem 0.2rem 0;
    }

    .team-card.top-team .team-stats {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .team-card.top-team .team-stats div {
        font-size: 0.8rem;
        gap: 0.15rem;
    }

    .team-card.top-team .team-points {
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem 0;
    }
}

/* 新闻样式 */
.news-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.news-date {
    color: #8c8c8c;
    font-size: 0.9rem;
}

/* 默认样式（适用于电脑端） */
.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--primary-color); /* 默认颜色为黑色 */
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-title.expanded {
    color: var(--accent-color); /* 展开时的颜色为红色 */
}

/* 悬停效果（适用于电脑端） */
.news-title:hover {
    color: var(--accent-color); /* 悬停时的颜色为红色 */
}

/* 手机端样式 */
@media (max-width: 768px) {
    .news-title {
        color: var(--primary-color); /* 默认颜色为黑色 */
    }

    .news-title.expanded {
        color: var(--accent-color); /* 展开时的颜色为红色 */
    }

    /* 移除悬停效果 */
    .news-title:hover {
        color: inherit; /* 不改变颜色 */
    }
}

.news-content {
    max-height: 0; /* 初始状态为折叠 */
    overflow: visible; /* 允许内容显示 */
    transition: all 0.3s ease; /* 平滑过渡 */
    font-size: 0.9rem;
    color: #666;
    padding: 0 0; /* 初始padding为0 */
    position: relative;
    z-index: 1;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .team-card {
        padding: 1.2rem;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .team-stats {
        font-size: 0.9rem;
    }
}

/* 比赛阶段样式 */
.stage-section {
    margin-bottom: 2rem;
    position: relative;
}

.stage-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.stage-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stage-matches.expanded {
    max-height: none;
}

/* 添加展开按钮样式 */
.expand-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.expand-button:hover {
    background-color: var(--accent-color);
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .stage-matches {
        grid-template-columns: 1fr;
    }
    
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .match-card,
    .team-card,
    .news-item {
        padding: 1.2rem;
    }
    
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .nav-links {
        background-color: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
    }
}

/* 添加渐变遮罩效果 */
.stage-section:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    opacity: 0.8;
}

/* 更新新闻容器样式 */
.news-list-container {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.news-list-container.expanded {
    max-height: none;
}

/* 统一的渐变遮罩效果 */
.collapsible-section {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    opacity: 0.8;
}

/* 手机端优化 */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar {
        height: 70px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-content {
        padding: 0 1rem;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo区域 */
    .nav-logo {
        gap: 0.5rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .nav-logo span {
        font-size: 1.2rem;
        font-weight: 600;
    }

    /* 添加汉堡菜单 */
    .menu-toggle {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255, 77, 79, 0.1);
        color: var(--accent-color);
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(255, 77, 79, 0.2);
    }

    /* 导航链接菜单 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        padding: 0.8rem;
        margin: 0.3rem 0;
        border-radius: 8px;
        text-align: center;
        font-weight: 500;
        background: rgba(30, 40, 55, 0.03);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(30, 40, 55, 0.06);
    }

    .nav-links a.active {
        background: var(--primary-color);
        color: white;
    }

    .nav-links a::after {
        display: none;
    }

    /* 页面内容调整 */
    header {
        margin-top: 70px;
    }
}

/* 超小屏幕特殊处理 */
@media (max-width: 480px) {
    .nav-content {
        padding: 0 0.8rem;
    }

    .nav-logo span {
        font-size: 1.4rem;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-links {
        padding: 0.8rem;
    }

    .nav-links a {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* 比赛选择器样式 */
.tournament-selector {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.tournament-selector select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e1e5eb;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.tournament-selector select:hover {
    border-color: var(--accent-color);
}

.tournament-selector select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255,77,79,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tournament-selector {
        padding: 1rem;
    }

    .tournament-selector select {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card,
.team-card,
.news-item {
    animation: fadeIn 0.5s ease forwards;
}

/* 添加基础容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 更新比赛卡片容器样式 */
.stage-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 更新比赛卡片样式 */
.match-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
}

.match-teams .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
    padding: 0.3rem 0;
}

/* 左侧队伍名称靠右对齐 */
.match-teams .team-name:first-child {
    text-align: right;
}

/* 右侧队伍名称靠左对齐 */
.match-teams .team-name:last-child {
    text-align: left;
}

/* 悬停提示框样式 */
.match-teams .team-name:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* 添加小三角箭头 */
.match-teams .team-name:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: -5px;
    z-index: 1000;
}

.match-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* 更新战队卡片容器样式 */
.teams-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 1rem;
}

/* 更新战队卡片样式 */
.team-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-8px);
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #666;
}

.team-points {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* 更新新闻列表样式 */
.news-list {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

/* 添加动画 */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

body:not(.loading) .animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 添加过渡效果 */
.match-card:hover,
.team-card:hover,
.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 移动端菜单按钮样式 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    z-index: 1001;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    /* 导航栏容器 */
    .navbar {
        height: 70px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-content {
        padding: 0 1rem;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo区域 */
    .nav-logo {
        gap: 0.5rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .nav-logo span {
        font-size: 1.2rem;
        font-weight: 600;
    }

    /* 汉堡菜单按钮 */
    .menu-toggle {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255, 77, 79, 0.1);
        color: var(--accent-color);
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(255, 77, 79, 0.2);
    }

    /* 导航链接菜单 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        padding: 0.8rem;
        margin: 0.3rem 0;
        border-radius: 8px;
        text-align: center;
        font-weight: 500;
        background: rgba(30, 40, 55, 0.03);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(30, 40, 55, 0.06);
    }

    .nav-links a.active {
        background: var(--primary-color);
        color: white;
    }

    .nav-links a::after {
        display: none;
    }

    /* 页面内容调整 */
    header {
        margin-top: 70px;
    }
}

/* 超小屏幕特殊处理 */
@media (max-width: 480px) {
    .nav-content {
        padding: 0 0.8rem;
    }

    .nav-logo span {
        font-size: 1.4rem;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-links {
        padding: 0.8rem;
    }

    .nav-links a {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* 添加加载状态样式 */
body.loading {
    opacity: 0;
}

/* 确保动画效果在页面加载完成后才开始 */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

body:not(.loading) .animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 更新错误消息样式 */
.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4655;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

.error-message.removing {
    animation: slideUp 0.3s ease-out forwards;
}

/* 移动端logo样式优化 */
@media (max-width: 768px) {
    .logo-img {
        width: 32px;
        height: 32px;
    }
}

/* 比赛卡片样式 */
.tournament-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.tournament-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tournament-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tournament-info {
    margin: 1rem 0;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tournament-info div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tournament-info div:last-child {
    border-bottom: none;
}

.view-matches-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.view-matches-btn:hover {
    background: var(--accent-color);
}

/* 返回按钮样式 */
.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.back-button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.back-button .back-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* 更新比赛标题样式 */
.tournament-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* 添加无比赛提示样式 */
.no-tournaments {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* 更新比赛状态样式 */
.tournament-status.status-live {
    background-color: #f5222d;
    color: white;
}

.tournament-status.status-upcoming {
    background-color: #52c41a;
    color: white;
}

.tournament-status.status-finished {
    background-color: #8c8c8c;
    color: white;
}

/* 更新战队网格布局 */
.teams-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 其他战队样式 */
.other-teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.other-teams .team-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.other-teams .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.other-teams .rank-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.other-teams .team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-right: 2.5rem;
    text-align: left;
}

.other-teams .team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.other-teams .team-stats div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
}

.other-teams .team-points {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .other-teams {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .other-teams .team-card {
        padding: 1rem;
    }
    
    .other-teams .rank-number {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.85rem;
    }
    
    .other-teams .team-name {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding-right: 2rem;
    }
    
    .other-teams .team-stats div {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .other-teams .team-points {
        margin-top: 0.7rem;
        padding-top: 0.7rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .other-teams {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .other-teams .team-card {
        padding: 0.8rem;
    }
    
    .other-teams .rank-number {
        top: 0.7rem;
        right: 0.7rem;
        font-size: 0.8rem;
    }
    
    .other-teams .team-name {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
        padding-right: 1.8rem;
    }
    
    .other-teams .team-stats div {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    .other-teams .team-points {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        font-size: 0.9rem;
    }
}

/* 队伍详情页面样式优化 */
.team-header {
    background: linear-gradient(135deg, var(--primary-color), #364d79);
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 64px;
}

.team-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="3" cy="3" r="1" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(120deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 0.5s ease-out;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(120deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .team-header {
        padding: 2rem 0 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .team-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .stat-item {
        padding: 0.6rem;
        gap: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .team-header {
        padding: 1.5rem 0 1.2rem;
    }
    
    .header-content h1 {
        font-size: 1.3rem;
    }
    
    .team-stats {
        padding: 0.6rem;
        gap: 0.4rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

/* 比赛记录区域样式 */
.team-detail-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin: 1.5rem auto;
    max-width: 1000px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.section-header h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.match-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.match-tournament {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.match-stage {
    color: #666;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: #f5f7fa;
    border-radius: 20px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    gap: 1rem;
}

.team {
    flex: 1;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.match-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    background: #f5f7fa;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
}

.match-time {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .team-detail-container {
        padding: 1rem;
        margin: 1rem 0.8rem;
        border-radius: 8px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.4rem;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        border-radius: 6px;
    }
    
    .matches-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .match-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .match-info {
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .match-tournament {
        font-size: 0.9rem;
    }
    
    .match-stage {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.8rem 0;
    }
    
    .team {
        font-size: 0.9rem;
    }
    
    .match-score {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem 0;
        min-width: 60px;
    }
    
    .match-time {
        font-size: 0.8rem;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-detail-container {
        padding: 0.8rem;
        margin: 0.8rem 0.6rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .match-card {
        padding: 0.8rem;
    }
    
    .match-tournament {
        font-size: 0.85rem;
    }
    
    .match-stage {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .team {
        font-size: 0.85rem;
    }
    
    .match-score {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        min-width: 50px;
    }
    
    .match-time {
        font-size: 0.75rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }
}

/* 战队筛选器样式 */
.teams-filter-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.teams-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.teams-filter label {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 80px;
}

.teams-filter select {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e1e5eb;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.teams-filter select:hover {
    border-color: var(--accent-color);
}

.teams-filter select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255,77,79,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .teams-filter-section {
        padding: 1rem;
    }

    .teams-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .teams-filter label {
        min-width: auto;
    }

    .teams-filter select {
        width: 100%;
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 比赛筛选器样式 */
.tournament-filter-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.tournament-filter-container h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.styled-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e1e5eb;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.styled-select:hover {
    border-color: var(--accent-color);
}

.styled-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255,77,79,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tournament-filter-container {
        padding: 1rem;
    }

    .tournament-filter-container h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .styled-select {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    header {
        background-size: 140% auto;
        background-position: -110px 39%;
        padding: 8rem 0 2rem;
    }
}

@media (max-width: 480px) {
    header {
        background-size: 150% auto;
        background-position: -100px 39%;
        padding: 6rem 0 1.5rem;
    }
}

.match-card .team-name.winner {
    color: #2ecc71;
    font-weight: bold;
}

.match-card .team-name.loser {
    color: #e74c3c;
    font-weight: bold;
}

.match-card .match-score .score-part.winner {
    color: #2ecc71;
    font-weight: bold;
}

.match-card .match-score .score-part.loser {
    color: #e74c3c;
    font-weight: bold;
}

.stage-group {
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.stage-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e5eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stage-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.stage-matches {
    padding: 1rem;
}

.match-card {
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.match-card:last-child {
    margin-bottom: 0;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.match-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.match-stage {
    background: #f0f2f5;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
}

.match-score {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    min-width: 80px;
}

@media (max-width: 768px) {
    .stage-header {
        padding: 0.8rem 1rem;
    }

    .stage-header h3 {
        font-size: 1rem;
    }

    .stage-matches {
        padding: 0.8rem;
    }

    .match-card {
        padding: 1rem;
    }

    .match-teams {
        gap: 0.5rem;
    }

    .match-score {
        min-width: 60px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .match-teams {
        font-size: 0.9rem;
    }
}

.match-screenshot {
    margin-top: 1rem;
    border-top: 1px solid #e1e5eb;
    padding-top: 1rem;
    text-align: center;
}

.match-screenshot img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.match-screenshot .no-screenshot {
    color: #999;
    font-size: 0.9rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.match-screenshot .no-screenshot i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .match-screenshot {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 1;
}

.match-screenshot img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.match-screenshot img:hover {
    transform: scale(1.02);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    animation: zoomIn 0.3s ease forwards;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
    }
    
    .close-modal {
        top: -35px;
        right: 0;
        font-size: 20px;
    }
}

/* 弹幕容器样式 */
.danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* 弹幕样式 */
.danmaku {
    position: absolute;
    right: -100%;
    white-space: nowrap;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    pointer-events: none;
    animation: danmakuMove linear;
    will-change: transform;
}

/* 通知类弹幕样式 */
.danmaku.notice {
    color: #ff4655;
    font-weight: bold;
    font-size: 24px;
    opacity: 0.9;
}

.danmaku.notice::before {
    content: '[通知] ';
    color: #ff4655;
}

/* 弹幕动画 */
@keyframes danmakuMove {
    from {
        transform: translateX(-80vw);
    }
    to {
        transform: translateX(-200vw);
    }
}

/* 弹幕输入容器 */
.danmaku-input-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .danmaku-container {
        height: calc(100% - 70px); /* 减去输入框的高度和一些间距 */
    }

    .danmaku {
        font-size: 16px; /* 移动端字体稍小 */
    }

    .danmaku.notice {
        font-size: 18px;
    }

    .danmaku-input-container {
        bottom: 10px;
        width: 90%;
        max-width: 400px;
        padding: 8px;
        flex-wrap: nowrap;
        gap: 8px;
        background: rgba(0, 0, 0, 0.8); /* 更深的背景色 */
    }
}

@media (max-width: 480px) {
    .danmaku-container {
        height: calc(100% - 60px); /* 更小屏幕减少更多空间 */
    }

    .danmaku {
        font-size: 14px; /* 更小屏幕字体更小 */
    }

    .danmaku.notice {
        font-size: 16px;
    }

    .danmaku-input-container {
        bottom: 5px;
        width: 95%;
        padding: 6px;
        gap: 6px;
    }
}

/* 横屏模式适配 */
@media (max-height: 480px) and (orientation: landscape) {
    .danmaku-container {
        height: calc(100% - 50px); /* 横屏模式减少更少空间 */
    }

    .danmaku {
        font-size: 14px;
    }

    .danmaku.notice {
        font-size: 16px;
    }

    .danmaku-input-container {
        bottom: 5px;
        padding: 5px;
        background: rgba(0, 0, 0, 0.9); /* 横屏模式背景更深 */
    }
}

/* 弹幕输入框 */
.danmaku-input {
    width: 200px;
    padding: 8px 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.danmaku-input:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 发送按钮 */
.send-danmaku-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-width: 60px;
    min-height: 36px;
}

.send-danmaku-btn:hover {
    background: var(--accent-color-dark);
    transform: translateY(-1px);
}

.send-danmaku-btn:active {
    transform: translateY(1px);
    background: var(--accent-color-dark);
}

/* 确保弹幕容器正确定位 */
header {
    position: relative;
    overflow: hidden;
}

/* 移动端输入框和按钮适配 */
@media (max-width: 768px) {
    .danmaku-input {
        width: calc(100% - 80px);
        padding: 8px 12px;
        font-size: 14px;
        height: 36px;
    }

    .send-danmaku-btn {
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
        height: 36px;
        min-width: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .danmaku-input {
        width: calc(100% - 70px);
        padding: 8px 10px;
        font-size: 14px;
        height: 36px;
    }

    .send-danmaku-btn {
        padding: 8px 10px;
        font-size: 14px;
        height: 36px;
        min-width: 60px;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .danmaku-input {
        height: 30px;
        padding: 4px 8px;
    }

    .send-danmaku-btn {
        height: 30px;
        padding: 4px 12px;
    }
}

/* 弹幕容器样式 */
.danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* 弹幕样式 */
.danmaku {
    position: absolute;
    right: -100%;
    white-space: nowrap;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    pointer-events: none;
    animation: danmakuMove linear;
    will-change: transform;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .danmaku-container {
        height: 200px; /* 固定高度区域用于显示弹幕 */
        top: 60px; /* 从导航栏下方开始 */
    }

    .danmaku {
        font-size: 16px;
    }

    .danmaku.notice {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .danmaku-container {
        height: 150px; /* 更小的显示区域 */
        top: 50px; /* 调整顶部距离 */
    }

    .danmaku {
        font-size: 14px;
    }

    .danmaku.notice {
        font-size: 16px;
    }
}
