/* =========================================================
   CULINOVA 技术资料页面
   说明：
   1. 不修改公共导航
   2. 不修改 inner-page-hero 首屏
   3. 不修改公共 footer
   4. 仅控制技术资料内容区域
========================================================= */

/* =========================================================
   技术资料主体
========================================================= */
.docs-section {
    width: 100%;
    background: #ffffff;
    color: #222222;
    padding: clamp(55px, 5vw, 85px) 0 clamp(70px, 7vw, 110px);
}

/* 最大内容宽度 */
.docs-container {
    width: min(100% - 60px, 1350px);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        clamp(190px, 18vw, 230px) minmax(0, 1fr);
    column-gap: clamp(45px, 5vw, 70px);
    min-height: 620px;
}

/* =========================================================
   左侧分类
========================================================= */
.docs-sidebar {
    width: 100%;
}

.docs-sidebar-title {
    margin: 0;
    color: #222222;
    font-family:
        "Noto Sans SC",
        "Microsoft YaHei",
        sans-serif;
    font-size: clamp(26px, 2vw, 34px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

/* 金色短线 */
.docs-sidebar-line {
    width: 38px;
    height: 3px;
    margin-top: 13px;
    margin-bottom: 18px;
    background: #c89b3c;
}

/* 分类列表 */
.docs-category-list {
    width: 100%;
}

/* 分类项目 */
.docs-category {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}

/* 分类标题按钮 */
.docs-category-title {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #222222;
    font-family:
        "Noto Sans SC",
        "Microsoft YaHei",
        sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all .25s ease;
}

/* 金色方形 + */
.docs-category-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #c89b3c;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    transition: all .25s ease;
}

/* 当前分类 */
.docs-category.active .docs-category-title {
    color: #bd8c2e;
}

.docs-category.active .docs-category-icon {
    background: #b98a2e;
}

/* 分类下的产品编号 */
.docs-sub-list {
    padding: 0 0 8px 32px;
}

/* 编号 */
.docs-sub-item {
    display: block;
    padding: 5px 0;
    color: #555555;
    font-size: 13px;
    line-height: 1.7;
    cursor: pointer;
    transition: color .2s ease;
}

.docs-sub-item:hover,
.docs-sub-item.active {
    color: #b4872d;
}

/* =========================================================
   右侧
========================================================= */
.docs-main {
    min-width: 0;
    padding-top: 16px;
}

/* 面包屑 */
.docs-breadcrumb {
    color: #666666;
    font-family:
        "Noto Sans SC",
        "Microsoft YaHei",
        sans-serif;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 面包屑当前项 */
.docs-breadcrumb .current {
    color: #555555;
}

/* 横线 */
.docs-main-line {
    width: 100%;
    height: 1px;
    margin-top: 13px;
    background: #888888;
}

/* =========================================================
   文档列表
========================================================= */
.docs-list {
    width: 100%;
}

/* 单条文档 */
.docs-item {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid #dddddd;
    transition: background .2s ease;
}

.docs-item:hover {
    background: #fafafa;
}

/* 文档名称 */
.docs-item-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5b5b5b;
    font-family:
        "Noto Sans SC",
        "Microsoft YaHei",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* 文档名称小圆点 */
.docs-item-dot {
    color: #555555;
    font-size: 15px;
    line-height: 1;
}

/* 文档信息 */
.docs-item-info {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 日期 */
.docs-date {
    color: #666666;
    font-size: 15px;
    white-space: nowrap;
}

/* 下载按钮 */
.docs-download {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #c39a50;
    color: #ffffff;
    transition:
        background .25s ease,
        transform .25s ease;
}

.docs-download:hover {
    background: #a77d32;
    transform: translateY(-2px);
}

/* 使用图片下载图标 */
.docs-download-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

/* 预览按钮（和下载按钮同款金色框） */
.docs-preview {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #c39a50;
    color: #ffffff;
    transition:
        background .25s ease,
        transform .25s ease;
    cursor: pointer;
}

.docs-preview:hover {
    background: #a77d32;
    transform: translateY(-2px);
}

/* 预览图标 */
.docs-preview-img {
    width: 22px;
    height: 23px;
    object-fit: contain;
    vertical-align: middle;
}



/* =========================================================
   空数据
========================================================= */
.docs-empty {
    padding: 45px 0;
    color: #999999;
    font-size: 14px;
    text-align: center;
}

/* =========================================================
   分页
========================================================= */
.docs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(55px, 7vw, 100px);
}

/* 分页按钮 */
.docs-page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eeeeee;
    border-radius: 3px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

/* hover */
.docs-page-btn:hover {
    border-color: #c89b3c;
    color: #b4872d;
}

/* 当前页 */
.docs-page-btn.active {
    border-color: #c89b3c;
    background: #c89b3c;
    color: #ffffff;
}

/* 上一页 / 下一页 */
.docs-page-btn.arrow {
    font-size: 22px;
    font-family: Arial, sans-serif;
    font-weight: 300;
}

/* 禁用 */
.docs-page-btn.disabled {
    opacity: .35;
    pointer-events: none;
}

/* =========================================================
   平板
========================================================= */
@media (max-width: 900px) {
    .docs-container {
        width: calc(100% - 50px);
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 35px;
    }

    .docs-item {
        gap: 15px;
    }

    .docs-item-info {
        gap: 12px;
    }

    .docs-date {
        font-size: 13px;
    }
}

/* =========================================================
   手机
========================================================= */
@media (max-width: 700px) {
    .docs-section {
        padding-top: 45px;
        padding-bottom: 65px;
    }

    .docs-container {
        width: calc(100% - 32px);
        display: block;
    }

    /* 左侧分类变成顶部横向区域 */
    .docs-sidebar {
        margin-bottom: 35px;
    }

    .docs-category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 10px;
    }

    .docs-category {
        border-bottom: 1px solid #eeeeee;
    }

    .docs-category-title {
        min-height: 45px;
        font-size: 14px;
    }

    .docs-sub-list {
        padding-left: 31px;
    }

    .docs-main {
        padding-top: 0;
    }

    .docs-breadcrumb {
        white-space: normal;
        font-size: 13px;
    }

    .docs-item {
        min-height: 62px;
        gap: 12px;
    }

    .docs-item-title {
        font-size: 14px;
    }

    .docs-item-info {
        gap: 8px;
    }

    .docs-date {
        font-size: 11px;
    }

    .docs-download {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .docs-preview {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .docs-pagination {
        gap: 8px;
        margin-top: 55px;
    }

    .docs-page-btn {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   超小屏
========================================================= */
@media (max-width: 400px) {
    .docs-category-list {
        grid-template-columns: 1fr;
    }

    .docs-item-info {
        gap: 5px;
    }

    .docs-date {
        display: none;
    }
}

/* =========================================================
   统一面包屑
   产品中心 / 产品详情 / 技术资料统一
========================================================= */
.docs-breadcrumb {
    color: #777777;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-breadcrumb .current {
    color: #222222;
    font-size: 16px;
    font-weight: 400;
}

.docs-breadcrumb .breadcrumb-location {
    color: #777777;
}

.docs-breadcrumb .breadcrumb-arrow {
    color: #b5b5b5;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
}

@media (max-width: 700px) {
    .docs-breadcrumb {
        white-space: normal;
        font-size: 13px;
    }

    .docs-breadcrumb .current {
        font-size: 13px;
    }

    .docs-breadcrumb .breadcrumb-arrow {
        font-size: 12px;
    }
}
