/* 2026世界杯 - 全局样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* 头部 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

header h1 {
    font-size: 24px;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.2);
}

/* 主体内容 */
main {
    background: white;
    padding: 30px 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tab:hover {
    background: #e0e0e0;
}

.tab.active {
    background: #667eea;
    color: white;
}

/* 比赛卡片 */
.match-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.match-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.match-group {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.match-time {
    color: #666;
    font-size: 14px;
}

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

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-flag {
    font-size: 48px;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.match-vs {
    font-size: 24px;
    color: #999;
    font-weight: bold;
}

.match-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.match-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.match-link:hover {
    background: #5568d3;
}

/* 积分榜 */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.standings-table th,
.standings-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.standings-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.standings-table tr:hover {
    background: #f9f9f9;
}

.standings-table .team-cell {
    text-align: left;
    font-weight: 500;
}

.rank-1, .rank-2, .rank-3 {
    background: #e8f5e9;
}

/* 文章样式 */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.article-content h1 {
    font-size: 28px;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
}

.article-content h2 {
    font-size: 22px;
    color: #444;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.article-content h3 {
    font-size: 18px;
    color: #555;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 15px 0;
    text-align: justify;
}

.article-content strong {
    color: #333;
    font-weight: 600;
}

.article-content em {
    color: #666;
    font-style: italic;
}

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 8px 0;
    line-height: 1.8;
    color: #444;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    color: #666;
    border-radius: 0 4px 4px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.article-content th, .article-content td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.article-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.article-content tr:hover {
    background: #f8f9fa;
}

.article-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-bottom-color: #667eea;
}

/* 广告位 */
.ad-banner {
    background: #f8f8f8;
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    color: #999;
    border-radius: 8px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-inline {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-sidebar {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
    min-height: 600px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-bottom: 5px;
}

/* 响应式广告 */
@media (max-width: 768px) {
    .ad-banner-sidebar {
        width: 100%;
        min-height: 250px;
    }
}

/* 页脚 */
footer {
    background: #333;
    color: #999;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        font-size: 20px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }

    h2 {
        font-size: 24px;
    }

    .match-teams {
        flex-direction: column;
        gap: 20px;
    }

    .team-flag {
        font-size: 36px;
    }

    .match-vs {
        font-size: 20px;
    }

    .standings-table {
        font-size: 12px;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
    }

    .article h1 {
        font-size: 24px;
    }

    .article h2 {
        font-size: 20px;
    }
}
