/* 拟物化设计风格 - 赤铁矿红主题 */
:root {
    --primary-color: #8b2e2a; /* 赤铁矿红 */
    --secondary-color: #a86e6b;
    --light-color: #f5e9e8;
    --dark-color: #3a1a18;
    --text-color: #333;
    --highlight-color: #c94b3f;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background-color: #f0e6e5;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="%23d9c7c6" d="M0 0h50v50H0z"/></svg>');
    background-size: 20px 20px;
    color: var(--text-color);
    line-height: 1.6;
}

/* 拟物化按钮和控件样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f0e6e5, #d9c7c6);
    border: 1px solid #b5a09f;
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
    color: var(--dark-color);
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.button:hover {
    background: linear-gradient(to bottom, #e0d6d5, #c9b7b6);
    box-shadow: 0 2px 6px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
}

.button:active {
    background: linear-gradient(to bottom, #d9c7c6, #c2b0af);
    box-shadow: inset 0 2px 3px var(--shadow-color);
}

/* 容器样式 - 拟物化质感 */
.panel {
    background: linear-gradient(to bottom, #fff, #f5e9e8);
    border: 1px solid #b5a09f;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 20px;
    margin-bottom: 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(to bottom, var(--primary-color), #6b2320);
    border-bottom: 1px solid #5a1d1a;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--light-color);
    text-shadow: 0 2px 3px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* 导航样式 - 拟物化标签 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 10px;
}

nav ul li a {
    display: block;
    padding: 8px 15px;
    background: linear-gradient(to bottom, #f0e6e5, #d9c7c6);
    border: 1px solid #b5a09f;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 3px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
    color: var(--dark-color);
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.2s;
}

nav ul li a:hover {
    background: linear-gradient(to bottom, #e0d6d5, #c9b7b6);
}

nav ul li a.active {
    background: linear-gradient(to bottom, #d9c7c6, #c2b0af);
    box-shadow: inset 0 2px 3px var(--shadow-color);
    border-bottom-color: transparent;
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.main-content {
    background: linear-gradient(to bottom, #fff, #f5e9e8);
    border: 1px solid #b5a09f;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 25px;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9c7c6;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

/* 文章列表样式 - 拟物化卡片 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-item {
    background: linear-gradient(to bottom, #fff, #f5e9e8);
    border: 1px solid #b5a09f;
    border-radius: 8px;
    box-shadow: 0 3px 6px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.7);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #b5a09f;
}

.article-info {
    padding: 15px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: bold;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* 分类标签 - 拟物化徽章 */
.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(to bottom, var(--primary-color), #6b2320);
    border: 1px solid #5a1d1a;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    box-shadow: 0 1px 3px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-detail-title {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.article-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid #b5a09f;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 15px;
}

/* 分页样式 - 拟物化按钮组 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    margin: 0 5px;
}

/* 友情链接样式 - 拟物化标签云 */
.friend-links {
    background: linear-gradient(to bottom, #fff, #f5e9e8);
    border: 1px solid #b5a09f;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 20px;
    margin: 20px 0;
}

.friend-links h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 6px 12px;
    background: linear-gradient(to bottom, #f0e6e5, #d9c7c6);
    border: 1px solid #b5a09f;
    border-radius: 15px;
    box-shadow: 0 1px 3px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
    font-size: 14px;
    transition: all 0.2s;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, #e0d6d5, #c9b7b6);
}

/* 页脚样式 */
footer {
    background: linear-gradient(to bottom, var(--primary-color), #6b2320);
    border-top: 1px solid #5a1d1a;
    color: var(--light-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 -2px 8px var(--shadow-color);
}

.copyright {
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .article-detail-title {
        font-size: 26px;
    }
}