/* 深色系调色板 */
:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --accent: #6a5acd; /* 紫水晶色 */
    --accent-light: #9370db;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 现代无衬线字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.load-animate {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* 布局容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 极简头部 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

/* 简约导航 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

/* 主内容区 */
.main-content {
    padding: 6rem 0 4rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

/* 卡片网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.card-image-container {
    height: 180px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

/* 特色文章 */
.featured-article {
    grid-column: span 2;
}

.featured-article .card-image-container {
    height: 300px;
}

.featured-article .card-title {
    font-size: 1.5rem;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.7rem 1.2rem;
    background-color: var(--card-bg);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* 标签样式 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.tag {
    padding: 0.4rem 0.9rem;
    background-color: rgba(106, 90, 205, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
    color: var(--accent-light);
}

.tag:hover {
    background-color: var(--accent);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .featured-article {
        grid-column: span 1;
    }
    
    .featured-article .card-image-container {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 1rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 300px;
    }
}

/* 交互效果 */
.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-accent:hover {
    color: var(--accent) !important;
}