/* 产品详情页样式 */

/* 产品详情容器 */
.product-detail {
    padding: 40px 0;
    background-color: white;
}

/* 产品信息区域 */
.product-info {
    background: white;
    margin-bottom: 30px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}


.product-info-content {
    margin-top: 10px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* 产品图片区域 */
.product-images {
    flex: 0 0 561px;
    position: relative;
}



.product-image-container {
    position: relative;
    width: 462px;
    height: 346px;
    margin-left: 50px;
}

.product-image-main {
    position: relative;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.product-image-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    
}

.image-counter {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.image-counter .current-image-num {
    color: #a3c210;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.image-nav-btn:hover {
    background: #a3c210;
    border-color: #a3c210;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-nav-btn:hover svg {
    fill: #fff;
}

.image-nav-btn.prev {
    left: -50px;
}

.image-nav-btn.next {
    right: -50px;
}

.image-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #666;
}

/* 产品标题样式 */
.product-title {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.2;
    margin: 0;
}

.product-views {
    color: #3b82f6;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 20px;
}

/* 产品详情信息 */
.product-details {
    flex: 1;
}

.product-price {
    font-size: 24px;
    color: #ef4444;
    font-weight: bold;
    margin-bottom: 30px;
}

.product-specs {
    margin-bottom: 40px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.spec-label {
    min-width: 60px;
    color: #374151;
    font-weight: 500;
}

.spec-value {
    color: #1f2937;
}

.spec-options {
    display: flex;
    gap: 12px;
}

.spec-option {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    max-width: 88px;
    text-align: center;
}

.spec-option.active {
    background: #a3c210;
    color: white;
    border-color: #a3c210;
}

.spec-option:hover:not(.active) {
    border-color: #a3c210;
    color: #a3c210;
}

.other-specs {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 15px;
}

/* 操作按钮区域 */
.product-actions {
    margin-bottom: 30px;
}
.product-actions a {
    text-decoration: none;
}
.btn-consult {
    background: #a3c210;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(163, 194, 16, 0.3);
}

.btn-consult:hover {
    background: #8ba80e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 194, 16, 0.4);
}

.product-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 400;
}

.product-link:hover {
    color: #666;
}

.product-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #0093dd;
    stroke: #0093dd;
    color: #0093dd;
}

/* 选项卡容器 */
.product-tabs {
    background: white;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
}

/* 选项卡导航 */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    background: none;
    border: none;
    position: relative;
}

.tab-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #a3c210;
    z-index: 999;
}

.tab-nav-item {
    width: 264px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 15px 15px 0px 0px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #000;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.tab-nav-item.active {
    background: #a3c210;
    color: white;
}

.tab-nav-item:hover:not(.active) {
    background: #e5e5e5;
}

/* 选项卡内容 */
.tab-content {
    padding-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 产品概述表格 */
.tab-nav-item{
    width: 204px; 
    font-size: 16px; 
    font-weight: 600; 
    }
.product-overview-table {
    width: 100%;
    border-collapse: separate;
    margin-bottom: 20px;
}

.product-overview-table tr {
    display: flex;
    align-items: stretch;
    /* 让所有子元素高度一致 */
    margin-bottom: 11px;
}

.product-overview-table tr:last-child {
    margin-bottom: 0;
}

.product-overview-table th,
.product-overview-table td {
    padding: 15px;
    background: #f8f8f8;
    border: none;
}

.product-overview-table td a {
    color: #666;
    font-size: 14px;
}
sup {
    position: relative;
    vertical-align: super;
    font-size: smaller;
}
.product-overview-table th {
    font-weight: 600;
    color: #333;
    width: 264px;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-sizing: border-box;
}

.product-overview-table td {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
    display: flex;
    align-items: baseline;
    flex: 1;
    box-sizing: border-box;
    word-break: break-word;  /* 对于超长无空格字符串，这是必须的 */
    overflow-wrap: break-word;
    min-width: 0;
    hyphens: none;  /* 避免在蛋白质序列中添加连字符 */
}
/* 占位符样式 */
.placeholder-content {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.placeholder-content h3 {
    margin-bottom: 10px;
    color: #374151;
}

/* 计算器样式 */
.calculator-section {
    margin-top: 40px;
}

.calculator-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    background: none;
    border: none;
    position: relative;
}

.calculator-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #a3c210;
    z-index: 999;
}

.calculator-tab {
    width: 264px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 15px 15px 0px 0px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #000;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.calculator-tab.active {
    background: #a3c210;
    color: white;
}

.calculator-tab:hover:not(.active) {
    background: #e5e5e5;
}

