/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 天气预报 */
.weather-banner {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.weather-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-cities {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.weather-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.update-time {
    font-size: 10px;
    margin-bottom: 3px;
    opacity: 0.9;
}

.city-name {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 14px;
}

.city-temp {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}

.city-condition {
    font-size: 12px;
    opacity: 0.9;
}

/* 导航栏 */
.navbar {
    margin-top: 50px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #1a365d;
    color: white;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff7f00;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* 首页大图 */
.hero {
    position: relative;
    height: 600px;
    margin-top: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d, #2c5282);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #ff7f00;
    color: white;
}

.btn-primary:hover {
    background-color: #ff9500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

/* 赛事日历 */
.event-calendar {
    padding: 80px 0;
    background-color: white;
}

.event-calendar h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a365d;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.calendar-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ff7f00;
}

.calendar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.calendar-item .time {
    font-size: 18px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 10px;
}

.calendar-item .league {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.calendar-item .match {
    font-size: 16px;
    font-weight: bold;
}

/* 足球直播 */
.football-live, .nba-live {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.football-live h2, .nba-live h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a365d;
}

.league-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn.active {
    background-color: #1a365d;
    color: white;
    border-color: #1a365d;
}

.tab-btn:hover {
    background-color: #f0f0f0;
}

.tab-btn.active:hover {
    background-color: #2c5282;
}

.league-content {
    display: none;
}

.league-content.active {
    display: block;
}

/* 开服表风格对阵表 */
.server-schedule {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr;
    background-color: #1a365d;
    color: white;
    padding: 15px;
    font-weight: bold;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.schedule-item:hover {
    background-color: #f9f9f9;
}

.schedule-item:last-child {
    border-bottom: none;
}

.time-col {
    font-weight: bold;
    color: #1a365d;
}

.match-col {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-col .team {
    font-weight: bold;
}

.match-col .vs {
    color: #666;
}

.status-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.status.live {
    background-color: #ff4444;
    color: white;
    animation: pulse 1.5s infinite;
}

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

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.link-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-link {
    padding: 8px 15px;
    background-color: #1a365d;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.watch-link:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}

/* 直播回放 */
.live-replay {
    padding: 80px 0;
    background-color: white;
}

.live-replay h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a365d;
}

.replay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.replay-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.replay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.replay-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.replay-card h3 {
    padding: 20px;
    padding-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.replay-card p {
    padding: 0 20px;
    padding-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.replay-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
}

/* 体育资讯 */
.sports-news {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.sports-news h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a365d;
}

.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
}

/* 精彩瞬间 */
.highlights {
    padding: 80px 0;
    background-color: white;
}

.highlights h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a365d;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.highlight-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.highlight-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 用户评论 */
.user-comments {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.user-comments h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a365d;
}

.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.comment-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.user-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.comment-time {
    font-size: 14px;
    color: #999;
}

.comment-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.like-btn, .reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.like-btn:hover, .reply-btn:hover {
    color: #1a365d;
}

/* 热搜模块 */
.hot-search-section {
    padding: 60px 0;
    background-color: white;
    display: block;
}

.hot-search-content {
    display: flex;
    justify-content: center;
}

.hot-search-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 800px;
    color: white;
}

.hot-search-title {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hot-search-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hot-search-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 3px solid #ff7f00;
}

.hot-search-list li:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hot-search-list a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.hot-search-list a:hover {
    color: #ff7f00;
}

/* 热门标签 */
.tags-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #1a365d;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag-item {
    padding: 8px 18px;
    background-color: white;
    color: #1a365d;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: #1a365d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

/* 页脚 */
.footer {
    background-color: #1a365d;
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff7f00;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.flinks a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.flinks a:hover {
    color: #ff7f00;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ff7f00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #1a365d;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

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

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .schedule-header,
    .schedule-item {
        grid-template-columns: 1fr 2fr 1fr 1fr;
        font-size: 14px;
    }

    .match-col {
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .schedule-header,
    .schedule-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .match-col {
        flex-direction: column;
        align-items: center;
    }

    .news-grid,
    .replay-grid,
    .comments-grid {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 按钮动画 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* 卡片悬停效果 */
.replay-card,
.news-card,
.comment-card {
    position: relative;
    overflow: hidden;
}

.replay-card::before,
.news-card::before,
.comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05), rgba(255, 127, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.replay-card:hover::before,
.news-card:hover::before,
.comment-card:hover::before {
    opacity: 1;
}