/* 拟物化设计主题 - 皮革与纸张质感 */
:root {
    --leather-color: #3a2c0f;
    --paper-color: #f5f0e5;
    --ink-color: #33312e;
    --accent-color: #8b5a2b;
    --stitching-color: #d4a76a;
    --metal-color: #c0c0c0;
    --shadow-depth: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Georgia, serif;
}

body {
    background: 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="%233a2c0f"/><path d="M0,20 L100,20 M0,40 L100,40 M0,60 L100,60 M0,80 L100,80" stroke="%23281f09" stroke-width="1"/></svg>');
    color: var(--ink-color);
    line-height: 1.6;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--paper-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600" viewBox="0 0 600 600"><rect width="600" height="600" fill="%23f5f0e5"/><path d="M0,50 L600,50 M0,100 L600,100 M0,150 L600,150 M0,200 L600,200 M0,250 L600,250 M0,300 L600,300 M0,350 L600,350 M0,400 L600,400 M0,450 L600,450 M0,500 L600,500 M0,550 L600,550" stroke="%23e0d5c0" stroke-width="1"/></svg>');
    border: 15px solid transparent;
    border-image: 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="%233a2c0f"/><path d="M10,10 L90,10 L90,90 L10,90 Z" stroke="%23d4a76a" stroke-width="8" fill="none" stroke-dasharray="5,5"/></svg>') 30 round;
    box-shadow: 0 var(--shadow-depth) 15px rgba(0,0,0,0.5);
    position: relative;
    padding: 30px;
}

/* 皮革质感的头部 */
header {
    background: var(--leather-color);
    background-image: radial-gradient(circle at 30% 30%, #4d3b10 0%, #2a1d05 100%);
    padding: 20px 30px;
    margin: -30px -30px 30px -30px;
    border-bottom: 5px solid var(--stitching-color);
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.3);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #e8d9b5;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.5);
    font-family: 'Copperplate', 'Times New Roman', serif;
    letter-spacing: 2px;
    position: relative;
    padding-left: 50px;
}

.logo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23d4a76a" stroke-width="5"/><path d="M50,20 L50,80 M20,50 L80,50" stroke="%23d4a76a" stroke-width="5"/></svg>') no-repeat center;
    background-size: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    color: #e8d9b5;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--stitching-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    background: rgba(139, 90, 43, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* 主要内容区域 - 纸张质感 */
.main-content {
    background-color: var(--paper-color);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #d0c4a8;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 Z" fill="%23e0d5c0"/></svg>') no-repeat;
    opacity: 0.5;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--leather-color);
    font-family: 'Copperplate', 'Times New Roman', serif;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--stitching-color);
}

/* 拟物化文章卡片 */
.article-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-folder {
    background: var(--paper-color);
    border: 1px solid #d0c4a8;
    border-radius: 0 10px 10px 10px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-folder::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 20px;
    background: var(--leather-color);
    border-radius: 10px 10px 0 0;
    z-index: 2;
}

.article-folder:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.folder-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #d0c4a8;
}

.folder-content {
    padding: 20px;
}

.folder-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--leather-color);
    font-weight: bold;
    font-family: 'Georgia', serif;
    position: relative;
    padding-left: 25px;
}

.folder-title::before {
    content: "✧";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
}

.folder-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #7a6b4f;
    margin-top: 15px;
    border-top: 1px dashed #d0c4a8;
    padding-top: 10px;
}

/* 分类标签 - 金属徽章样式 */
.category-badge {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
    color: #333;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* 文章详情页 - 复古日记本样式 */
.article-journal {
    max-width: 800px;
    margin: 0 auto;
    background: var(--paper-color);
    padding: 40px;
    border: 1px solid #d0c4a8;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
    position: relative;
}

.article-journal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, transparent, transparent 20px, #d0c4a8 20px, #d0c4a8 21px);
}

.journal-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.journal-header::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.journal-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--leather-color);
    font-family: 'Copperplate', 'Times New Roman', serif;
    letter-spacing: 1px;
}

.journal-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #7a6b4f;
    margin-bottom: 20px;
    font-size: 15px;
    flex-wrap: wrap;
}

.journal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 25px 0;
    border: 5px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: relative;
}

.journal-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
}

.journal-content {
    line-height: 1.8;
    font-size: 17px;
    font-family: 'Georgia', serif;
}

.journal-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.journal-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border: 1px solid #d0c4a8;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* 分页导航 - 复古页码样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    background: var(--paper-color);
    border: 1px solid #d0c4a8;
    color: var(--ink-color);
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    position: relative;
}

.pagination a:hover {
    background: var(--leather-color);
    color: #e8d9b5;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.pagination a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pagination a:hover::before {
    opacity: 1;
}

/* 友情链接 - 复古标签样式 */
.friend-links {
    background: var(--paper-color);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #d0c4a8;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--leather-color);
    font-family: 'Copperplate', 'Times New Roman', serif;
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.friend-links h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background: linear-gradient(to bottom, #f5f0e5, #e0d5c0);
    border-radius: 3px;
    font-size: 14px;
    color: var(--ink-color);
    border: 1px solid #d0c4a8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, #e0d5c0, #d0c4a8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.friend-links-container a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.friend-links-container a:hover::after {
    opacity: 1;
}

/* 页脚样式 - 复古金属牌 */
footer {
    background: linear-gradient(to bottom, #3a2c0f, #2a1d05);
    padding: 25px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 3px solid var(--stitching-color);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 20"><path d="M0,0 L200,0 L200,20 L0,20 Z" fill="%23c0c0c0"/><path d="M10,10 L190,10" stroke="%233a2c0f" stroke-width="2"/><circle cx="100" cy="10" r="8" fill="%233a2c0f"/></svg>') no-repeat center;
}

.copyright {
    font-size: 14px;
    color: #e8d9b5;
    font-family: 'Georgia', serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .article-collection {
        grid-template-columns: 1fr;
    }
    
    .journal-title {
        font-size: 26px;
    }
    
    .journal-content {
        font-size: 16px;
    }
}