﻿/* ============================================
   AOSHOW翱烁 - 下载中心页面样式
   前缀：dow-
   主题色：#cc4e15 (橙) / #0866b2 (蓝)
   ============================================ */

/* ===== 重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f6fa;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== 主题色变量 ===== */
:root {
    --dow-orange: #cc4e15;
    --dow-blue: #0866b2;
    --dow-dark: #222;
    --dow-gray: #666;
    --dow-light-gray: #f0f0f5;
    --dow-border: #e5e5e5;
}

/* ============================================
   主体内容区（1320px居中）
   ============================================ */
.dow-main {
    padding: 30px 0 80px;
    min-height: 100vh;
}

.dow-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   页面标题
   ============================================ */
.dow-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.dow-title-group {
    margin-bottom: 12px;
}

.dow-title-tag {
    display: block;
    font-size: 13px;
    letter-spacing: 5px;
    color: var(--dow-orange);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dow-page-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--dow-dark);
    letter-spacing: 3px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.dow-page-desc {
    font-size: 15px;
    color: #888;
    margin-bottom: 18px;
}

.dow-title-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--dow-orange), var(--dow-blue));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(204, 78, 21, 0.3);
}

/* ============================================
   下载列表
   ============================================ */
.dow-download-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 文件项 */
.dow-file-item {
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.35s ease;
}

.dow-file-item:hover {
    box-shadow:
        0 10px 35px rgba(8, 102, 178, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(204, 78, 21, 0.2);
    transform: translateY(-3px);
}

.dow-file-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    gap: 20px;
    transition: all 0.35s ease;
    border-radius: 12px;
}

/* 左侧：图标 + 文件名 */
.dow-file-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

/* 文件图标 */
.dow-file-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dow-file-item:hover .dow-file-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

/* ZIP 图标 - 蓝色 */
.dow-icon-zip {
    background: linear-gradient(135deg, #5dade2, #0866b2);
}

.dow-icon-zip i {
    color: #fff;
    font-size: 24px;
    margin-bottom: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* PDF 图标 - 橙红色 */
.dow-icon-pdf {
    background: linear-gradient(135deg, #e74c3c, #cc4e15);
}

.dow-icon-pdf i {
    color: #fff;
    font-size: 24px;
    margin-bottom: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dow-icon-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* 文件信息 */
.dow-file-info {
    min-width: 0;
    flex: 1;
}

.dow-file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dow-dark);
    margin-bottom: 6px;
    line-height: 1.5;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dow-file-item:hover .dow-file-name {
    color: var(--dow-orange);
}

.dow-file-size {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dow-file-size i {
    color: var(--dow-blue);
    font-size: 12px;
}

/* 右侧：日期 + 下载次数 */
.dow-file-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.dow-file-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dow-file-date i {
    color: #bbb;
    font-size: 13px;
}

.dow-file-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    padding: 5px 14px;
    background: var(--dow-light-gray);
    border-radius: 20px;
    transition: all 0.3s;
}

.dow-file-item:hover .dow-file-downloads {
    background: linear-gradient(135deg, var(--dow-orange), #e06a2e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(204, 78, 21, 0.3);
}

.dow-file-downloads i {
    font-size: 12px;
}

.dow-download-num {
    font-weight: 700;
}

.dow-download-text {
    font-size: 12px;
}

/* ============================================
   分页
   ============================================ */
.dow-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dow-page-btn,
.dow-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    color: #555;
    border: 1px solid var(--dow-border);
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dow-page-btn:hover,
.dow-page-num:hover {
    color: var(--dow-orange);
    border-color: var(--dow-orange);
    box-shadow: 0 4px 15px rgba(204, 78, 21, 0.15);
    transform: translateY(-2px);
}

.dow-page-active {
    background: linear-gradient(135deg, var(--dow-orange), #e06a2e);
    color: #fff;
    border-color: var(--dow-orange);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(204, 78, 21, 0.35);
}

.dow-page-active:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 78, 21, 0.45);
}

.dow-page-prev i,
.dow-page-next i {
    font-size: 11px;
}

/* ============================================
   PDF 预览模态框
   ============================================ */
.dow-pdf-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.dow-pdf-mask.dow-pdf-show {
    opacity: 1;
    visibility: visible;
}

.dow-pdf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: #fff;
    border-radius: 16px;
    z-index: 3001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dow-pdf-modal.dow-pdf-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 模态框头部 */
.dow-pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 25px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-bottom: 1px solid var(--dow-border);
    flex-shrink: 0;
}

.dow-pdf-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dow-dark);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dow-pdf-modal-title i {
    color: #e74c3c;
    font-size: 20px;
    flex-shrink: 0;
}

.dow-pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dow-pdf-action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dow-light-gray);
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.dow-pdf-action-btn:hover {
    background: linear-gradient(135deg, var(--dow-blue), #0a82d9);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 102, 178, 0.3);
}

.dow-pdf-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dow-orange), #e06a2e);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(204, 78, 21, 0.3);
}

.dow-pdf-close:hover {
    transform: rotate(90deg);
    box-shadow: 0 5px 18px rgba(204, 78, 21, 0.45);
}

/* 模态框内容区 */
.dow-pdf-modal-body {
    flex: 1;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.dow-pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s;
}

/* PDF预览徽章 */
.dow-pdf-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--dow-orange), #e06a2e);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(204, 78, 21, 0.3);
    pointer-events: none;
    z-index: 5;
}

.dow-file-item:hover .dow-pdf-badge {
    opacity: 1;
    transform: translateY(0);
}

.dow-file-link {
    position: relative;
}

/* 加载状态 */
.dow-pdf-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8f9fa;
    z-index: 2;
}

.dow-pdf-loading i {
    font-size: 40px;
    color: var(--dow-orange);
}

.dow-pdf-loading span {
    font-size: 15px;
    color: #888;
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 992px) {
    .dow-page-title {
        font-size: 30px;
    }
    .dow-file-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .dow-file-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        padding-left: 84px;
    }
}

@media (max-width: 576px) {
    .dow-main {
        padding: 30px 0 50px;
    }
    .dow-page-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    .dow-file-icon {
        width: 52px;
        height: 52px;
    }
    .dow-file-icon i {
        font-size: 20px;
    }
    .dow-file-name {
        font-size: 14px;
    }
    .dow-file-right {
        padding-left: 72px;
    }
    .dow-page-btn,
    .dow-page-num {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }
}
