/* ============================================================
 * PDF资料下载模块样式 - download.css
 * 列表页 + 详情页
 * ============================================================ */

/* 面包屑 */
.breadcrumb { background: #fff; border-bottom: 1px solid #f0f0f0; }
.breadcrumb .container { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #f26a1b; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb .cur { color: #999; }

/* 主体布局 */
.main { padding: 20px 0 40px; background: #f4f6f9; min-height: 500px; }

.pdf-main { float: left; width: 860px; }
.pdf-side { float: right; width: 320px; }

/* 搜索栏 */
.pdf-search-bar { margin-bottom: 16px; }
.pdf-search-form {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.pdf-search-form input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 14px;
    outline: none;
}
.pdf-search-form button {
    padding: 10px 24px;
    background: #d9534f;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}
.pdf-search-form button:hover { background: #c9302c; }

/* 筛选条 */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(20,28,40,.07);
    padding: 16px 18px;
    margin-bottom: 18px;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 10px;
    font-size: 13px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label { color: #999; width: 56px; flex-shrink: 0; padding-top: 3px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-opts a {
    padding: 3px 12px;
    color: #666;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: .2s;
}
.filter-opts a:hover { color: #d9534f; background: #fdf5f5; }
.filter-opts a.on {
    color: #fff;
    background: #d9534f;
    border-radius: 4px;
}

/* PDF 卡片网格 */
.pdf-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdf-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    padding: 18px 20px;
    gap: 20px;
    align-items: center;
}
.pdf-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* PDF 图标 */
.pdf-card-icon {
    width: 70px;
    height: 90px;
    flex-shrink: 0;
    background: #fdf5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdf-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdf-file-icon {
    font-size: 42px;
    color: #d9534f;
}

/* 卡片内容 */
.pdf-card-body { flex: 1; min-width: 0; }
.pdf-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.pdf-card:hover .pdf-card-title { color: #d9534f; }

.pdf-card-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pdf-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}
.pdf-card-meta i { margin-right: 4px; color: #bbb; }
.pdf-card-meta .pdf-company i { color: #f26a1b; }
.pdf-card-meta .pdf-downloads i { color: #5cb85c; }

/* 分页 */
.pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    transition: .2s;
}
.pagination a:hover {
    border-color: #d9534f;
    color: #d9534f;
    background: #fdf5f5;
}
.pagination a.active {
    background: #d9534f;
    color: #fff;
    border-color: #d9534f;
}
.pagination .page-dots {
    border: none;
    color: #999;
}

/* 空状态 */
.empty-box {
    padding: 60px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    color: #999;
    font-size: 15px;
}

/* 侧边栏 */
.side-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
}
.side-title {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(90deg, #fdf5f5 0%, #fff 100%);
}

.side-pdf-list { list-style: none; margin: 0; padding: 0; }
.side-pdf-list li { border-bottom: 1px solid #f8f8f8; }
.side-pdf-list li:last-child { border-bottom: none; }

.side-pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
}
.side-pdf-item:hover { background: #fdf5f5; }

.side-rank {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    flex-shrink: 0;
}
.side-pdf-list li:nth-child(1) .side-rank { background: #d9534f; color: #fff; }
.side-pdf-list li:nth-child(2) .side-rank { background: #f0ad4e; color: #fff; }
.side-pdf-list li:nth-child(3) .side-rank { background: #5cb85c; color: #fff; }

.side-pdf-info { flex: 1; min-width: 0; }
.side-pdf-name {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.side-pdf-item:hover .side-pdf-name { color: #d9534f; }

.side-pdf-stats {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}
.side-pdf-stats i { margin-right: 2px; }

/* ============================================================
 * 详情页样式
 * ============================================================ */
.pdf-detail-main { float: left; width: 860px; }

/* 资料头部 */
.pdf-detail-header {
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

.pdf-detail-icon {
    width: 120px;
    height: 150px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fdf5f5 0%, #fff5f5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdf-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdf-detail-file-icon {
    font-size: 72px;
    color: #d9534f;
}

.pdf-detail-info { flex: 1; min-width: 0; }
.pdf-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
    line-height: 1.4;
}
.pdf-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}
.pdf-detail-meta span i { margin-right: 5px; color: #bbb; }
.pdf-detail-meta span:first-child i { color: #f26a1b; }

.pdf-detail-file-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
}
.pdf-file-type {
    padding: 4px 12px;
    background: #fdf5f5;
    color: #d9534f;
    border-radius: 4px;
    font-weight: 500;
}
.pdf-file-type i { margin-right: 4px; }
.pdf-file-size {
    padding: 4px 12px;
    background: #f5f7fa;
    color: #666;
    border-radius: 4px;
}
.pdf-file-size i { margin-right: 4px; }

/* 下载按钮 */
.pdf-download-action {
    background: #fff;
    border-radius: 12px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(217,83,79,.3);
    transition: .2s;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217,83,79,.4);
}
.btn-download i { font-size: 18px; }

.download-tip {
    font-size: 13px;
    color: #999;
}

/* 资料区块 */
.pdf-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 20px;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.section-title i { color: #d9534f; margin-right: 6px; }

.pdf-detail-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* 联系方式卡片 */
.pdf-contact-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 18px 20px;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
    width: 100px;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}
.contact-label i { margin-right: 5px; color: #bbb; width: 14px; }
.contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.contact-phone { color: #d9534f; font-weight: 600; }

/* 免责声明 */
.pdf-disclaimer {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #8c7000;
    line-height: 1.6;
}
.pdf-disclaimer i { margin-right: 6px; color: #faad14; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1220px) {
    .container { width: 96%; }
    .pdf-main, .pdf-detail-main { width: calc(100% - 340px); }
    .pdf-side { width: 300px; }
}

@media (max-width: 900px) {
    .pdf-main, .pdf-detail-main { float: none; width: 100%; margin-bottom: 20px; }
    .pdf-side { float: none; width: 100%; }
}

@media (max-width: 768px) {
    .pdf-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .pdf-detail-icon { width: 100px; height: 125px; }
    .pdf-detail-meta { justify-content: center; }
    .pdf-detail-file-info { justify-content: center; }
    
    .pdf-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .pdf-card-icon {
        width: 50px;
        height: 65px;
    }
    .pdf-file-icon { font-size: 32px; }
    
    .pdf-download-action {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }
    .btn-download { width: 100%; justify-content: center; }
    
    .pdf-search-form button { padding: 10px 16px; }
}

@media (max-width: 480px) {
    .pdf-detail-title { font-size: 18px; }
    .pdf-card-title { font-size: 14px; }
    .filter-opts a { padding: 3px 8px; font-size: 12px; }
}
