/* 3D动态风格 - 极光蓝主题 */
:root {
    --primary-color: #00b4d8;
    --secondary-color: #48cae4;
    --dark-color: #03045e;
    --light-color: #caf0f8;
    --text-color: #023e8a;
    --accent-color: #0077b6;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --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: linear-gradient(135deg, #caf0f8 0%, #90e0ef 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D浮动头部 */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(50px);
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transform: translateZ(30px);
}

nav ul li a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) translateZ(40px);
}

/* 3D卡片内容区 */
.main-content {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    transition: var(--transition);
}

.main-content:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateZ(40px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 3D悬浮卡片网格 */
.article-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-3d-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    position: relative;
    transform: rotateY(0deg);
}

.article-3d-card:hover {
    transform: translateY(-15px) rotateY(10deg) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.3);
}

.article-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.card-3d-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.article-3d-card:hover .card-3d-image {
    transform: scale(1.1);
}

.card-3d-body {
    padding: 25px;
    transform: translateZ(30px);
}

.card-3d-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-3d-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 20px;
    font-weight: 500;
}

/* 3D分类标签 */
.category-3d-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateZ(20px);
}

/* 3D文章详情页 */
.article-3d-detail {
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-3d-header {
    margin-bottom: 40px;
    text-align: center;
    transform: translateZ(50px);
}

.article-3d-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.article-3d-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--accent-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

.article-3d-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: rotateX(5deg) rotateY(5deg);
}

.article-3d-image:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.article-3d-content {
    line-height: 1.9;
    font-size: 18px;
    transform: translateZ(30px);
}

.article-3d-content p {
    margin-bottom: 25px;
}

.article-3d-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-3d-content img:hover {
    transform: scale(1.02);
}

/* 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: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: rotateY(0deg);
}

.pagination-3d a:hover {
    transform: translateY(-5px) rotateY(15deg);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.4);
}

/* 3D友情链接 */
.friend-links-3d {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
}

.friend-links-3d h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
    font-size: 24px;
    transform: translateZ(40px);
}

.friend-links-3d-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    transform-style: preserve-3d;
}

.friend-links-3d-container a {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    transform: rotateY(0deg);
}

.friend-links-3d-container a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) rotateY(10deg);
}

/* 3D页脚 */
footer {
    background: var(--dark-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.copyright {
    font-size: 16px;
    color: var(--light-color);
    transform: translateZ(50px);
}

/* 3D波浪背景效果 */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2300b4d8" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10,59.54-26.68,82.13-47.8,40.84-38.98,77.87-93.29,119.83-93.29,42,0,78.99,54.29,119.83,93.29,22.59,21.11,51,37.8,82.13,47.8,59.57,19.42,125.16,19.75,176.89-20.45C947.34,56.86,963.1,36.92,976,15.81V0Z" fill="%2300b4d8" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%2300b4d8"/></svg>');
    background-size: cover;
    transform-origin: bottom;
    animation: wave 10s infinite linear;
    opacity: 0.6;
}

@keyframes wave {
    0% { transform: scaleX(1) translateZ(0); }
    50% { transform: scaleX(1.2) translateZ(20px); }
    100% { transform: scaleX(1) translateZ(0); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-3d-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .article-3d-title {
        font-size: 30px;
    }
    
    .article-3d-meta {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .article-3d-grid {
        grid-template-columns: 1fr;
    }
    
    .article-3d-title {
        font-size: 26px;
    }
    
    .pagination-3d {
        flex-direction: column;
        align-items: center;
    }
}