/* 拟物化设计风格 - 青金石蓝主题 */
:root {
    --main-color: #2a3f8f; /* 青金石蓝 */
    --secondary-color: #5e7ce2;
    --highlight-color: #ffd700; /* 金色点缀 */
    --text-color: #333;
    --light-color: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --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="%232a3f8f"/><path d="M0 0h100v100H0z" fill="none" stroke="%235e7ce2" stroke-width="2" opacity="0.2"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background-color: #e8e8e8;
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

/* 拟物化按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 3px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    box-shadow: 0 2px 5px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
}

.button:active {
    background: linear-gradient(to bottom, #d0d0d0, #c0c0c0);
    box-shadow: inset 0 2px 3px var(--shadow-color);
}

/* 拟物化面板样式 */
.panel {
    background: white;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 6px var(--shadow-color),
                inset 0 0 20px rgba(255,255,255,0.8);
    padding: 20px;
    margin-bottom: 20px;
    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));
    z-index: 1;
}

/* 拟物化标题栏 */
.title-bar {
    background: linear-gradient(to bottom, var(--main-color), #1a2f7f);
    color: white;
    padding: 12px 15px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: 1px solid #1a2f7f;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    font-weight: bold;
    position: relative;
}

.title-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 拟物化头部样式 */
header {
    background: linear-gradient(to bottom, #3a4f9f, var(--main-color));
    border-bottom: 1px solid #1a2f7f;
    box-shadow: 0 2px 5px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.2);
    padding: 15px 0;
    margin-bottom: 30px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    letter-spacing: 1px;
    position: relative;
    padding-left: 50px;
}

.logo::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--highlight-color);
    font-size: 32px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    padding: 8px 15px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: white;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 拟物化文章卡片 */
.article-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 6px var(--shadow-color),
                inset 0 0 20px rgba(255,255,255,0.8);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color),
                inset 0 0 20px rgba(255,255,255,0.8);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ccc;
}

.article-content {
    padding: 20px;
    position: relative;
}

.article-content::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));
}

.article-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--main-color);
    font-weight: bold;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* 拟物化分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 15px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
    color: var(--text-color);
    text-decoration: none;
}

.pagination a:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
}

/* 拟物化友情链接 */
.friend-links {
    background: white;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 6px var(--shadow-color),
                inset 0 0 20px rgba(255,255,255,0.8);
    padding: 20px;
    margin: 30px 0;
}

.friend-links h3 {
    margin-bottom: 15px;
    color: var(--main-color);
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 5px 10px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 2px var(--shadow-color),
                inset 0 1px 0 rgba(255,255,255,0.5);
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
}

.friend-links-container a:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
}

/* 拟物化页脚 */
footer {
    background: linear-gradient(to bottom, #3a4f9f, var(--main-color));
    border-top: 1px solid #1a2f7f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, 
        transparent 0%, 
        var(--highlight-color) 20%, 
        var(--highlight-color) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.copyright {
    font-size: 14px;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

/* 拟物化细节 - 钉子和缝线效果 */
.panel-holder {
    position: relative;
    margin: 30px 0;
}

.panel-holder::before,
.panel-holder::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3),
                0 1px 0 rgba(255,255,255,0.8);
    z-index: 2;
}

.panel-holder::before {
    top: -5px;
    left: 20px;
}

.panel-holder::after {
    top: -5px;
    right: 20px;
}

/* 响应式设计 */
@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-grid {
        grid-template-columns: 1fr;
    }
}