/* 拟物化设计 - 黄色主题 */
:root {
    --primary-color: #ffc107;
    --secondary-color: #ffa000;
    --dark-color: #333;
    --light-color: #fff8e1;
    --text-color: #5d4037;
    --shadow-color: rgba(0,0,0,0.2);
    --texture-overlay: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ffc107" stroke-width="0.5" opacity="0.3"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #f5f5f5;
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.5) 100%),
        var(--texture-overlay);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 拟物化头部设计 */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 4px 12px var(--shadow-color);
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #5d4037;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    letter-spacing: 1px;
    padding: 10px 15px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

/* 拟物化导航按钮 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    padding: 8px 15px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 2px 2px var(--shadow-color);
    font-weight: bold;
    display: block;
}

nav ul li a:hover {
    background-color: white;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 2px 4px var(--shadow-color);
    transform: translateY(-1px);
}

/* 拟物化内容卡片 */
.main-content {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 
        0 4px 8px var(--shadow-color),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--secondary-color);
}

/* 拟物化文章卡片 */
.article-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 
        0 3px 6px var(--shadow-color),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px var(--shadow-color),
        inset 0 0 0 1px rgba(255,255,255,0.8);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--primary-color);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.article-info {
    padding: 15px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #795548;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #bcaaa4;
}

/* 拟物化分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--light-color);
    color: var(--text-color);
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

/* 拟物化文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.article-meta-detail {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #795548;
    margin-bottom: 20px;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 
        0 3px 6px var(--shadow-color),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    border: 1px 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: 6px;
    margin: 20px 0;
    box-shadow: 
        0 3px 6px var(--shadow-color),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
}

/* 拟物化分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 2px 2px var(--shadow-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 3px 5px var(--shadow-color);
}

/* 拟物化友情链接 */
.friend-links {
    background-color: white;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 
        0 3px 6px var(--shadow-color),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--primary-color);
}

.friend-links h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--light-color);
    border-radius: 15px;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 2px 3px var(--shadow-color);
}

/* 拟物化页脚 */
footer {
    background-color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 -2px 5px var(--shadow-color);
}

.copyright {
    font-size: 14px;
    color: var(--text-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* 响应式设计 */
@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-container {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta-detail {
        flex-direction: column;
        gap: 5px;
    }
}