﻿/* ==============================================
site-main.css 无锡君鑫诚金属｜全站公共样式
适配全部7个视图页面，修复导航z-index遮挡问题
新增：知识列表KnowledgeList、知识详情KnowledgeDetail样式
============================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei",PingFangSC,Helvetica,Arial,sans-serif;
    color: #333;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* 顶部联系栏 */
.top-bar {
    font-size: 14px;
}

/* 导航组件 */
.navbar-main .nav-link {
    font-size: 16px;
    color: #333;
}

    .navbar-main .nav-link.active {
        color: #0d6efd !important;
    }
/* 修复：导航下拉菜单提升层级，防止被悬浮电话遮挡 */
.navbar-collapse {
    z-index: 1001;
    position: relative;
}

/* 标题组件 用于首页、产品、新闻、联系我们 */
.section-title h2, .section-title h1 {
    margin: 0 0 8px;
}

.line-primary {
    width: 60px;
    height: 3px;
    background: #0d6efd;
    margin: 12px auto;
}

/* 新闻详情富文本文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

    .article-content img {
        max-width: 100%;
        height: auto;
    }

/*==================== 悬浮电话按钮 PC端 ====================*/
.float-tel {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

    .float-tel a {
        display: block;
        width: 50px;
        height: 50px;
        background: #0d6efd;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        font-size: 22px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.2);
        text-decoration: none;
    }

        .float-tel a:hover {
            background: #0b5ed7;
            color: #fff;
        }

/*==================== 手机底部悬浮导航栏 ====================*/
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 998;
}

    .mobile-bottom-bar a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        font-size: 13px;
    }

        .mobile-bottom-bar a i {
            display: block;
            font-size: 18px;
            margin-bottom: 4px;
        }

        .mobile-bottom-bar a.tel-btn {
            color: #0d6efd;
        }

@media(max-width:767px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }

    .float-tel {
        display: none;
    }
}

/*==================== 产品详情页样式 ====================*/
.product-img-box {
    width: 100%;
    height: 340px;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

    .product-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    .product-img-box:hover img {
        transform: scale(1.05);
    }

.product-desc-text {
    line-height: 1.8;
    font-size: 15px;
    color: #666;
}

/*==================== 产品列表卡片 ====================*/
.product-card {
    height: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: 0.3s ease all;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
        border-color: #2b7bba;
    }

.product-img-wrap {
    height: 240px;
    overflow: hidden;
    background-color: #f7f7f7;
}

    .product-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-desc {
    color: #666666;
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 16px;
    line-height: 1.6;
}

.btn-more {
    background-color: #2b7bba;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    width: 100%;
}

    .btn-more:hover {
        background-color: #1f5f94;
        color: #fff;
    }

/*==================== 页脚 footer-wrap ====================*/
.footer-wrap {
    background: #222831;
    color: #cccccc;
    padding: 40px 0 24px;
    margin-top: 60px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 24px;
}

.footer-col h5 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 17px;
}

.footer-col p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
}

    .footer-col a:hover {
        color: #4099ff;
    }

.footer-divider {
    border-color: #444;
    margin: 30px 0 16px;
}

.copyright-text {
    text-align: center;
    font-size: 13px;
    color: #aaa;
}
/* 关于我们页面段落样式 */
.page-about-wrap .about-paragraph {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
    margin-bottom: 1rem;
    text-indent: 2em;
}
/* 手机底部导航栏，你之前css写的名字是mobile-bottom-bar，保持一致 */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 998;
}

    .mobile-bottom-bar a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .mobile-bottom-bar a i {
            font-size: 18px;
            margin-bottom: 4px;
        }

        .mobile-bottom-bar a.tel-btn {
            color: #0d6efd;
        }

.toast-tip {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    z-index: 9999;
    display: none;
}

@media(max-width:767px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }

    .float-tel {
        display: none;
    }
}
/*面包屑导航样式*/
.breadcrumb-wrap {
    font-size: 14px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

    .breadcrumb a {
        color: #0d6efd;
        text-decoration: none;
    }

.breadcrumb-item.active {
    color: #666;
}
/* 悬浮一键拨号按钮 全局所有页面共用 */
.float-tel-fixed {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 9999;
}

.float-tel-btn {
    display: block;
    background-color: #0d6efd;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    white-space: nowrap;
}

    .float-tel-btn:hover {
        color: #fff;
        background-color: #0b5ed7;
        text-decoration: none;
    }

@media(max-width:767px) {
    .float-tel-fixed {
        right: 12px;
        bottom: 18px;
    }

    .float-tel-btn {
        padding: 10px 14px;
    }
}

/* ==============================================
【新增】知识列表 KnowledgeList 样式
页面容器 class: knowledge-list-wrap
列表项 class: knowledge-item
============================================== */
.knowledge-list-wrap {
    padding: 40px 0;
}

.knowledge-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

    .knowledge-item:hover {
        box-shadow: 0 8px 22px rgba(0,0,0,0.08);
        border-color: #0d6efd;
    }

.knowledge-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.45;
}

    .knowledge-item-title a {
        color: #222;
        text-decoration: none;
    }

        .knowledge-item-title a:hover {
            color: #0d6efd;
        }

.knowledge-item-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 12px;
}

.knowledge-item-meta {
    font-size: 13px;
    color: #888;
}

.knowledge-item-more {
    display: inline-block;
    margin-top: 10px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

    .knowledge-item-more:hover {
        text-decoration: underline;
    }

/* ==============================================
【新增】知识详情 KnowledgeDetail 样式
页面容器 class: knowledge-detail-wrap
文章主体 class: knowledge-article-body
区块 class: knowledge-local-block
============================================== */
.knowledge-detail-wrap {
    padding: 40px 0;
}

.knowledge-detail-header h1 {
    font-size: 26px;
    color: #222;
    line-height: 1.4;
    margin-bottom: 12px;
}

.knowledge-detail-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.knowledge-page-intro {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.knowledge-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #3a3a3a;
}

    .knowledge-article-body h2,
    .knowledge-article-body h3 {
        margin: 24px 0 12px;
        font-weight: 600;
        color: #222;
    }

    .knowledge-article-body p {
        margin-bottom: 16px;
    }

    .knowledge-article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
    }

.knowledge-local-block {
    margin: 28px 0;
    padding: 20px;
    background: #f7f9fc;
    border-left: 4px solid #0d6efd;
    border-radius: 0 8px 8px 0;
}

    .knowledge-local-block h3 {
        font-size: 18px;
        margin: 0 0 10px;
        color: #222;
    }

    .knowledge-local-block p {
        font-size: 15px;
        color: #444;
        line-height: 1.8;
        margin: 0;
    }

/* 移动端适配 知识列表&详情 */
@media(max-width:767px) {
    .knowledge-list-wrap {
        padding: 24px 0;
    }

    .knowledge-item {
        padding: 16px;
    }

    .knowledge-detail-header h1 {
        font-size: 22px;
    }

    .knowledge-detail-wrap {
        padding: 24px 0;
    }

    .knowledge-local-block {
        padding: 16px;
    }
}
