/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 技术备注 */
.tech-note {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    z-index: 1000;
    border-bottom-left-radius: 5px;
}

/* 天气预报 */
.weather-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 0;
    transition: transform 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.weather-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.weather-time {
    font-size: 14px;
    font-weight: 500;
    margin-right: 20px;
}

.weather-cities {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.weather-city {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
}

.city-name {
    font-weight: 500;
}

.city-weather {
    opacity: 0.9;
}

.city-temp {
    font-weight: 500;
}

.city-update {
    font-size: 12px;
    opacity: 0.8;
}

/* 热搜模块 */
.hot-search-section {
    padding: 30px 0;
    background-color: #f5f5f5;
}

.hot-search-content {
    display: flex;
    justify-content: center;
}

.hot-search-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

.hot-search-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.hot-search-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.hot-search-list li {
    padding: 5px 0;
}

.hot-search-list a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.hot-search-list a:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

/* 热门标签 */
.tags-section {
    padding: 30px 0;
    background-color: white;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: -1px; /* 移除与天气预报之间的间隙 */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.nav-link:hover {
    background-color: #333;
    color: #ff6b35;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 60px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

/* 比赛预告 */
.match-preview {
    padding: 60px 0;
    background-color: #fff;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.preview-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.preview-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.preview-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-teams .team {
    flex: 1;
}

.preview-teams .vs {
    margin: 0 10px;
    color: #ff6b35;
    font-weight: bold;
}

.preview-league {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

/* 足球直播 */
.football-live {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.league-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.league-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
}

/* 开服表风格对阵表 */
.server-schedule {
    width: 100%;
}

.schedule-header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr;
    background-color: #f0f0f0;
    padding: 10px 20px;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.schedule-row:hover {
    background-color: #f8f9fa;
}

.schedule-match {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-match .team-home {
    font-weight: bold;
}

.schedule-match .vs {
    color: #ff6b35;
    font-weight: bold;
}

.schedule-status {
    color: #666;
}

/* NBA直播 */
.nba-live {
    padding: 60px 0;
    background-color: #fff;
}

.nba-schedule {
    width: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 直播回放 */
.live-replay {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.replay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.replay-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.replay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.replay-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.replay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.replay-card:hover .replay-image img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: rgba(255, 107, 53, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.replay-content {
    padding: 20px;
}

.replay-content h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.replay-content p {
    margin-bottom: 15px;
    color: #666;
}

/* 体育资讯 */
.sports-news {
    padding: 60px 0;
    background-color: #fff;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}

.news-content h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.news-content p {
    margin-bottom: 15px;
    color: #666;
}

/* 赛事分析 */
.match-analysis {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.analysis-image {
    height: 200px;
    overflow: hidden;
}

.analysis-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.analysis-card:hover .analysis-image img {
    transform: scale(1.1);
}

.analysis-content {
    padding: 20px;
}

.analysis-content h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.analysis-content p {
    margin-bottom: 15px;
    color: #666;
}

/* 赛事日历 */
.match-calendar {
    padding: 60px 0;
    background-color: #fff;
}

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.calendar-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: #ff6b35;
    color: #fff;
}

.calendar-month {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.calendar-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.day-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.day-week {
    font-size: 14px;
    color: #666;
}

.day-date {
    font-size: 18px;
    color: #ff6b35;
}

.day-events {
    margin-top: 10px;
}

.event {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-time {
    font-size: 14px;
    color: #666;
}

.event-name {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

/* 球队排名 */
.team-rankings {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.rankings-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rankings-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ranking-table {
    display: none;
}

.ranking-table.active {
    display: block;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 15px;
    text-align: left;
}

.ranking-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ranking-table tr:hover {
    background-color: #f8f9fa;
}

/* 精彩集锦 */
.highlights {
    padding: 60px 0;
    background-color: #fff;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.highlight-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.1);
}

.highlight-content {
    padding: 20px;
}

.highlight-content h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.highlight-content p {
    margin-bottom: 15px;
    color: #666;
}

/* 赛事预测 */
.predictions {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.prediction-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.prediction-header h3 {
    color: #1a1a1a;
    font-size: 1.1rem;
}

.prediction-time {
    font-size: 14px;
    color: #666;
}

.prediction-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.prediction-teams .team {
    flex: 1;
    text-align: center;
}

.team-odds {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    color: #ff6b35;
}

.draw-odds {
    color: #666;
    font-weight: bold;
}

.prediction-analysis {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.prediction-analysis p {
    margin-bottom: 5px;
    color: #1a1a1a;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h3 {
    margin-bottom: 15px;
    color: #ff6b35;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
}

.friend-links {
    margin-bottom: 20px;
}

.friend-links h3 {
    margin-bottom: 15px;
    color: #ff6b35;
}

.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.flink-list a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.flink-list a:hover {
    color: #ff6b35;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
}

.copyright a {
    color: #ff6b35;
    text-decoration: none;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 1fr 2fr 1fr 1fr;
        font-size: 14px;
    }

    .calendar-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .preview-cards,
    .replay-grid,
    .news-grid,
    .analysis-grid,
    .highlights-grid,
    .predictions-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .schedule-match {
        justify-content: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f7931e;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b35;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}