/* ============ Product Detail Page ============ */
body {
    background: linear-gradient(180deg, #eef3fc 0%, #fafafa 100%);
}

/* ============ Main ============ */
.detail-page {
    max-width: 1440px;
    margin: -100px auto 0;
    padding: 0 24px 100px;
    position: relative;
    z-index: 2;
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 16px 48px -16px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.05);
    padding: 40px 52px 50px;
}

/* ============ Breadcrumbs ============ */
.detail-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8a94a8;
    margin-bottom: 34px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1f6;
    flex-wrap: wrap;
}

.detail-crumbs a {
    color: #5b6b85;
    text-decoration: none;
    transition: color 0.3s;
}

.detail-crumbs a:hover {
    color: var(--color1);
}

.detail-crumbs .crumb-sep {
    color: #c3cbd8;
}

.detail-crumbs .crumb-current {
    color: var(--color1);
    font-weight: 600;
}

/* ============ Overview ============ */
.detail-overview {
    display: flex;
    gap: 48px;
    align-items: stretch;
    margin-bottom: 54px;
}

.detail-media {
    flex: 0 0 46%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.4);
    position: sticky;
    top: 100px;
}

.detail-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    object-fit: cover;
}

.detail-img-wrap {
    position: relative;
}

/* 大图左右切换按钮 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #42506a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    transition: all 0.25s;
    z-index: 2;
}

.gallery-nav.prev {
    left: 14px;
}

.gallery-nav.next {
    right: 14px;
}

.gallery-nav:hover {
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    border-color: transparent;
    color: #fff;
}

.gallery-nav.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gallery-nav.disabled:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.08);
    color: #42506a;
}

/* 细节图条：默认显示 3 张，可横向滑动 */
.detail-gallery {
    margin-top: 14px;
    padding-bottom: 6px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 20px) / 3);
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8e0ec transparent;
}

.detail-gallery::-webkit-scrollbar {
    height: 6px;
}

.detail-gallery::-webkit-scrollbar-thumb {
    background: #d8e0ec;
    border-radius: 6px;
}

.detail-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--color1);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.25s;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

.gallery-item:hover {
    border-color: #b9cdf5;
}

.gallery-item.active {
    border-color: var(--color1);
}

.detail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.detail-series-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color1);
    background: rgba(26, 86, 219, 0.08);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.detail-info h2 {
    font-size: 34px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.detail-desc {
    font-size: 15px;
    line-height: 2;
    color: #5f6f8a;
    margin-bottom: 18px;
    text-align: justify;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.detail-tags span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color1);
    background: rgba(26, 86, 219, 0.08);
    padding: 5px 14px;
    border-radius: 999px;
}

.detail-highlights {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.detail-highlights li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #42506a;
    line-height: 1.8;
}

.detail-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color1), #5b9cff);
}

.detail-btns {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 28px;
}

.detail-btns .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 32px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
}

.detail-btns .btn-primary {
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(26, 86, 219, 0.55);
}

.detail-btns .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(26, 86, 219, 0.65);
}

.detail-btns .btn-outline {
    border: 1px solid rgba(26, 86, 219, 0.3);
    color: var(--color1);
    background: #fff;
}

.detail-btns .btn-outline:hover {
    background: var(--color1);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ Sections ============ */
.detail-section {
    margin-bottom: 48px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-title-row h3 {
    font-size: 24px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 2px;
}

.section-title-row .sec-line {
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 86, 219, 0.5));
}

.section-title-row .sec-line:last-child {
    background: linear-gradient(270deg, transparent, rgba(26, 86, 219, 0.5));
}

/* ============ Specs ============ */
.detail-specs {
    width: 100%;
    border-collapse: collapse;
    background: #fafcff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef1f6;
}

.detail-specs tr {
    border-bottom: 1px solid #eef1f6;
}

.detail-specs tr:last-child {
    border-bottom: none;
}

.detail-specs th {
    width: 200px;
    text-align: left;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #42506a;
    background: #f2f6fd;
    letter-spacing: 1px;
}

.detail-specs td {
    padding: 16px 24px;
    font-size: 14px;
    color: #5f6f8a;
    line-height: 1.8;
}

/* ============ Long Detail（富文本） ============ */
.detail-long {
    max-width: 980px;
    margin: 0 auto;
}

.detail-long p {
    font-size: 15px;
    line-height: 2.2;
    color: #5f6f8a;
    text-align: justify;
    margin-bottom: 18px;
    text-indent: 2em;
}

.detail-long h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 30px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--color1);
    line-height: 1.5;
}

.detail-long h4 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 24px 0 10px;
}

.detail-long ul,
.detail-long ol {
    margin: 0 0 18px;
    padding-left: 26px;
    color: #5f6f8a;
    font-size: 15px;
    line-height: 2.1;
}

