/* 3D动态交互风格 - 黄色主题 */
:root {
    --primary-color: #ffd700;
    --secondary-color: #ffaa00;
    --dark-color: #1a1a1a;
    --light-color: #f8f8f8;
    --text-color: #e0e0e0;
    --accent-color: #ff6b00;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --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-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D头部样式 */
header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transform-style: preserve-3d;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    perspective: 1000px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    transform: translateZ(20px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    position: relative;
    transform-style: preserve-3d;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    display: block;
    transform: translateZ(10px);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

nav ul li a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateZ(20px) scale(1.05);
}

/* 3D主要内容区域 */
.main-content {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transform-style: preserve-3d;
    transition: var(--transition);
}

.main-content:hover {
    transform: translateY(-5px);
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateZ(20px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 2px;
}

/* 3D卡片式文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transform-style: preserve-3d;
    box-shadow: var(--shadow);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    z-index: -1;
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
    transform: translateZ(20px);
}

.card-title {
    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: var(--transition);
}

.article-card:hover .card-title {
    color: var(--primary-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 15px;
}

/* 3D分类标签 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: var(--dark-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    transform: translateZ(15px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* 3D文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    transform: translateZ(30px);
}

.article-title {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.article-image:hover {
    transform: rotateY(10deg) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    transform: translateZ(20px);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-content img:hover {
    transform: scale(1.02) rotateZ(1deg);
}

/* 3D分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    perspective: 1000px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* 3D友情链接 */
.friend-links {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transform-style: preserve-3d;
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    transform: translateZ(20px);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    perspective: 1000px;
}

.friend-links-container a {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.friend-links-container a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-5px) rotateY(10deg);
}

/* 3D页脚样式 */
footer {
    background-color: #111;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    transform-style: preserve-3d;
}

.copyright {
    font-size: 14px;
    color: var(--secondary-color);
    transform: translateZ(20px);
}

/* 3D动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
}