﻿/* 文档中心 — 按蓝湖标注 1920 稿还原 */
.doc-main {
    background: #eff5fd;
}

/* ===== Hero 500px ===== */
.doc-hero {
    position: relative;
    margin-top: 0;
    height: 500px;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff url("../images/doc_center/bg.webp") center top / 100% 100% no-repeat;
}

.doc-hero-inner {
    position: relative;
    z-index: 2;
    width: 1400px;
    max-width: calc(100% - 48px);
    margin: 120px auto 0;
    text-align: center;
}

.doc-hero-title {
    margin: 0;
    font-size: 68px;
    line-height: 1.2;
    font-weight: 700;
    color: #1e54ec;
}

.doc-hero-desc {
    max-width: 1208px;
    margin: 49px auto 0;
    font-size: 24px;
    line-height: 1.5;
    color: #1b1b1b;
}

/* 栏目切换：槽位固定 150×52，选中只加白底，不挤动位置 */
.doc-tabs {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 47px;
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: auto auto 38px;
    padding: 0;
}

.doc-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 52px;
    padding: 0;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    color: #1b1b1b;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, font-weight .25s ease;
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
    border-radius: 26px;
}

.doc-tab:hover {
    color: #1e54ec;
}

.doc-tab.active,
.doc-tab.active:hover {
    background: #ffffff;
    box-shadow: 0px 3px 4px 0px rgba(30, 127, 236, 0.03);
    color: #1e54ec;
    font-weight: 700;
    line-height: 20px;
}

/* ===== 内容区：距 banner 72px，宽 1400 ===== */
.doc-content {
    padding: 72px 0 105px;
    background: #eff5fd;
}

.doc-container {
    width: 1400px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

/* 卡片 450×550，间距 25 / 行距 24 */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    column-gap: 25px;
    row-gap: 24px;
    justify-content: space-between;
}

.doc-card {
    width: 450px;
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid #fff;
    background: #f9fbff;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(23, 42, 90, .1);
}

.doc-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 271px;
    overflow: hidden;
    background: #f3f7ff;
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
}

.doc-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-cover-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 无封面占位 */
.doc-sheet {
    position: relative;
    width: 56%;
    max-width: 220px;
    min-width: 150px;
    aspect-ratio: 210 / 280;
    padding: 20px 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(52, 54, 130, .14);
    transform: rotate(-3deg);
    box-sizing: border-box;
}

.doc-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(238, 236, 255, .6), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.doc-sheet-logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334;
    font-weight: 700;
}

.doc-sheet-logo i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: conic-gradient(from 220deg, #1e54ec, #7ea3ff, #1e54ec);
    display: inline-block;
}

.doc-sheet-tag {
    position: relative;
    display: inline-block;
    margin-top: 22px;
    padding: 4px 10px;
    border: 1px solid #cfcbf7;
    border-radius: 4px;
    background: #f6f5ff;
    font-size: 12px;
    line-height: 1.2;
    color: #5b57b7;
}

.doc-sheet-title {
    position: relative;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    color: #262a56;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-sheet-line {
    position: relative;
    margin-top: 14px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #d9d6fa, rgba(217, 214, 250, 0));
}

.doc-sheet-line.short {
    width: 62%;
    margin-top: 8px;
}

.doc-sheet::after {
    content: 'PDF';
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 3px 9px;
    border: 1px solid #e5e1f8;
    border-radius: 4px;
    background: #faf9ff;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #7d78b5;
}

.doc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 32px 30px 30px;
    box-sizing: border-box;
}

.doc-title {
    margin: 0;
    width: 298px;
    max-width: 100%;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: #1b1b1b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-title a {
    color: inherit;
    transition: color .25s ease;
}

.doc-title a:hover {
    color: #1e54ec;
}

.doc-desc {
    margin: 20px 0 0;
    width: 386px;
    max-width: 100%;
    height: auto;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #1b1b1b;
}

.doc-desc p {
    margin: 0;
    padding: 0;
    font-weight: 400;
    line-height: 27px;
}

.doc-foot {
    margin-top: auto;
    /* 相对卡片：左 30 / 下 30（由 .doc-body padding 承担） */
    display: flex;
    justify-content: flex-start;
}

