/* 拟物化设计 - 浆果红色调 */
:root {
    --berry-red: #990033;
    --deep-red: #660022;
    --cream: #FFF5EE;
    --light-wood: #E1C16E;
    --dark-wood: #B87333;
    --gold: #D4AF37;
    --shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: var(--cream);
    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="%23E1C16E" stroke-width="0.5" fill="none"/></svg>');
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--deep-red);
    transition: all 0.3s;
}

a:hover {
    color: var(--berry-red);
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 拟物化头部设计 */
header {
    background: linear-gradient(to bottom, var(--berry-red), var(--deep-red));
    padding: 15px 0;
    border-bottom: 5px solid var(--light-wood);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--cream);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--light-wood), var(--dark-wood));
    border: 2px solid var(--cream);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    color: var(--cream);
    font-size: 18px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

nav ul li a:hover {
    background: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* 拟物化内容卡片 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid var(--light-wood);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    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="%23FFF5EE"/></svg>');
}

.main-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    pointer-events: none;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px double var(--light-wood);
    color: var(--berry-red);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* 拟物化文章卡片 */
.article-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-panel {
    background: white;
    border: 2px solid var(--light-wood);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: var(--shadow);
    position: relative;
}

.article-panel:hover {
    transform: translateY(-5px) rotate(1deg);
}

.article-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--berry-red), var(--deep-red));
}

.panel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--light-wood);
}

.panel-body {
    padding: 20px;
}

.panel-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--deep-red);
    font-weight: bold;
}

.panel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: 15px;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--berry-red);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 拟物化详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border: 2px solid var(--light-wood);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detail-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px double var(--light-wood);
    padding-bottom: 20px;
}

.detail-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--berry-red);
    letter-spacing: 1px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border: 5px solid var(--light-wood);
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.detail-content {
    line-height: 1.8;
    font-size: 18px;
}

.detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 拟物化分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    margin: 0 10px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px white;
}

.pagination a:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    border-color: #aaa;
}

/* 拟物化友情链接 */
.friend-links {
    background: white;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--light-wood);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--berry-red);
    font-size: 22px;
    border-bottom: 1px dashed var(--light-wood);
    padding-bottom: 10px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 15px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, var(--cream), #e0c9b0);
    border-color: var(--light-wood);
    color: var(--berry-red);
}

/* 拟物化页脚 */
footer {
    background: linear-gradient(to bottom, var(--deep-red), #330011);
    color: var(--cream);
    padding: 25px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 5px solid var(--light-wood);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.copyright {
    font-size: 16px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@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;
    }
    
    .detail-title {
        font-size: 26px;
    }
}