/* 拟物化设计 - 矿物色调主题 */
:root {
    --malachite: #1dd3a7; /* 孔雀石绿 */
    --lapis: #26619c;    /* 青金石蓝 */
    --amethyst: #9b59b6; /* 紫水晶色 */
    --hematite: #5c2e3a; /* 赤铁矿红 */
    --quartz: #f5f5f5;   /* 石英白 */
    --slate: #4a4a4a;    /* 板岩灰 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background-color: #e8e8e8;
    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="%23cccccc" fill-opacity="0.2" d="M0 0h50v50H0z"/></svg>');
    background-size: 20px 20px;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--lapis);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 拟物化头部 - 仿皮质效果 */
header {
    background: linear-gradient(to bottom, #d1a782, #b58a63);
    border-bottom: 3px solid #8c6d4f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255,255,255,0.5), 
        transparent);
}

.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 rgba(0,0,0,0.5);
    letter-spacing: 1px;
    padding: 8px 15px;
    background: linear-gradient(to right, var(--malachite), var(--lapis));
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 
                0 3px 5px rgba(0,0,0,0.2);
}

/* 拟物化导航按钮 */
nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    color: var(--slate);
    font-weight: bold;
    transition: all 0.3s;
}

nav ul li a:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: var(--amethyst);
}

/* 拟物化内容区域 - 仿纸张效果 */
.main-content {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), 
                inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, 
        rgba(29,211,167,0.05) 0%, 
        rgba(155,89,182,0.05) 50%, 
        rgba(38,97,156,0.05) 100%);
    pointer-events: none;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--malachite);
    color: var(--lapis);
    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: var(--amethyst);
}

/* 拟物化文章卡片 - 仿矿物切片效果 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, 
        var(--malachite), 
        var(--lapis), 
        var(--amethyst));
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--slate);
    font-weight: bold;
    min-height: 54px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

/* 拟物化分类标签 - 仿宝石镶嵌效果 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(to bottom, var(--lapis), #1a4b8c);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 
                0 1px 2px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* 拟物化文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--malachite);
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--slate);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #777;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    display: block;
}

/* 拟物化分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    color: var(--slate);
    font-weight: bold;
    transition: all 0.3s;
}

.pagination a:hover {
    background: linear-gradient(to bottom, var(--lapis), #1a4b8c);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 拟物化友情链接 - 仿金属标牌效果 */
.friend-links {
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 
                0 3px 8px rgba(0,0,0,0.1);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--slate);
    font-size: 20px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 15px;
    background: linear-gradient(to bottom, white, #f0f0f0);
    border-radius: 15px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, var(--amethyst), #8e44ad);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 拟物化页脚 - 仿金属底座效果 */
footer {
    background: linear-gradient(to bottom, #5c2e3a, #3d1e26);
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 3px solid #8c6d4f;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.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-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 24px;
    }
}