/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 工具类 */
.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
    top: 20px;
}

.grid {
    display: grid;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.text-pretty {
    white-space: pre-line;
}

.z-10 {
    z-index: 10;
}

.mb-4 {
    margin-bottom: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.font-bold {
    font-weight: bold;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

.bg-white {
    background-color: #fff;
}

.border-t {
    border-top: 1px solid #e5e5e5;
}

.col-span-5 {
    grid-column: span 5;
}

.fit {
    width: 100%;
}

.h-max {
    height: max-content;
}

.w-screen {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* 顶部横幅 */
.top-banner {
    height: 30px;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 206px;
    position: relative;
    z-index: 1;
}

.top-banner picture {
    margin-right: 10px;
}

/* 导航栏 */
.header {
    height: 70px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    margin-top: 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    display: flex;
    width: 100%;
    position: relative;
    gap: 0;
}

.go-home {
    margin-right: 32px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    min-width: fit-content;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    min-width: 0;
    flex: 1 1 0%;
    overflow: visible;
    margin-right: 20px;
}

.nav-menu > * {
    flex-shrink: 1;
    white-space: nowrap;
    min-width: 0;
}

.nav-menu .nav-item {
    flex-shrink: 1;
    position: relative;
}

.menuitem.hot-sale {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-right: 16px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: fit-content;
}

.menuitem.hot-sale picture {
    position: absolute;
    right: 0;
    top: -2px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    line-height: 1.2;
    transition: color 0.3s;
    display: block;
    padding: 8px 2px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #007bff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 220px;
    width: 220px;
    justify-content: flex-end;
}

.nav-actions button,
.nav-actions a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.nav-actions button:hover,
.nav-actions a:hover {
    color: #007bff;
}

.language-switcher {
    position: relative;
    width: 28px;
    height: 28px;
}

.language-switcher i {
    position: absolute;
    width: 2px;
    background: #333;
}

.language-switcher i:nth-child(2) {
    left: 6px;
    bottom: 15px;
    height: 5px;
}

.language-switcher i:nth-child(3) {
    left: 10px;
    bottom: 16px;
    height: 4px;
}

.language-switcher i:nth-child(4) {
    left: 14px;
    bottom: 17px;
    height: 3px;
}

/* 主内容区 */
main {
    min-height: calc(100vh - 100px);
}

/* 面包屑导航 */
.breadcrumb-section {
    padding: 0 206px;
    margin-top: 22px;
    margin-bottom: 12px;
}

.w-safe {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.w-safe > span {
    color: #666;
}

.w-safe > span:last-child {
    color: #333;
    font-weight: 500;
}

.overflow-hidden {
    max-width: 382px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 产品区域 */
.product-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 206px;
    display: grid;
    grid-template-columns: 632px 1fr;
    gap: 44px;
    margin-top: 34px;
    margin-bottom: 50px;
}

/* 产品图片 */
.product-images {
    height: fit-content;
}

.product-swiper {
    width: 632px;
    height: 630px;
    position: relative;
    margin-bottom: 24px;
}

.product-swiper .swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-swiper .swiper-slide {
    width: 632px;
    height: 630px;
    flex-shrink: 0;
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-counter {
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.image-tabs {
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 8px;
}

.image-tabs .tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.image-tabs .tab-btn.active {
    color: #333;
    font-weight: bold;
}

.image-tabs .tab-btn:hover {
    color: #007bff;
}

/* 产品信息 */
.product-info {
    padding-top: 106px;
}

.product-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.product-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.jdgm-prev-badge__stars {
    display: flex;
    gap: 2px;
}

.jdgm-star {
    color: #ffc107;
    font-size: 18px;
}

.jdgm-star.half {
    color: #ddd;
}

.price-section {
    margin-bottom: 16px;
}

.price {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.installment-info {
    margin-bottom: 16px;
}

.installment-info button {
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s;
}

.installment-info button:hover {
    background: #e9ecef;
}

.installment-info .flex {
    align-items: center;
    gap: 8px;
}

.color-section {
    margin-bottom: 16px;
}

.color-section > .flex {
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 16px;
}

.color-options {
    grid-template-columns: repeat(2, 36px);
    gap: 28px;
    margin-left: 7px;
}

.color-btn {
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.color-btn.active {
    border-color: #007bff;
}

.color-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner {
    margin-bottom: 16px;
}

.promo-banner img {
    width: 100%;
    height: auto;
}

/* 产品特性 */
.features-section {
    margin-bottom: 16px;
}

.features-section ul {
    list-style: none;
    padding-left: 18px;
}

.features-section li {
    margin-bottom: 16px;
    line-height: 1.6;
}

.features-section li span {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.expand-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.expand-btn:hover {
    text-decoration: underline;
}

.expand-btn svg {
    transition: transform 0.3s ease;
}

.features-section.collapsed ul li:nth-child(n+4) {
    display: none;
}

/* 配送信息 */
.shipping-section {
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.shipping-section > .flex:first-child {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.shipping-section > .flex:first-child span:last-child {
    color: #007bff;
    cursor: pointer;
    font-weight: normal;
}

.shipping-options {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.shipping-option {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.shipping-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.shipping-option.selected {
    border-color: #007bff;
    background: #e7f3ff;
}

.shipping-option .price {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
}

.members-badge {
    top: -2px;
    right: 16px;
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.shipping-section .text-pretty {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.shipping-section .text-pretty a {
    color: #007bff;
    text-decoration: none;
}

.shipping-section p {
    font-size: 14px;
    color: #666;
}

/* 服务与福利 */
.services-section {
    margin-bottom: 16px;
}

.services-section > .bg-white {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
}

.services-section > .bg-white > span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.service-item {
    background: none;
    border: none;
    text-align: left;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

.service-item:hover {
    color: #007bff;
}

.service-item picture {
    flex-shrink: 0;
}

.services-section > div:last-child {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
}

.services-section > div:last-child > div {
    padding: 16px 0;
}

.services-section > div:last-child > div:first-child {
    border-bottom: 1px solid #e5e5e5;
}

.services-section button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.payment-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 产品详情区域 */
#listing-new {
    margin-top: 50px;
}

#ksp {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 206px;
}

#ksp > .flex:first-child {
    margin-bottom: 32px;
}

#ksp h2 {
    font-size: 32px;
    font-weight: 600;
}

.overview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.overview-grid > div:first-child {
    grid-column: span 2;
    grid-row: span 1;
}

.overview-grid > div:nth-child(3),
.overview-grid > div:nth-child(4) {
    grid-column: span 1;
}

.overview-grid > div:nth-child(5),
.overview-grid > div:nth-child(6) {
    grid-column: span 1;
}

.overview-grid > div:last-child {
    grid-column: span 2;
}

.overview-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 32px;
    font-size: 24px;
    font-weight: 600;
}

/* 全宽图片区域 */
.full-image-section {
    margin: 50px 0;
    position: relative;
}

#fullImage_0 {
    position: relative;
    height: 854px;
}

#fullImage_0 picture {
    width: 100%;
    height: 100%;
}

#fullImage_0 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fullImage_0 .absolute {
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 96px 214px;
}

#fullImage_0 h2 {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

/* GPT 功能轮播 */
.gpt-section {
    margin: 50px 0;
    padding: 0 214px;
}

.gpt-section > .flex:first-child {
    justify-content: center;
    margin-bottom: 32px;
}

.gpt-section h2 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
}

.swiper-nav {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 32px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.nav-btn:hover {
    color: #007bff;
}

.gpt-swiper {
    width: 100%;
    height: 640px;
}

.gpt-swiper .swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gpt-swiper .swiper-slide {
    width: 1280px;
    height: 640px;
    flex-shrink: 0;
}

.gpt-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图文混排区块 */
.image-text-sections {
    margin: 50px 0;
}

.image-text-section {
    padding: 96px 214px;
    min-height: 556px;
    display: flex;
    align-items: center;
}

.image-text-section:nth-child(even) {
    background: #f8f9fa;
}

.image-text-section .flex {
    max-width: 1280px;
    margin: 0 auto;
    gap: 80px;
    align-items: center;
}

.image-text-section picture {
    flex: 0 0 740px;
}

.image-text-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-content {
    flex: 0 0 460px;
    flex-direction: column;
    gap: 16px;
}

.text-content h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

.text-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.text-content .note {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.text-content .text-pretty {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .product-section {
        grid-template-columns: 1fr;
    }
    
    .product-images {
        position: relative;
    }
    
    .product-swiper {
        width: 100%;
        max-width: 632px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .product-section {
        padding: 0 20px;
    }
    
    .breadcrumb-section {
        padding: 0 20px;
    }
    
    #ksp {
        padding: 0 20px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid > div:first-child,
    .overview-grid > div:last-child {
        grid-column: span 1;
    }
    
    .image-text-section {
        padding: 40px 20px;
    }
    
    .image-text-section .flex {
        flex-direction: column;
        gap: 40px;
    }
    
    .image-text-section picture,
    .text-content {
        flex: 1 1 100%;
    }
    
    .gpt-section {
        padding: 0 20px;
    }
    
    .swiper-nav {
        overflow-x: auto;
    }
}

