/* =========================================================
   DTWAVES 产品详情页样式
========================================================= */

.product-detail-page {
    width: 100%;
    min-height: 600px;
    padding: clamp(70px, 7vw, 110px) 0 110px;
    background: #ffffff;
    position: relative;
    box-sizing: border-box;
}

.product-detail-layout {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(50px, 6vw, 90px);
    align-items: start;
}

/* 左侧产品分类 */
.product-detail-sidebar {
    width: 100%;
    min-width: 0;
}

.detail-sidebar-title {
    width: 100%;
    display: block;
    margin: 0;
}

.detail-sidebar-title h2 {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 25px;
    line-height: 1.5;
    font-weight: 500;
    color: #111111;
    letter-spacing: 0;
}

.detail-sidebar-title span {
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 20px;
    background: #c89b3c;
}

.detail-category-list {
    width: 100%;
    margin-top: 38px;
    display: flex;
    flex-direction: column;
}

.detail-category-item {
    width: 100%;
    height: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none;
    border-bottom: 1px solid #eeeeee;
    background: transparent;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 400;
    color: #000000;
    text-align: left;
    cursor: pointer;
    transition: color .25s ease, padding-left .25s ease;
}

.detail-category-item span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-category-item em {
    flex-shrink: 0;
    margin-left: 15px;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    color: #999999;
}

.detail-category-item:hover,
.detail-category-item.active {
    padding-left: 5px;
    color: #c18b2c;
}

.detail-category-item.active {
    font-weight: 500;
}

.detail-category-item:hover em,
.detail-category-item.active em {
    color: #c18b2c;
}

/* 右侧详情主体 */
.product-detail-content {
    width: 100%;
    min-width: 0;
}

/* 面包屑 */
.detail-breadcrumb {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
    margin: 0 0 26px;
    border-bottom: 1px solid #e5e5e5;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #999999;
}

.detail-breadcrumb .breadcrumb-location {
    color: #999999;
}

.detail-breadcrumb a {
    color: #777777;
    text-decoration: none;
    transition: color .25s ease;
}

.detail-breadcrumb a:hover {
    color: #bd882d;
}

.detail-breadcrumb .breadcrumb-arrow {
    color: #c5c5c5;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
}

.detail-breadcrumb strong {
    color: #222222;
    font-size: 16px;
    font-weight: 400;
}

/* 产品主展示区 */
.product-main-showcase {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 65px;
    align-items: start;
    padding-bottom: 65px;
    border-bottom: 1px solid #eeeeee;
}

/* 产品主图 */
.product-main-gallery {
    width: 100%;
    min-width: 0;
    max-width: 94%;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    box-sizing: border-box;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* 主图缩略图 */
.product-thumb-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 1px solid #eeeeee;
    background: #f8f8f8;
    cursor: pointer;
    transition: border-color .25s ease, opacity .25s ease;
}

.product-thumb:hover {
    border-color: #bd882d;
    opacity: .88;
}

.product-thumb.active {
    border-color: #bd882d;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* 产品基本信息 */
.product-main-info {
    width: 100%;
    min-width: 0;
}

.detail-product-category {
    display: inline-block;
    margin-bottom: 18px;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #bd882d;
    letter-spacing: .08em;
}

#detail-product-name {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.25;
    font-weight: 500;
    color: #222222;
    letter-spacing: .02em;
}

.detail-gold-line {
    width: 55px;
    height: 2px;
    margin: 27px 0 25px;
    background: #bd882d;
}

.detail-description-main {
    margin: 0;
    max-width: 580px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 2;
    color: #666666;
    white-space: pre-line;
}

.detail-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 48px;
    margin-top: 32px;
    padding: 0 28px;
    box-sizing: border-box;
    background: #222222;
    border: 1px solid #222222;
    color: #ffffff;
    text-decoration: none;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    transition: background .25s ease, border-color .25s ease;
}

.detail-contact-btn:hover {
    background: #bd882d;
    border-color: #bd882d;
    color: #ffffff;
}

