/* 3D动态交互风格 - 浆果红色调 */
:root {
    --primary-color: #e84393;
    --secondary-color: #fd79a8;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #f1f1f1;
    --accent-color: #ff9ff3;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    perspective: 1000px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 159, 243, 0.7);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

/* 3D浮动头部 */
header {
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.9), rgba(253, 121, 168, 0.8));
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 3D卡片内容区 */
.main-content {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 67, 147, 0.3);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: var(--transition);
}

.main-content:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(232, 67, 147, 0.4);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    color: white;
    text-shadow: 0 0 10px rgba(232, 67, 147, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 3D悬浮卡片网格 */
.article-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card-3d {
    background: linear-gradient(145deg, rgba(45, 45, 70, 0.8), rgba(26, 26, 46, 0.9));
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 67, 147, 0.2);
}

.article-card-3d:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.03);
    box-shadow: 0 15px 35px rgba(232, 67, 147, 0.4);
}

.card-image-3d {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(232, 67, 147, 0.3);
    transition: var(--transition);
}

.article-card-3d:hover .card-image-3d {
    transform: scale(1.1);
}

.card-body-3d {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.card-title-3d {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
}

.card-meta-3d {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--accent-color);
    margin-top: 20px;
}

/* 分类标签3D效果 */
.category-tag-3d {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(232, 67, 147, 0.3);
    transform: translateZ(10px);
}

/* 文章详情页3D效果 */
.article-detail-3d {
    max-width: 850px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header-3d {
    margin-bottom: 50px;
    text-align: center;
    transform: translateZ(30px);
}

.article-title-3d {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: white;
    text-shadow: 0 0 15px rgba(232, 67, 147, 0.5);
    background: linear-gradient(to right, white, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta-3d {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--accent-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image-3d {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transform: translateZ(20px);
    border: 3px solid rgba(232, 67, 147, 0.5);
}

.article-content-3d {
    line-height: 1.9;
    font-size: 18px;
    transform: translateZ(10px);
}

.article-content-3d p {
    margin-bottom: 25px;
}

.article-content-3d img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-content-3d img:hover {
    transform: scale(1.02) rotateZ(1deg);
}

/* 3D分页导航 */
.pagination-3d {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination-3d a {
    padding: 12px 25px;
    border-radius: 50px;
    background: linear-gradient(145deg, rgba(232, 67, 147, 0.8), rgba(253, 121, 168, 0.7));
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.4);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.pagination-3d a:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 10px 25px rgba(232, 67, 147, 0.6);
}

/* 3D友情链接 */
.friend-links-3d {
    background: linear-gradient(145deg, rgba(45, 45, 70, 0.8), rgba(26, 26, 46, 0.9));
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(232, 67, 147, 0.3);
    transform-style: preserve-3d;
}

.friend-links-3d h3 {
    margin-bottom: 25px;
    color: white;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(232, 67, 147, 0.5);
}

.friend-links-container-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container-3d a {
    padding: 10px 20px;
    background: rgba(232, 67, 147, 0.2);
    border-radius: 50px;
    font-size: 15px;
    border: 1px solid rgba(232, 67, 147, 0.4);
    transition: var(--transition);
}

.friend-links-container-3d a:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.4);
}

/* 3D页脚 */
footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(45, 45, 70, 0.9));
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid rgba(232, 67, 147, 0.3);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.copyright {
    font-size: 16px;
    color: var(--accent-color);
}

/* 3D动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateY(0);
    }
    50% {
        transform: translateY(-10px) rotateY(5deg);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid-3d {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .article-title-3d {
        font-size: 30px;
    }
    
    .article-meta-3d {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .article-grid-3d {
        grid-template-columns: 1fr;
    }
    
    .article-title-3d {
        font-size: 26px;
    }
    
    .pagination-3d {
        flex-direction: column;
        align-items: center;
    }
}