/* 3D动态风格 - 极光蓝主题 */
:root {
    --primary-color: #4cc9f0;
    --secondary-color: #4895ef;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #e2e2e2;
    --accent-color: #4361ee;
    --glow-color: rgba(76, 201, 240, 0.4);
    --year: "2088";
}

* {
    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(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--light-color);
    text-shadow: 0 0 8px var(--glow-color);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D浮动头部 */
header {
    background: rgba(26, 26, 46, 0.85);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(72, 149, 239, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(20px);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 0.6s ease;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background-color: rgba(72, 149, 239, 0.2);
    box-shadow: 0 0 15px var(--glow-color);
}

/* 3D卡片内容区 */
.main-content {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(72, 149, 239, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

/* 3D悬浮卡片网格 */
.article-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card-3d {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid rgba(72, 149, 239, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.03);
    box-shadow: 0 15px 40px var(--glow-color);
    border-color: var(--primary-color);
}

.article-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card-3d:hover::before {
    opacity: 1;
}

.card-image-3d {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.article-card-3d:hover .card-image-3d {
    transform: scale(1.05);
}

.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: var(--light-color);
    transition: all 0.3s ease;
}

.article-card-3d:hover .card-title-3d {
    color: var(--primary-color);
}

.card-meta-3d {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 20px;
}

/* 3D分类标签 */
.category-3d {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px var(--glow-color);
    transform: translateZ(10px);
}

/* 3D文章详情页 */
.article-detail-3d {
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header-3d {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title-3d {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
    position: relative;
    display: inline-block;
}

.article-title-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.article-meta-3d {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-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: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.article-image-3d:hover {
    transform: rotateY(5deg) scale(1.02);
    box-shadow: 0 25px 60px var(--glow-color);
}

.article-content-3d {
    line-height: 1.9;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.article-content-3d p {
    margin-bottom: 25px;
    position: relative;
}

.article-content-3d img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.article-content-3d img:hover {
    transform: scale(1.02) rotateZ(1deg);
    box-shadow: 0 20px 50px var(--glow-color);
}

/* 3D分页导航 */
.pagination-3d {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination-3d a {
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(72, 149, 239, 0.2);
    border: 1px solid var(--primary-color);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pagination-3d a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 0.6s ease;
}

.pagination-3d a:hover::before {
    left: 100%;
}

.pagination-3d a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-3px);
}

/* 3D友情链接 */
.friend-links-3d {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(72, 149, 239, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
}

.friend-links-3d h3 {
    margin-bottom: 25px;
    color: var(--light-color);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-container-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container-3d a {
    padding: 10px 20px;
    background: rgba(72, 149, 239, 0.2);
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.friend-links-container-3d a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-3px) rotateX(5deg);
}

/* 3D页脚 */
footer {
    background-color: #0f0f1a;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(72, 149, 239, 0.2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.copyright {
    font-size: 16px;
    color: var(--secondary-color);
}

/* 3D背景元素 */
.background-element {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color), transparent 70%);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.3;
}

.background-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.background-element:nth-child(2) {
    bottom: 15%;
    right: 10%;
    animation: float 18s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(50px);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-grid-3d {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .article-title-3d {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid-3d {
        grid-template-columns: 1fr;
    }
    
    .article-title-3d {
        font-size: 30px;
    }
    
    .article-meta-3d {
        gap: 15px;
    }
    
    .pagination-3d {
        flex-direction: column;
        align-items: center;
    }
}