/* ========== 本页局部样式（移植自参考项目 show_product.html 内联样式） ========== */
/* 快捷资料链接已迁移至图集左下 .ml-gallery-links（站点模块 product_doc 驱动），旧样式移除 */

/* ===== 规范化工具类（替代模板内嵌 style） ===== */
.ml-btn-accent { background: #ef600b !important; }
.ml-empty-note { color: #999; font-size: 13px; }
.ml-indent { text-indent: 2em; }
.ml-hidden { display: none; }
.ml-paper-index { width: 26px; font-weight: bold; color: #47b382; }
.ml-sidebar { width: 100%; }

/* ===== 打印：只输出打印弹窗内容（chrome://print 预览专用） ===== */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 12mm;
    }
    /* 隐藏页面其他内容（display 方案，避免 visibility 残留空白页） */
    body > *:not(#printModalMask) { display: none !important; }
    body { background: #fff !important; margin: 0 !important; padding: 0 !important; }

    /* 保留打印内容的背景色/边框 */
    #printModalMask, #printModalMask * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #printModalMask {
        display: block !important;
        position: static !important;
        background: #fff !important;
        overflow: visible !important;
        z-index: auto !important;
    }
    .print-modal {
        width: 186mm !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    .print-modal-toolbar { display: none !important; }
    .print-modal-body {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .no-print { display: none !important; }

    /* ---- 打印排版优化 ---- */
    .prt-header { page-break-inside: avoid; margin-bottom: 10px; }
    .prt-images { page-break-inside: avoid; margin-bottom: 10px; text-align: center !important; }
    .prt-img {
        display: inline-block !important;
        max-width: 100% !important;
        max-height: 700px !important;
        width: auto !important;
        height: auto !important;
        vertical-align: middle;
        margin: 4px auto !important;
    }
    .prt-title { font-size: 26px; }
    .prt-no { margin-bottom: 18px; }
    .prt-section { margin-bottom: 12px; }
    .prt-section-title {
        page-break-after: avoid;
        font-size: 13pt;
        border-bottom: 1px solid #2da878;
        margin-bottom: 6px;
    }
    .prt-info-table { font-size: 10pt; }
    .prt-info-table tr { page-break-inside: avoid; }
    .prt-info-table th, .prt-info-table td { padding: 4px 8px; }
    .prt-sequence {
        max-height: none !important;
        overflow: visible !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 13px;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-all;
    }
    .prt-content { font-size: 14px; line-height: 1.7; color: #333; }
    .prt-footer { margin-top: 14px; }
}

/* 左侧边栏 */
.ml-article-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 150px;
    align-self: flex-start;
    z-index: 300;
}

.ml-sidebar {
    z-index: 300;
}

.ml-cat-sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
}

.ml-cat-sublist li a {
    display: block;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--c-text-secondary);
}

.ml-cat-sublist li a:hover,
.ml-cat-sublist li a.active {
    color: var(--c-primary);
}

.ml-hot-news {
    margin-top: 20px;
}

.ml-hot-news-item:last-child {
    border-bottom: none;
}

.ml-hot-news-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--c-bg);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-hot-news-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ml-hot-news-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.ml-hot-news-info a {
    font-size: 13px;
    color: var(--c-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-hot-news-info a:hover {
    color: var(--c-primary);
}

/* 主布局 */
.ml-page-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ml-detail-main {
    flex: 1;
    min-width: 0;
}

/* ========== 产品主信息区 ========== */
.ml-product-detail {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius, 6px);
    margin-bottom: 16px;
    align-items: stretch;
}

.ml-product-gallery {
    flex: 0 0 380px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

/*.ml-product-main-img {*/
/*    width: 100%;*/
/*    height: 380px;*/
/*    padding: 16px;*/
/*    box-sizing: border-box;*/
/*    border: 1px solid var(--c-border-light, #e5e7eb);*/
/*    border-radius: 8px;*/
/*    overflow: hidden;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    background: #fafbfc;*/
/*    cursor: zoom-in;*/
/*    transition: border-color 0.2s, box-shadow 0.2s;*/
/*}*/

.ml-product-main-img:hover {
    border-color: var(--c-primary, #47b382);
    box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
}

.ml-product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-product-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.ml-product-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    background: #fafbfc;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--c-border-light, #e5e7eb);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ml-product-thumbs img:hover {
    border-color: var(--c-primary, #47b382);
    box-shadow: 0 3px 10px rgba(71, 179, 130, 0.16);
    transform: translateY(-1px);
}

/* 右侧信息 */
.ml-product-info {
    flex: 1;
    min-width: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.ml-product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text, #1a1a1a);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ml-product-meta {
    margin-bottom: 12px;
}

.ml-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.ml-meta-label {
    color: var(--c-text-muted, #666);
    font-size: 13px;
    min-width: 64px;
}

.ml-meta-value {
    color: var(--c-text, #333);
    font-size: 13px;
    font-weight: 500;
}

.ml-product-specs {
    margin-bottom: 12px;
}

/* 整行容器，标签+选项横向排列 */
.ml-spec-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ml-spec-label {
    font-size: 13px;
    color: var(--c-text-muted, #666);
    display: inline-block;
    min-width: 64px;
    padding-top: 4px;
    margin-bottom: 0;
}

.ml-spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.ml-spec-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1.5px solid var(--c-border, #ddd);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--c-surface, #fff);
    font-size: 12px;
    color: var(--c-text, #444);
    flex: 0 0 calc(50% - 3px);
    min-width: 180px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-spec-item:hover {
    border-color: var(--c-primary, #47b382);
    color: var(--c-primary, #47b382);
}

.ml-spec-item.ml-active {
    border-color: var(--c-primary, #47b382);
    background: var(--c-bg-active, #f0faf5);
    color: var(--c-primary, #47b382);
    /*font-weight: 500;*/
}

.ml-spec-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ml-product-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: space-between;
}

.ml-qty-label {
    font-size: 13px;
    color: var(--c-text-muted, #666);
    min-width: 64px;
}

.ml-qty-control {
    display: inline-flex;
    border: 1px solid var(--c-border, #ddd);
    border-radius: 4px;
    overflow: hidden;
    height: 30px;
}

.ml-qty-btn {
    width: 28px;
    height: 100%;
    border: none;
    background: var(--c-bg-light, #f8f9fa);
    font-size: 14px;
    cursor: pointer;
    color: var(--c-text, #555);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-qty-btn:hover {
    background: var(--c-bg-hover, #e9ecef);
}

.ml-qty-input {
    width: 40px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--c-border, #ddd);
    border-right: 1px solid var(--c-border, #ddd);
    text-align: center;
    font-size: 13px;
    outline: none;
    background: var(--c-surface, #fff);
    font-weight: 500;
}

.ml-quick-links {
    margin-bottom: 16px;
}

/* 标题行 + 下载图标 */
.ml-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ml-title-wrap .ml-product-title { margin-bottom: 0; }

.ml-print-icon {
    display: inline-flex;
    justify-content: flex-end;
    text-decoration: none;
    flex-direction: row;
    /* margin-left: 110px; */
    background: #fff !important;
    color: #2da878 !important;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    font-weight: 600;
}

/* 参考货期框 */
.ml-meta-box {
    border: 1px solid var(--c-border, #ddd);
    border-radius: 4px;
    height: 30px;
    min-width: 100px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--c-primary, #47b382);
    font-weight: 500;
}

/* 图集左下：文档入口（质检标准/质粒手册等，站点模块 product_doc 驱动） */
.ml-gallery-links {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}
.ml-gallery-links .ml-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--c-primary, #47b382);
}
.ml-gallery-links .ml-gallery-item:hover { color: #145734; }
.ml-gallery-links .ml-gallery-item:hover .ml-gallery-icon { opacity: 0.8; }
.ml-gallery-icon {
    width: 45px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 8px;
}
.ml-gallery-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary, #47b382);
}
.ml-gallery-text { font-size: 13px; color: #207548; }

/* 快捷资料链接已迁移至图集左下 .ml-gallery-links，旧 .ml-quick-link 样式移除 */

/* ========== 下载/打印弹窗（屏幕态） ========== */
#printModalMask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}
#printModalMask.show { display: block; }
.print-modal {
    width: 800px;
    max-width: 94%;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.print-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}
.print-modal-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--c-primary, #47b382);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.print-modal-toolbar button:hover { background: var(--c-primary-dark, #3a9a6e); }
.print-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.print-modal-close:hover { color: #333; }
.print-modal-body {
    padding: 24px 30px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* 打印内容样式 */
.prt-header {
    border-bottom: 2px solid var(--c-primary, #47b382);
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.prt-logo { width: 200px; max-width: 200px; }
.prt-date { font-size: 11px; color: #999; }
.prt-images { margin-bottom: 16px; text-align: center; }
.prt-img { margin: 4px; border-radius: 4px; max-width: 100%; }
.prt-title { font-size: 24px; font-weight: 700; color: #222; margin: 0 0 4px; }
.prt-no { font-size: 16px; color: #666; margin-bottom: 16px; }
.prt-no span { color: var(--c-primary, #47b382); font-weight: 600; }
.prt-section { margin-bottom: 20px; }
.prt-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-primary, #47b382);
    border-left: 3px solid var(--c-primary, #47b382);
    padding-left: 8px;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}
.prt-info-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.prt-info-table th, .prt-info-table td {
    border: 1px solid #d0d0d0;
    padding: 6px 10px;
    text-align: left;
}
.prt-info-table th { background: #f5f7fa; font-weight: 600; color: #555; width: 100px; }
.prt-sequence {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}
.prt-content { font-size: 14px; line-height: 1.8; color: #555; }
.prt-footer {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .ml-gallery-links { gap: 20px; flex-wrap: wrap; }
    .ml-gallery-icon { width: 36px; height: 36px; }
    .ml-print-icon { width: 30px; height: 30px; }
}

.ml-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--c-border, #f0f0f0);
    margin-top: auto;
}

.ml-product-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.ml-price-label {
    font-size: 13px;
    color: var(--c-text-muted, #666);
}

.ml-price-value {
    font-size: 20px;
    color: var(--c-primary, #47b382);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ml-product-actions {
    display: flex;
    gap: 8px;
}

.ml-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: var(--c-primary, #47b382);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.ml-btn:hover {
    color: #fff;
    background: var(--c-primary-dark, #3a9a6e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 179, 130, 0.25);
}

/* ========== 导航标签 ========== */
.ml-product-type {
    margin-bottom: 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 144px;
    z-index: 100;
}

.ml-product-type ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.ml-product-type li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #ddd;
}

.ml-product-type li:last-child {
    border-right: none;
}

.ml-product-type a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    background: var(--c-surface, #fff);
    transition: all 0.2s;
    white-space: nowrap;
}

.ml-product-type a::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 2px solid #999;
    border-radius: 50%;
    flex-shrink: 0;
}

.ml-product-type a:hover {
    background: #e8e8e8;
    color: #333;
}

.ml-product-type a.ml-active {
    background: var(--c-primary, #47b382);
    color: #fff;
}

.ml-product-type a.ml-active::before {
    border-color: #fff;
    background: #fff;
}

/* ========== 内容区块 ========== */
.ml-detail-section {
    margin-bottom: 16px;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius, 6px);
    overflow: hidden;
    padding: 16px 20px;
    scroll-margin-top: 180px;
}

.ml-detail-section:last-child {
    margin-bottom: 0;
}

.ml-detail-section h3 {
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-primary, #47b382);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ml-info-table {
    width: 100%;
    overflow-x: auto;
}

.ml-info-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ml-info-table th,
.ml-info-table td {
    padding: 4px 10px;
    border: 1px solid var(--c-border, #e8e8e8);
    text-align: left;
    vertical-align: top;
}

.ml-info-table th {
    background: var(--c-bg-light, #f9fafb);
    font-weight: 500;
    color: var(--c-text-muted, #666);
    width: 15%;
    white-space: nowrap;
    font-size: 12px;
}

.ml-info-table td {
    color: var(--c-text, #374151);
    width: 35%;
    word-break: break-all;
}

.ml-statement-content {
    font-size: 13px;
    line-height: 1.8;
    color: var(--c-text, #555);
}

.ml-statement-content ol {
    padding-left: 20px;
    margin: 0;
}

.ml-statement-content li {
    margin-bottom: 6px;
}

.ml-statement-content li:last-child {
    margin-bottom: 0;
}

/* 质粒元件 */
/*.ml-component-content {*/
/*    white-space: pre-wrap;*/
/*    word-break: break-all;*/
/*    font-family: Consolas, Monaco, monospace;*/
/*    line-height: 1.8;*/
/*    padding: 10px;*/
/*    border: 1px solid #eee;*/
/*    border-radius: 4px;*/
/*    max-height: 800px;*/
/*    overflow-y: auto;*/
/*    font-size: 13px;*/
/*}*/
.ml-component-content {
    max-height: 800px;
    overflow-y: auto;
    
}


.ml-component-content strong {
    display: inline-block;
    min-width: 120px;
    color: var(--c-text-muted, #666);
    font-family: inherit;
}

/* 序列工具条 */
.seq-toolbar {
    margin: 0 0 10px;
}

.copy-btn {
    padding: 6px 14px;
    background: var(--c-primary, #47b382);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

.copy-btn:hover {
    background: var(--c-primary-dark, #3a9a6e);
}

.seq-container {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 12px;
    background: var(--c-bg-light, #f8f9fa);
    border-radius: 4px;
    border: 1px solid var(--c-border, #e9ecef);
    max-width: 100%;
    overflow-x: auto;
}

.seq-line {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 2px;
}

.seq-num {
    min-width: 50px;
    text-align: right;
    padding-right: 10px;
    color: #999;
    user-select: none;
    flex-shrink: 0;
}

.seq-content {
    letter-spacing: 0.5px;
}

/* 序列弹窗 */
#seqModalMask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.seq-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 996px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.seq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--c-border, #e5e7eb);
}

.seq-modal-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text, #1a1a1a);
}

.seq-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.seq-modal-close:hover {
    color: #333;
}

.seq-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.seq-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.seq-modal-tip {
    font-size: 12px;
    color: #999;
}

.seq-modal-content {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 12px;
    background: var(--c-bg-light, #f8f9fa);
    border-radius: 4px;
    border: 1px solid var(--c-border, #e9ecef);
}

/* 相关文献 */
.literature-detail .summary-box {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--c-bg-light, #fafafa);
    transition: background 0.15s;
    font-size: 13px;
    line-height: 1.6;
}

.literature-detail a {
    text-decoration: none;
    color: inherit;
}

.literature-detail a:hover .summary-box {
    background: var(--c-bg-hover, #f0f0f0);
}

/* 产品文件 */
.product-files-list {
    padding: 4px 0;
}

.product-file-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: var(--c-bg-light, #f8f9fa);
    border-radius: 6px;
    border: 1px solid var(--c-border, #e9ecef);
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--c-primary, #47b382);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.product-file-item:hover {
    background: var(--c-surface, #fff);
    border-color: var(--c-primary, #47b382);
    box-shadow: 0 2px 10px rgba(71, 179, 130, 0.1);
    transform: translateX(3px);
    color: #212529;
}

.product-file-item:hover::before {
    transform: scaleY(1);
}

.file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-active, #ecfdf5);
    border-radius: 6px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.product-file-item:hover .file-icon {
    background: var(--c-primary, #47b382);
}

.file-icon svg {
    stroke: var(--c-primary, #47b382);
    transition: stroke 0.2s ease;
}

.product-file-item:hover .file-icon svg {
    stroke: #fff;
}

.file-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-6px);
}

.product-file-item:hover .file-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--c-bg-active, #ecfdf5);
}

.file-arrow svg {
    stroke: var(--c-primary, #47b382);
}

.product-files-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #adb5bd;
}

.product-files-empty svg {
    margin-bottom: 10px;
    opacity: 0.5;
}

.product-files-empty span {
    font-size: 13px;
}

/* 上一篇 / 下一篇 */
.ml-detail-prevnext {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    font-size: 13px;
    color: var(--c-text-secondary);
}

.ml-detail-prevnext a {
    color: var(--c-text);
}

.ml-detail-prevnext a:hover {
    color: var(--c-primary);
}

/* 图片放大弹窗 */
#imgZoomMask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

#imgZoomMask .zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

#imgZoomMask .zoom-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ============================================================
   侧栏绿色分类菜单 + 悬浮面板（对齐参考站 ml-cat-menu / catSubmenuPanel）
   ============================================================ */
.ml-article-sidebar {
    top: 142px;
    /* 与固定头部(100)+导航(42) 对齐 */
}

/* 绿色分类菜单 */
.ml-cat-menu {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    background: var(--c-primary);
    border-radius: var(--radius, 6px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(50, 157, 109, 0.25);
}

.ml-cat-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.ml-cat-menu > li:last-child {
    border-bottom: none;
}

/* 前两项（全部现货质粒/全部现货病毒）加高加大，突出展示 */
.ml-cat-menu > li:nth-child(-n+2) {
    height: 52px;
    font-size: 15px;
}

.ml-cat-menu > li > a {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    transition: color 0.2s;
}

.ml-cat-menu > li:hover,
.ml-cat-menu > li.active {
    background: var(--c-surface, #fff);
    color: var(--c-primary);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--c-primary);
}

.ml-cat-menu > li:hover > a,
.ml-cat-menu > li.active > a {
    color: var(--c-primary);
    text-decoration: none;
}

/* 当前所在栏目常驻高亮（白字加粗 + 浅色底纹） */
.ml-cat-menu > li > a.active {
    font-weight: 700;
}

.ml-cat-menu > li:has(> a.active) {
    background: rgba(255, 255, 255, 0.14);
}

.ml-cat-menu > li > .ml-nav-arrow {
    font-size: 11px;
    opacity: 0.6;
    transition: all 0.2s;
}

.ml-cat-menu > li:hover > .ml-nav-arrow,
.ml-cat-menu > li.active > .ml-nav-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* 悬浮面板：定位在侧栏右侧，盖住详情内容区 */
.ml-cat-panel {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    width: calc(1200px - 220px - 32px);
    min-height: 120px;
    max-height: 560px;
    overflow-y: auto;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 300;
}

.ml-cat-panel.ml-show {
    display: block;
    animation: mlFadeIn 0.15s ease;
}

@keyframes mlFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ml-cat-content {
    display: none;
}

.ml-cat-content.active {
    display: block;
}

.ml-sub-row {
    display: flex;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid var(--c-border-light, #f0f0f0);
}

.ml-sub-row:last-child {
    border-bottom: none;
}

.ml-sub-title {
    width: 110px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.9;
    padding-right: 12px;
}

.ml-sub-links {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.9;
}

.ml-sub-links a {
    display: inline-block;
    padding: 0 2px;
    color: var(--c-text-secondary, #666);
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}

.ml-sub-links a:hover {
    color: var(--c-primary);
    background: var(--c-primary-50, rgba(50, 157, 109, 0.08));
    text-decoration: none;
}

.ml-sub-links .ml-sep {
    color: #d1d5db;
    margin: 0 4px;
}

@media (max-width: 992px) {
    /* 小屏没有悬浮空间，退回普通链接 */
    .ml-cat-panel { display: none !important; }
}

/* ========== 锚点 Tab 固钉与切换细节优化 ========== */
.ml-product-type {
    top: 142px;
    /* 头部 100 + 导航 42 */
}

/* Tab 切换颜色过渡更顺滑 */
.ml-product-type a {
    position: relative;
    transition: background 0.25s, color 0.25s;
}

/* 锚点跳转时给固钉 Tab 条留出空间 */
.ml-detail-section {
    scroll-margin-top: 200px;
}

/* ===== 图集左下文档入口对齐修正（图标顶对齐，文字居中两行内） ===== */
/*.ml-gallery-links {*/
/*    align-items: flex-start;*/
/*    gap: 24px;*/
/*}*/
.ml-gallery-links .ml-gallery-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.ml-gallery-links .ml-gallery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    width: 45px;
    height: 30px;
}
.ml-gallery-links .ml-gallery-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    font-size: 13px;
    text-align: center;
}

/* ===== 质粒元件注释文本（component_info，GenBank FEATURES 风格） ===== */
.ml-component-pre {
    margin: 0;
    padding: 14px 16px;
    /*background: #fafafa;*/
    border: 1px solid var(--c-border, #f0f0f0);
    border-radius: 6px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 420px;
    overflow-y: auto;
}

/* 图集响应式：窄屏改为上下布局，避免固定宽度挤压产品信息。 */
@media (max-width: 1200px) {
    .ml-product-gallery {
        flex-basis: 340px;
        max-width: 340px;
    }
    .ml-product-main-img {
        height: 340px;
    }
}

@media (max-width: 992px) {
    .ml-product-detail {
        flex-direction: column;
    }
    .ml-product-gallery {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .ml-product-main-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .ml-product-thumbs {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 575px) {
    .ml-product-detail {
        padding: 14px;
    }
    .ml-product-main-img {
        aspect-ratio: 1;
        padding: 10px;
    }
    .ml-product-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

/* ===== 产品详情视觉统一：与全站共用颜色、边框和阴影 ===== */
.ml-product-detail,
.ml-detail-section {
    border-color: var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: none;
}
.ml-product-main-img,
.ml-product-thumbs img {
    border-color: var(--c-border-light);
    border-radius: var(--radius);
    background: var(--c-surface-hover);
}
.ml-product-main-img:hover,
.ml-product-thumbs img:hover {
    border-color: var(--c-primary-300);
    box-shadow: var(--shadow);
}
.ml-product-title { color: var(--c-text); }
.ml-meta-label,
.ml-spec-label,
.ml-qty-label,
.ml-price-label { color: #333; }
.ml-meta-value { color: var(--c-text); }
.ml-product-bottom { border-top-color: var(--c-border-light); }
.ml-spec-item,
.ml-qty-control,
.ml-meta-box { border-color: var(--c-border); }
.ml-spec-item:hover { border-color: var(--c-primary-300); background: var(--c-primary-50); }
.ml-qty-btn { background: var(--c-surface-hover); color: var(--c-text-secondary); }
.ml-qty-btn:hover { background: var(--c-primary-100); color: var(--c-primary-dark); }
.ml-qty-input { border-left-color: var(--c-border); border-right-color: var(--c-border); }
.ml-print-icon { border-color: var(--c-primary-300); }
.ml-gallery-links .ml-gallery-item,
.ml-gallery-text { color: var(--c-primary-dark); }
.ml-btn { box-shadow: none; }
.ml-btn:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-primary); }

.ml-product-type {
    top: 154px;
    border-color: var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
}
.ml-product-type li { border-right-color: var(--c-border-light); }
.ml-product-type a { background: var(--c-surface); color: var(--c-text-secondary); }
.ml-product-type a::before { border-color: var(--c-primary-300); }
.ml-product-type a:hover { background: var(--c-primary-50); color: var(--c-primary-dark); }
.ml-product-type a.ml-active { background: var(--c-primary); color: #fff; }
.ml-detail-section { padding: 18px 20px; }
.ml-detail-section h3 {
    color: var(--c-primary-dark);
    letter-spacing: .3px;
}
.ml-info-table th,
.ml-info-table td { border-color: #eeeeee; }
.ml-info-table th { background: #fafafa; color: #555555; }
.ml-info-table td { background: #ffffff; color: #333333; }
.ml-statement-content,
.ml-indent { color: #333333; }
.ml-indent { font-size: 13px; line-height: 1.9; }
/*.ml-component-content,*/
/*.ml-component-pre,*/
/*.seq-container,*/
/*.seq-modal-content {*/
/*    border-color: var(--c-border-light);*/
/*    border-radius: var(--radius-sm);*/
/*    background: var(--c-surface-hover);*/
/*    color: var(--c-text-secondary);*/
/*}*/
.literature-detail .summary-box {
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-sm);
    background: var(--c-surface-hover);
    color: var(--c-text-secondary);
}
.literature-detail a:hover .summary-box {
    border-color: var(--c-primary-100);
    background: var(--c-primary-50);
}
.product-file-item {
    border-color: var(--c-border-light);
    border-radius: var(--radius-sm);
    background: var(--c-surface-hover);
    color: var(--c-text-secondary);
}
.product-file-item:hover {
    border-color: var(--c-primary-300);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    transform: none;
    color: var(--c-text);
}
.file-icon { border-radius: var(--radius-sm); background: var(--c-primary-50); }
.product-files-empty { color: var(--c-text-light); }
.print-modal,
.seq-modal { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.print-modal-toolbar,
.seq-modal-header { border-bottom-color: var(--c-border); background: var(--c-surface-hover); }

/* ===== 产品主信息区紧凑比例：图片、规格与操作区不互相撑高 ===== */
.ml-product-detail {
    gap: 24px;
    padding: 18px 20px;
    align-items: flex-start;
}
.ml-product-gallery {
    flex-basis: 320px;
    max-width: 320px;
}
/*.ml-product-main-img {*/
/*    height: 262px;*/
/*    padding: 10px;*/
/*    background: var(--c-surface);*/
/*}*/
/*.ml-gallery-links {*/
/*    margin-top: 14px;*/
/*    padding-top: 12px;*/
/*    border-top: 1px solid var(--c-border-light);*/
/*}*/
.ml-product-info { min-height: 0; }
.ml-product-meta { margin-bottom: 10px; }
.ml-product-specs { margin-bottom: 12px; }
.ml-spec-row { align-items: flex-start; }
.ml-spec-label { flex: 0 0 78px; padding-top: 7px; }
.ml-spec-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}
.ml-spec-item {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 5px 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
}
.ml-spec-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.ml-product-qty-row { justify-content: flex-start; margin-bottom: 10px; }
.ml-product-bottom {
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
}
.ml-product-price { flex: 0 0 auto; }
.ml-price-value { letter-spacing: 0; white-space: nowrap; }
.ml-product-actions {
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}
.ml-product-actions .ml-btn {
    justify-content: center;
    padding: 8px 16px;
    white-space: nowrap;
}
@media (max-width: 1400px) {
    .ml-product-gallery { flex-basis: 300px; max-width: 300px; }
    .ml-product-main-img { height: 270px; }
    .ml-spec-options { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .ml-product-gallery { max-width: 100%; }
    .ml-spec-options { grid-template-columns: 1fr; }
    .ml-product-bottom { align-items: flex-start; flex-direction: column; }
    .ml-product-actions { justify-content: flex-start; }
}

/* ============================================================
   2026-10-28 详情页 1:1 正式站细节统一（布局/图标/字体颜色/配色）
   ============================================================ */

/* 1. 图集左下文档入口（质检标准/质粒手册/操作说明）：绿色图标+文字 */
.ml-product-detail .ml-gallery-links .ml-gallery-item,
.ml-product-detail .ml-gallery-links .ml-gallery-text {
    color: var(--c-primary);
}
.ml-product-detail .ml-gallery-links .ml-gallery-item:hover,
.ml-product-detail .ml-gallery-links .ml-gallery-item:hover .ml-gallery-text {
    color: var(--c-primary-dark);
}

/* 2. 中文价格：近黑粗体大号（正式站 ¥280.00 为黑色），英文保持参考站绿色 */
.ml-product-price .ml-price-value {
    color: #1a1a1a;
    font-size: 24px;
}

/* 3. 中文操作按钮：次按钮白底绿边绿字药丸，主按钮（联系我们）绿底白字 */
.ml-product-actions .ml-btn {
    background: #fff;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
    /* 三个操作按钮等宽：平分容器宽度，随布局自适应 */
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 12px;
}
.ml-product-actions .ml-btn:hover {
    background: var(--c-primary);
    color: #fff;
}
.ml-product-actions .ml-btn-accent,
.ml-product-actions .ml-btn-accent:hover {
    background: var(--c-primary) !important;
    border-color: var(--c-primary);
    color: #fff;
}

/* 5. 中文锚点 Tab：每个 Tab 独立小图标（线性风格，currentColor 随状态变色） */
.ml-product-type a::before {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 0;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
/* 产品信息：圆圈 i */
.ml-product-type a[href="#sec-info"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='11'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='11'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
/* 产品简介：编辑笔 */
.ml-product-type a[href="#sec-intro"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z'/%3E%3C/svg%3E");
}
/* 产品文件：文件夹 */
.ml-product-type a[href="#sec-file"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
/* 产品声明：盾牌对勾 */
.ml-product-type a[href="#sec-statement"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
}
/* 相关论文：文档 */
.ml-product-type a[href="#sec-paper"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='9' y1='13' x2='15' y2='13'/%3E%3Cline x1='9' y1='17' x2='13' y2='17'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='9' y1='13' x2='15' y2='13'/%3E%3Cline x1='9' y1='17' x2='13' y2='17'/%3E%3C/svg%3E");
}
/* 质粒元件：DNA 双螺旋 */
.ml-product-type a[href="#sec-component"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3c0 5 16 5 16 10'/%3E%3Cpath d='M20 3c0 5-16 5-16 10'/%3E%3Cline x1='4' y1='21' x2='4' y2='17'/%3E%3Cline x1='8' y1='21' x2='8' y2='17'/%3E%3Cline x1='16' y1='21' x2='16' y2='17'/%3E%3Cline x1='20' y1='21' x2='20' y2='17'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3c0 5 16 5 16 10'/%3E%3Cpath d='M20 3c0 5-16 5-16 10'/%3E%3Cline x1='4' y1='21' x2='4' y2='17'/%3E%3Cline x1='8' y1='21' x2='8' y2='17'/%3E%3Cline x1='16' y1='21' x2='16' y2='17'/%3E%3Cline x1='20' y1='21' x2='20' y2='17'/%3E%3C/svg%3E");
}

/* ============================================================
   2026-10-28 产品信息区细节：标签列统一宽度，控件纵向对齐（左对齐）
   ============================================================ */
.ml-product-info .ml-meta-row {
    gap: 12px;
}
.ml-product-info .ml-meta-label,
.ml-product-info .ml-qty-label {
    flex: 0 0 105px;
    min-width: 105px;
}
.ml-product-info .ml-meta-value {
    text-align: left;
}
/* 标签不换行，避免 Alternative Names 折行 */
.ml-product-info .ml-meta-label,
.ml-product-info .ml-qty-label,
.ml-product-specs .ml-spec-label {
    white-space: nowrap;
}


/* 图集图标（后台站点模块上传的图片） */
.ml-gallery-links img.ml-gallery-icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin: 0 auto 6px;
}

/* 图集下方资料入口：三列等宽、图标和文字基线统一 */
/*.ml-product-detail .ml-gallery-links {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(3, minmax(0, 1fr));*/
/*    gap: 8px;*/
/*    width: 100%;*/
/*    margin-top: 14px;*/
/*    padding-top: 12px;*/
/*    align-items: stretch;*/
/*}*/
.ml-product-detail .ml-gallery-links .ml-gallery-item {
    display: flex;
    min-width: 0;
    min-height: 76px;
    padding: 8px 4px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color .15s ease, color .15s ease;
}
.ml-product-detail .ml-gallery-links .ml-gallery-item:hover {
    background: var(--c-primary-50);
}
.ml-product-detail .ml-gallery-links .ml-gallery-icon,
.ml-product-detail .ml-gallery-links .ml-gallery-icon-svg {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
}
.ml-product-detail .ml-gallery-links .ml-gallery-icon-svg svg {
    width: 26px;
    height: 26px;
}
.ml-product-detail .ml-gallery-links .ml-gallery-text {
    display: block;
    width: 100%;
    min-height: 32px;
    overflow: visible;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    overflow-wrap: anywhere;
}
