/* 渐进式交互主题 - 霓虹电光粉色调 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --dark-bg: #0d0221;
    --darker-bg: #070113;
    --text-light: #ffffff;
    --text-dim: rgba(255,255,255,0.7);
    --transition-speed: 0.4s;
    --glow-effect: 0 0 10px var(--neon-pink), 
                  0 0 20px rgba(255, 42, 109, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 渐进加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progressive-load {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

/* 交互式头部 */
header {
    background: linear-gradient(to bottom, var(--darker-bg), transparent);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header-scrolled {
    background-color: rgba(13, 2, 33, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(255, 42, 109, 0.3);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.logo:hover {
    text-shadow: var(--glow-effect);
}

/* 渐进式导航 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover {
    color: var(--neon-pink);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 6rem 0 3rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
}

/* 渐进式卡片网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 42, 109, 0.2);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 42, 109, 0.3);
    border-color: var(--neon-pink);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--neon-pink);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.7);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--neon-blue);
}

/* 渐进式分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--neon-pink);
}

.pagination a:hover {
    background: var(--neon-pink);
    color: white;
    box-shadow: var(--glow-effect);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    color: var(--neon-blue);
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(5, 217, 232, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
}

/* 渐进式友情链接 */
.friend-links {
    margin: 3rem 0;
}

.friend-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-links-container a {
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--neon-blue);
}

.friend-links-container a:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.7);
}

/* 渐进式页脚 */
footer {
    background: linear-gradient(to top, var(--darker-bg), transparent);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 42, 109, 0.2);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--darker-bg);
        backdrop-filter: blur(10px);
        transition: right 0.5s ease;
        z-index: 1000;
        padding: 2rem;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

/* 渐进式交互效果 */
@media (prefers-reduced-motion: no-preference) {
    .article-card {
        transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    }
    
    .card-image {
        transition: transform 1.5s ease;
    }
}

/* 暗黑模式切换 */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #f5f5f5;
        --darker-bg: #e0e0e0;
        --text-light: #333333;
        --text-dim: rgba(0, 0, 0, 0.7);
    }
    
    .article-card {
        background: rgba(0, 0, 0, 0.05);
    }
}