/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e60012;
    --primary-dark: #c4000f;
    --secondary: #1a1a2e;
    --accent: #00d4aa;
    --live: #ff3333;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ==================== 顶部导航 ==================== */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--secondary);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    margin-right: 20px;
    opacity: 0.9;
}

.top-right a {
    color: #fff;
    margin-left: 20px;
    opacity: 0.8;
}

.top-right a:hover {
    opacity: 1;
    color: var(--accent);
}

.top-right a.lang-toggle {
    background: rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.top-right a.lang-toggle:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
}
#lang-label { margin-left: 4px; }

.main-nav {
    padding: 12px 0;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 32px;
    margin-right: 8px;
}

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

.nav-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background: var(--primary);
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 24px;
    padding: 4px;
    width: 260px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    flex: 1;
}

.search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ==================== 实时比分滚动条 ==================== */
.live-scores-ticker {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d2d44 100%);
    color: #fff;
    padding: 12px 0;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: var(--primary);
    padding: 8px 20px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    z-index: 2;
}

.text-live {
    color: var(--live);
    animation: pulse 1.5s infinite;
}

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

.ticker-content {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ticker-item .ticker-score {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

/* ==================== 首页英雄区 ==================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-left {
    position: relative;
}

.match-carousel {
    background: linear-gradient(135deg, #1a5f2a 0%, #0d3d1a 100%);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 360px;
    position: relative;
}

.carousel-slide {
    display: none;
    padding: 30px;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.match-highlight {
    color: #fff;
    text-align: center;
}

.match-league {
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.team {
    text-align: center;
}

.team img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid rgba(255,255,255,0.3);
}

.team span {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.match-score {
    text-align: center;
}

.score {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
}

.match-time {
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
    margin: 8px 0;
}

.live-indicator {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.live-indicator .pulse {
    width: 8px;
    height: 8px;
    background: var(--live);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.match-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 14px;
    opacity: 0.9;
}

.match-stats i {
    margin-right: 5px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots span.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* 赛程面板 */
.schedule-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sport-tabs {
    display: flex;
    gap: 4px;
}

.sport-tabs span {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.sport-tabs span.active,
.sport-tabs span:hover {
    background: var(--primary);
    color: #fff;
}

.schedule-list {
    padding: 10px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.schedule-item:hover {
    background: var(--bg);
}

.schedule-time {
    font-size: 13px;
    color: var(--text-muted);
    width: 50px;
    text-align: center;
}

.schedule-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.schedule-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.schedule-team img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.schedule-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.status-live {
    background: rgba(255,51,51,0.1);
    color: var(--live);
    font-weight: 600;
}

.status-upcoming {
    background: var(--bg);
    color: var(--text-light);
}

.status-finished {
    background: rgba(0,212,170,0.1);
    color: var(--accent);
}

/* ==================== 内容网格 ==================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 新闻区块 */
.news-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: var(--primary);
}

.more {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.sub-tabs {
    display: flex;
    gap: 8px;
}

.sub-tabs span {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.sub-tabs span.active,
.sub-tabs span:hover {
    background: var(--primary);
    color: #fff;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--bg);
}

.news-thumb {
    width: 180px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-item:hover .news-title {
    color: var(--primary);
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.news-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.news-card:hover {
    background: var(--bg);
}

.news-card .news-thumb {
    width: 120px;
    height: 90px;
}

.news-card .news-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--secondary) 0%, #2d2d44 100%);
    color: #fff;
}

.widget-header h3 {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 积分榜表格 */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.standings-table th,
.standings-table td {
    padding: 10px 8px;
    text-align: center;
}

.standings-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
}

.standings-table tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

.standings-table tr:hover {
    background: rgba(230,0,18,0.05);
}

.standings-table .rank {
    width: 30px;
    font-weight: 700;
}

.standings-table .rank.top-4 {
    color: var(--primary);
}

.standings-table .team-name {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.standings-table .team-name img {
    width: 20px;
    height: 20px;
}

/* 射手榜 */
.scorer-list {
    list-style: none;
    padding: 10px;
}

.scorer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.scorer-item:hover {
    background: var(--bg);
}

.scorer-rank {
    width: 24px;
    height: 24px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.scorer-rank.top {
    background: var(--primary);
    color: #fff;
}

.scorer-info {
    flex: 1;
}

.scorer-name {
    font-weight: 600;
    font-size: 14px;
}

.scorer-team {
    font-size: 12px;
    color: var(--text-muted);
}

.scorer-goals {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

/* 标签云 */
.tag-cloud {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.tag.hot {
    background: rgba(230,0,18,0.1);
    color: var(--primary);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--secondary);
    color: #fff;
    margin-top: 40px;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

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

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-col ul li a:hover {
    color: var(--accent);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .search-box {
        width: 180px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-thumb {
        width: 100%;
        height: 180px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==================== 通用工具类 ==================== */
.text-live {
    color: var(--live);
}

.text-accent {
    color: var(--accent);
}

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

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