/* Vue 可移植官网补充样式 */
.header-wrapper {
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-wrapper.sticky + .content-wrapper {
    margin-top: 60px;
}
#nologo {
    color: #000022;
    display: inline-block;
    font-family: "Microsoft YaHei", sans-serif;
    height: 44px;
    font-size: 26px;
    font-weight: bold;
    line-height: 44px;
    letter-spacing: 3px;
}
.site-nav a.active, .site-nav-wap a.active {
    color: #e03131;
}
.channel-sidebar a.cur {
    color: #fff;
}
.topcat .cur {
    color: #ff0066;
}
.site-loading {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
/* 顶部导航加载进度条 */
#site-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
#site-nav-bar.active {
    opacity: 1;
}
.site-nav-bar__progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e03131, #ff6b6b);
    box-shadow: 0 0 8px rgba(224, 49, 49, 0.5);
    transition: width 0.15s ease;
}
.site-error {
    text-align: center;
    padding: 80px 20px;
    color: #e03131;
}
/* 轮播 */
.banner { position: relative; }
.banner .images-region { position: relative; margin: auto; width: 100%; height: 650px; overflow: hidden; }
.banner ul.images { position: absolute; display: flex; width: 100%; height: 100%; padding: 0; margin: 0; }
.banner ul.images li { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1; }
.banner ul.images li.active { opacity: 1; z-index: 2; }
.banner ul.images li a { display: block; width: 100%; height: 100%; }
.banner ul.images img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .thumbnail { position: absolute; margin: auto; right: 0; left: 0; bottom: 30px; display: flex; justify-content: center; z-index: 2; }
.banner .thumbnail span { display: inline-block; width: 24px; height: 5px; margin: 5px; background-color: #666; transition: background-color 0.3s ease; cursor: pointer; }
.banner .thumbnail span.active { background-color: #e03131; }
.banner .arrow-region { position: absolute; width: 100%; height: 100%; top: 0; display: flex; justify-content: space-between; pointer-events: none; }
.banner .arrow { font-size: 50px; font-weight: bold; border: 0; background: none; opacity: 0; color: #fff; position: relative; top: 250px; height: 3cm; cursor: pointer; transition: opacity 0.3s ease; z-index: 3; pointer-events: auto; }
.banner:hover .arrow { opacity: 0.9; }
@media(max-width:1368px) { .banner .images-region { height: 500px; } .banner .arrow { top: 180px; } }
@media(max-width:768px) {
    .banner .images-region { height: 288px; }
    .banner .arrow { top: 70px; }
    .banner ul.images img { height: 180px; }
    .banner .thumbnail { bottom: -24px; }
    #nologo { padding: 0 10px; height: 40px; font-size: 17px; line-height: 40px; }
}
@media(max-width:480px) {
    .banner .images-region { height: 148px; }
    .banner .arrow { top: 22px; }
}
/* 产品/资质瀑布流（覆盖 main.css 的 flex 百分比布局） */
.product-list--masonry ul.product-list-cont.product-waterfall {
    display: block !important;
    width: 100%;
    column-count: 3;
    column-gap: 14px;
    border-bottom: none;
    margin-bottom: 0;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}
.product-list--masonry ul.product-list-cont.product-waterfall > li,
.product-list--masonry .product-waterfall-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: inline-block;
    vertical-align: top;
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border: none;
}
@media (max-width: 900px) {
    .product-list--masonry ul.product-list-cont.product-waterfall { column-count: 2; column-gap: 10px; }
}
@media (max-width: 600px) {
    .product-list--masonry ul.product-list-cont.product-waterfall { column-count: 1; }
}
.product-list--masonry .product-waterfall-img img { width: 100%; height: auto; display: block; }
.product-waterfall-info { padding: 10px 12px 12px; text-align: left; }
.product-waterfall-info .price-line { font-size: 14px; color: #e4392a; font-weight: bold; }
.product-load-more-sentinel { height: 1px; }
.site-loading--more { padding: 24px 20px; }
.product-load-more-btn { padding: 8px 0 24px; }
.product-load-more-btn a {
    display: inline-block;
    padding: 10px 36px;
    border: 1px solid #e03131;
    color: #e03131;
    font-size: 14px;
    transition: all 0.2s ease;
}
.product-load-more-btn a:hover { background: #e03131; color: #fff; }
.product-load-end {
    text-align: center;
    padding: 8px 0 24px;
    color: #999;
    font-size: 13px;
}
/* 资质环境：Grid 三列（与产品中心一致，按行排列） */
.honor-waterfall ul.product-list-cont.product-waterfall {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    column-count: unset !important;
    width: 100%;
    border-bottom: none;
    margin-bottom: 0;
    flex-wrap: unset !important;
}
.honor-waterfall .product-waterfall-item {
    width: auto !important;
    max-width: none !important;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .honor-waterfall ul.product-list-cont.product-waterfall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
@media (max-width: 600px) {
    .honor-waterfall ul.product-list-cont.product-waterfall {
        grid-template-columns: 1fr;
    }
}
/* 资质环境布局间距 */
.honor-waterfall.product-list--masonry {
    margin-left: 300px;
    padding: 0 40px 40px 40px;
}
@media (max-width: 1120px) {
    .honor-waterfall.product-list--masonry {
        margin-left: 0;
        padding: 0 40px 40px 40px;
    }
}
@media (max-width: 735px) {
    .honor-waterfall.product-list--masonry {
        padding: 0 0 30px 0;
    }
}
.honor-waterfall .product-waterfall-info { text-align: center; }
.honor-waterfall .honor-name { font-size: 14px; color: #333; line-height: 1.5; word-break: break-all; }
.honor-waterfall .product-waterfall-img img { width: 100%; height: auto; object-fit: contain; background: #f8f8f8; }
.honor-waterfall .honor-img-clickable { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.honor-waterfall .honor-img-clickable:hover { transform: scale(1.02); }
/* 资质环境图片预览弹窗 */
.img-preview-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.img-preview-modal.show { opacity: 1; }
.img-preview-content {
    position: relative; background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw; max-height: 90vh; overflow: hidden;
    transform: scale(0.9); transition: transform 0.3s ease;
}
.img-preview-modal.show .img-preview-content { transform: scale(1); }
.img-preview-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #eee; background: #fafafa;
}
.img-preview-header h3 { margin: 0; color: #333; font-size: 18px; font-weight: 600; }
.img-preview-close {
    background: none; border: none; font-size: 24px; color: #999;
    cursor: pointer; padding: 4px 8px; border-radius: 4px; line-height: 1;
}
.img-preview-close:hover { color: #333; background: #f0f0f0; }
.img-preview-body { padding: 20px; text-align: center; max-height: 75vh; overflow: auto; }
.img-preview-body img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
/* 产品详情 */
.pd-page { padding: 0 0 40px; }
.pd-main {
    display: flex;
    gap: 36px;
    padding: 28px 0 32px;
    align-items: flex-start;
}
.pd-media { flex: 0 0 42%; max-width: 460px; }
.pd-img-box {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-info { flex: 1; min-width: 0; }
.pd-title {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.4;
}
.pd-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.pd-spec-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.pd-spec-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.pd-attr-btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.pd-attr-btn:hover { border-color: #e03131; color: #e03131; }
.pd-attr-btn.active {
    border-color: #e03131;
    color: #fff;
    background: #e03131;
}
.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.pd-meta-item {
    flex: 1 1 140px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 16px;
}
.pd-meta-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}
.pd-meta-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}
.pd-price .pd-meta-value {
    font-size: 28px;
    color: #e03131;
    font-weight: 700;
}
.pd-price .pd-meta-value em {
    font-size: 18px;
    font-style: normal;
    margin-right: 2px;
}
.pd-spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.pd-spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fafbfc;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}
.pd-spec-list-price { color: #e03131; font-weight: 600; }
.pd-remark {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #fffbf0;
    border-radius: 6px;
    border: 1px solid #ffe8c8;
}
.pd-remark .pd-meta-label { display: inline; margin-right: 8px; color: #c90; }
.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.pd-btn-primary {
    background: #e03131;
    color: #fff;
    border: 1px solid #e03131;
}
.pd-btn-primary:hover { background: #c62828; }
.pd-btn-outline {
    background: #fff;
    color: #e03131;
    border: 1px solid #e03131;
}
.pd-btn-outline:hover { background: #fff5f5; }
.pd-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e03131;
    display: inline-block;
}
.pd-gallery-wrap { margin-top: 8px; }
.pd-gallery img { width: 100%; margin-bottom: 12px; display: block; }
.pd-gallery.no-gap { line-height: 0; font-size: 0; }
.pd-gallery.no-gap img { margin: 0; }
@media (max-width: 900px) {
    .pd-main { flex-direction: column; gap: 20px; }
    .pd-media { flex: none; max-width: 100%; width: 100%; }
    .pd-title { font-size: 22px; }
    .pd-price .pd-meta-value { font-size: 24px; }
    .pd-actions { flex-direction: column; }
    .pd-btn { justify-content: center; }
}
.category-nav .topcat { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0; }
.category-nav .topcat li { margin-right: 12px; cursor: pointer; }
.category-nav .topcat li.cur, .category-nav .topcat a.cur { color: #ff0066; }

/* ========== 页面动效 ========== */
@keyframes siteFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes siteFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes siteSpin {
    to { transform: rotate(360deg); }
}
.site-page-enter {
    animation: siteFadeIn 0.45s ease forwards;
}
.site-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.site-reveal.site-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}
.site-img-reveal {
    opacity: 0;
    transition: opacity 0.45s ease;
}
.site-img-reveal.is-loaded {
    opacity: 1;
}
.site-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #e03131;
    border-radius: 50%;
    animation: siteSpin 0.75s linear infinite;
}
.site-spinner--sm {
    width: 22px;
    height: 22px;
    border-width: 2px;
}
#site-boot-loading {
    flex-direction: column;
    gap: 16px;
}
#site-boot-loading .site-spinner {
    width: 36px;
    height: 36px;
}
.banner .images li.active img {
    animation: siteFadeIn 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
    .site-page-enter,
    .site-reveal,
    .site-img-reveal,
    .site-spinner,
    .banner .images li.active img {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
