/* 拟物化设计风格 - 青金石蓝主色调 */
:root {
    --main-color: #1e3d8f; /* 青金石蓝 */
    --secondary-color: #3a5fcd;
    --highlight-color: #5d7eff;
    --text-color: #333;
    --light-text: #f0f4ff;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --bevel-color: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #e6e9f0;
    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="rgba(255,255,255,0.3)" d="M0 0h100v100H0z"/></svg>');
    background-size: 10px 10px;
    color: var(--text-color);
    line-height: 1.6;
}

/* 3D按钮效果 */
.button, a.button {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--main-color));
    color: var(--light-text);
    text-shadow: 0 -1px 0 var(--shadow-color);
    border-radius: 6px;
    border: 1px solid var(--main-color);
    border-top-color: var(--highlight-color);
    border-left-color: var(--highlight-color);
    box-shadow: inset 0 1px 0 var(--bevel-color), 
                0 2px 3px var(--shadow-color);
    position: relative;
    transition: all 0.2s;
}

.button:hover, a.button:hover {
    background: linear-gradient(to bottom, var(--highlight-color), var(--secondary-color));
    box-shadow: inset 0 1px 0 var(--bevel-color), 
                0 2px 5px var(--shadow-color);
    transform: translateY(-1px);
}

.button:active, a.button:active {
    box-shadow: inset 0 2px 3px var(--shadow-color);
    transform: translateY(1px);
}

/* 拟物化容器 */
.panel {
    background: white;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 0 1px 0 white;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0));
    border-radius: 8px 8px 0 0;
}

/* 头部样式 - 皮革纹理效果 */
header {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    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="rgba(0,0,0,0.2)" d="M0 0h100v100H0z"/><path fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1" d="M0 0h100v100H0z"/></svg>');
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: 2px solid #111;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 3px var(--shadow-color);
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--highlight-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: white;
    text-shadow: 0 1px 1px var(--shadow-color);
    padding: 8px 15px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #555, #444);
    border: 1px solid #222;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.2s;
}

nav ul li a:hover {
    background: linear-gradient(to bottom, #666, #555);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 文章卡片 - 纸张纹理效果 */
.article-card {
    background: white;
    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="rgba(0,0,0,0.02)" d="M0 0h100v100H0z"/></svg>');
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 3px 6px var(--shadow-color),
                inset 0 1px 0 white;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #d0d0d0;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--main-color);
    text-shadow: 0 1px 0 white;
}

.card-text {
    margin-bottom: 15px;
    color: #555;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* 分类标签 - 金属质感 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 0 white;
    color: #555;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 文章详情页 */
.article-detail {
    background: white;
    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="rgba(0,0,0,0.02)" d="M0 0h100v100H0z"/></svg>');
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 3px 6px var(--shadow-color),
                inset 0 1px 0 white;
    padding: 30px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 15px;
    text-shadow: 0 1px 0 white;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #777;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 5px var(--shadow-color);
    margin-bottom: 25px;
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 0 white;
    color: #555;
    transition: all 0.2s;
}

.pagination a:hover {
    background: linear-gradient(to bottom, white, #f0f0f0);
    box-shadow: inset 0 1px 0 white;
}

/* 友情链接 - 金属板效果 */
.friend-links {
    background: linear-gradient(to bottom, #f5f5f5, #e5e5e5);
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    box-shadow: inset 0 1px 0 white,
                0 2px 5px var(--shadow-color);
    padding: 20px;
    margin: 30px 0;
}

.friend-links h3 {
    color: var(--main-color);
    margin-bottom: 15px;
    text-shadow: 0 1px 0 white;
    font-size: 20px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 6px 12px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 0 white;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, white, #f0f0f0);
    box-shadow: inset 0 1px 0 white;
}

/* 页脚样式 - 金属质感 */
footer {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    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="rgba(0,0,0,0.2)" d="M0 0h100v100H0z"/><path fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1" d="M0 0h100v100H0z"/></svg>');
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #111;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.copyright {
    color: #aaa;
    font-size: 14px;
    text-shadow: 0 1px 1px var(--shadow-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}