/* 超现实主义玫瑰金主题 */
:root {
    --rose-gold: #e0bfb8;
    --deep-rose: #d4a59a;
    --dark-velvet: #3a2e2a;
    --light-dream: #f8f1ee;
    --surreal-accent: #c08e7e;
    --surreal-shadow: 0 4px 15px rgba(192, 142, 126, 0.3);
    --surreal-texture: 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="%23d4a59a" fill-opacity="0.1" d="M30,10 Q50,5 70,10 T90,30 Q95,50 90,70 T70,90 Q50,95 30,90 T10,70 Q5,50 10,30 T30,10"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

body {
    background-color: var(--light-dream);
    color: var(--dark-velvet);
    line-height: 1.8;
    background-image: var(--surreal-texture);
    overflow-x: hidden;
}

/* 超现实主义头部 */
header {
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-rose));
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--surreal-shadow);
    transform: skewY(-1deg);
    margin-bottom: 40px;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: surrealRotate 120s linear infinite;
}

@keyframes surrealRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transform: skewY(1deg);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(58, 46, 42, 0.3);
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

nav ul li a:hover::before {
    left: 100%;
}

/* 超现实主义内容区域 */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--surreal-shadow);
    position: relative;
    overflow: hidden;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--deep-rose);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--deep-rose);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--rose-gold), transparent);
}

/* 超现实主义文章卡片 */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(192, 142, 126, 0.1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(192, 142, 126, 0.2);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 60%, rgba(224, 191, 184, 0.1));
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-velvet);
    font-weight: 700;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--deep-rose);
    font-size: 14px;
    margin-top: 20px;
}

/* 分类标签 */
.category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--rose-gold);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页 */
.article-masterpiece {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--dark-velvet);
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(224, 191, 184, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--deep-rose);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(192, 142, 126, 0.2);
    transition: transform 0.5s ease;
}

.article-image:hover {
    transform: scale(1.02) rotate(0.5deg);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    position: relative;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
}

.article-content p::first-letter {
    font-size: 200%;
    color: var(--deep-rose);
    float: left;
    margin-right: 10px;
    line-height: 1;
    margin-top: 5px;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: linear-gradient(to right, var(--rose-gold), var(--deep-rose));
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(192, 142, 126, 0.3);
}

.pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 142, 126, 0.4);
}

/* 友情链接 */
.friend-connections {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: var(--surreal-shadow);
    position: relative;
}

.friend-connections h3 {
    margin-bottom: 25px;
    color: var(--deep-rose);
    font-size: 24px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 10px 20px;
    background: linear-gradient(to right, var(--rose-gold), var(--deep-rose));
    color: white;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(192, 142, 126, 0.2);
}

.friend-links-container a:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 8px 20px rgba(192, 142, 126, 0.3);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-rose));
    padding: 40px 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="%23ffffff" fill-opacity="0.1" d="M20,20 Q30,10 40,20 T60,20 Q70,10 80,20 T100,20 Q90,30 80,20 T60,20 Q50,30 40,20 T20,20"/></svg>');
    opacity: 0.3;
}

.copyright {
    font-size: 16px;
    color: white;
    position: relative;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-gallery {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .main-content {
        padding: 30px;
    }
}