.box{width:220px;margin:20px auto}
.left-pro{width:400px; padding:10px 10px;border:1px solid #ccc;text-align:left;float:left}
.left-pro .t1{width:100px;float:left;height:100px;}
.left-pro .t2{width:152px;text-indent:0;float:left;padding-left:10px}
.left-pro .t2 img{text-indent:0;}
#showArea img{cursor:pointer;display:block;margin-right:5px;width:38px;padding:1px;border:1px solid #ccc;height:38px;float:left}
#main_img{cursor:pointer;display:block}
#gotop{cursor:pointer;display:block;margin-left:9px}
#gobottom{cursor:pointer;display:block;margin-left:9px}
#showArea{height:49px;margin:10px 10px 0 10px;overflow:hidden}
/* CSS class for zoomed area */
.MagicZoomBigImageCont{border:1px solid #91b817;overflow:hidden}
.MagicZoomBigImageCont img{width:800px;height:700px}
.MagicZoomBigImageCont iframe{width:300px;height:100px}
.MagicZoomHeader{font:10px Tahoma, Verdana, Arial, sans-serif;color:#fff;background:#91b817;text-align:center !important}
.MagicZoomPup{border:1px solid #aaa;background:#fff;cursor:hand;left:0}
.MagicZoomLoading{text-align:center;background:#fff;color:#444;opacity:0.8;padding:3px 3px 3px 3px !important;display:none}
.MagicZoomLoading img{padding-top:3px !important}
.MagicThumb{cursor:url(cursor/zoomin.cur), pointer;outline:none}
.MagicThumb-zoomed{cursor:default}
.MagicThumb span{display:none}
.MagicThumb-image{border:1px solid #ccc;outline:none}
.MagicThumb-image-zoomed{cursor:url(cursor/zoomout.cur), pointer}
.MagicThumb-caption{color:#333333;background-color:#F0F0F0;border:1px solid #CCC;border-top:none;font-family:Verdana, Helvetica;font-size:11px;padding:8px 16px}
.MagicThumb-controlbar{display:block;height:18px}
.MagicThumb-controlbar a{display:block;width:180px;height:180px;margin:0px 1px;outline:none;float:left;overflow:hidden}
.MagicThumb-controlbar a span{display:block;width:1000px;height:1000px;background:transparent url(graphics/controlbar.png) no-repeat 0 0;outline:none;position:absolute;left:0px;top:0px}
.MagicThumb-loading{border:1px solid #000;background:#fff url(graphics/loader.gif) no-repeat 2px 50%;padding:2px 2px 2px 22px;margin:0;text-decoration:none;text-align:left;font-size:8pt;font-family:sans-serif;}


/* ============================================
   右侧内容样式 - 产品详情页
   ============================================ */

/* ---------- 右侧主内容 ---------- */
.info_right {
    flex: 1;
    min-width: 0;
}

/* ---------- 面包屑导航 ---------- */
.breadcrumb-nav {
    padding: 12px 0 16px 0;
    font-size: 14px;
    color: #888;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: max-content;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.breadcrumb li a {
    color: #666;
    text-decoration: none;
    padding: 4px 2px;
    font-size: 14px;
    transition: color 0.2s;
}

.breadcrumb li a:hover {
    color: #ea5504;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
    flex-shrink: 0;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
    flex-shrink: 0;
}

/* ---------- 产品展示区 ---------- */
.product-detail-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* 产品图片 */
.product-gallery {
    flex: 0 0 300px;
}

.product-main-image {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    text-align: center;
    padding: 10px;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.product-thumbnails a {
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.product-thumbnails a:hover,
.product-thumbnails a.active {
    border-color: #ea5504;
}

.product-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* 产品信息 */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 16px 0;
}

.product-actions {
    margin-bottom: 14px;
}

.product-actions img {
    max-width: 100%;
}

/* 社交分享 */
.product-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-social a {
    display: inline-block;
    transition: transform 0.3s;
    position: relative;
}

.product-social a:hover {
    transform: scale(1.1);
}

.social-item {
    position: relative;
}

.social-qrcode {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.social-item:hover .social-qrcode {
    display: block;
}

.social-qrcode img {
    width: 100px;
    height: 100px;
    display: block;
}

/* ---------- Product Tabs ---------- */
.product-tabs {
    margin-top: 10px;
}

.tab-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    border-bottom: 2px solid #eee;
    gap: 0;
}

.tab-item {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.tab-item:hover {
    color: #333;
}

.tab-item.active {
    color: #ea5504;
    border-bottom-color: #ea5504;
}

.tab-content {
    display: none;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    padding: 10px 0 20px 0;
}

.tab-content.active {
    display: block;
}

.tab-content img {
    max-width: 100%;
    height: auto;
}

/* ---------- FAQ ---------- */
.faq-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.faq-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-title i {
    color: #ea5504;
    font-size: 22px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    transition: border-color 0.3s;
}

.faq-item.active {
    border-color: #ea5504;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    -webkit-tap-highlight-color: rgba(200, 0, 0, 0.1);
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-item.active .faq-question {
    background: #f5f5f5;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ea5504;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-question h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.faq-answer {
    display: none;
    padding: 0 18px 18px 18px;
    padding-left: 54px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.faq-item.active .faq-answer {
    display: block;
    animation: faqSlideDown 0.3s ease;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 相关产品推荐 ---------- */
.related-products {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-title i {
    color: #ea5504;
    font-size: 20px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 40px;
}

.related-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 12px 14px;
    margin: 0;
    text-align: center;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.related-item:hover .related-name {
    color: #ea5504;
}

/* ---------- 清除浮动 ---------- */
.clearfix {
    clear: both;
    height: 0;
}

/* ============================================
   移动端适配 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .product-gallery {
        flex: none;
        width: 100%;
    }

    .product-main-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px;
        object-fit: contain;
    }

    .product-thumbnails img {
        width: 50px;
        height: 50px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-detail-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .breadcrumb-nav {
        font-size: 12px;
        padding: 6px 0 10px 0;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb li a {
        font-size: 12px;
    }

    .breadcrumb .separator {
        margin: 0 4px;
    }

    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-item {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .faq-question h4 {
        font-size: 14px;
    }

    .faq-answer {
        font-size: 13px;
        padding-left: 46px;
        padding-right: 14px;
        padding-bottom: 14px;
    }

    .related-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-name {
        font-size: 13px;
        padding: 8px 10px;
        min-height: 38px;
    }

    .social-qrcode {
        display: none !important;
    }

    .faq-question {
        padding: 12px 14px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .related-products {
        margin-top: 20px;
        padding-top: 18px;
    }

    .related-title {
        font-size: 17px;
    }
}

/* ============================================
   手机小屏适配 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .product-title {
        font-size: 16px;
    }

    .tab-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .faq-question {
        padding: 10px 12px;
    }

    .faq-question h4 {
        font-size: 13px;
    }

    .faq-answer {
        font-size: 12px;
        padding-left: 40px;
        padding-right: 12px;
        padding-bottom: 12px;
    }

    .related-list {
        gap: 8px;
    }

    .related-name {
        font-size: 12px;
        padding: 6px 8px;
        min-height: 34px;
    }

    .related-title {
        font-size: 16px;
    }

    .faq-title {
        font-size: 16px;
    }

    .product-thumbnails img {
        width: 44px;
        height: 44px;
    }

    .product-thumbnails {
        gap: 6px;
    }
}

/* ============================================
   暗色模式
   ============================================ */
@media (prefers-color-scheme: dark) {
    .breadcrumb-nav {
        border-bottom-color: #333;
    }

    .breadcrumb li a {
        color: #999;
    }

    .breadcrumb .current {
        color: #ddd;
    }

    .product-title {
        color: #e8e8e8;
    }

    .product-description {
        color: #aaa;
    }

    .product-main-image {
        background: #1a1a1a;
        border-color: #333;
    }

    .tab-nav {
        border-bottom-color: #333;
    }

    .tab-item {
        color: #888;
    }

    .tab-item.active {
        color: #e55;
        border-bottom-color: #e55;
    }

    .tab-content {
        color: #ddd;
    }

    .faq-section {
        border-top-color: #333;
    }

    .faq-title {
        color: #e8e8e8;
    }

    .faq-item {
        background: #1a1a1a;
        border-color: #333;
    }

    .faq-item.active {
        border-color: #e55;
    }

    .faq-question h4 {
        color: #ddd;
    }

    .faq-question:hover {
        background: #222;
    }

    .faq-item.active .faq-question {
        background: #222;
    }

    .faq-answer {
        color: #aaa;
    }

    .social-qrcode {
        background: #1a1a1a;
    }

    .related-products {
        border-top-color: #333;
    }

    .related-title {
        color: #e8e8e8;
    }

    .related-item {
        background: #1a1a1a;
    }

    .related-name {
        color: #ddd;
    }

    .related-item:hover .related-name {
        color: #e55;
    }

    .related-thumb {
        background: #2a2a2a;
    }

    .related-placeholder {
        background: #2a2a2a;
        color: #555;
    }
}

/* ============================================
   减少动画
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .faq-answer {
        animation: none !important;
    }

    .product-social a {
        transition: none !important;
    }

    .tab-item {
        transition: none !important;
    }

    .related-item {
        transition: none !important;
    }

    .related-item:hover {
        transform: none !important;
    }

    .related-item:hover .related-thumb img {
        transform: none !important;
    }
}
