* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4a6cf7;
    --secondary: #ff6b6b;
    --dark: #0f172a;
    --darker: #0a0f1f;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--gray);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* 页面标题区域 */
.page-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;

}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* 文章列表区域 */
.articles-section {
    padding: 3rem 0 6rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.article-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    height: 280px;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 108, 247, 0.25);
    border-color: rgba(74, 108, 247, 0.2);
}

.article-image {
    flex: 0 0 30%;
    background: linear-gradient(45deg, #64748b, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1), transparent);
    z-index: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例同时填充容器 */
    position: absolute; /* 使用绝对定位确保图片充满容器 */
    min-width: 100%;
    min-height: 100%;
}

.article-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.categories-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.article-category {
    display: inline-block;
    background: rgba(74, 108, 247, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-category {
        padding: 0.2rem 0.7rem;
        font-size: 0.8rem;
    }
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-title a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    background: linear-gradient(120deg, var(--light), var(--light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-title a:hover {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
}

.article-excerpt {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.95rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 分类筛选 */
.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.categories-filter a {
    text-decoration: none;
}

.categories-filter a.active {
    background: var(--primary);
    color: white;
}

.categories-filter a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-btn {
    background: rgba(74, 108, 247, 0.1);
    color: var(--gray);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: rgba(74, 108, 247, 0.3);
    color: var(--primary);
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 4rem;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
}


/* 装饰元素 */
.circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.15), transparent);
    top: 10%;
    right: 10%;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), transparent);
    bottom: 20%;
    left: 5%;
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-card {
        height: auto;
        flex-direction: column;
    }

    .article-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .page-title {
        font-size: 2.8rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-content {
        padding: 1.8rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* 搜索框样式 */
.search-section {
    position: relative;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--light);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(74, 108, 247, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-box button {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .search-box {
        max-width: 90%;
    }
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1.8rem;
}

.no-results p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.no-results .fa-search-minus {
    color: var(--secondary-color);
    opacity: 0.8;
}