/* 按钮 170×46，左下角定位 */
.doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 170px;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border-radius: 23px;
    background: #1e54ec;
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
    transition: all .25s ease;
    box-sizing: border-box;
}

.doc-btn .doc-btn-arrow {
    width: 21px;
    height: 12px;
    display: block;
    object-fit: contain;
    /* 切图黑底白箭头，在蓝按钮上去掉黑底 */
    mix-blend-mode: screen;
    transition: transform .25s ease;
}

.doc-btn:hover {
    background: #1746d0;
    box-shadow: 0 8px 20px rgba(30, 84, 236, .28);
}

.doc-btn:hover .doc-btn-arrow {
    transform: translateX(3px);
}

/* 空状态 */
.doc-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    border: 1px dashed #d8e0f2;
    border-radius: 16px;
    background: #f9fbff;
    text-align: center;
}

.doc-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #f2f5ff;
}

.doc-empty h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2b45;
}

.doc-empty p {
    font-size: 14px;
    line-height: 1.8;
    color: #8a93a8;
}

/* 分页 */
.doc-pagination-box {
    margin-top: 54px;
}

.doc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.doc-pagination li {
    list-style: none;
}

.doc-pagination li a,
.doc-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe6f5;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #55617c;
    transition: all .25s ease;
    box-sizing: border-box;
}

.doc-pagination li a:hover {
    border-color: #1e54ec;
    color: #1e54ec;
}

.doc-pagination li.active a,
.doc-pagination li.active span,
.doc-pagination .active a {
    border-color: #1e54ec;
    background: #1e54ec;
    color: #fff;
}

@media screen and (max-width: 1460px) {
    .doc-hero-inner,
    .doc-container {
        width: 1200px;
    }

    .doc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
        justify-content: stretch;
    }

    .doc-card {
        width: auto;
        height: auto;
        min-height: 520px;
    }

    .doc-cover {
        height: auto;
        aspect-ratio: 450 / 271;
    }
}

@media screen and (max-width: 1240px) {
    .doc-hero-inner,
    .doc-container {
        width: 100%;
        padding: 0 24px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .doc-hero-title {
        font-size: 48px;
    }

    .doc-hero-desc {
        font-size: 18px;
        margin-top: 28px;
    }

    .doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media screen and (max-width: 1024px) {
    .doc-hero {
        height: auto;
        min-height: 360px;
        padding: 0 0 36px;
        background-size: cover;
    }

    .doc-hero-inner {
        margin-top: 80px;
    }

    .doc-hero-title {
        font-size: 40px;
    }

    .doc-hero-desc {
        font-size: 16px;
    }

    .doc-tabs {
        gap: 24px;
    }

    .doc-tab {
        width: 120px;
        height: 44px;
        font-size: 16px;
        border-radius: 22px;
    }

    .doc-content {
        padding: 48px 0 80px;
    }

    .doc-title {
        font-size: 18px;
    }

    .doc-desc {
        font-size: 15px;
        line-height: 1.6;
        min-height: auto;
    }

    .doc-btn {
        font-size: 16px;
        height: 42px;
    }
}

@media screen and (max-width: 768px) {
    .doc-hero {
        margin-top: 0;
        min-height: 260px;
        padding-bottom: 28px;
    }

    .doc-hero-inner {
        margin-top: 48px;
    }

    .doc-hero-title {
        font-size: 28px;
    }

    .doc-hero-desc {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.7;
        padding: 0 6px;
    }

    .doc-tabs {
        gap: 12px;
        margin-bottom: 20px;
        max-width: calc(100% - 24px);
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .doc-tabs::-webkit-scrollbar {
        display: none;
    }

    .doc-tab {
        width: 100px;
        height: 38px;
        font-size: 14px;
        border-radius: 19px;
        flex-shrink: 0;
    }

    .doc-content {
        padding: 32px 0 64px;
    }

    .doc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doc-card {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .doc-body {
        padding: 22px 20px 24px;
    }

    .doc-title {
        font-size: 17px;
    }

    .doc-desc {
        margin-top: 12px;
        font-size: 14px;
    }

    .doc-btn {
        width: 150px;
        height: 40px;
        font-size: 15px;
    }

    .doc-pagination-box {
        margin-top: 36px;
    }

    .doc-pagination li a,
    .doc-pagination li span {
        min-width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}
