/* 极简主义不对称布局 - 大地色系 */
:root {
    --primary-color: #8B5A2B;
    --secondary-color: #D2B48C;
    --accent-color: #A0522D;
    --bg-color: #FAF9F6;
    --text-color: #333;
    --light-gray: #E5E5E5;
    --card-shadow: 3px 3px 0 0 rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 不对称头部设计 */
header {
    background-color: var(--bg-color);
    padding: 30px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
    transform: rotate(-5deg);
    display: inline-block;
    margin-right: 40px;
}

nav {
    margin-top: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 25px;
}

nav ul li a {
    padding: 5px 0;
    font-weight: 300;
    font-size: 16px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 不对称网格布局 */
.main-content {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* 卡片设计 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background-color: white;
    border: 1px solid var(--light-gray);
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.article-card:nth-child(odd) {
    transform: rotate(1deg);
}

.article-card:nth-child(even) {
    transform: rotate(-1deg);
}

.article-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--card-shadow);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
}

.card-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 20px;
    border-top: 1px dashed var(--light-gray);
    padding-top: 10px;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 30px 0;
    border: 1px solid var(--light-gray);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
    font-weight: 300;
}

.article-content p {
    margin-bottom: 25px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 8px 20px;
    border: 1px solid var(--light-gray);
    font-size: 14px;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 友情链接 */
.friend-links {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.friend-links h3 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 5px 15px;
    border: 1px solid var(--light-gray);
    font-size: 13px;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.copyright {
    font-size: 14px;
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        transform: rotate(0deg);
        margin-bottom: 20px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .article-card {
        transform: rotate(0deg) !important;
    }
    
    .article-title {
        font-size: 26px;
    }
}