.text-container {
    position: relative;
    left: 164px;
    top: 220px;
    width: 278px;
}

.research-text {
    font-family: 'Plain', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    color: #F8F6E8;
    letter-spacing: -0.4px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .text-container {
        left: 5%;
        top: 120px;
        width: 90%;
    }

    .research-text {
        font-size: 48px;
    }
}

@media screen and (max-width: 480px) {
    .text-container {
        top: 80px;
    }

    .research-text {
        font-size: 36px;
    }
}

/* 修改筛选芯片组件样式 */
.filter-chips {
    display: flex;
    gap: 10px;
    min-width: 1400px;
    margin-left: 164px;
    position: absolute;
    top: 314px;
}

.chip {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: -0.4px;
    border: 1px solid rgba(248, 246, 232, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip.active {
    background-color: rgb(248, 246, 232);
    border: 1px solid rgba(248, 246, 232, 0.6);
    color: rgb(17, 17, 17);
}

.chip:not(.active) {
    color: rgb(248, 246, 232);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .filter-chips {
        padding: 10px 15px;
        top: 200px;
        margin-left: 5%;  /* 与 text-container 响应式对齐 */
    }
    
    .chip {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .filter-chips {
        gap: 8px;
        top: 160px;
    }
    
    .chip {
        font-size: 13px;
        padding: 0 10px;
    }
}

/* 文章卡片容器 */
.articles-container {
    display: grid;
    grid-template-columns: repeat(3, 460px);
    gap: 10px 10px;
    margin-left: 164px;  /* 默认使用固定margin */
    margin-right: auto;
    position: relative;
    top: 320px;
    min-height: 1200px;
}

.article-card {
    width: 460px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: 547px;
    text-decoration: none;  /* 移除链接下划线 */
    cursor: pointer;
    transition: opacity 0.3s ease;  /* 添加过渡效果 */
}

.article-card:hover {
    opacity: 0.8;  /* 悬停时的透明度效果 */
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-image {
    width: 100%;
    height: 259px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 28px;
    line-height: 28px;
    color: #f8f6e8;
    max-width: 420px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 258px;
    height: 16px;
}

.article-category {
    background-color: #7639e5;
    padding: 0 8px;
    height: 16px;
    display: flex;
    align-items: center;
}

.article-category span {
    font-size: 14px;
    color: #f8f6e8;
    white-space: nowrap;
    font-style: 400;
}

.article-date {
    font-size: 14px;
    color: rgba(247, 245, 231, 0.6);
    font-weight: 400;
    white-space: nowrap;
}

.article-excerpt {
    font-size: 14px;
    color: #f8f6e8;
    max-width: 420px;
    font-weight: 400;
}

.view-button {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: fit-content;
    transition: opacity 0.3s ease;
}

.view-button:hover {
    opacity: 0.8;
}

.view-text {
    font-size: 20px;
    color: #f8f6e8;
    line-height: 20px;
    font-weight: 400;
}

.view-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../web_assets/arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        top: 240px;
    }
}

@media (max-width: 480px) {
    .articles-container {
        top: 200px;
    }

    .article-card {
        width: 100%;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto;
    }

    .article-image {
        height: 200px;
    }
}

.center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #F8F6E8;
}

.center-content .logo {
    width: 64px;
    height: 64px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.center-content div {
    font-size: 16px;  /* 调整文字大小 */
    line-height: 16px;
    font-weight: 400;
}

/* 修改图片模糊效果的选择器，排除center-content */
.article-card:nth-child(2) .article-image > img {  /* 使用直接子选择器 */
    filter: blur(2px);
}

/* 确保center-content及其内容保持清晰 */
.article-card:nth-child(2) .center-content,
.article-card:nth-child(2) .center-content * {
    filter: none;  /* 覆盖任何继承的模糊效果 */
}

/* 修改卡片的位置设置 */
.article-card:nth-child(4),
.article-card:nth-child(5),
.article-card:nth-child(6) {
    margin-top: 80px;  /* 默认间距 */
}

/* 当卡片显示时（筛选结果）移除间距 */
.article-card:nth-child(4):not([style*="display: none"]),
.article-card:nth-child(5):not([style*="display: none"]),
.article-card:nth-child(6):not([style*="display: none"]) {
    margin-top: 10px;  /* 使用正常的gap间距 */
}

/* 确保第六个卡片的center-content保持清晰 */
.article-card:nth-child(6) .center-content,
.article-card:nth-child(6) .center-content * {
    filter: none;
}

/* 第六个卡片的图片水平翻转，但center-content不翻转 */
.article-card:nth-child(6) .article-image > img {
    transform: scaleX(-1);  /* 只翻转图片 */
}

.article-card:nth-child(6) .center-content {
    transform: translate(-50%, -50%) scaleX(1);  /* 覆盖继承的翻转，保持原样 */
}

/* 修改container的最小高度，确保能容纳所有卡片 */
.container {
    width: 100%;
    max-width: 1728px;
    margin: 0 auto;
    position: relative;
    height: 1860px;
    overflow: visible;
}

/* Loading组件样式 */
.loading-more {
    width: 1400px;
    height: 60px;
    position: relative;
    top: 400px;
    margin-left: 164px;  /* 默认使用固定margin */
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-more span {
    font-size: 14px;
    line-height: 14px;
    color: #F8F6E8;
    font-weight: 400;
}

/* 响应式设计补充 */
@media (max-width: 1728px) {
    .text-container {
        left: 0;
        padding-left: calc((100vw - 1400px) / 2);
    }

    .filter-chips {
        margin-left: 0;
        padding-left: calc((100vw - 1400px) / 2);
    }

    .articles-container,
    .loading-more {
        margin-left: 0;
        padding-left: calc((100vw - 1400px) / 2);
        padding-right: calc((100vw - 1400px) / 2);
    }
}

@media (max-width: 1400px) {
    .text-container {
        padding-left: 10px;
    }

    .filter-chips {
        padding-left: 10px;
    }

    .articles-container,
    .loading-more {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* No articles found 组件样式 */
.no-articles {
    width: 112px;
    height: 14px;
    position: absolute;
    top: 35%;  /* 垂直居中 */
    left: 50%;  /* 水平居中 */
    transform: translate(-50%, -50%);  /* 完全居中 */
    display: none;  /* 默认隐藏 */
}

.no-articles span {
    font-size: 14px;
    line-height: 14px;
    color: rgba(248, 246, 232, 0.4);
    font-weight: 400;
    white-space: nowrap;  /* 防止文本换行 */
}

/* 移除之前的响应式设计补充，因为现在是居中定位 */
@media (max-width: 1728px) {
    .no-articles {
        margin-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 1400px) {
    .no-articles {
        padding-left: 0;
    }
}
