/* ========================================
   文章列表样式
   ======================================== */
.container {
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.article-list-container {
    position: fixed;
    bottom: 15px;
    left: 10px;
    width: 320px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.2s ease;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.search-icon {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

.article-list {
    max-height: 320px;
    padding: 8px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
}

.article-list::-webkit-scrollbar {
    display: none;
}

.article-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.article-item:nth-child(1) { animation-delay: 0.1s; }
.article-item:nth-child(2) { animation-delay: 0.2s; }
.article-item:nth-child(3) { animation-delay: 0.2s; }

.article-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.article-item:last-child {
    margin-bottom: 0;
}

.article-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.article-item p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* 只在第一页显示文章列表 */
#page-1.visible .article-list-container {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
/* PC端不显示按钮 */
.mobile-collapse-btn,
.mobile-expand-btn {
    display: none;
}
/* 移动端显示控制 */
@media screen and (max-width: 540px) {
    /* 按钮 */
    #page-1.visible .mobile-expand-btn,
    #page-1.visible .mobile-collapse-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        visibility: visible;
        background-color: rgba(68, 68, 68, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 展开按钮 */
    #page-1.visible .mobile-expand-btn {
        position: fixed;
        left: 0;
        top: 35%;
        width: 2.1875rem;
        height: 3.125rem;
        color: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-left: none;
        border-radius: 0 30px 30px 0;
        transform: translateX(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    #page-1.visible .mobile-expand-btn svg {
        width: 1.125rem;
        height: 1.125rem;
        transition: transform 0.3s ease;
    }

    /* 收起按钮 */
    #page-1.visible .mobile-collapse-btn {
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        width: 30px;
        height: 32px;
        color: rgba(255, 255, 255, 0.8);
        margin-right: 8px;
        flex-shrink: 0;
        z-index: 100;
    }
    #page-1.visible .mobile-collapse-btn svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    /* 展开按钮缩入动画 */
    #page-1.visible .mobile-expand-btn.hiding {
        transform: translateX(-35px);
        opacity: 0;
        pointer-events: none;
    }
    
    /* 收起按钮显示动画 */
    #page-1.visible .mobile-collapse-btn.showing {
        opacity: 1;
        visibility: visible;
    }
    

    /* 移动端文章列表样式 */
     #page-1.visible .article-list-container {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        bottom: 10px;
        max-height: 70vh;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
    }
    
    #page-1.visible .article-list-container.expanded {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}