/* 全局尺寸规范 - 与style.css保持一致 */
:root {
    /* 网站标准尺寸 */
    --site-width: 1920px;
    --site-height: 1080px;
    
    /* 主体内容区域宽度 */
    --content-width: 1200px;
    
    /* 导航栏高度范围 */
    --navbar-height-min: 60px;
    --navbar-height-max: 100px;
    
    /* Banner高度范围 */
    --banner-height-min: 300px;
    --banner-height-max: 800px;
}


/* 美化比分显示样式 - 主页专用 */
.match-score {
    font-size: 2rem;
    font-weight: bold;
    color: #ff4757;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-score::before, .match-score::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    margin: 0 8px;
    display: inline-block;
}

/* 已完成比赛的成绩高亮 */
.schedule-card-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* 确保比分和装饰点在同一行 */
.match-score-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 全局样式优化 */
:root {
    --primary-color: #ff69b4;
    --secondary-color: #ff4757;
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --light-bg: #2d2d2d;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 16px rgba(0,0,0,0.15);
    
    /* 引入全局尺寸规范变量 */
    --site-width: 1920px;
    --site-height: 1080px;
    --content-width: 1200px;
    --navbar-height-min: 60px;
    --navbar-height-max: 100px;
    --banner-height-min: 300px;
    --banner-height-max: 800px;
}



/* 导航栏样式优化 */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 105, 180, 0.1);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.language-dropdown {
    padding: 8px 12px;
    background-color: var(--dark-bg);
    color: var(--text-color);
    border: 1px solid var(--light-bg);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.language-dropdown:hover {
    border-color: var(--primary-color);
}

/* 主页新增样式 */
.section-header {
    /* 设置为弹性布局，使子元素可以灵活排列 */
    display: flex;
    /* 使子元素两端对齐，中间留出空间 */
    justify-content: space-between;
    /* 使子元素在垂直方向上居中对齐 */
    align-items: center;
    /* 设置底部外边距为24像素 */
    margin-bottom: 24px;
    /* 设置底部内边距为12像素 */
    padding-bottom: 12px;
    /* 设置底部边框为2像素宽的实线，颜色使用CSS变量 --light-bg（浅背景色） */
    border-bottom: 2px solid var(--light-bg);
}

.section-header h2 {
    /* 设置字体大小为1.8倍根元素字体大小 */
    font-size: 1.8rem;
    /* 清除默认外边距 */
    margin: 0;
    /* 设置为相对定位，为伪元素提供定位参考 */
    position: relative;
    /* 设置左侧内边距为16像素 */
    padding-left: 16px;
    /* 设置文字颜色为纯白色 */
    color: #ffffff;
    /* 添加文字阴影效果 */
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.5), 0 0 5px rgba(255, 255, 255, 0.3);
}

/* 增加更具体的选择器以确保标题显示为纯白色 */
.content-section .section-header h2 {
    color: #ffffff !important;
}

.section-header h2::before {
    /* 创建一个空内容的伪元素 */
    content: '';
    /* 设置为绝对定位 */
    position: absolute;
    /* 定位在父元素左侧 */
    left: 0;
    /* 顶部定位在父元素50%高度位置 */
    top: 50%;
    /* 向上平移自身高度的50%，实现垂直居中 */
    transform: translateY(-50%);
    /* 设置宽度为4像素 */
    width: 4px;
    /* 设置高度为父元素高度的70% */
    height: 70%;
    /* 背景色使用CSS变量 --primary-color（主题主色） */
    background-color: var(--primary-color);
    /* 设置圆角为2像素 */
    border-radius: 2px;
}

.view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
    background-color: rgba(255, 105, 180, 0.1);
    border: 1px solid transparent;
}

.view-more:hover {
    text-decoration: none;
    background-color: rgba(255, 105, 180, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 轮播图优化 */
.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4);
    background-color: #ff85c1;
}

/* 比赛回顾预览样式 */
.review-highlight {
    background-color: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.review-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.review-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.highlight-video {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.highlight-video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: var(--transition);
}

.highlight-video:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.highlight-info {
    flex: 1;
    min-width: 300px;
}

.highlight-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.highlight-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.review-preview-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--light-bg) var(--dark-bg);
}

.review-preview-list::-webkit-scrollbar {
    height: 6px;
}

