/* 梦歌体育 - 世界杯主题样式 */
/* 配色：国旗绿 + 足球白 + 激情红 */

:root {
    --primary: #1a6b3c;      /* 足球绿 */
    --primary-light: #2d8a4e;
    --accent: #e74c3c;       /* 激情红 */
    --accent-yellow: #f39c12; /* 金牌黄 */
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e1e8ed;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --radius: 12px;
}

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

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

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

/* ========== 导航栏 ========== */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

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

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d4a28 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

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

.hero-desc {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

/* ========== 通用区块 ========== */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-white);
}

.section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

/* ========== 文章卡片 ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}

.article-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========== 关于我们 ========== */
.about-content {
    max-width: 750px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-text ul {
    list-style: none;
    padding: 15px 0;
}

.about-text li {
    padding: 8px 0;
    font-size: 1.05rem;
}

.highlight {
    background: #fff8e1;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
    font-weight: 600;
    margin-top: 10px;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== 导航卡片 ========== */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.nav-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.nav-card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.nav-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== 页脚 ========== */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 6px;
}

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

.footer-section a {
    color: white;
    opacity: 0.85;
    text-decoration: none;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

/* ========== 联系页面 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-info-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-info-box p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.contact-qr {
    text-align: center;
    padding: 20px;
    background: #f0f9f4;
    border-radius: var(--radius);
    margin-top: 20px;
}

.contact-qr p {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== 赛程表 ========== */
.schedule-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.match-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-time {
    font-size: 0.9rem;
    color: var(--text-light);
    min-width: 130px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

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

.match-vs {
    color: var(--text-light);
    font-size: 0.9rem;
}

.match-group {
    font-size: 0.85rem;
    color: var(--accent-yellow);
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* ========== 新手指南 ========== */
.guide-toc {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.guide-toc h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.guide-toc a {
    display: block;
    padding: 6px 0;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

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

.guide-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.guide-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.guide-section p,
.guide-section li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.guide-section ul,
.guide-section ol {
    padding-left: 20px;
}

.tip-box {
    background: #e8f5e9;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid var(--accent-yellow);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
}

/* ========== 文章详情页 ========== */
.article-header {
    text-align: center;
    padding: 40px 0 30px;
    max-width: 750px;
    margin: 0 auto;
}

.article-header .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-header h1 {
    font-size: 2rem;
    color: var(--text);
    line-height: 1.4;
}

.article-body {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.article-body h2 {
    color: var(--primary);
    margin: 35px 0 15px;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 18px;
    line-height: 1.9;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.prediction-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--radius);
    padding: 24px;
    margin: 25px 0;
    border: 1px solid #a5d6a7;
}

.prediction-box h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .match-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 5px;
    }
}
