/* 拟物化设计主题 */
:root {
    --wood-color: #c19a6b;
    --paper-color: #f5f5f0;
    --ink-color: #33312e;
    --metal-color: #b8b8b8;
    --highlight-color: #d4af37;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Georgia, serif;
}

body {
    background-color: #e0d8c0;
    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 d="M0 0h100v100H0z" fill="none"/><path d="M20 20h60v60H20z" stroke="%23d0c8a0" stroke-width="0.5"/></svg>');
    color: var(--ink-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--ink-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--highlight-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 拟物化头部 - 木质效果 */
header {
    background-color: var(--wood-color);
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 20%),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%23a07a4b"/><path d="M0 20h100v1H0zM0 40h100v1H0zM0 60h100v1H0zM0 80h100v1H0z" stroke="%2390683a" stroke-width="0.5"/></svg>');
    padding: 15px 0;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-bottom: 3px solid #9c7c4f;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 3px var(--shadow-color);
    letter-spacing: 1px;
    padding: 10px 20px;
    background-color: var(--highlight-color);
    border-radius: 5px;
    box-shadow: 
        inset 0 -3px 5px rgba(0,0,0,0.2),
        inset 0 3px 5px rgba(255,255,255,0.2),
        0 3px 5px var(--shadow-color);
    border: 1px solid #c9a227;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 8px 15px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 
        inset 0 -2px 3px rgba(0,0,0,0.1),
        inset 0 2px 3px rgba(255,255,255,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.3);
    color: white;
}

/* 拟物化主要内容区域 - 纸张效果 */
.main-content {
    background-color: var(--paper-color);
    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 d="M0 0h100v100H0z" fill="%23f5f5f0"/><path d="M10 10h80v80H10z" fill="none" stroke="%23e0d8c0" stroke-width="1"/></svg>');
    padding: 30px;
    margin: 30px 0;
    box-shadow: 
        0 5px 15px var(--shadow-color),
        inset 0 0 50px rgba(0,0,0,0.05);
    border: 1px solid #e0d8c0;
    border-radius: 2px;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d0c8a0;
    color: var(--ink-color);
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, var(--highlight-color), transparent);
}

/* 拟物化文章卡片 - 照片/便签效果 */
.article-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 1px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 
        0 3px 10px var(--shadow-color),
        0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--highlight-color), #f5f5f0);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0d8c0;
}

.card-body {
    padding: 20px;
    background-color: white;
    position: relative;
}

.card-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, #f5f5f0, var(--highlight-color));
    opacity: 0.3;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #7a756e;
    margin-top: 15px;
    font-style: italic;
}

/* 分类标签 - 图钉效果 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--metal-color);
    color: var(--ink-color);
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 2px 3px var(--shadow-color);
}

.category-tag::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--metal-color);
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}

/* 文章详情页样式 - 书本效果 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--paper-color);
    padding: 40px;
    box-shadow: 
        0 5px 15px var(--shadow-color),
        inset 0 0 50px rgba(0,0,0,0.05);
    border: 1px solid #d0c8a0;
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #d0c8a0;
    padding-bottom: 20px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #7a756e;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 0 3px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 5px solid white;
    box-shadow: 0 3px 8px var(--shadow-color);
    margin: 20px auto;
    display: block;
}

/* 分页导航 - 金属按钮效果 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 3px;
    background-color: var(--metal-color);
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%23b8b8b8"/><path d="M0 20h100v1H0zM0 40h100v1H0zM0 60h100v1H0zM0 80h100v1H0z" stroke="%23a0a0a0" stroke-width="0.5"/></svg>');
    color: var(--ink-color);
    font-weight: bold;
    box-shadow: 
        0 3px 5px var(--shadow-color),
        inset 0 -2px 3px rgba(0,0,0,0.2),
        inset 0 2px 3px rgba(255,255,255,0.2);
    border: 1px solid #a0a0a0;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--highlight-color);
    color: white;
}

/* 友情链接 - 文件夹标签效果 */
.friend-links {
    background-color: var(--paper-color);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 
        0 5px 15px var(--shadow-color),
        inset 0 0 50px rgba(0,0,0,0.05);
    border: 1px solid #d0c8a0;
    position: relative;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 40%;
    height: 15px;
    background-color: var(--wood-color);
    border-radius: 5px 5px 0 0;
}

.friend-links h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-left: 20px;
}

.friend-links h3::before {
    content: '📌';
    position: absolute;
    left: 0;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: white;
    border-radius: 3px;
    font-size: 14px;
    box-shadow: 0 2px 3px var(--shadow-color);
    border: 1px solid #e0d8c0;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--highlight-color);
    color: white;
    transform: translateY(-2px);
}

/* 拟物化页脚 - 金属板效果 */
footer {
    background-color: var(--metal-color);
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%23b8b8b8"/><path d="M0 20h100v1H0zM0 40h100v1H0zM0 60h100v1H0zM0 80h100v1H0z" stroke="%23a0a0a0" stroke-width="0.5"/></svg>');
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -5px 15px var(--shadow-color);
    border-top: 3px solid #a0a0a0;
}

.copyright {
    font-size: 14px;
    color: var(--ink-color);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}