/* 动态字体排版 - 暗红主题 */
:root {
    --primary-color: #c62828;
    --secondary-color: #e53935;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #e0e0e0;
    --accent-color: #ff5252;
    --bg-gradient: linear-gradient(135deg, #2c0000 0%, #1a0000 100%);
}

@keyframes floatText {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Microsoft YaHei', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 动态头部样式 */
header {
    background: rgba(26, 0, 0, 0.85);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(198, 40, 40, 0.3);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: floatText 8s ease-in-out infinite;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.logo::before {
    content: '//';
    position: absolute;
    left: -25px;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 动态内容区域 */
.main-content {
    background: rgba(30, 0, 0, 0.7);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(198, 40, 40, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px);
    transition: transform 0.5s, box-shadow 0.5s;
}

.main-content:hover {
    transform: perspective(1000px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 3s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

/* 动态文章网格 */
.kinetic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.kinetic-card {
    background: rgba(40, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(198, 40, 40, 0.3);
    transform-style: preserve-3d;
    position: relative;
}

.kinetic-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.kinetic-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(198, 40, 40, 0.3);
    transition: transform 0.5s;
}

.kinetic-card:hover .kinetic-image {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    transform: translateZ(30px);
}

.card-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.kinetic-card:hover .card-title {
    color: var(--accent-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 20px;
    font-weight: 500;
}

/* 分类标签 */
.kinetic-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: floatText 5s ease-in-out infinite;
}

/* 文章详情页 */
.kinetic-article {
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    perspective: 1000px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: floatText 10s ease-in-out infinite;
    text-shadow: 0 5px 15px rgba(198, 40, 40, 0.5);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
    transform: perspective(1000px) rotateX(1deg);
    transition: transform 0.5s;
}

.article-image:hover {
    transform: perspective(1000px) rotateX(0);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    transform: translateZ(20px);
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 分页导航 */
.kinetic-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    perspective: 1000px;
}

.kinetic-pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: rgba(198, 40, 40, 0.3);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.kinetic-pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 10px 20px rgba(198, 40, 40, 0.5);
}

/* 友情链接 */
.kinetic-links {
    background: rgba(30, 0, 0, 0.7);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(198, 40, 40, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kinetic-links h3 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.kinetic-links h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-container a {
    padding: 10px 20px;
    background: rgba(198, 40, 40, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s;
}

.links-container a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.5);
}

/* 页脚样式 */
footer {
    background: #0d0000;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(198, 40, 40, 0.3);
}

.copyright {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .kinetic-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .kinetic-pagination {
        flex-direction: column;
        align-items: center;
    }
}