/* ============================================================
   CATALOG ARCHIVE PAGE 专属样式（画册归档页，3列 A4 网格）
   ============================================================ */

/* ---- 页面容器 ---- */
.catalog-page {
    flex: 1;
    padding: 32px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---- 面包屑 ---- */
.catalog-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-500);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.catalog-page .breadcrumb a {
    color: var(--slate-500);
    transition: color 0.2s ease;
    text-decoration: none;
}

.catalog-page .breadcrumb a:hover {
    color: var(--blue-500);
}

.catalog-page .breadcrumb .sep {
    color: var(--slate-300);
    font-size: 10px;
}

.catalog-page .breadcrumb .current {
    color: var(--slate-900);
    font-weight: 600;
}

/* ---- 页面头部 ---- */
.catalog-header {
    text-align: center;
    padding: 16px 0 32px 0;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 32px;
}

.catalog-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.catalog-header p {
    font-size: 16px;
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- 卡片网格（严格3列） ---- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---- 卡片样式（A4比例画册） ---- */
.catalog-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    border-color: var(--blue-500);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* 图片容器 —— A4 比例 (1:1.414) */
.card-image {
    position: relative;
    width: 100%;
    padding-bottom: 141.4%;
    overflow: hidden;
    background: var(--slate-100);
    flex-shrink: 0;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-card:hover .card-image img {
    transform: scale(1.05);
}

/* PDF 角标标志 */
.pdf-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* 卡片内容区 */
.card-content {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
    line-height: 1.35;
}

.card-title a {
    color: var(--slate-900);
    transition: color 0.2s ease;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--blue-500);
}

.card-excerpt {
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--slate-400);
    margin-top: 4px;
    flex-wrap: wrap;
}

.card-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--blue-500);
    background: rgba(0, 104, 204, 0.08);
    padding: 2px 12px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.card-date {
    color: var(--slate-400);
}

.card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-500);
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: 6px;
    align-self: flex-start;
    text-decoration: none;
}

.card-readmore:hover {
    gap: 10px;
    color: var(--blue-600);
}

.card-readmore i {
    font-size: 11px;
}

/* ---- 分页 ---- */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
    flex-wrap: wrap;
    grid-column: 1 / -1; /* 占满整行 */
}

.catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    transition: all 0.2s ease;
    margin: 0 2px;
    text-decoration: none;
}

.catalog-pagination .page-numbers.current {
    background: var(--blue-500);
    color: var(--white);
    border-color: var(--blue-500);
}

.catalog-pagination .page-numbers:hover:not(.current) {
    background: var(--slate-50);
    color: var(--blue-500);
    border-color: var(--blue-500);
}

.catalog-pagination .page-numbers.prev,
.catalog-pagination .page-numbers.next {
    font-size: 12px;
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板：2列 */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .catalog-page {
        padding: 24px 20px 48px;
    }
}

/* 手机大屏：2列按比例缩小 */
@media (max-width: 768px) {
    .catalog-page {
        padding: 16px 12px 32px;
    }
    .catalog-header {
        padding: 8px 0 24px;
        margin-bottom: 24px;
    }
    .catalog-header h1 {
        font-size: 24px;
    }
    .catalog-header p {
        font-size: 14px;
    }
    .catalog-grid {
        gap: 16px;
    }
    .card-content {
        padding: 12px 14px 16px;
    }
    .card-title {
        font-size: 15px;
    }
    .card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .catalog-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* 手机小屏：1列居中 */
@media (max-width: 520px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .catalog-page {
        padding: 12px 8px 24px;
    }
    .catalog-header h1 {
        font-size: 20px;
    }
    .catalog-header p {
        font-size: 13px;
    }
    .catalog-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    .card-title {
        font-size: 16px;
    }
    .card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    .catalog-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
}

@media (max-width: 360px) {
    .catalog-header h1 {
        font-size: 18px;
    }
    .card-content {
        padding: 10px 12px 14px;
    }
    .card-title {
        font-size: 14px;
    }
}
/* ============================================================
   CATALOG SINGLE PAGE 专属详情页扩展样式
   ============================================================ */

.catalog-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
    margin-top: 16px;
}

/* 主主体区域 */
.single-catalog-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--slate-200);
}

.catalog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.single-catalog-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.catalog-post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--slate-500);
    flex-wrap: wrap;
}

.catalog-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate-700);
    margin-bottom: 32px;
}

/* 在线 PDF 嵌入阅读器容器 */
.pdf-viewer-section {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.pdf-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.pdf-viewer-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-open-newtab {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-500);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-open-newtab:hover {
    color: var(--blue-600);
    text-decoration: underline;
}

.pdf-embed-wrapper {
    width: 100%;
    background: #525659; /* PDF 经典阅读背景 */
    min-height: 700px;
}

.pdf-embed-wrapper object,
.pdf-embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 700px;
}

/* 右侧边栏 */
.sidebar-card-box {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.sidebar-cover-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.sidebar-cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-download-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--blue-500);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 104, 204, 0.25);
}

.btn-download-pdf:hover {
    background: var(--blue-600);
    box-shadow: 0 6px 16px rgba(0, 104, 204, 0.35);
    transform: translateY(-1px);
}

.btn-inquiry-sales {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--slate-100);
    color: var(--slate-800);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-inquiry-sales:hover {
    background: var(--slate-200);
}

.sidebar-meta-list {
    border-top: 1px solid var(--slate-200);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-meta-list .meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.sidebar-meta-list .label {
    color: var(--slate-500);
}

.sidebar-meta-list .value {
    font-weight: 600;
    color: var(--slate-900);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .catalog-single-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-card-box {
        position: static;
    }
    .pdf-embed-wrapper,
    .pdf-embed-wrapper object,
    .pdf-embed-wrapper iframe {
        height: 500px;
        min-height: 500px;
    }
}