/* 3D动态交互风格 - 极光蓝主题 */
:root {
    --primary-3d: #4cc9f0;  /* 极光蓝 */
    --secondary-3d: #4895ef;
    --dark-3d: #1a1a2e;
    --light-3d: #f8f9fa;
    --accent-3d: #f72585;
    --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.3);
    --transition-3d: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--dark-3d);
    color: var(--light-3d);
    perspective: 1000px;
    overflow-x: hidden;
}

/* 3D动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 头部3D效果 */
header {
    background: linear-gradient(135deg, var(--dark-3d), #16213e);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-3d {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-3d), var(--accent-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(76, 201, 240, 0.3);
    transform: translateZ(20px);
    transition: var(--transition-3d);
}

.logo-3d:hover {
    transform: translateZ(20px) scale(1.05);
}

/* 3D导航菜单 */
.nav-3d ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-3d li {
    position: relative;
    transform-style: preserve-3d;
}

.nav-3d a {
    color: var(--light-3d);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition-3d);
    display: block;
    transform: translateZ(15px);
    background: rgba(72, 149, 239, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.nav-3d a:hover {
    background: var(--primary-3d);
    transform: translateZ(15px) scale(1.1);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
}

/* 3D卡片容器 */
.container-3d {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    transform-style: preserve-3d;
}

/* 3D卡片效果 */
.card-3d {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-3d);
    transition: var(--transition-3d);
    transform-style: preserve-3d;
    border: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
    overflow: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(76, 201, 240, 0.1),
        rgba(76, 201, 240, 0)
    );
    transform: rotate(30deg);
    z-index: -1;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(76, 201, 240, 0.2);
}

.section-title-3d {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    transform: translateZ(10px);
}

.section-title-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-3d), transparent);
    border-radius: 3px;
}

/* 3D网格布局 */
.grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    transform-style: preserve-3d;
}

/* 3D文章卡片 */
.article-card-3d {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-3d);
    transform-style: preserve-3d;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.article-card-3d:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 25px rgba(76, 201, 240, 0.3);
}

.card-image-3d {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-3d);
}

.article-card-3d:hover .card-image-3d {
    transform: scale(1.05);
}

.card-body-3d {
    padding: 20px;
    transform-style: preserve-3d;
}

.card-title-3d {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-3d);
    transition: var(--transition-3d);
    transform: translateZ(10px);
}

.card-title-3d a {
    color: inherit;
    background: linear-gradient(to right, var(--primary-3d), var(--light-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-meta-3d {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--primary-3d);
    margin-top: 15px;
    transform: translateZ(5px);
}

/* 3D分类标签 */
.category-3d {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(to right, var(--primary-3d), var(--secondary-3d));
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(76, 201, 240, 0.3);
    transform: translateZ(5px);
}

/* 3D文章详情 */
.article-detail-3d {
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header-3d {
    margin-bottom: 40px;
    text-align: center;
    transform-style: preserve-3d;
}

.article-title-3d {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-3d), var(--light-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(15px);
}

.article-meta-3d {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-3d);
    margin-bottom: 30px;
    flex-wrap: wrap;
    transform: translateZ(10px);
}

.article-image-3d {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-3d);
    transform-style: preserve-3d;
}

.article-image-3d:hover {
    transform: rotateY(10deg) scale(1.02);
}

.article-content-3d {
    line-height: 1.8;
    font-size: 1.1rem;
    transform-style: preserve-3d;
}

.article-content-3d p {
    margin-bottom: 20px;
    transform: translateZ(5px);
}

/* 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: 30px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: var(--primary-3d);
    border: 1px solid var(--primary-3d);
    transition: var(--transition-3d);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.pagination-3d a:hover {
    background: var(--primary-3d);
    color: var(--dark-3d);
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.3);
}

/* 3D友情链接 */
.links-3d {
    margin: 40px 0;
    transform-style: preserve-3d;
}

.links-container-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    transform-style: preserve-3d;
}

.links-container-3d a {
    padding: 10px 20px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 30px;
    color: var(--primary-3d);
    border: 1px solid var(--primary-3d);
    transition: var(--transition-3d);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.links-container-3d a:hover {
    background: var(--primary-3d);
    color: var(--dark-3d);
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.3);
}

/* 3D页脚 */
.footer-3d {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(76, 201, 240, 0.2);
    transform-style: preserve-3d;
}

.copyright-3d {
    font-size: 0.9rem;
    color: var(--primary-3d);
    transform: translateZ(5px);
}

/* 3D响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-3d ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .grid-3d {
        grid-template-columns: 1fr;
    }
    
    .article-title-3d {
        font-size: 1.8rem;
    }
    
    .section-title-3d {
        font-size: 1.5rem;
    }
}

/* 3D滚动动画 */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

[data-scroll="fadeIn"] {
    transform: translateY(50px);
}

[data-scroll="fadeLeft"] {
    transform: translateX(-50px);
}

[data-scroll="fadeRight"] {
    transform: translateX(50px);
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translate(0);
}