/* 系列页只补充分页、规格表和按钮；产品列表完全沿用 Products 页原有样式。 */
.sdwp731-series-page {
    --series-line: #dfe3e7;
    --series-soft: #f6f7f8;
    --series-orange: #f47b20;
    background: #fff;
}

.sdwp731-series-page *,
.sdwp731-series-page *::before,
.sdwp731-series-page *::after {
    box-sizing: border-box;
}

/* 与所有产品详情页共用相同的 Banner 标题效果。 */
.sdwp731-series-page
.metro-products-hero
.sdwp731-products-banner-title {
    margin: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: none;
}

.sdwp731-series-page .metro-breadcrumb strong {
    color: #2d3742;
    font-weight: 600;
}

.sdwp731-series-page .metro-product-card h2 a {
    color: #222;
}

/* 标准编辑框正文：仅在当前系列勾选显示时由模板输出。 */
.sdwp731-series-content {
    margin: 14px 0 28px;
    color: #505b66;
    font-size: 16px;
    line-height: 1.75;
}

.sdwp731-series-content > :first-child {
    margin-top: 0;
}

.sdwp731-series-content > :last-child {
    margin-bottom: 0;
}

.sdwp731-series-content a {
    color: var(--series-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sdwp731-series-content img {
    max-width: 100%;
    height: auto;
}

/*
 * 每个系列产品可单独调整图片比例。
 * 图片框尺寸保持不变，只缩放框内图片并始终居中；该规则仅作用于系列页。
 */
.sdwp731-series-page .metro-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sdwp731-series-page .metro-product-image img {
    width: var(--sdwp731-series-image-scale, 100%) !important;
    height: var(--sdwp731-series-image-scale, 100%) !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

.sdwp731-series-page .sdwp731-view-details {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--series-orange);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.sdwp731-series-page .sdwp731-view-details:hover,
.sdwp731-series-page .sdwp731-view-details:focus {
    color: #d96110;
    text-decoration: underline;
}

.sdwp731-series-page .sdwp731-view-details span {
    transition: transform 0.2s ease;
}

.sdwp731-series-page .sdwp731-view-details:hover span,
.sdwp731-series-page .sdwp731-view-details:focus span {
    transform: translateX(3px);
}

.sdwp731-series-pagination {
    margin-top: 20px;
}

.sdwp731-series-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdwp731-series-pagination a,
.sdwp731-series-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid var(--series-line);
    color: #3f4953;
    background: #fff;
    text-decoration: none;
}

.sdwp731-series-pagination a:hover,
.sdwp731-series-pagination a:focus,
.sdwp731-series-pagination .current {
    border-color: var(--series-orange);
    color: #fff;
    background: var(--series-orange);
}

.sdwp731-series-specifications {
    margin-top: 28px;
}

/* 规格标题与固定单位。 */
.sdwp731-series-spec-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 12px;
}

.sdwp731-series-spec-heading > h2 {
    margin: 0;
    color: #222b35;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.sdwp731-series-spec-unit {
    flex: 0 0 auto;
    color: #66717d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.sdwp731-series-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--series-line);
    -webkit-overflow-scrolling: touch;
}

.sdwp731-series-table-wrap table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: #fff;
}

.sdwp731-series-table-wrap th,
.sdwp731-series-table-wrap td {
    padding: 10px 13px;
    border-right: 1px solid var(--series-line);
    border-bottom: 1px solid var(--series-line);
    color: #46515d;
    vertical-align: middle;
    white-space: nowrap;
}

/* 表头：第一列左对齐，其余规格列居中。 */
.sdwp731-series-table-wrap thead th {
    color: #27313b;
    background: var(--series-soft);
    font-weight: 600;
    text-align: center;
}

.sdwp731-series-table-wrap thead th:first-child {
    text-align: left;
}

/* 第一列为规格名称；后面的数据列统一居中。 */
.sdwp731-series-table-wrap tbody th {
    width: 30%;
    font-weight: 500;
    text-align: left;
    background: #fafbfc;
}

.sdwp731-series-table-wrap tbody td {
    text-align: center;
}

.sdwp731-series-table-wrap tr > *:last-child {
    border-right: 0;
}

.sdwp731-series-table-wrap tbody tr:last-child > * {
    border-bottom: 0;
}

.sdwp731-series-quote-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 22px 0 48px;
}

.sdwp731-series-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 52px;
    padding: 12px 28px;
    border: 1px solid var(--series-orange);
    border-radius: 12px;
    color: #fff;
    background: var(--series-orange);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none !important;
}

.sdwp731-series-quote:hover,
.sdwp731-series-quote:focus {
    color: var(--series-orange);
    background: #fff;
}

@media (max-width: 768px) {
    /* 手机端整个系列内容不得撑出屏幕。 */
    .sdwp731-series-page {
        overflow-x: hidden;
    }

    .sdwp731-series-page .metro-products-layout,
    .sdwp731-series-page .sdwp731-series-main,
    .sdwp731-series-page .metro-product-grid,
    .sdwp731-series-page .metro-product-card,
    .sdwp731-series-page .sdwp731-series-specifications {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .sdwp731-series-page .metro-products-layout {
        display: block;
    }

    .sdwp731-series-page .metro-categories {
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .sdwp731-series-page .sdwp731-series-main > h1 {
        font-size: 28px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .sdwp731-series-content {
        margin: 12px 0 24px;
        font-size: 15px;
        line-height: 1.7;
    }

    .sdwp731-series-page .metro-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    /* 手机端缩小产品卡片，规格表仍保持整行宽度。 */
    .sdwp731-series-page .metro-product-card {
        width: 86% !important;
        max-width: 320px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .sdwp731-series-page .metro-product-card h2,
    .sdwp731-series-page .metro-product-card h2 a {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .sdwp731-series-specifications {
        margin-top: 24px;
    }

    .sdwp731-series-spec-heading {
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 10px;
    }

    .sdwp731-series-spec-heading > h2 {
        min-width: 0;
        font-size: 25px;
        line-height: 1.15;
    }

    .sdwp731-series-spec-unit {
        font-size: 12px;
    }

    /*
     * 电脑端保留760px宽表格；手机端取消该限制。
     * 第一列显示参数名称，其余尺寸列平均分配剩余宽度。
     */
    .sdwp731-series-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sdwp731-series-table-wrap table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .sdwp731-series-table-wrap th,
    .sdwp731-series-table-wrap td {
        padding: 8px 5px;
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .sdwp731-series-table-wrap thead th:first-child,
    .sdwp731-series-table-wrap tbody th {
        width: 38%;
    }

    .sdwp731-series-table-wrap thead th:not(:first-child),
    .sdwp731-series-table-wrap tbody td {
        text-align: center;
    }

    .sdwp731-series-quote-wrap {
        justify-content: stretch;
        margin: 18px 0 36px;
    }

    .sdwp731-series-quote {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .sdwp731-series-spec-heading > h2 {
        font-size: 23px;
    }

    .sdwp731-series-table-wrap th,
    .sdwp731-series-table-wrap td {
        padding: 7px 4px;
        font-size: 11px;
    }

    .sdwp731-series-table-wrap thead th:first-child,
    .sdwp731-series-table-wrap tbody th {
        width: 36%;
    }
}
