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

:root {
    --primary-color: #ff6b00;
    --secondary-color: #3a86ff;
    --accent-color: #8338ec;
    --dark-color: #1a1a2e;
    --light-color: #f5f5f5;
    --success-color: #38b000;
    --warning-color: #ffbe0b;
    --danger-color: #ff0035;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

/* 导航栏 */
.header {
    background-color: var(--dark-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

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

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: white;
    color: var(--dark-color);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

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

.menu-icon {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: var(--transition);
}

/* 英雄区 */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.4));
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* 特色功能 */
.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-icon-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
}

.feature-icon-2 {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.feature-icon-3 {
    background: linear-gradient(135deg, var(--success-color), #00b4d8);
}

.feature-icon-4 {
    background: linear-gradient(135deg, var(--accent-color), #d9376e);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-description {
    color: var(--text-light);
}

/* 足球直播 */
.football-section,
.nba-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.tab-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.tab-content {
    display: none;
}

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

/* 开服表风格的对阵表 */
.server-list {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.server-item {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.server-item:hover {
    background-color: rgba(255, 107, 0, 0.05);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--dark-color);
    color: white;
}

.server-time {
    font-weight: 600;
    color: var(--primary-color);
}

.server-league {
    font-size: 14px;
    opacity: 0.9;
}

.server-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.server-status.live {
    background-color: var(--danger-color);
    color: white;
}

.server-status.upcoming {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.server-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-name {
    font-weight: 600;
    font-size: 16px;
}

.team-vs {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.server-link {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.server-link:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
}

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

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

.replay-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.replay-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.replay-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.replay-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.replay-card:hover .replay-img img {
    transform: scale(1.1);
}

.replay-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.replay-content {
    padding: 20px;
}

.replay-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.replay-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.replay-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.replay-link:hover {
    color: #e55a00;
    transform: translateX(5px);
}

/* 体育资讯 */
.news-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

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

.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.news-date {
    color: var(--text-light);
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.news-link:hover {
    color: #e55a00;
}

/* 实时比分 */
.scores-section {
    padding: 80px 0;
    background-color: white;
}

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

.score-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.score-league {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.score-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.score-team {
    font-weight: 600;
}

.score-result {
    font-weight: 700;
    color: var(--primary-color);
}

.score-time {
    font-size: 14px;
    color: var(--text-light);
}

/* 赛事预测 */
.predictions-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.prediction-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
}

.prediction-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.prediction-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prediction-team {
    font-weight: 600;
}

.prediction-vs {
    font-size: 14px;
    color: var(--text-light);
}

.prediction-league {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.prediction-percentage {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.prediction-home {
    color: var(--primary-color);
    font-weight: 600;
}

.prediction-draw {
    color: var(--warning-color);
    font-weight: 600;
}

.prediction-away {
    color: var(--secondary-color);
    font-weight: 600;
}

.prediction-result {
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    margin-top: 10px;
}

/* 排行榜 */
.rankings-section {
    padding: 80px 0;
    background-color: white;
}

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

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

.ranking-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.ranking-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.ranking-title {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ranking-table th {
    background-color: rgba(255, 107, 0, 0.1);
    font-weight: 600;
}

.ranking-table tr:hover {
    background-color: rgba(255, 107, 0, 0.05);
}

/* 精彩瞬间 */
.highlights-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.highlight-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.highlight-card:hover img {
    transform: scale(1.1);
}

.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: var(--transition);
}

.highlight-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.highlight-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.highlight-link:hover {
    color: white;
}

/* 用户评论 */
.comments-section {
    padding: 80px 0;
    background-color: white;
}

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

.comment-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    gap: 15px;
}

.comment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.comment-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

/* 友情链接 */
.flink-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.flink-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 14px;
}

.flink-list a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-links-title,
.footer-contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact-info {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav {
        order: 3;
        width: 100%;
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .nav-item {
        margin-left: 0;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid,
    .replay-grid,
    .news-grid,
    .scores-grid,
    .predictions-grid,
    .rankings-grid,
    .highlights-grid,
    .comments-grid {
        grid-template-columns: 1fr;
    }

    .team-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .server-body {
        flex-direction: column;
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-card,
    .replay-card,
    .news-card,
    .score-card,
    .prediction-card,
    .ranking-card,
    .highlight-card,
    .comment-card {
        padding: 15px;
    }

    .footer-content {
        gap: 30px;
    }
}

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0);
}

/* 卡片悬停效果 */
.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* 热搜榜 */
.hotsearch-section {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hotsearch-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotsearch-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
}

.hotsearch-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hotsearch-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.hotsearch-list {
    list-style: none;
}

.hotsearch-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.hotsearch-rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 600;
}

.hotsearch-list a {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotsearch-list a:hover {
    color: var(--primary-color);
}

.hotsearch-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 10px;
    font-weight: 500;
}

.hotsearch-tag.hot {
    background-color: var(--danger-color);
    color: white;
}

.hotsearch-tag.new {
    background-color: var(--success-color);
    color: white;
}

/* 响应式设计 - 热搜榜 */
@media (max-width: 768px) {
    .hotsearch-grid {
        grid-template-columns: 1fr;
    }
    
    .hotsearch-box {
        padding: 15px;
    }
    
    .hotsearch-title {
        font-size: 16px;
    }
    
    .hotsearch-list li {
        font-size: 13px;
    }
}