﻿@charset "utf-8";
.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.hide {
    display: none !important;
}

.nav-bar {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 7.5rem;
    z-index: 998;
}

.nav-inner {
    width: 90%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-tag-icon {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tag-icon {
    height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tag-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tag-text {
    font-size: 1rem;
    color: #333;
}

.anchor-nav {
    display: flex;
    gap: 30px;
    font-size: 1rem;
    color: #dadada;
}

.anchor-item {
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    color: #666;
}

.anchor-item.active {
    color: #004ea2;
    font-weight: bold;
}

.anchor-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #004ea2;
}

.product-header {
    max-width: 1480px;
    margin: 5.7rem auto 2rem;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: visible; 
}

.product-main-img {
    width: 57.4%;
}

.media-container {
    width: 100%;
    height: 33.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-media,
.main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 3rem 0;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-item.active {
    border-color: #004ea2;
}

.thumbnail-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: unset;  
    object-position: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.arrow-prev {
    left: 17%;
}

.arrow-next {
    right: 17%;
}

.product-info {
    width: 35%;
    padding-top: 4.28rem;
    position: -webkit-sticky;
    position: sticky;
    top: calc(7.5rem + 50px);
}

.tag-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    font-size: 1rem;
    color: #666;
    padding: 2px 10px;
    border-radius: 4px;
    background: #f5f5f5;
}

.tag.new {
    background: #004ea2;
    color: #fff;
}

.product-title {
    font-size: 2.85rem;
    font-weight: bold;
    margin: 10px 0;
}

.product-subtitle {
    font-size: 1.285rem;
    color: #666;
    margin-bottom: 2.85rem;
}

.info-link-list {
    margin-bottom: 1.42rem;
    ;
}

.info-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #666;
}

.info-link-item::after {
    content: ">";
    color: #ccc;
}

.buy-way-item {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.42rem;
}

.buy-way {
    display: flex;
    gap: 20px;
    margin-bottom: 5.7rem;
    position: relative;
}

.buy-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    width: 50%;
    background: #f9f9f9;
    box-sizing: border-box;
}

.buy-btn .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    order: 2;
    margin-left: 6px;
}

.tag-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.qrcode-box {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    width: 160px;
    height: 160px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.qrcode {
    width: 130px;
    height: 130px;
    background: #f0f0f0;
}

.btn-primary {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: #004ea2;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    display: block;
}

#detail-content,
#spec-content {
    width: 90%;
    max-width: 1480px;
    margin: 0 auto 5.7rem;
}

#detail-content img,
#spec-content img {
    max-width: 100%;
}

.spec-section {
    display: flex;
    gap: 60px;
}

.spec-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 0 3%;
}

.spec-table {
    width: 50%;
    box-sizing: border-box;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.spec-row {
    width: 33.333%;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    font-size: 1.28rem;
}

.spec-row .label {
    color: #adadad;
}

.spec-row .value {
    color: #0b0b0b;
}

.spec-demo {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spec-demo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    
    .nav-inner {
        padding: 0 15px;
        justify-content: space-between;
        position: relative;
    }
    .product-tag-icon {
        position: static;
        transform: none;
        margin-right: auto;
    }
    .anchor-nav {
        gap: 15px;
        font-size: 0.9rem;
        position: absolute;
        right: 15px;
    }
    .tag-icon {
        height: 32px;
        margin-right: 6px;
    }
    .tag-text {
        font-size: 0.9rem;
    }

    
    .product-header {
        flex-direction: column;
        gap: 30px;
        margin: 2rem auto;
        width: 92%;
    }
    .product-main-img,
    .product-info {
        width: 100%;
    }
    .media-container {
        height: 60vw; 
        max-height: 400px;
    }
    .thumbnail-list {
        margin-top: 1.5rem;
        gap: 8px;
    }
    .thumbnail-item {
        width: 45px;
        height: 45px;
    }
    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    
    .product-info {
        padding-top: 0;
    }
    .product-title {
        font-size: 2rem;
        margin: 8px 0;
    }
    .product-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .tag {
        font-size: 0.8rem;
        padding: 2px 8px;
    }
    .info-link-item {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    .buy-way-item {
        margin-bottom: 1rem;
    }
    .buy-way {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 2rem;
    }
    .buy-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
    }
    .qrcode-box {
        width: 140px;
        height: 140px;
    }
    .qrcode {
        width: 110px;
        height: 110px;
    }
    .btn-primary {
        height: 44px;
        line-height: 44px;
        font-size: 1rem;
    }

    
    #detail-content,
    #spec-content {
        width: 92%;
        margin-bottom: 3rem;
    }
    .spec-section {
        flex-direction: column;
        gap: 30px;
    }
    .spec-table,
    .spec-demo {
        width: 100%;
        padding: 0;
    }
    .spec-table {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
    
    .spec-row {
        width: 50%;
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    .spec-title {
        font-size: 1.3rem;
        padding: 0;
    }
    .spec-demo img {
        width: 100%;
        height: auto;
    }

    
    .nav-bar {
        height: 44px;
        line-height: 44px;
        top: 5.25rem;
    }
}

@media (max-width: 480px) {
    .media-container {
        height: 70vw;
    }
    .product-title {
        font-size: 1.6rem;
    }
    .product-subtitle {
        font-size: 0.9rem;
    }
    .tag {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    .spec-row {
        width: 100%; 
        font-size: 0.85rem;
    }
    .spec-table {
        padding: 0 10px;
    }
    .anchor-nav {
        gap: 10px;
        font-size: 0.8rem;
    }
    .buy-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .product-info {
        position: relative !important;
        top: 0 !important;
    }
}