/* seemb9 产品详情页 v2 – Hero + 两栏（图库+购买 / 规格） */

.app-main.pd9-page {
    width: 100%;
    background: #f5f7fb;
    padding-bottom: 48px;
    --pd9-accent: var(--primary-color, #4066b8);
    --pd9-accent-dark: #2f4f94;
    --pd9-border: #dfe4ed;
    --pd9-muted: #64748b;
    --pd9-text: #1e293b;
    --pd9-surface: #fff;
    --pd9-radius: 10px;
}

.app-main.pd9-page .not-text-transform,
.app-main.pd9-page .not-text-transform * {
    text-transform: none;
}

.pd9-inner {
    padding-top: 14px;
}

.pd9-breadcrumb {
    margin-bottom: 18px;
}

/* ----- Hero ----- */
.pd9-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 28px 32px;
    color: #fff;
    background: linear-gradient(135deg, var(--pd9-accent-dark) 0%, var(--pd9-accent) 52%, #5a7ec8 100%);
    border-radius: var(--pd9-radius);
    box-shadow: 0 8px 28px rgba(64, 102, 184, 0.22);
}

.pd9-hero__main {
    flex: 1;
    min-width: 0;
}

.pd9-hero__title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.pd9-hero__desc {
    margin: 0 0 16px;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.pd9-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd9-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.pd9-pill__label {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.pd9-pill__value,
.pd9-pill__value a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.pd9-pill__value a:hover {
    text-decoration: underline;
}

.pd9-pill__sep {
    margin: 0 2px;
    opacity: 0.7;
}

.pd9-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.pd9-hero__pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pd9-accent);
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pd9-hero__pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: var(--pd9-accent);
}

.pd9-hero__pdf .iconfont {
    font-size: 18px;
}

/* ----- Body grid ----- */
.pd9-body {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.pd9-body__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.pd9-body__gallery,
.pd9-body__specs,
.pd9-buy-card {
    background: var(--pd9-surface);
    border: 1px solid var(--pd9-border);
    border-radius: var(--pd9-radius);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.pd9-body__gallery {
    padding: 16px;
}

.pd9-gallery__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid var(--pd9-border);
    border-radius: 8px;
    overflow: hidden;
}

.pd9-gallery__stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 12px;
}

.pd9-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.pd9-gallery__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    background: #fff;
    border: 2px solid var(--pd9-border);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pd9-gallery__thumb.is-active,
.pd9-gallery__thumb:hover {
    border-color: var(--pd9-accent);
    box-shadow: 0 0 0 1px rgba(64, 102, 184, 0.15);
}

.pd9-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ----- Specs ----- */
.pd9-body__specs {
    padding: 20px 22px;
}

.pd9-section-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pd9-text);
    border-bottom: 2px solid rgba(64, 102, 184, 0.18);
}

.pd9-section-title--spaced {
    margin-top: 24px;
}

.pd9-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.pd9-spec-item {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}

.pd9-spec-item dt {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pd9-muted);
}

.pd9-spec-item dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pd9-text);
    word-break: break-word;
}

.pd9-attr-table-wrap {
    overflow: auto;
    border: 1px solid var(--pd9-border);
    border-radius: 8px;
}

.pd9-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pd9-attr-table th,
.pd9-attr-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.pd9-attr-table tr:last-child th,
.pd9-attr-table tr:last-child td {
    border-bottom: none;
}

.pd9-attr-table th {
    width: 42%;
    font-weight: 600;
    color: var(--pd9-muted);
    background: #f8fafc;
}

.pd9-attr-table tr:nth-child(even) td {
    background: #fcfdfe;
}

.pd9-attr-table td {
    color: var(--pd9-text);
    word-break: break-word;
}

.pd9-buy-card {
    padding: 18px 18px 20px;
}

.pd9-buy-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--pd9-text);
}

.pd9-buy-card__moq {
    margin: 0 0 14px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
}

.pd9-price-ladder {
    margin-bottom: 16px;
    border: 1px solid var(--pd9-border);
    border-radius: 8px;
    overflow: hidden;
}

.pd9-price-ladder__head,
.pd9-price-ladder__row {
    display: grid;
    grid-template-columns: 72px 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.pd9-price-ladder__head {
    font-weight: 700;
    color: #475569;
    background: linear-gradient(180deg, #f1f5f9 0%, #e8edf3 100%);
    border-bottom: 1px solid rgba(64, 102, 184, 0.12);
}

.pd9-price-ladder__row {
    color: var(--pd9-text);
    border-bottom: 1px solid #eef2f7;
}

.pd9-price-ladder__row:last-child {
    border-bottom: none;
}

.pd9-price-ladder__row:nth-child(even) {
    background: #fafbfc;
}

.pd9-price-ladder__row span:nth-child(2),
.pd9-price-ladder__row span:nth-child(3) {
    font-weight: 600;
    color: var(--pd9-accent);
}

.pd9-buy-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--pd9-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.pd9-buy-card__btn:hover {
    background: var(--primary-color-hover, #4066b8cc);
    transform: translateY(-1px);
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .pd9-body {
        grid-template-columns: 1fr;
    }

    .pd9-hero {
        padding: 22px 20px;
    }

    .pd9-hero__actions {
        align-items: flex-start;
        width: 100%;
    }

    .pd9-gallery__thumbs {
        flex-direction: row;
        max-height: none;
    }

    .pd9-gallery__thumb {
        width: calc(25% - 6px);
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    .pd9-hero__title {
        font-size: 24px;
    }

    .pd9-spec-grid {
        grid-template-columns: 1fr;
    }
}