/* =========================================================
   技术资料下载区
   位置：咨询产品按钮正下方
========================================================= */
/* =========================================================
技术资料：淡金色边框，点击资料名称打开文件
========================================================= */
.product-documents {
    width: 100%;
    margin-top: 18px;
    padding: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
}
.product-documents[hidden] {
    display: none !important;
}
.product-documents-title {
    margin: 0 0 12px;
    color: #333333;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}
.product-documents-list {
    display: flex;
    flex-wrap: wrap;
    gap:10px;
}

/* 外层盒子：只提供淡金色边框，无底色 */
.product-document-name {
    display: inline-block; /* 关键！行内元素必须加这个，圆角才生效 */
    border: 1px solid #d8c79a;
    border-radius: 999px; /* 胶囊圆角 */
    padding: 8px 24px; /* 给左右内边距，撑出椭圆胶囊形状 */
}
.product-document-item {
    border: none;
    padding: 0;
    margin: 8px 0;
}

/* hover外层盒子，边框加深 */
.product-document-item:hover {
    border-color:rgba(189,136,45,0.85);
}
/* 内部可点击文字链接 */
.product-document-name {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size:14px;
    line-height:1.6;
    color:#444444;
    text-decoration:none; /* 去掉下划线 */
    cursor:pointer;
    transition: color .24s ease;
}
.product-document-name:hover {
    color:#bd882d; /* hover文字变成主题金色 */
}

/* 产品详情图片 */
.product-detail-images {
    width: 84%;
    margin: 48px auto 0;
    display: grid;
    gap: 18px;
}

.product-detail-images.count-1 {
    grid-template-columns: minmax(0, 1fr);
}

.product-detail-images.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail-images.count-3,
.product-detail-images.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-image-item {
    width: 100%;
    overflow: hidden;
    background: #f7f7f7;
}

.detail-image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.detail-image-item:hover img {
    transform: scale(1.025);
}

/* 页内锚点导航 */
.detail-anchor-nav {
    width: auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    background-color: #232323;
    border-radius: 10px;
    position: relative;
}

.detail-anchor-nav a {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 14px 22px;
    color: #d4d3d3;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease;
    background: transparent;
}

.detail-anchor-nav a::before {
    content: attr(data-num);
    margin-right: 7px;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    color: rgba(189, 136, 45, .5);
    transition: color .25s ease;
}


.detail-anchor-nav a:hover {
    color: #111111;
    background-color: #e9e9e9;
}

.detail-anchor-nav a:hover::before {
    color: rgba(189, 136, 45, .85);
}

.detail-anchor-nav a:hover::after {
    transform: scaleX(1);
}

.detail-anchor-nav a.active {
    color: #bd882d;
    font-weight: 600;
    background-color: #e2e2e2;
}

.detail-anchor-nav a.active::before {
    color: #bd882d;
}

.detail-anchor-nav a.active::after {
    transform: scaleX(1);
}

/* 产品资料 / 产品特点 */
.product-detail-section {
    width: 100%;
    margin-top: 0;
    padding-top: 45px;
    border-top: 1px solid #eeeeee;
}

.detail-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 38px;
}

.detail-section-number {
    flex-shrink: 0;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #bd882d;
    letter-spacing: .08em;
}

.detail-section-heading small {
    display: none;
}

.detail-section-heading h2 {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 25px;
    line-height: 1.4;
    font-weight: 500;
    color: #222222;
}

/* 技术参数表 */
.detail-specifications {
    width: 100%;
    border-top: 1px solid #eeeeee;
}

.detail-spec-row {
    width: 100%;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 58px;
    border-bottom: 1px solid #eeeeee;
}

.detail-spec-name {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #444444;
}

.detail-spec-value {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    white-space: pre-line;
}

/* 产品特点 */
.detail-features {
    width: 100%;
    display: grid;
    gap: 20px;
}

.detail-features.count-1 {
    grid-template-columns: minmax(0, 1fr);
}

.detail-features.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-features.count-3,
.detail-features.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-feature-item {
    width: 100%;
    padding: 28px 28px 30px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    transition: border-color .25s ease, transform .25s ease;
    box-sizing: border-box;
}

.detail-feature-item:hover {
    border-color: #d5b37a;
    transform: translateY(-2px);
}

.detail-feature-index {
    display: block;
    margin-bottom: 16px;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #bd882d;
    letter-spacing: .08em;
}

