/* ===== 品牌色板 ===== */
:root {
    --primary-color: #1A5C2A;
    --primary-light: #2E7D32;
    --gold: #F5D742;
    --gold-light: #FFF3CD;
    --bg-light: #E8F5E9;
    --bg-white: #FFFFFF;
    --text-dark: #1a1a2e;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --shadow: 0 2px 15px 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;
}

/* ===== 全局重置 ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* ===== 字体层级 ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p { font-size: 15px; color: var(--text-secondary); }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero区 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0D3B1A 50%, #1A5C2A 100%);
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    height: 60px;
    margin-bottom: 30px;
    filter: brightness(1.1);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 15px 30px;
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #E6C93A;
}

/* ===== 分类筛选 ===== */
.categories-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.categories-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: white;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ===== 文章列表 ===== */
.articles-section {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image::before {
    content: '⚽';
    font-size: 60px;
    opacity: 0.3;
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

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

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-articles p {
    font-size: 18px;
    color: var(--text-secondary);
}

.admin-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== 文章详情页 ===== */
.article-detail {
    padding: 100px 0 60px;
    min-height: 80vh;
    background: white;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.article-category {
    background: var(--gold);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.article-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.article-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-main);
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 20px 0;
    width: 100%;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 5px;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }
    
    .search-input {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-detail {
        padding: 80px 0 40px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 40px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .card-title {
        font-size: 16px;
    }
}