/* 玫瑰金主题全局样式 */
:root {
    --rose-gold: #e0bfb8;
    --rose-gold-dark: #d4a59a;
    --rose-gold-light: #f7e9e5;
    --dark-text: #5a4a42;
    --light-text: #fff9f7;
    --accent-color: #c89f9c;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

body {
    background-color: var(--rose-gold-light);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D悬浮头部 */
header {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(192, 149, 140, 0.3);
    transform: translateY(0);
    transition: var(--transition);
}

header:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(192, 149, 140, 0.4);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(90, 74, 66, 0.2);
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--light-text);
    transform: scaleX(0);
    transition: var(--transition);
}

.logo:hover::after {
    transform: scaleX(1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    position: relative;
    color: var(--light-text);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--light-text);
    transform: translateX(-50%);
    transition: var(--transition);
}

nav ul li a:hover::before {
    width: 80%;
}

/* 波纹悬浮卡片 */
.main-content {
    padding: 40px;
    background-color: white;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(192, 149, 140, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), 
                rgba(224, 191, 184, 0.1) 0%, 
                transparent 15%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-content:hover::before {
    opacity: 1;
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--rose-gold);
    color: var(--dark-text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--rose-gold), transparent);
}

/* 3D翻转卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(192, 149, 140, 0.1);
    position: relative;
    transform-style: preserve-3d;
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(192, 149, 140, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-text);
    transition: var(--transition);
}

.article-card:hover .card-title {
    color: var(--accent-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--rose-gold-dark);
    margin-top: 15px;
}

/* 分类标签悬浮效果 */
.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--rose-gold);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-tag:hover {
    background-color: var(--rose-gold-dark);
    transform: translateY(-3px);
}

/* 文章详情页特效 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: var(--rose-gold);
    transform: translateX(-50%);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--rose-gold-dark);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(192, 149, 140, 0.2);
    transition: var(--transition);
}

.article-image:hover {
    transform: scale(1.02);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
}

.article-content p::first-letter {
    font-size: 150%;
    color: var(--rose-gold-dark);
    font-weight: bold;
    padding-right: 5px;
}

/* 分页按钮悬浮效果 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: var(--rose-gold);
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.pagination a:hover {
    background-color: var(--rose-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(192, 149, 140, 0.3);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接悬浮效果 */
.friend-links {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 25px rgba(192, 149, 140, 0.1);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--dark-text);
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.friend-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--rose-gold);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: var(--rose-gold-light);
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--rose-gold);
}

.friend-links-container a:hover {
    background-color: var(--rose-gold);
    color: white;
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 5px 15px rgba(192, 149, 140, 0.3);
}

/* 页脚悬浮效果 */
footer {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.05)" d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
    opacity: 0.1;
}

.copyright {
    font-size: 14px;
    color: var(--light-text);
    position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .main-content {
        padding: 25px;
    }
}

/* 鼠标跟随效果 */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--rose-gold);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: multiply;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s;
}

/* 动态背景元素 */
.floating-element {
    position: absolute;
    background-color: rgba(224, 191, 184, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(720deg); }
}