/* 拟物化设计 - 黏土橙色调 */
:root {
    --clay-orange: #e07a5f;
    --clay-dark: #3d405b;
    --clay-light: #f4f1de;
    --clay-accent: #f2cc8f;
    --clay-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --clay-text: #3d405b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

body {
    background-color: var(--clay-light);
    color: var(--clay-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--clay-orange);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--clay-dark);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 拟物化头部设计 */
header {
    background-color: var(--clay-orange);
    padding: 20px 0;
    box-shadow: var(--clay-shadow);
    border-bottom: 4px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

/* 拟物化导航按钮 */
nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 10px 20px;
    background-color: white;
    color: var(--clay-orange);
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--clay-shadow);
    border-bottom: 3px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* 黏土质感内容区域 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: var(--clay-shadow);
    border-bottom: 4px solid rgba(0,0,0,0.1);
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--clay-accent);
    color: var(--clay-orange);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--clay-orange);
}

/* 黏土卡片设计 */
.clay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.clay-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--clay-shadow);
    border-bottom: 4px solid rgba(0,0,0,0.1);
}

.clay-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--clay-accent);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--clay-dark);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--clay-orange);
    margin-top: 15px;
}

/* 分类标签 - 黏土风格 */
.clay-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--clay-accent);
    color: var(--clay-dark);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--clay-orange);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--clay-dark);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--clay-shadow);
    border-bottom: 4px solid rgba(0,0,0,0.1);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--clay-shadow);
}

/* 拟物化分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 24px;
    border-radius: 50px;
    background-color: var(--clay-orange);
    color: white;
    font-weight: 600;
    box-shadow: var(--clay-shadow);
    border-bottom: 3px solid rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}

/* 黏土风格友情链接 */
.friend-links {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--clay-shadow);
    border-bottom: 4px solid rgba(0,0,0,0.1);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--clay-orange);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 16px;
    background-color: var(--clay-accent);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clay-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--clay-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* 拟物化页脚 */
footer {
    background-color: var(--clay-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
    border-top: 4px solid rgba(0,0,0,0.1);
}

.copyright {
    font-size: 14px;
    color: var(--clay-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .clay-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}