/* 拟物化设计风格 - 青金石蓝主题 */
:root {
    --main-color: #26619C; /* 青金石蓝 */
    --secondary-color: #5D8CEB;
    --highlight-color: #FFD700; /* 金色点缀 */
    --text-color: #333;
    --light-color: #f9f9f9;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --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="%2326619C"/><path d="M0 0 L100 100 M0 100 L100 0" stroke="%2326619C" stroke-width="1" opacity="0.1"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #e6e6e6;
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
}

a {
    text-decoration: none;
    color: var(--main-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 拟物化头部设计 */
header {
    background: var(--main-color);
    background-image: var(--texture-bg);
    padding: 20px 0;
    border-bottom: 4px solid var(--highlight-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: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 10px 20px;
    background: white;
    border-radius: var(--border-radius);
    font-weight: bold;
    box-shadow: 0 2px 4px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--main-color);
}

nav ul li a:hover {
    background: var(--highlight-color);
    color: var(--main-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* 拟物化主要内容区域 */
.main-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to right, var(--main-color), var(--highlight-color));
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-color);
    color: var(--main-color);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 拟物化文章卡片 */
.article-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--main-color);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-info {
    padding: 20px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--main-color);
    font-weight: bold;
}

.article-excerpt {
    margin-bottom: 15px;
    color: #666;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

/* 拟物化分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--main-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 拟物化文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
}

.article-detail-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--main-color);
    font-weight: bold;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.article-detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: 0 2px 4px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 拟物化分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--main-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
}

/* 拟物化友情链接 */
.friend-links {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--main-color);
    font-size: 22px;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 10px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 8px 15px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    box-shadow: 0 2px 4px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
}

/* 拟物化页脚设计 */
footer {
    background: var(--main-color);
    background-image: var(--texture-bg);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 4px solid var(--highlight-color);
    box-shadow: 0 -4px 12px var(--shadow-color);
    position: relative;
}

.copyright {
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@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-detail-title {
        font-size: 28px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}