/* 扁平化设计 - 黄色色调 */
:root {
    --primary-color: #FFC107;
    --secondary-color: #FFA000;
    --dark-color: #212121;
    --light-color: #FAFAFA;
    --text-color: #424242;
    --accent-color: #FF5722;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 扁平化头部 */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 卡片式内容区域 */
.main-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 扁平化卡片 */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
    color: #757575;
}

/* 分类标签 */
.tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: bold;
}

/* 文章详情 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #757575;
    font-size: 14px;
}

.article-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border-bottom: 5px solid var(--primary-color);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 友情链接 */
.links-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.links-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.links-container a {
    padding: 8px 15px;
    background-color: #FFF9C4;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}