/* 警告文字样式 */
.product-warning {
    font-size: 14px;
    margin: 20px 0;
    line-height: 1.5;
    font-weight: bold;
}

/* 文献引用样式 */
.literature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.literature-stats .stats-text {
    font-size: 16px;
    color: #333;
}

.literature-stats strong {
    color: #a3c210;
    font-weight: bold;
}

.literature-status .status-text {
    font-size: 14px;
    color: #999;
}

.literature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.literature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s;
}

.literature-item:hover {
    background: #f0f0f0;
}

.literature-number {
    width: 40px;
    height: 40px;
    background: #a3c210;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.literature-content {
    flex: 1;
}

.literature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.literature-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.literature-title-link:hover {
    color: #a3c210;
}

.literature-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.literature-author,
.literature-journal,
.literature-date {
    font-size: 14px;
    color: #666;
}

.literature-action {
    flex-shrink: 0;
}

.btn-view-literature {
    background: #a3c210;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-view-literature:hover {
    background: #8ba80e;
    transform: translateY(-1px);
}

/* 相关产品样式 */
.related-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.related-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s;
}

.related-product-item:hover {
    background: #f0f0f0;
}

.related-product-info {
    flex: 1;
}

.related-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.related-product-code {
    font-size: 14px;
    color: #666;
}

.related-product-action {
    flex-shrink: 0;
    margin-left: 20px;
}

.related-product-action a {
    text-decoration: none;
}

.btn-view-details {
    background: #a3c210;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-view-details:hover {
    background: #8ba80e;
    transform: translateY(-1px);
}

.calculator-content {
    padding: 15px 0;
    border-radius: 8px;
}

.calculator-form {
    display: flex;
    align-items: end;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    min-width: 80px;
}

.btn-calculate {
    background: #a3c210;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    height: 36px;
    width: 110px;
    height: 46px;
}

.btn-reset {
    background: white;
    color: #000;
    padding: 8px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    height: 36px;
    border: solid 1px #e0e0e0;
    width: 110px;
    height: 46px;
}

.unit-dropdown {
    position: relative;
    display: inline-block;
}

.unit-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 120px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.unit-options.show {
    display: block;
}

.unit-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.unit-option:hover {
    background: #f3f4f6;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}

/* 基础页面样式 */
.page-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 150px;
    /* 避免被固定头部覆盖 */
}

.banner-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0 10px 0;
    background: transparent;
    border-bottom: none;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #a3c210;
}

