/* 拟物化设计风格 - 赤铁矿红主题 */
:root {
    --primary-color: #8b2e2a; /* 赤铁矿红 */
    --secondary-color: #5e1f1c;
    --highlight-color: #a83a35;
    --text-color: #333;
    --light-color: #f5f1e6;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --texture-bg: 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="%238b2e2a"/><path d="M0 0h100v100H0z" fill="none" stroke="%235e1f1c" stroke-width="2" opacity="0.2"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

body {
    background-color: #e8e3d5;
    color: var(--text-color);
    line-height: 1.6;
    background-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="%23e8e3d5"/><path d="M0 0h100v100H0z" fill="none" stroke="%23d1c9b0" stroke-width="1" opacity="0.3"/></svg>');
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 拟物化头部设计 */
header {
    background: var(--texture-bg);
    padding: 15px 0;
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--light-color);
    text-shadow: 2px 2px 3px var(--shadow-color);
    letter-spacing: 1px;
    padding: 10px 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    border: 1px solid var(--highlight-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 5px var(--shadow-color);
}

/* 拟物化导航按钮 */
nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 8px 20px;
    background: linear-gradient(to bottom, #f5f1e6, #d1c9b0);
    border-radius: 6px;
    border: 1px solid #b8ad8e;
    box-shadow: 0 2px 3px var(--shadow-color);
    color: var(--text-color);
    font-weight: bold;
    transition: all 0.3s;
}

nav ul li a:hover {
    background: linear-gradient(to bottom, #fff, #e0d9c0);
    text-decoration: none;
    box-shadow: 0 1px 2px var(--shadow-color);
    transform: translateY(1px);
}

/* 拟物化内容面板 */
.main-content {
    background-color: var(--light-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid #d1c9b0;
    box-shadow: 0 4px 8px var(--shadow-color), inset 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    border-radius: 8px 8px 0 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    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(--primary-color), transparent);
}

/* 拟物化文章卡片 */
.article-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d1c9b0;
    box-shadow: 0 3px 6px var(--shadow-color);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #d1c9b0;
}

.card-body {
    padding: 15px;
    background: #f9f7f0;
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #d1c9b0;
}

/* 拟物化分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--highlight-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 拟物化文章详情 */
.article-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #d1c9b0;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.article-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #d1c9b0;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

/* 拟物化分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 20px;
    background: linear-gradient(to bottom, #f5f1e6, #d1c9b0);
    border-radius: 6px;
    border: 1px solid #b8ad8e;
    box-shadow: 0 2px 3px var(--shadow-color);
    color: var(--text-color);
    font-weight: bold;
    transition: all 0.3s;
}

.pagination a:hover {
    background: linear-gradient(to bottom, #fff, #e0d9c0);
    box-shadow: 0 1px 2px var(--shadow-color);
    transform: translateY(1px);
}

/* 拟物化友情链接 */
.friend-links {
    background: #f5f1e6;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid #d1c9b0;
    box-shadow: 0 3px 6px var(--shadow-color), inset 0 0 15px rgba(0,0,0,0.05);
}

.friend-links h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 6px 15px;
    background: linear-gradient(to bottom, #fff, #e8e3d5);
    border-radius: 15px;
    font-size: 14px;
    border: 1px solid #d1c9b0;
    box-shadow: 0 1px 2px var(--shadow-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, #fff, #d1c9b0);
    box-shadow: 0 1px 3px var(--shadow-color);
}

/* 拟物化页脚 */
footer {
    background: var(--texture-bg);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 -2px 8px var(--shadow-color);
    color: var(--light-color);
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.copyright {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 24px;
    }
}