/* 3D动态风格 - 极光蓝主题 */
:root {
    --primary-3d: #4cc9f0;  /* 极光蓝 */
    --secondary-3d: #4361ee;
    --dark-3d: #1a1a2e;
    --light-3d: #f8f9fa;
    --accent-3d: #7209b7;
    --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.3);
    --perspective: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-3d);
    color: var(--light-3d);
    perspective: var(--perspective);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-3d);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D导航栏 */
header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(15px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    transform-style: preserve-3d;
}

.header-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(20px);
}

.logo-3d {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-3d), var(--accent-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
}

.nav-3d ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-3d li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-3d li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.4), transparent);
    transition: 0.5s;
}

.nav-3d li a:hover {
    background: var(--primary-3d);
    color: var(--dark-3d);
    box-shadow: 0 0 20px var(--primary-3d);
}

.nav-3d li a:hover::before {
    left: 100%;
}

/* 3D卡片内容区 */
.main-3d {
    padding: 60px 0;
}

.section-3d {
    margin-bottom: 50px;
    transform-style: preserve-3d;
}

.section-title-3d {
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    transform: translateZ(30px);
}

.section-title-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-3d), transparent);
}

/* 3D卡片网格 */
.grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    perspective: var(--perspective);
}

.card-3d {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(76, 201, 240, 0.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(76, 201, 240, 0.1), transparent);
    opacity: 0;
    transition: 0.5s;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.03);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(76, 201, 240, 0.3);
}

.card-3d:hover::before {
    opacity: 1;
}

.card-image-3d {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    transform: translateZ(20px);
}

.card-body-3d {
    padding: 25px;
    transform: translateZ(20px);
}

.card-title-3d {
    font-size: 22px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-3d), var(--light-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text-3d {
    color: rgba(248, 249, 250, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-meta-3d {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-3d);
}

/* 3D分页 */
.pagination-3d {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    transform-style: preserve-3d;
}

.pagination-3d a {
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid var(--primary-3d);
    font-weight: 600;
    transform: translateZ(20px);
    position: relative;
    overflow: hidden;
}

.pagination-3d a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-3d), transparent);
    transition: 0.5s;
}

.pagination-3d a:hover {
    background: var(--primary-3d);
    color: var(--dark-3d);
    box-shadow: 0 0 20px var(--primary-3d);
}

.pagination-3d a:hover::before {
    left: 100%;
}

/* 3D文章详情 */
.article-3d {
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header-3d {
    text-align: center;
    margin-bottom: 50px;
    transform: translateZ(30px);
}

.article-title-3d {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-3d), var(--light-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta-3d {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--primary-3d);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image-3d {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(76, 201, 240, 0.3);
    transform: translateZ(30px);
}

.article-content-3d {
    line-height: 1.8;
    font-size: 18px;
    transform: translateZ(20px);
}

.article-content-3d p {
    margin-bottom: 25px;
    color: rgba(248, 249, 250, 0.9);
}

/* 3D友情链接 */
.links-3d {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 50px 0;
    border: 1px solid rgba(76, 201, 240, 0.1);
    transform-style: preserve-3d;
}

.links-title-3d {
    font-size: 28px;
    margin-bottom: 25px;
    transform: translateZ(20px);
}

.links-container-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    transform: translateZ(15px);
}

.links-container-3d a {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid var(--primary-3d);
    transition: all 0.4s;
}

.links-container-3d a:hover {
    background: var(--primary-3d);
    color: var(--dark-3d);
    box-shadow: 0 0 15px var(--primary-3d);
    transform: translateY(-3px);
}

/* 3D页脚 */
.footer-3d {
    background: rgba(26, 26, 46, 0.9);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(76, 201, 240, 0.2);
    transform-style: preserve-3d;
}

.copyright-3d {
    font-size: 16px;
    color: var(--primary-3d);
    transform: translateZ(20px);
}

/* 3D动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-3d {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-3d ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title-3d {
        font-size: 30px;
    }
    
    .article-title-3d {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .grid-3d {
        grid-template-columns: 1fr;
    }
    
    .article-title-3d {
        font-size: 30px;
    }
    
    .article-meta-3d {
        gap: 15px;
    }
}