/* 极简微立体风格 - 莫兰迪色调 */
:root {
    --primary: #8E6C88;  /* 莫兰迪紫 */
    --secondary: #79B790; /* 莫兰迪绿 */
    --accent: #E3B5A4;   /* 莫兰迪粉 */
    --bg: #F5F0E6;       /* 米白背景 */
    --text: #5A5A5A;     /* 深灰文字 */
    --light: #FFFFFF;     /* 纯白 */
    --shadow: 0 3px 10px rgba(0,0,0,0.08);
    --deep-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 创新的不对称头部 */
header {
    background: var(--light);
    padding: 2rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-bottom: -3rem;
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

nav {
    align-self: flex-end;
    margin-top: -2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text);
    font-weight: 300;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::before {
    width: 100%;
    left: 0;
}

/* 创新的内容容器 */
.main-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.content-area {
    background: var(--light);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--accent);
}

/* 创新的卡片设计 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--deep-shadow);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--text);
    transition: color 0.3s;
    line-height: 1.4;
}

.article-card:hover .card-title {
    color: var(--primary);
}

.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary);
}

/* 创新的分类标签 */
.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--accent);
    color: var(--light);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* 文章详情页创新设计 */
.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--accent);
}

.article-title {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--deep-shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* 创新的分页设计 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 30px;
    background: var(--light);
    color: var(--text);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--light);
}

/* 创新的侧边栏组件 */
.sidebar-card {
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 400;
}

/* 创新的页脚设计 */
footer {
    background: var(--primary);
    color: var(--light);
    padding: 3rem 0;
    text-align: center;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .header-container {
        align-items: center;
    }
    
    nav {
        align-self: center;
        margin-top: 1rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    footer {
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    }
}