.review-preview-list::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 3px;
}

.review-preview-list::-webkit-scrollbar-thumb {
    background: var(--light-bg);
    border-radius: 3px;
}

.review-preview-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.review-item {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
    min-width: 400px;
    cursor: pointer;
    border: 1px solid transparent;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.review-thumbnail {
    width: 150px;
    height: 90px;
    background-color: var(--light-bg);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.review-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: var(--transition);
}

.review-item:hover .review-thumbnail::after {
    opacity: 1;
}

.review-details {
    flex: 1;
}

.review-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: var(--transition);
}

.review-item:hover .review-title {
    color: var(--primary-color);
}

.review-meta {
    color: var(--text-muted);
    font-size: 14px;
}

/* 团队预览样式 */
.teams-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.team-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.1));
    transition: var(--transition);
}

.team-card:hover::after {
    right: 100%;
}

.team-logo {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.team-card:hover .team-logo {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4);
}

.team-info {
    flex: 1;
    padding: 20px 20px 20px 0;
}

.team-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.team-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.team-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.team-stats .stat {
    background-color: var(--light-bg);
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.team-card:hover .team-stats .stat {
    background-color: rgba(255, 105, 180, 0.1);
    color: var(--primary-color);
}

.btn-view-team-details {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-view-team-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    transition: var(--transition);
    z-index: -1;
}

.btn-view-team-details:hover::before {
    left: 100%;
}

.btn-view-team-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.3);
}

/* 积分榜预览样式 - 主页专用 */
.standings-preview {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.standings-preview .standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.standings-preview .standings-table th,
.standings-preview .standings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-bg);
    transition: var(--transition);
}

.standings-preview .standings-table th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.standings-preview .standings-table th::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
}

.standings-preview .standings-table tr {
    transition: var(--transition);
    position: relative;
}

.standings-preview .standings-table tr:hover {
    background-color: rgba(255, 105, 180, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.standings-preview .standings-table tr:nth-child(1) { background-color: rgba(255, 105, 180, 0.05); }
.standings-preview .standings-table tr:nth-child(2) { background-color: rgba(255, 105, 180, 0.03); }
.standings-preview .standings-table tr:nth-child(3) { background-color: rgba(255, 105, 180, 0.01); }

/* 赛程卡片样式优化 */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    overflow: visible;
}

.schedule-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

/* 确保赛程卡片内容完整显示 */
.schedule-card-teams {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 15px 0 !important;
    overflow: visible !important;
}

.schedule-card-teams .team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 60px !important;
    padding: 0 5px !important;
}

.schedule-card-teams .team-name {
    font-size: 12px !important;
    text-align: center !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.schedule-card-teams .match-score {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #ff69b4 !important;
    margin: 0 8px !important;
    min-width: 30px !important;
    text-align: center !important;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.schedule-card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-bg);
}

.schedule-card-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-bg);
}

.schedule-card-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚样式优化 - 确保固定在页面底部 */
.footer {
    background-color: var(--darker-bg);
    padding: 30px 0;
    margin-top: auto; /* 关键属性，确保页脚固定在页面底部 */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.schedule-grid:empty::after,
.review-preview-list:empty::after {
    content: '加载中...';
    display: block;
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .teams-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .match-score {
        font-size: 1.5rem;
        min-width: 60px;
        padding: 0.3rem 0.8rem;
    }
    
    .teams-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .review-preview-list {
        flex-direction: column;
    }
    
    .review-item {
        min-width: auto;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .highlight-video,
    .highlight-info {
        min-width: 100%;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* 竖屏视频容器样式 */
.vertical-video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    max-height: 720px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 10px;
}

/* 竖屏视频样式 */
.vertical-video {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.8);
}

/* 响应式竖屏视频处理 */
@media (max-width: 768px) {
    .vertical-video-container {
        min-height: 480px;
        max-height: 600px;
    }
    
    .vertical-video {
        max-width: 240px;
    }
    
    /* 调整视频容器在移动设备上的布局 */
    .review-highlight {
        flex-direction: column;
    }
    
    .highlight-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vertical-video-container {
        min-height: 400px;
        max-height: 520px;
        padding: 8px;
    }
    
    .vertical-video {
        max-width: 200px;
        max-height: 480px;
    }
}
