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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    text-align: center;
}

.site-title {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

/* 日期导航 */
.date-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.date-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.date-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 新闻卡片 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.news-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
}

.news-category {
    color: #667eea;
    font-weight: bold;
}

.news-time {
    color: #999;
}

.news-content {
    padding: 15px;
}

.news-summary {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85em;
    color: #666;
}

.importance-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: white;
}

.importance-5 { background: #dc3545; }
.importance-4 { background: #fd7e14; }
.importance-3 { background: #ffc107; color: #333; }
.importance-2 { background: #17a2b8; }
.importance-1 { background: #6c757d; }

/* 重要新闻 */
.important-news {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

/* 历史记录 */
.history-section {
    margin-top: 40px;
}

.history-list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
}

.history-item {
    min-width: 180px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.history-date {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.history-stats {
    font-size: 0.9em;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .site-title {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .date-nav {
        justify-content: center;
    }
}

/* 工具样式 */
.tools {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 8px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tool-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 页脚 */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9em;
}
