* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.archive-container {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 80px 15px 40px 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.archive-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.archive-container .center-section {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    min-height: calc(100vh - 120px);
}

.date-filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 自定义下拉选择器 */
.custom-select {
    position: relative;
    min-width: 140px;
    cursor: pointer;
}

.custom-select-trigger {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select-trigger:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-select-trigger::after {
    content: '▼';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1);
}

.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-options li {
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-select-options li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-select-options li.selected {
    background-color: rgba(135, 62, 239, 0.3);
    color: #fff;
}

.custom-select-options li:first-child {
    border-radius: 8px 8px 0 0;
}

.custom-select-options li:last-child {
    border-radius: 0 0 8px 8px;
}

.search-btn {
    padding: 10px 25px;
    background: #873bef;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(135, 62, 239, 0.3);
}

.search-btn:hover {
    background: #9b59f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 62, 239, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    min-height: 120px;
    flex-shrink: 0;
    opacity: 1;
    transform: none;
}

.blog-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.blog-item-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.blog-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.blog-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.blog-info {
    flex: 1;
    min-width: 0;
}

.blog-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.blog-small-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.blog-date {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.no-articles {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .date-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-select {
        width: 100%;
        min-width: auto;
    }
    
    .custom-select-trigger {
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-btn {
        width: 100%;
    }
}