.detail-feature-title {
    margin: 0 0 10px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    color: #222222;
}

.detail-feature-description {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #777777;
    white-space: pre-line;
}

/* 空状态与加载状态 */
.detail-empty {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #999999;
    border: 1px solid #eeeeee;
    background: #fafafa;
    box-sizing: border-box;
}

.product-detail-loading {
    width: 100%;
    padding: 80px 20px;
    text-align: center;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    color: #999999;
}

.product-detail-loading-mask {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 平板 */
@media (max-width: 1100px) {
    .product-detail-layout {
        width: min(calc(100% - 50px), 1400px);
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 35px;
    }

    .product-main-showcase {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
        gap: 40px;
    }

    .product-main-gallery {
        max-width: 100%;
    }

    #detail-product-name {
        font-size: clamp(28px, 4vw, 40px);
    }

    .detail-spec-row {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .product-detail-images {
        width: 90%;
    }
}

/* 手机 */
@media (max-width: 700px) {
    .product-detail-page {
        padding: 55px 0 70px;
    }

    .product-detail-layout {
        width: calc(100% - 30px);
        display: block;
    }

    .product-detail-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 45px;
    }

    .detail-sidebar-title h2 {
        font-size: 25px;
    }

    .detail-category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .detail-category-item {
        min-height: 46px;
    }

    .detail-category-item:nth-child(odd) {
        border-right: 1px solid #eeeeee;
    }

    .detail-category-item:hover,
    .detail-category-item.active {
        padding-left: 5px;
    }

    .detail-breadcrumb {
        margin-bottom: 26px;
        padding-bottom: 20px;
        gap: 7px;
        font-size: 14px;
    }

    .detail-breadcrumb strong {
        font-size: 14px;
    }

    .product-main-showcase {
        display: flex;
        flex-direction: column;
        gap: 35px;
        padding-bottom: 45px;
    }

    .product-main-gallery {
        max-width: 100%;
    }

    .product-main-info {
        width: 100%;
    }

    #detail-product-name {
        font-size: 30px;
    }

    .detail-description-main {
        max-width: none;
        font-size: 14px;
        line-height: 1.9;
    }

    .detail-gold-line {
        margin: 20px 0;
    }

    .detail-contact-btn {
        margin-top: 25px;
    }

    .product-documents {
        margin-top: 16px;
        padding: 0;
    }

    .product-documents-list {
        gap: 8px;
    }

    .product-document-item {
        padding:7px 11px;
    }
    
    .product-document-name {
        font-size:13px;
    }

    .product-detail-images {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 42px;
    }

    .detail-anchor-nav {
        justify-content: flex-start;
        gap: 0;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        margin: 0 0 20px;
    }

    .detail-anchor-nav::-webkit-scrollbar {
        display: none;
    }

    .detail-anchor-nav a {
        flex: 0 0 auto;
        min-width: 150px;
        height: 64px;
        padding: 0 24px;
        font-size: 14px;
    }

    .product-detail-section {
        margin-top: 55px;
        padding-top: 35px;
    }

    .detail-section-heading {
        gap: 15px;
        margin-bottom: 28px;
    }

    .detail-section-heading h2 {
        font-size: 21px;
    }

    .detail-spec-row {
        grid-template-columns: 1fr;
    }

    .detail-spec-name {
        padding: 12px 15px;
        font-weight: 500;
    }

    .detail-spec-value {
        padding: 12px 15px;
    }

    .detail-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .detail-feature-item {
        padding: 23px 20px 25px;
    }
}

/* 超小屏 */
@media (max-width: 480px) {
    .product-detail-layout {
        width: calc(100% - 24px);
    }

    .detail-category-list {
        grid-template-columns: 1fr;
    }

    .detail-category-item:nth-child(odd) {
        border-right: none;
    }

    #detail-product-name {
        font-size: 27px;
    }

    .product-thumb-list {
        gap: 8px;
    }

    .detail-section-heading {
        gap: 12px;
    }

    .detail-section-number {
        font-size: 11px;
    }

    .detail-section-heading h2 {
        font-size: 19px;
    }

    .detail-anchor-nav a {
        padding: 12px 16px;
    }
}