/* 渐进式交互 - 电光粉主题 */
:root {
    --neon-pink: #ff2a6d;
    --neon-pink-light: rgba(255, 42, 109, 0.1);
    --neon-pink-dark: #d10047;
    --dark-bg: #0f0f1a;
    --darker-bg: #080811;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/Inter.var.woff2') format('woff2-variations');
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 渐进加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progressive-load {
    animation: fadeIn var(--transition-speed) ease-out forwards;
    opacity: 0;
}

/* 动态光标效果 */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--neon-pink-light);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* 布局容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 渐进式头部 */
.header-progressive {
    background-color: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 42, 109, 0.2);
    transition: all var(--transition-speed);
}

.header-scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-progressive {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-pink), #ff8a9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: all var(--transition-speed);
}

/* 渐进式导航 */
.nav-progressive {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-pink);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* 主要内容区域 */
.main-progressive {
    flex: 1;
    padding: 3rem 0;
}

.section-progressive {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), transparent);
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card-progressive {
    background-color: var(--darker-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.card-progressive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.1), transparent);
    pointer-events: none;
}

.card-progressive:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 42, 109, 0.2);
    border-color: rgba(255, 42, 109, 0.3);
}

.card-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.card-progressive:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-primary);
    transition: color var(--transition-speed);
}

.card-title a:hover {
    color: var(--neon-pink);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--neon-pink-light);
    color: var(--neon-pink);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--neon-pink);
}

/* 文章详情页 */
.article-progressive {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-image-container {
    width: 100%;
    max-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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;
}

/* 分页导航 */
.pagination-progressive {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-link:hover {
    background-color: var(--neon-pink);
    color: white;
    border-color: var(--neon-pink);
}

/* 友情链接 */
.friend-links-progressive {
    background-color: var(--darker-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-links-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-link {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-link:hover {
    background-color: var(--neon-pink);
    color: white;
    border-color: var(--neon-pink);
}

/* 页脚 */
.footer-progressive {
    background-color: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-progressive {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

/* 渐进式交互效果 */
@media (prefers-reduced-motion: no-preference) {
    [data-scroll] {
        transition: all var(--transition-speed);
    }
}

/* 暗黑/明亮模式切换 - 渐进增强 */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #f5f5f5;
        --darker-bg: #ffffff;
        --text-primary: #333333;
        --text-secondary: #666666;
    }
    
    .card-progressive, .friend-links-progressive, .footer-progressive {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}