/* 视差滚动极简白主题 */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b8cae;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --parallax-speed: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 视差背景层 */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiPgo8cmVjdCB3aWR0aD0iNiIgaGVpZ2h0PSI2IiBmaWxsPSIjZjhmOGY4Ij48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDZMNiAwWk02IDZMMCAwWiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiNlZGVkZWQiPjwvcGF0aD4KPC9zdmc+');
    z-index: -1;
    transform: translateZ(calc(var(--parallax-speed) * -1px)) scale(calc(var(--parallax-speed) + 1));
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    background-color: rgba(255,255,255,0.95);
}

/* 极简头部 */
header {
    background-color: rgba(255,255,255,0.98);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo span {
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 400;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
.main-content {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 视差卡片 */
.parallax-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.card-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.card-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-item:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* 分类标签 */
.category-label {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--text-color);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #777;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
    font-weight: 300;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: var(--light-gray);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 400;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 友情链接 */
.friend-links {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 40px;
    margin: 60px 0;
    text-align: center;
}

.friend-links h3 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: white;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    background-color: var(--light-gray);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

.copyright {
    font-size: 14px;
    color: #777;
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .friend-links-container a {
        padding: 8px 15px;
    }
}

/* 视差动画 */
@keyframes parallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

.parallax-element {
    animation: parallax 10s infinite alternate ease-in-out;
}