/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --gray-color: #666666;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 天气预报 */
.weather-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: top 0.3s ease;
    height: 38px;
    overflow: hidden;
}

.weather-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    height: 100%;
}

.weather-update-time {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-cities {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    flex: 2;
}

.weather-city {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 90px;
    justify-content: space-between;
}

.weather-city:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.city-name {
    font-weight: 600;
    font-size: 0.7rem;
    min-width: 28px;
}

.city-weather {
    font-size: 0.65rem;
    opacity: 0.9;
    min-width: 22px;
}

.city-temperature {
    font-weight: 600;
    font-size: 0.7rem;
    min-width: 30px;
    text-align: right;
}

@media (max-width: 768px) {
    .weather-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto;
        padding: 8px 0;
    }
    
    .weather-cities {
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .weather-banner {
        height: auto;
        position: relative;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.logo {
    height: 50px;
}

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

.navbar-menu li {
    margin-left: 30px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    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%;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* 首页大图 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 118px;
}

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

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius);
    color: white;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

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

/* 赛事预告 */
.event-preview {
    padding: 80px 0;
    background-color: white;
}

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

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

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

.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-league {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.team {
    font-size: 1.1rem;
    font-weight: 600;
}

.vs {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: 600;
}

.event-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.event-status.live {
    background-color: var(--danger-color);
    color: white;
    animation: pulse 2s infinite;
}

.event-status.upcoming {
    background-color: var(--warning-color);
    color: white;
}

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

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

.tab-btn {
    padding: 12px 24px;
    border: none;
    background-color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

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

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

.tab-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tab-pane {
    display: none;
    padding: 30px;
}

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

/* 开服表风格对阵表 */
.schedule-container {
    width: 100%;
    border-collapse: collapse;
}

.schedule-header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

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

.schedule-time {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.team-home {
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.team-away {
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.schedule-status {
    text-align: center;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.schedule-status.live {
    background-color: var(--danger-color);
    color: white;
    animation: pulse 2s infinite;
}

.schedule-status.upcoming {
    background-color: var(--warning-color);
    color: white;
}

/* NBA直播 */
.nba-live {
    padding: 80px 0;
    background-color: white;
}

.nba-schedule .schedule-header {
    background-color: var(--secondary-color);
}

.nba-schedule .schedule-time {
    color: var(--secondary-color);
}

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

.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(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

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

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

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

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

.replay-content {
    padding: 20px;
}

.replay-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.replay-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.replay-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.replay-link:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

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

.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    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: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

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

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

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.3;
}

.news-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.news-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

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

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

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

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

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.highlight-card:hover .highlight-overlay {
    opacity: 1;
}

.highlight-icon {
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.highlight-icon:hover {
    transform: scale(1.2);
}

.highlight-content {
    padding: 20px;
}

.highlight-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.highlight-content p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 用户评论 */
.user-comments {
    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(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

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

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

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

.comment-content {
    flex: 1;
}

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

.comment-header h4 {
    color: var(--dark-color);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.comment-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    line-height: 1.6;
}

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

.comment-like, .comment-reply {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.comment-like:hover, .comment-reply:hover {
    color: var(--primary-color);
}

/* 热搜模块 */
.hot-search-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: none;
}

/* 让搜索引擎蜘蛛看到热搜模块 */
@media screen and (max-width: 9999px) {
    .hot-search-section {
        display: block;
        position: absolute;
        left: -9999px;
        top: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
}

.hot-search-content {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hot-search-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hot-search-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.hot-search-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

.hot-search-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.hot-search-list {
    list-style: none;
}

.hot-search-list li {
    margin-bottom: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.hot-search-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.hot-search-list li:hover {
    transform: translateX(8px);
}

.hot-search-list a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.hot-search-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 热门标签 */
.tags-section {
    padding: 80px 0;
    background-color: white;
}

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

.tag-item {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .tags-list {
        justify-content: flex-start;
    }
    
    .tag-item {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

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

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.friend-links {
    margin-bottom: 20px;
}

.friend-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.friend-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

.copyright a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-menu ul {
        flex-direction: column;
    }

    .navbar-menu li {
        margin: 10px 0;
    }

    .navbar-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .event-teams {
        flex-direction: column;
        gap: 10px;
    }

    .team {
        text-align: center;
    }

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

    .schedule-teams {
        flex-direction: column;
        gap: 10px;
    }

    .team-home,
    .team-away {
        text-align: center;
    }

    .comment-card {
        flex-direction: column;
        text-align: center;
    }

    .comment-actions {
        justify-content: center;
    }
}

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

    .hero-content {
        padding: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .event-card,
    .replay-card,
    .news-card,
    .highlight-card,
    .comment-card {
        padding: 20px;
    }

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

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

/* 图片加载样式 */
img {
    max-width: 100%;
    height: auto;
}

/* 选择文本样式 */
::selection {
    background-color: var(--primary-color);
    color: white;
}