.detail-long ul {
    list-style: disc;
}

.detail-long ol {
    list-style: decimal;
}

.detail-long li {
    margin-bottom: 6px;
}

.detail-long strong {
    color: #1e293b;
    font-weight: 700;
}

.detail-long blockquote {
    margin: 22px 0;
    padding: 14px 20px;
    border-left: 4px solid #5b9cff;
    background: #f5f9ff;
    border-radius: 0 10px 10px 0;
    color: #5f6f8a;
    font-size: 15px;
    line-height: 2;
}

.detail-long img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 12px;
    box-shadow: 0 16px 40px -18px rgba(15, 23, 42, 0.3);
}

/* ============ Custom Services ============ */
.detail-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ds-item {
    background: #fafcff;
    border: 1px solid rgba(26, 86, 219, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.35s;
}

.ds-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -18px rgba(26, 86, 219, 0.3);
    border-color: rgba(26, 86, 219, 0.18);
}

.ds-item .ds-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -8px rgba(26, 86, 219, 0.5);
}

.ds-item .ds-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.ds-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ds-item p {
    font-size: 13px;
    line-height: 1.8;
    color: #7a8699;
}

/* ============ Related ============ */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.related-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.14);
    transition: all 0.35s;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -18px rgba(26, 86, 219, 0.32);
    border-color: rgba(26, 86, 219, 0.18);
}

.related-media {
    aspect-ratio: 4 / 3;
    min-height: 180px;
    overflow: hidden;
    background: #eef1f6;
}

.related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.related-card:hover .related-media img {
    transform: scale(1.08);
}

.related-info {
    padding: 16px 18px 18px;
}

.related-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-info p {
    font-size: 12px;
    line-height: 1.7;
    color: #8a94a8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ Detail CTA ============ */
.detail-cta {
    position: relative;
    margin-top: 54px;
    padding: 50px 56px;
    text-align: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #e7eefd 100%);
    border: 1px solid rgba(26, 86, 219, 0.12);
    border-radius: 22px;
    overflow: hidden;
}

.detail-cta::before,
.detail-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.detail-cta::before {
    width: 360px;
    height: 360px;
    right: -130px;
    top: -160px;
    border: 2px solid rgba(26, 86, 219, 0.1);
}

.detail-cta::after {
    width: 280px;
    height: 280px;
    left: -110px;
    bottom: -150px;
    border: 2px solid rgba(26, 86, 219, 0.08);
}

.detail-cta-inner {
    position: relative;
    z-index: 1;
}

.detail-cta-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--color1);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.detail-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.detail-cta p {
    font-size: 15px;
    line-height: 2;
    color: #5f6f8a;
    margin-bottom: 30px;
}

.detail-cta .detail-cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.detail-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
}

.detail-cta .btn-primary {
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(26, 86, 219, 0.55);
}

.detail-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(26, 86, 219, 0.65);
}

.detail-cta .btn-outline {
    border: 1px solid rgba(26, 86, 219, 0.3);
    color: var(--color1);
    background: #fff;
}

.detail-cta .btn-outline:hover {
    background: var(--color1);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .detail-overview {
        gap: 30px;
    }

    .detail-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .detail-page {
        margin-top: -76px;
        padding: 0 16px 60px;
    }

    .detail-card {
        padding: 26px 20px 36px;
    }

    .detail-crumbs {
        margin-bottom: 24px;
    }

    .detail-overview {
        flex-direction: column;
        gap: 26px;
        margin-bottom: 40px;
    }

    .detail-media {
        flex: none;
        width: 100%;
        position: static;
    }

    .gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .detail-info h2 {
        font-size: 26px;
    }

    .detail-highlights {
        grid-template-columns: 1fr;
    }

    .detail-section {
        margin-bottom: 36px;
    }

    .section-title-row h3 {
        font-size: 20px;
    }

    .detail-specs th {
        width: 110px;
        padding: 13px 14px;
    }

    .detail-specs td {
        padding: 13px 14px;
    }

    .detail-long {
        font-size: 14px;
    }

    .detail-services {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ds-item {
        padding: 22px 16px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .detail-cta {
        margin-top: 32px;
        padding: 34px 22px;
    }

    .detail-cta h3 {
        font-size: 22px;
    }

    .detail-cta p {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .detail-cta .detail-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .detail-cta .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .detail-services,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Hot Keywords ============ */
.nd-tags {
    max-width: 900px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px;
    background: #f4f8ff;
    border: 1px solid #e2ebfb;
    border-radius: 12px;
}

.nd-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7688;
    letter-spacing: 1px;
}

.nd-keyword {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #d5e2fb;
    border-radius: 999px;
    background: #eef4ff;
    color: #2d5db8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
}

.nd-keyword:hover {
    border-color: var(--color1);
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    color: #fff;
}

