/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #ff4757;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #ff4757;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: -5px;
    text-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
}

.logo .subtitle {
    color: #a4b0be;
    font-size: 0.9rem;
    margin-left: 5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 0.7rem 1rem;
    border: 2px solid rgba(255, 71, 87, 0.2);
    border-radius: 25px;
    width: 280px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-box input::placeholder {
    color: #a4b0be;
}

.search-box input:focus {
    outline: none;
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.search-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.5);
}

/* 轮播横幅 */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slider {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    z-index: 2;
    color: white;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.watch-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.watch-btn:hover {
    background: white;
    color: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23ff6b6b" width="1200" height="400"/><circle cx="200" cy="200" r="50" fill="%23fff" opacity="0.1"/><circle cx="1000" cy="200" r="100" fill="%23fff" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 分类筛选 */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: #f5f5f5;
    border: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border-color: #ff6b6b;
}

/* 直播列表 */
.live-section,
.upcoming-section {
    background: white;
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    margin: 1rem auto;
    border-radius: 2px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.live-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f0f0f0;
}

.live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #ff6b6b;
}

.live-card-header {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.live-card-body {
    padding: 1.5rem;
}

.match-teams {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.match-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.match-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b6b;
    font-weight: 500;
}

.category-tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

/* 即将开始的比赛 */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upcoming-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.upcoming-item:hover {
    border-color: #ff6b6b;
    transform: translateX(5px);
}

.upcoming-info {
    flex: 1;
}

.upcoming-teams {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.upcoming-time {
    color: #666;
    font-size: 0.9rem;
}

.upcoming-action {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upcoming-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 播放器弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: white;
    max-width: 900px;
    margin: 5% auto;
    border-radius: 20px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.player-container {
    margin-bottom: 2rem;
}

#livePlayer {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 10px;
}

.player-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.player-info p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .live-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        max-width: 95%;
    }
    
    #livePlayer {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .live-card-body {
        padding: 1rem;
    }
    
    .match-teams {
        font-size: 1rem;
    }
}

/* 特色服务区域 */
.features-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e74c3c;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 赛程表样式 */
.schedule-section,
.scores-section {
    background: white;
    padding: 3rem 0;
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.schedule-tab {
    background: #f8f9fa;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.schedule-tab.active,
.schedule-tab:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #e8f4fd;
    transform: translateX(5px);
}

.schedule-time {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.schedule-teams {
    font-weight: 600;
    color: #333;
}

.schedule-league {
    color: #666;
    font-size: 0.9rem;
}

.schedule-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-live {
    background: #27ae60;
    color: white;
}

.status-upcoming {
    background: #f39c12;
    color: white;
}

.status-ended {
    background: #95a5a6;
    color: white;
}

/* 比分实时更新样式 */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.score-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.score-card:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-league {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.score-time {
    color: #666;
    font-size: 0.9rem;
}

.score-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team-info {
    flex: 1;
    text-align: center;
}

.team-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.team-score {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.score-status {
    text-align: center;
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-first-half {
    background: #3498db;
    color: white;
}

.status-second-half {
    background: #e74c3c;
    color: white;
}

.status-half-time {
    background: #f39c12;
    color: white;
}

/* 更新导航菜单样式 */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #dfe6e9;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border-color: #ff4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

/* 更新筛选标签样式 */
.filter-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    overflow-x: auto;
}

.tab-btn {
    background: #f5f5f5;
    border: 2px solid transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border-color: #ff4757;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
}

/* 播放器优化样式 */
.stream-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.stream-selector label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.stream-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.stream-selector select option {
    background: #2c3e50;
}

.player-quality {
    position: absolute;
    bottom: 70px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.quality-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-btn:hover,
.quality-btn.active {
    background: #ff4757;
    border-color: #ff4757;
}

.player-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.stat-item span {
    font-weight: 600;
    color: #ff4757;
}

/* 直播卡片优化 */
.live-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.live-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: #ff4757;
}

.live-card-header {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.5);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* 页面背景优化 */
.live-section,
.upcoming-section,
.features-section,
.schedule-section,
.scores-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    padding: 3rem;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #ff4757;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3742;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 71, 87, 0.3);
    border-radius: 50%;
    border-top-color: #ff4757;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stream-selector {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .player-quality {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 10px;
    }
    
    .player-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}