:root {
    --mic-red: #e60012;
    --hover-red: #d10010;
    --chat-blue: #1470cc;
    --border-light: #ececec;
    --bg-gray: #f7f8fa;
    --text-main: #222;
    --text-gray: #666;
    --container-width: 1560px;
    --sidebar-width: 380px;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.full-page {
    width: 100%;
    max-width: 2560px;
    margin: 0 auto;
    background: #fff;
    position: relative;
}

.full-line-row {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.container {
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.img-placeholder {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.product-hero {
    display: flex;
    gap: 80px;
    padding: 40px 0;
    align-items: stretch;
}

.hero-left {
    width: 600px;
    flex-shrink: 0;
}

.hero-sticky-box {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 5;
}

.main-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #eee;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    /* 必须为 hidden，防止轮播图片泄露 */
    background: #fff;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-item {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #333;
    font-size: 18px;
}

.hero-nav-btn:hover {
    background: #fff;
    border-color: var(--mic-red);
    color: var(--mic-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-nav-btn.prev {
    left: 15px;
}

.hero-nav-btn.next {
    right: 15px;
}

.favorite-trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all 0.3s ease;
}

.favorite-trigger svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #999;
    stroke-width: 2.5;
}

.favorite-trigger:hover,
.favorite-trigger.favorited {
    border-color: var(--mic-red);
}

.favorite-trigger.favorited svg,
.favorite-trigger:hover svg {
    stroke: var(--mic-red);
    fill: var(--mic-red);
}

/* 放大镜遮罩 */
.zoom-lens {
    position: absolute;
    z-index: 100;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #ccc;
    cursor: crosshair;
    pointer-events: none;
}

/* 放大弹出窗 - 现在相对于 hero-viewer-relative-wrapper 定位 */
.zoom-window {
    position: absolute;
    top: 0;
    left: 620px;
    /* 距离左侧 viewer 的距离 */
    width: 600px;
    height: 600px;
    border: 1px solid #eee;
    background-color: #fff;
    background-repeat: no-repeat;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.thumb-nav {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.thumb-nav::-webkit-scrollbar {
    display: none;
}

.thumb-nav:active {
    cursor: grabbing;
}

.thumb-nav div {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s ease;
    background: #fff;
}

.thumb-nav div:hover,
.thumb-nav div.active-thumb {
    border-color: var(--mic-red);
}

.compare-basket-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.compare-basket-link svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.compare-basket-link:hover {
    color: var(--mic-red);
}

/* 点击激活后的全红状态 */
.compare-basket-link.active {
    color: var(--mic-red);
}

.compare-basket-link.active svg {
    stroke: var(--mic-red);
}

.hero-center {
    flex: 1;
}

.hero-center h1 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin-bottom: 25px;
}

.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.meta-item {
    font-size: 15px;
    line-height: 1.8;
}

.meta-item span {
    color: #888;
    width: 120px;
    display: inline-block;
}

.meta-item b {
    font-weight: 600;
    color: #333;
}

.price-panel {
    background: #fcfcfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 25px 10px;
    margin: 20px 0 35px 0;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 20px;
    padding-left: 10px;
}

.tier-grid.two-items {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 80px;
}

.tier-grid.two-items .tier-item {
    position: relative;
    padding-right: 40px;
}



.tier-grid.two-items .tier-price {
    font-size: 32px;
    color: var(--mic-red);
}

.tier-item {
    display: flex;
    flex-direction: column;
}

.tier-price {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.tier-range {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.highlights h4 {
    font-size: 16px;
    color: #000;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 800;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.highlights-list li {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.highlights-list .dot {
    color: #000;
    font-size: 10px;
    margin-top: 2px;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn-action {
    height: 64px;
    padding: 0 50px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-contact-now {
    background-color: var(--mic-red);
    color: #fff;
    flex: 1.2;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}

.btn-contact-now:hover {
    background-color: var(--hover-red);
    box-shadow: 0 6px 18px rgba(230, 0, 18, 0.25);
    transform: translateY(-1px);
}

.btn-chat-now {
    background-color: #fff;
    color: #222;
    border: 1px solid #222;
    flex: 1;
}

.btn-chat-now:hover {
    background-color: #f8f8f8;
    border-color: #000;
    color: #000;
}

/* 推荐区样式 */
.recommend-row {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.recommend-col {
    position: relative;
    min-width: 0;
}

.recommend-col h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 35px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: relative;
}

.recommend-col h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 3px;
    background: var(--mic-red);
}

.scroll-wrapper {
    position: relative;
    width: 100%;
}

.scroll-viewport {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0 10px 0;
    scrollbar-width: none;
}

.scroll-viewport::-webkit-scrollbar {
    display: none;
}

.p-card {
    flex: 0 0 240px;
    text-decoration: none;
    transition: 0.3s;
}

.p-card .img-wrap {
    width: 100%;
    height: 240px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 12px;
    /* background: #f9f9f9; */
    overflow: hidden;
}

.p-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p-card .name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-card:hover .name {
    color: var(--mic-red);
}

.p-card .price {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    margin-top: 6px;
}

.p-card .moq {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.arrow-btn {
    position: absolute;
    top: 120px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.arrow-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.arrow-btn.prev {
    left: -20px;
}

.arrow-btn.next {
    right: -20px;
}

.detail-tabs {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    width: 100%;
}

.tabs-inner-container {
    display: flex;
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab {
    padding: 0 40px;
    height: var(--nav-height);
    line-height: var(--nav-height);
    font-weight: 700;
    cursor: pointer;
    color: #222;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 4px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--mic-red);
}

.tab.active {
    color: var(--mic-red);
    border-bottom-color: var(--mic-red);
}

.detail-layout {
    display: flex;
    gap: 80px;
    padding: 20px 0 100px 0;
}

.rich-text-column {
    flex: 1;
    min-width: 0;
}

.section-title {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: relative;
    margin-top: 60px;
}

.section-title h3 {
    font-size: 22px;
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 3px;
    background: var(--mic-red);
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #eee;
}

.spec-cell {
    display: flex;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.spec-key {
    width: 220px;
    background: #fcfcfc;
    padding: 18px 25px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.spec-value {
    flex: 1;
    padding: 18px 25px;
    font-size: 14px;
    color: #333;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.news-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.news-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s;
    flex-shrink: 0;
}

.news-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    margin-left: 8px;
}

.news-item-link:hover {
    background: #fff;
    border-color: var(--mic-red);
    color: var(--mic-red);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-item-link:hover .news-dot {
    background: var(--mic-red);
}

.news-item-link:hover .news-date {
    color: var(--mic-red);
    opacity: 0.8;
}

.inquiry-form-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.inquiry-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    margin-bottom: 25px;
}

.inquiry-label {
    font-size: 15px;
    color: #333;
    font-weight: 700;
    padding-top: 15px;
}

.req-star {
    color: var(--mic-red);
    margin-right: 4px;
}

.to-info {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: 700;
    color: #000;
    border: 1px solid #eee;
}

.inquiry-input {
    width: 100%;
    border: 1px solid #ddd;
    padding: 18px;
    font-size: 15px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.inquiry-input:focus {
    border-color: #999;
}

.inquiry-textarea {
    height: 220px;
    resize: none;
}

.btn-submit-inquiry {
    background: var(--mic-red);
    color: #fff;
    border: none;
    padding: 18px 80px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 180px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit-inquiry:hover {
    background-color: var(--hover-red);
    transform: translateY(-1px);
}

.sidebar-column {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: relative;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    z-index: 10;
}

.supplier-info {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.supplier-name {
    font-weight: 800;
    font-size: 20px;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.3;
}

.diamond-tag {
    background: #fff9e6;
    color: #d4a017;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 800;
    border: 1px solid #ffe58f;
    display: inline-block;
    margin-bottom: 20px;
}

.trust-item {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-mark {
    color: #4caf50;
    font-weight: bold;
}

.side-btn-group {
    padding: 20px 30px;
    background: #fcfcfc;
}

.btn-side {
    width: 100%;
    padding: 18px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-side-red {
    background: var(--mic-red);
    color: #fff;
}

.btn-side-red:hover {
    background-color: var(--hover-red);
    transform: translateY(-1px);
}

.btn-side-white {
    background: #fff;
    color: #222;
    border: 1px solid #222;
}

.btn-side-white:hover {
    background: #f8f8f8;
    border-color: #000;
    color: #000;
}

.trade-guard {
    padding: 25px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--mic-red);
    color: #fff;
    transform: translateY(-5px);
    border: 1px solid transparent;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
}

.back-to-top i {
    font-size: 20px;
}

@media (max-width: 1200px) {
    .product-hero {
        flex-direction: column;
    }

    .hero-left {
        width: 100%;
    }

    .hero-sticky-box {
        position: static;
    }

    .recommend-row {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        flex-direction: column;
    }

    .sidebar-column {
        width: 100%;
    }

    .sidebar-sticky {
        position: static;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-row {
        grid-template-columns: 1fr;
    }

    .btn-submit-inquiry {
        margin-left: 0;
        width: 100%;
    }

    .back-to-top {
        bottom: 30px;
        right: 30px;
    }
}

.news-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}