.breadcrumb-nav span {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-nav .current {
    color: #a3c210;
    font-weight: bold;
}

/* 主要内容区域 */
.main-content {
    margin-top: 0;
    /* 横幅图片已经处理了头部间距 */
    padding: 30px 0 40px 0;
    min-height: 600px;
}

/* 产品详情容器 */
.product-detail {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-info-content {
        gap: 30px;
    }

    .product-images {
        flex: 0 0 400px;
    }

    .product-image-container {
        width: 400px;
        height: 320px;
    }

    .product-image-main img {
        max-width: 100%;
        max-width: 100%;
    }

    .product-details {
        padding: 20px;
    }

    .product-overview-table {
        font-size: 14px;
    }

    .calculator-form {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 150px;
        margin-top: 125px;
        /* 调整移动端头部间距 */
    }

    .main-content {
        padding: 20px 0;
    }

    .product-detail {
        padding: 0 1px;
    }

    .product-info-content {
        flex-direction: column;
        padding: 15px;
        gap: 25px;
    }

    .product-images {
        width: 100%;
        flex: none;
    }

    .product-image-container {
        width: 100%;
        height: 300px;
        margin-left: 0 !important;
    }

    .product-image-main {
        width: 100%;
        height: 100%;
    }

    .product-image-main img {
        max-width: 100%;
        max-width: 100%;
    }

    .image-nav-btn {
        width: 40px;
        height: 40px;
    }

    .image-nav-btn.prev {
        left: 10px;
    }

    .image-nav-btn.next {
        right: 10px;
    }

    .image-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .product-header {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .product-views {
        font-size: 13px;
    }

    .product-details {
        padding: 15px;
    }

    .product-price {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .product-specs {
        margin-bottom: 20px;
    }

    .spec-item {
        margin-bottom: 15px;
    }

    .spec-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .spec-options {
        gap: 8px;
    }

    .spec-option {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 60px;
    }

    .product-actions {
        margin-bottom: 20px;
    }

    .btn-consult {
        padding: 12px 30px;
        font-size: 15px;
    }

    .product-links {
        gap: 15px;
    }

    .product-link {
        font-size: 13px;
    }

    .product-link svg {
        width: 16px;
        height: 16px;
    }

    .tab-nav {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 3px;
    }

    .tab-nav::after {
        display: none;
        /* 移动端隐藏线条 */
    }

    .tab-nav-item {
        width: calc(33.333% - 7px);
        height: 45px;
        font-size: 14px;
        border-radius: 12px 12px 0px 0px;
    }

    .tab-content {
        padding-top: 3px;
    }

    .product-overview-table {
        font-size: 13px;
        border-spacing: 0px 8px;
        /* 只保留垂直间距 */
    }

    .product-overview-table tr {
        margin-bottom: 3px;
    }

    .product-overview-table th,
    .product-overview-table td {
        padding: 12px 15px;
    }

    .product-overview-table th {
        width: 120px;
        font-size: 12px;
        margin-right: 3px;
    }

    .product-overview-table td {
        font-size: 13px;
    }

    .calculator-section {
        margin-top: 25px;
    }

    .calculator-tabs {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
    }

    .calculator-tabs::after {
        display: none;
        /* 移动端隐藏计算器横线 */
    }

    .calculator-tab {
        width: calc(33.333% - 7px);
        height: 45px;
        font-size: 14px;
        border-radius: 12px 12px 0px 0px;
    }

    .calculator-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-calculate,
    .btn-reset {
        padding: 10px 25px;
        font-size: 14px;
        width: auto;
        min-width: 100px;
    }

    .literature-header {
        padding: 15px 0;
    }

    .literature-stats {
        font-size: 13px;
        gap: 15px;
    }

    .literature-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .literature-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .literature-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .literature-details {
        font-size: 12px;
        gap: 10px;
    }

    .btn-view-literature {
        padding: 6px 15px;
        font-size: 12px;
    }

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

    .related-product-item {
        padding: 15px;
    }

    .related-product-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .related-product-code {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .btn-view-details {
        padding: 6px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 120px;
        margin-top: 125px;
        /* 调整小屏幕头部间距 */
    }

    .product-detail {
        padding: 0 1px;
    }

    .product-info-content {
        padding: 10px;
        gap: 20px;
    }

    .product-image-container {
        height: 250px;
    }

    .product-image-main img {
        max-width: 100%;
        max-width: 100%;
    }

    .image-nav-btn {
        width: 35px;
        height: 35px;
    }

    .image-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .image-counter {
        bottom: 15px;
        right: 15px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .product-header {
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .product-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .product-details {
        padding: 10px;
    }

    .product-price {
        font-size: 16px;
    }

    .spec-option {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
    }

    .btn-consult {
        padding: 10px 25px;
        font-size: 14px;
    }

    .product-links {
        gap: 10px;
        flex-wrap: wrap;
    }

    .product-link {
        font-size: 12px;
    }

    .tab-nav {
        gap: 3px;
        /* 小屏幕更紧凑的间距 */
    }

    .tab-nav-item {
        width: calc(33.333% - 2px);
        height: 40px;
        font-size: 14px;
        border-radius: 8px 8px 0px 0px;
    }

    .product-overview-table {
        font-size: 12px;
        border-spacing: 0px 6px;
        /* 只保留垂直间距 */
    }

    .product-overview-table th,
    .product-overview-table td {
        padding: 10px 12px;
    }

    .product-overview-table th {
        width: 100px;
        font-size: 11px;
        margin-right: 3px;
    }

    .product-overview-table td {
        font-size: 12px;
    }

    .calculator-tabs {
        gap: 3px;
        /* 小屏幕更紧凑的间距 */
    }

    .calculator-tab {
        width: calc(33.333% - 2px);
        height: 40px;
        font-size: 12px;
        border-radius: 8px 8px 0px 0px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .btn-calculate,
    .btn-reset {
        padding: 8px 20px;
        font-size: 13px;
        min-width: 80px;
    }

    .literature-item {
        padding: 15px 10px;
    }

    .literature-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .literature-title {
        font-size: 14px;
    }

    .literature-details {
        font-size: 11px;
        flex-direction: column;
        gap: 5px;
    }

    .btn-view-literature {
        padding: 5px 12px;
        font-size: 11px;
    }

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

    .related-product-item {
        padding: 12px;
    }

    .related-product-name {
        font-size: 13px;
    }

    .related-product-code {
        font-size: 11px;
    }

    .btn-view-details {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* 图片放大模态框样式 */
.image-modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    z-index: 1000; /* 顶层显示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 内容过长时可滚动 */
    background-color: rgba(0,0,0,0.8); /* 半透明黑色背景 */
}

.image-modal.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80vh;
}

.modal-caption {
    margin: 0 auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 5px 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
    }
}