/* 拟物化设计 - 橙色主题 */
:root {
    --orange-dark: #d35400;
    --orange-light: #e67e22;
    --orange-bright: #f39c12;
    --brown-dark: #5d4037;
    --brown-light: #8d6e63;
    --text-color: #333;
    --text-light: #fff;
    --paper-color: #f5e7d9;
    --shadow-heavy: 3px 3px 10px rgba(0,0,0,0.3);
    --shadow-light: 1px 1px 3px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #ede7d9;
    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="%23d35400" fill-opacity="0.03" d="M0 0h100v100H0z"/></svg>');
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--orange-dark);
    transition: all 0.3s;
}

a:hover {
    color: var(--brown-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 拟物化头部 - 皮革质感 */
header {
    background: linear-gradient(to bottom, #a84300, #d35400);
    padding: 15px 0;
    box-shadow: var(--shadow-heavy);
    border-bottom: 3px solid #a84300;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    position: relative;
    padding-left: 50px;
}

.logo::before {
    content: '📖';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 36px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    color: var(--text-light);
    padding: 8px 15px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
    font-weight: bold;
}

nav ul li a:hover {
    background-color: var(--brown-dark);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}

/* 拟物化内容区域 - 纸张效果 */
.main-content {
    background-color: var(--paper-color);
    padding: 30px;
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid #d4c9b1;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange-light);
    color: var(--orange-dark);
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--orange-dark), transparent);
}

/* 拟物化文章卡片 - 立体效果 */
.article-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s;
    border: 1px solid #ddd;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--orange-light);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--orange-light);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--brown-dark);
}

.card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--orange-dark);
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

/* 分类标签 - 邮票效果 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--orange-light);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--orange-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.category-tag::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
    opacity: 0.3;
}

/* 文章详情页 - 笔记本效果 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid #d4c9b1;
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background-color: rgba(211, 84, 0, 0.1);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--orange-light);
    padding-bottom: 20px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--brown-dark);
    font-weight: bold;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--orange-dark);
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 25px;
    border: 5px solid white;
    box-shadow: var(--shadow-light);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px auto;
    display: block;
    border: 5px solid white;
    box-shadow: var(--shadow-light);
}

/* 分页导航 - 按钮效果 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background: linear-gradient(to bottom, #f5e7d9, #e0d0b8);
    border: 1px solid #c4b59a;
    color: var(--brown-dark);
    font-weight: bold;
    box-shadow: var(--shadow-light);
    transition: all 0.3s;
}

.pagination a:hover {
    background: linear-gradient(to bottom, #e67e22, #d35400);
    color: white;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* 友情链接 - 标签云效果 */
.friend-links {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid #d4c9b1;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--brown-dark);
    font-size: 20px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 15px;
    background: linear-gradient(to bottom, #f5e7d9, #e0d0b8);
    border-radius: 15px;
    font-size: 14px;
    border: 1px solid #c4b59a;
    color: var(--brown-dark);
    box-shadow: var(--shadow-light);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, #e67e22, #d35400);
    color: white;
    transform: translateY(-2px);
}

/* 拟物化页脚 - 木质效果 */
footer {
    background: linear-gradient(to bottom, #5d4037, #3e2723);
    padding: 25px 0;
    text-align: center;
    margin-top: 50px;
    color: var(--text-light);
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.copyright {
    font-size: 14px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-collection {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 10px;
    }
}