/* 3D动态交互风格 - 极光蓝主题 */
:root {
    --primary-3d: #00b4d8;  /* 极光蓝 */
    --secondary-3d: #48cae4;
    --dark-3d: #03045e;
    --light-3d: #caf0f8;
    --accent-3d: #90e0ef;
    --text-3d: #e2f3f8;
    --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.3);
    --perspective: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, var(--dark-3d), #023e8a, #0077b6);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: var(--text-3d);
    min-height: 100vh;
    perspective: var(--perspective);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-3d);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D头部样式 */
header {
    background: rgba(3, 4, 94, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform-style: preserve-3d;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-3d), var(--accent-3d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transform: translateZ(20px);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-3d), transparent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    transform-style: preserve-3d;
}

nav ul li {
    position: relative;
    transform-style: preserve-3d;
}

nav ul li a {
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    display: block;
    transform: translateZ(15px);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-3d);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 3D卡片内容区域 */
.main-content {
    background: rgba(3, 4, 94, 0.4);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 180, 216, 0.2);
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
    transition: transform 0.5s, box-shadow 0.5s;
}

.main-content:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateZ(30px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-3d), transparent);
    border-radius: 2px;
}

/* 3D卡片网格 */
.article-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: var(--perspective);
}

.article-card-3d {
    background: rgba(0, 180, 216, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    transform-style: preserve-3d;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.article-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.3);
    background: rgba(0, 180, 216, 0.2);
}

.article-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 60%, rgba(0, 180, 216, 0.1));
    z-index: -1;
}

.card-image-3d {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
    transform: translateZ(10px);
}

.card-body-3d {
    padding: 25px;
    transform-style: preserve-3d;
}

.card-title-3d {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
    transform: translateZ(20px);
}

.card-meta-3d {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--accent-3d);
    margin-top: 20px;
    transform: translateZ(15px);
}

.category-tag-3d {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 180, 216, 0.3);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    transform: translateZ(15px);
    border: 1px solid var(--primary-3d);
}

/* 3D文章详情 */
.article-detail-3d {
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header-3d {
    margin-bottom: 50px;
    text-align: center;
    transform-style: preserve-3d;
}

.article-title-3d {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateZ(40px);
}

.article-meta-3d {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--accent-3d);
    margin-bottom: 30px;
    flex-wrap: wrap;
    transform: translateZ(30px);
}

.article-image-3d {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: translateZ(20px);
    border: 3px solid rgba(0, 180, 216, 0.5);
}

.article-content-3d {
    line-height: 1.9;
    font-size: 18px;
    transform: translateZ(15px);
}

.article-content-3d p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content-3d p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-3d);
    border-radius: 50%;
}

/* 3D分页 */
.pagination-3d {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    transform-style: preserve-3d;
}

.pagination-3d a {
    padding: 12px 25px;
    border-radius: 30px;
    background: rgba(0, 180, 216, 0.3);
    border: 1px solid var(--primary-3d);
    transition: all 0.4s;
    transform: translateZ(20px);
    font-weight: 600;
}

.pagination-3d a:hover {
    background: var(--primary-3d);
    color: white;
    transform: translateZ(20px) scale(1.1);
}

/* 3D友情链接 */
.friend-links-3d {
    background: rgba(3, 4, 94, 0.4);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 180, 216, 0.3);
    transform-style: preserve-3d;
}

.friend-links-3d h3 {
    margin-bottom: 25px;
    color: white;
    font-size: 24px;
    transform: translateZ(30px);
}

.friend-links-container-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    transform-style: preserve-3d;
}

.friend-links-container-3d a {
    padding: 10px 20px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 30px;
    font-size: 15px;
    border: 1px solid var(--primary-3d);
    transition: all 0.3s;
    transform: translateZ(15px);
}

.friend-links-container-3d a:hover {
    background: var(--primary-3d);
    color: white;
    transform: translateZ(15px) scale(1.05);
}

/* 3D页脚 */
footer {
    background: rgba(3, 4, 94, 0.7);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 180, 216, 0.3);
    transform-style: preserve-3d;
}

.copyright {
    font-size: 16px;
    color: var(--accent-3d);
    transform: translateZ(20px);
}

/* 3D响应式设计 */
@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;
    }
}

@media (max-width: 768px) {
    .article-grid-3d {
        grid-template-columns: 1fr;
    }
    
    .article-meta-3d {
        gap: 15px;
    }
    
    .main-content {
        padding: 30px;
    }
}

/* 3D动画效果 */
@keyframes rotate3d {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

.rotate-3d {
    animation: rotate3d 10s linear infinite;
}