/* 下载页面特定样式 - 包含原本来自new.css的样式 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 新闻列表容器 - 来自new.css */
.news-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 新闻列表 - 来自new.css */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16.875px;
    margin-bottom: 28.125px;
}

/* 新闻列表项 - 来自new.css */
.news-list-item {
    display: flex;
    background: white;
    border-radius: 5.625px;
    overflow: hidden;
    box-shadow: 0 2.25px 8.4375px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-list-item:hover {
    transform: translateY(-2.8125px);
    box-shadow: 0 4.5px 14.0625px rgba(0, 0, 0, 0.15);
}

/* 新闻列表内容 - 来自new.css */
.news-list-content {
    flex: 1;
    padding: 16.875px;
    display: flex;
    flex-direction: column;
}

/* 新闻分类标签 - 来自new.css */
.news-category {
    display: inline-block;
    background: #e8f0fe;
    color: rgba(0,156,235);
    padding: 2.8125px 6.75px;
    border-radius: 8.4375px;
    font-size: 0.45rem;
    font-weight: bold;
    margin-bottom: 8.4375px;
    align-self: flex-start;
}

/* 新闻标题 - 来自new.css */
.news-list-content h3 {
    color: #333;
    font-size: 0.84375rem;
    margin-bottom: 5.625px;
    line-height: 1.4;
}

/* 新闻日期 - 来自new.css */
.news-date {
    color: #666;
    font-size: 0.50625rem;
    margin-bottom: 8.4375px;
}

/* 新闻摘要 - 来自new.css */
.news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 11.25px;
    flex: 1;
}

/* 新闻列表图片 - 来自new.css，并添加下载页面特定样式 */
.news-list-image {
    position: relative;
    flex: 0 0 168.75px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

.news-list-image i {
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-image i {
    transform: scale(1.1);
}

/* PDF占位图样式 - 替代外部占位图 */
.pdf-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.news-list-item:hover .pdf-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: rgba(0,156,235, 0.3);
}

.pdf-placeholder i {
    font-size: 1.96875rem;
    color: #dc3545;
    margin-bottom: 5.625px;
    opacity: 0.8;
}

.pdf-placeholder span {
    font-size: 0.675rem;
    font-weight: 600;
    color: #495057;
    letter-spacing: 1.125px;
}

/* 下载悬停层 */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-list-item:hover .download-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* 预览和下载按钮样式 */
.preview-btn {
    background: rgba(0,156,235);
    color: white;
    border: none;
    padding: 5.625px 11.25px;
    border-radius: 2.8125px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.50625rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4.5px;
    text-decoration: none;
}

.preview-btn:hover {
    background: #164a8d;
}

.download-link-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 5.625px 11.25px;
    border-radius: 2.8125px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.50625rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4.5px;
    text-decoration: none;
}

.download-link-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* 下载操作区域 */
.download-actions {
    display: flex;
    align-items: center;
    gap: 8.4375px;
    margin-top: 8.4375px;
    flex-wrap: wrap;
}

.preview-btn-text, .download-btn-text {
    background: none;
    border: 1px solid rgb(0,156,235);
    color: rgb(0,156,235);
    padding: 3.375px 6.75px;
    border-radius: 8.4375px;
    cursor: pointer;
    font-size: 0.478125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2.8125px;
    transition: all 0.3s ease;
}

.download-btn-text {
    border-color: #28a745;
    color: #28a745;
}

.preview-btn-text:hover {
    background: rgb(0,156,235);
    color: white;
}

.download-btn-text:hover {
    background: #28a745;
    color: white;
}

/* 文件信息 */
.file-info {
    color: #888;
    font-size: 0.478125rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2.25px 4.5px;
    border-radius: 5.625px;
}

/* PDF预览模态框样式 */
/* 下载确认模态框 */
.download-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.download-confirm-modal.active {
    display: flex;
}

.download-confirm-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.download-confirm-modal .modal-body {
    padding: 25px;
    overflow-y: auto;
}

.download-file-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(0,156,235);
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.download-tip {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.download-confirm-modal .form-group {
    margin-bottom: 20px;
}

.download-confirm-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.download-confirm-modal .form-group .required {
    color: #dc3545;
}

.download-confirm-modal .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.download-confirm-modal .form-group input:focus {
    outline: none;
    border-color: rgba(0,156,235);
    box-shadow: 0 0 0 3px rgba(0,156,235,0.1);
}

.download-confirm-modal .form-group input.error {
    border-color: #dc3545;
}

.download-confirm-modal .error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.download-confirm-modal .error-text.show {
    display: block;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #f8f9fa;
    color: #495057;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-confirm {
    background: linear-gradient(135deg, rgba(0,156,235), #2c7cda);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #0094eb, #2563c7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,156,235,0.3);
}

.btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.pdf-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #dc3545;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.pdf-control-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdf-control-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.page-info {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.pdf-viewer {
    flex: 1;
    background: #525659;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.pdf-loading {
    text-align: center;
    color: white;
}

.pdf-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.pdf-loading p {
    margin: 0;
    font-size: 1.1rem;
}

/* 下载通知样式 */
.download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    font-weight: 500;
}

.download-notification.show {
    transform: translateX(0);
}

.download-notification i {
    font-size: 1.2rem;
}

/* 优化新闻列表项显示 */
.news-list-item[style*="display: none"] {
    display: none !important;
}

/* 分页样式 - 来自new.css，并添加下载页面特定优化 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-nav,
.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 40px;
}

.page-nav:hover,
.page-number:hover {
    background: #f8f9fa;
    border-color: rgba(0,156,235);
}

.page-number.active {
    background: rgba(0,156,235);
    color: white;
    border-color: rgba(0,156,235);
}

.page-nav.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
    opacity: 0.5;
    pointer-events: none;
}

.page-nav.disabled:hover {
    background: white;
    border-color: #eee;
}

.page-ellipsis {
    color: #666;
    padding: 0 5px;
}

/* 筛选按钮样式 - 来自new.css，并添加下载页面特定优化 */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid rgba(0,156,235);
    color: rgba(0,156,235);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0,156,235);
    color: white;
}

/* 响应式设计 - 来自new.css，并添加下载页面特定样式 */
@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-image {
        flex: 0 0 112.5px;
    }
    
    .news-list-content {
        padding: 11.25px;
    }
    
    .news-list-content h3 {
        font-size: 0.73125rem;
    }
    
    .news-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    /* 下载页面特定响应式样式 */
    .pdf-modal .modal-content {
        width: 95%;
        height: 90vh;
    }
    
    .download-confirm-modal .modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-confirm {
        width: 100%;
        justify-content: center;
    }
    
    .pdf-controls {
        gap: 8px;
        padding: 10px 15px;
    }
    
    .pdf-control-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .download-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-info {
        align-self: flex-start;
    }
    
    .pdf-placeholder i {
        font-size: 1.875rem;
    }
    
    .pdf-placeholder span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .news-list-container {
        padding: 0 15px;
    }
    
    .news-list-content h3 {
        font-size: 0.61875rem;
    }
    
    .news-filters {
        justify-content: flex-start;
    }
    
    /* 下载页面特定响应式样式 */
    .pdf-placeholder i {
        font-size: 1.5rem;
    }
    
    .pdf-placeholder span {
        font-size: 0.675rem;
    }
    
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}
