
/* 下载中心页面 */

.download-center-header {
    width: 100%;
    min-height: 320px;
    background-image: url('/wp-content/uploads/2025/11/bg.jpg'); 
    /*background-image: url('/wp-content/uploads/2025/11/question-bg.webp');*/
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    background-size: cover;
    text-align: center;
    padding: 80px 20px;
    box-sizing: border-box;
}

.download-center-box {
    display: flex;
    flex-direction: column;
    width: var(--theme-container-width, 100%);
    max-width: 1200px;
    margin: 30px auto;
    gap: 10px;
}

.download-center-tit {
    color: #333;
    font-size: 40px;
    text-align: left!important;
    position: relative;
    box-sizing: border-box;
}
.download-center-des {
    color: #333;
    font-size: 1.6rem;
    text-align: left;
}

/* 下载条目容器 */
.download-center-list-container {
    background: #fff;
}

.download-center-wrapper {
    padding: 40px 0;
    margin: 0 auto;
    max-width: 1200px;
}

.download-center-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-center-item {
    background: #f6fcff;
    border-bottom: 1px solid #ececec;
    overflow: hidden;
}

.download-center-item:first-child {
    border-radius: 8px 8px 0 0;
}

.download-center-item:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.download-center-content {
    padding: 20px;
    max-width:1200px;
    margin:0 auto;
}


.download-center-header-row {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    gap: 12px;
    flex-wrap: nowrap;  
    width: 100%;
}

.download-center-icon {
    font-size: 1.4em; 
    flex-shrink: 0; 
}

.download-center-title {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    flex: 1;
    min-width: 0; /* 防止文本过长导致溢出或破坏布局 */
    font-weight: 600;
}

/*.download-center-title:hover {
    color: var(--theme-color);
}*/

.download-center-date {
    font-size: 0.9em;
    color: #666;
    flex-shrink: 0; 
    white-space: nowrap; 
}

.download-center-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.download-center-btn {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.download-center-btn:hover {
    background: #00aae7;
}

.download-icon-wrapper {
    display: flex;
    align-items: center;
}

.download-icon {
    filter: brightness(0) invert(1);
}

.download-pagination {
    margin: 3rem auto;
}

/*弹窗*/
.download-center-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.popup-form {
    background: white; 
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: absolute; 
    top: 50%;  
    left: 50%;  
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Modal 右上角关闭按钮*/
.popup-form > button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}
.popup-form > button:hover {
    background: #f0f0f0;
    color: #000;
}

@media (max-width: 767px) {
    .download-center-header {
        padding: 40px 20px!important;
    }
    .download-center-box {
        margin:0!important;
    }
    .download-center-wrapper {
        padding: 0!important;
        margin-top: -100px !important;
        border-radius: 10px;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .download-center-item {
        white-space: nowrap!important;
        text-overflow: ellipsis!important;
    }
    .download-center-tit {
        font-size: 36px;
    }
    .download-center-title {
        white-space: nowrap!important;
        text-overflow: ellipsis!important;
    }
    .download-center-date {
        display: none;
    }
    
    /* 移动端弹窗调整 */
    .popup-form {
        padding: 20px;
        width: calc(100% - 40px);
    }
}