.elementor-post-download-widget {
    padding: 110px 0;
    overflow: hidden;
}

.post-download-year-filter {
    margin-bottom: 20px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow: hidden;
}

.post-download-year-filter label {
    font-weight: normal;
    margin: 0;
    font-size: 16px;
}

.post-download-year-filter select.post-download-year-select {
    margin-left: 10px;
    width: 400px;
    border: 1px #ccc solid;
    height: 60px;
    padding: 0 10px;
    -webkit-appearance: none; /* 针对WebKit内核浏览器 */
    -moz-appearance: none;    /* 针对Firefox */
    appearance: none;         /* 标准语法 */
    background-color: #fff;
    position: relative;
    font-size: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.post-download-list {
    margin-top: 66px;
}

.post-download-list .download-ul {
    display: flex;
    flex-wrap: wrap;
}

.post-download-item {
    width: 49%;
    margin-right: 2%;
    margin-bottom: 40px;
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    border-radius: 0;
    transition: none;
    box-shadow: none;
}

.post-download-item:nth-child(2n) {
    margin-right: 0;
}

.post-download-item:hover {
    box-shadow: none;
    transform: none;
}

.post-download-thumbnail {
    flex-shrink: 0;
}

.post-download-thumbnail img {
    object-fit: cover;
    border-radius: 0;
}

.post-download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 66%;
    padding-left: 20px;
}

.post-download-header {
    margin-bottom: 20px;
}

.post-download-item .post-download-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-family: "Poppins-bold", sans-serif;
    font-weight: 700;
    color: #333;
}

.post-download-item .post-download-year {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.post-download-item .post-download-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.post-download-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.post-download-buttons .elementor-button {
    margin: 0;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 39px;
    width: 137px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D61318;
    color: #fff;
    border: none;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-download-buttons .elementor-button.with-icon {
    padding: 0 15px;
}

.post-download-buttons .elementor-button i,
.post-download-buttons .elementor-button svg {
    flex-shrink: 0;
    line-height: 1;
    max-height: 100%;
    vertical-align: middle;
    margin-right: 8px; /* 默认间距，将被Elementor控制覆盖 */
}

/* 为字体图标添加样式支持 */
.post-download-buttons .elementor-button i[class*="fa"],
.post-download-buttons .elementor-button i[class*="fas"],
.post-download-buttons .elementor-button i[class*="far"],
.post-download-buttons .elementor-button i[class*="fab"],
.post-download-buttons .elementor-button i[class*="wd-icon"] {
    font-size: 16px; /* 默认大小，将被Elementor控制覆盖 */
}

/* 为SVG图标添加样式支持 */
.post-download-buttons .elementor-button svg {
    width: 16px; /* 默认大小，将被Elementor控制覆盖 */
    height: 16px; /* 默认大小，将被Elementor控制覆盖 */
    flex-shrink: 0;
}

/* 为SVG图标添加更具体的选择器 */
.post-download-buttons .download-button svg,
.post-download-buttons .preview-button svg {
    width: 16px; /* 默认大小，将被Elementor控制覆盖 */
    height: 16px; /* 默认大小，将被Elementor控制覆盖 */
    flex-shrink: 0;
}

.post-download-buttons .download-button {
    background-color: #D61318;
    color: #fff;
    border: none;
}

.post-download-buttons .preview-button {
    background-color: #D61318;
    color: #fff;
    border: none;
    opacity: 0.8;
}

.post-download-buttons .elementor-button:hover {
    opacity: 0.9;
    transform: none;
}

/* 隐藏类 */
.post-download-item.hidden {
    display: none !important;
}

.post-download-empty-message {
    display: none;
    margin-top: 20px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1600px) {
    .elementor-post-download-widget .widget-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .elementor-post-download-widget {
        padding: 10% 0;
    }
    
    .elementor-post-download-widget .widget-title {
        font-size: 36px;
    }
    
    .post-download-year-filter {
        margin-top: 2%;
    }
    
    .post-download-year-filter .text {
        display: none;
    }
    
    .post-download-year-filter .select {
        width: 100%;
        margin-left: 0;
    }
    
    .post-download-year-filter select.post-download-year-select {
        width: 100%;
        margin-left: 0;
        height: 42px;
    }
    
    .post-download-list {
        margin-top: 10%;
    }
    
    .post-download-item {
        width: 100%;
        margin-bottom: 4%;
    }
    
    .post-download-item .post-download-title {
        font-size: 18px;
    }
    
    .post-download-buttons {
        margin-top: 2%;
    }
}

@media (max-width: 750px) {
    .elementor-post-download-widget .widget-title {
        font-size: 24px;
    }
    
    .post-download-year-filter select.post-download-year-select {
        height: 42px;
    }
    
    .post-download-item {
        /* 保持flex布局，但调整方向 */
        flex-direction: row;
        align-items: center; /* 修改为居中对齐 */
    }
    
    .post-download-thumbnail {
        width: 178px; /* 保持缩略图宽度 */
        height: 245px; /* 保持缩略图高度 */
    }
    
    .post-download-thumbnail img {
        width: 100%;
        height: 100%;
    }
    
    .post-download-content {
        width: calc(100% - 178px - 20px); /* 减去缩略图宽度和间距 */
        padding-left: 0;
        margin-top: 0;
        margin-left: 20px; /* 与缩略图保持间距 */
    }
    
    .post-download-item .post-download-title {
        font-size: 16px;
    }
    
    .post-download-buttons {
        justify-content: space-between;
    }
    
    .post-download-buttons .elementor-button {
        width: calc(50% - 5px);
        padding: 0;
        margin: 0;
        height: 42px;
    }
}