/* 视差滚动玫瑰金主题 */
:root {
    --rose-gold: #e0bfb8;
    --rose-gold-dark: #c9a8a1;
    --rose-gold-light: #f8e5e0;
    --dark-text: #4a4a4a;
    --light-text: #ffffff;
    --bg-color: #f9f3f0;
    --section-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

body {
    color: var(--dark-text);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 视差背景层 */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold));
    opacity: 0.3;
}

a {
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rose-gold-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 玫瑰金风格头部 */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--rose-gold-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--rose-gold-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--rose-gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 70%;
}

/* 视差内容区域 */
.main-content {
    background-color: var(--section-bg);
    border-radius: 10px;
    padding: 40px;
    margin: 120px 0 60px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--rose-gold), var(--rose-gold-light));
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--rose-gold-dark);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--rose-gold);
}

/* 视差卡片列表 */
.parallax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.parallax-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
    position: relative;
    transform-style: preserve-3d;
}

.parallax-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.parallax-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    position: relative;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--rose-gold-dark);
    font-weight: 700;
}

.card-text {
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--rose-gold-dark);
    border-top: 1px dashed var(--rose-gold-light);
    padding-top: 15px;
}

/* 分类标签 */
.category-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--rose-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--rose-gold-dark);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--rose-gold-dark);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: var(--rose-gold-light);
    color: var(--rose-gold-dark);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--rose-gold);
    color: white;
}

/* 友情链接 */
.friend-links {
    background-color: var(--section-bg);
    border-radius: 10px;
    padding: 30px;
    margin: 60px 0;
    box-shadow: var(--shadow);
    text-align: center;
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--rose-gold-dark);
    font-size: 24px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: var(--rose-gold-light);
    border-radius: 30px;
    color: var(--rose-gold-dark);
    transition: all 0.3s ease;
    font-size: 15px;
}

.friend-links-container a:hover {
    background-color: var(--rose-gold);
    color: white;
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    background-color: var(--rose-gold-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--rose-gold), white);
}

.copyright {
    font-size: 16px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-content {
        margin: 100px 0 40px;
        padding: 30px 20px;
    }
    
    .parallax-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}