/* 拟物化设计 - 柏坊灰蓝色调 */
:root {
    --primary-color: #6b8ba4; /* 柏坊蓝 */
    --secondary-color: #8ba0b1; /* 灰蓝 */
    --dark-color: #3a4a5a; /* 深灰蓝 */
    --light-color: #e8ecef; /* 浅灰 */
    --text-color: #333333; /* 深灰 */
    --accent-color: #a38b6b; /* 柏坊褐 */
    --shadow-depth: 0 4px 8px rgba(0, 0, 0, 0.15);
    --texture-bg: 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="%236b8ba4"/><path d="M0 0h100v1H0zM0 2h100v1H0zM0 4h100v1H0z" fill="%23fff" opacity=".05"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #f0f2f5;
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(to bottom, #e8ecef, #d5dde5);
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 拟物化头部设计 */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-depth);
    border-bottom: 3px solid var(--primary-color);
    background-image: var(--texture-bg);
    background-size: 200px;
    position: relative;
    z-index: 100;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-color);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    display: inline-block;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* 拟物化主要内容区域 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-depth);
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    opacity: 0.2;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-color);
    font-weight: normal;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* 拟物化文章卡片 */
.article-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

/* 拟物化文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-depth);
    border: 1px solid #ddd;
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: normal;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #666;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.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: 4px;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 拟物化分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: white;
    border: 1px solid #ddd;
    transition: all 0.3s;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* 拟物化友情链接 */
.friend-links {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-depth);
    border: 1px solid #ddd;
    position: relative;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--secondary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 20px;
    font-weight: normal;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* 拟物化页脚设计 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid var(--primary-color);
    color: white;
    background-image: var(--texture-bg);
    background-size: 200px;
}

.copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* 响应式设计 */
@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-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}