/* ========== 基础 ========== */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size:16px;
    color:#333;
    line-height:1.7;
    background:#f4f7fa;
}
a{
    color:#2563eb;
    text-decoration:none;
}
.container{
    max-width:1200px;
    margin:32px auto;
    padding:0 16px;
    width:100%;
}
h2{
    color:#222;
    margin-bottom:20px;
}

/* ========== 搜索框 ========== */
.search-box{
    margin-bottom:24px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.search-box input{
    padding:9px 12px;
    border:1px #d1d5db solid;
    border-radius:6px;
    flex:1;
    min-width:220px;
    font-size:16px;
}
.search-box button{
    padding:9px 16px;
    border:none;
    border-radius:6px;
    background:#1a3d7c;
    color:#fff;
    cursor:pointer;
}
.reset-btn{
    display:inline-block;
    padding:9px 16px;
    border-radius:6px;
    background:#6b7280;
    color:#fff;
    text-decoration:none;
    line-height:1.2;
}
.reset-btn:hover{
    background:#4b5563;
    color:#fff;
}

/* ========== 产品网格 ========== */
.product-grid{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
}
.card{
    width:calc(25% - 12px);
    background:#fff;
    border-radius:10px;
    box-shadow:0 1px 4px rgba(0,0,0,0.08);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    text-decoration:none;
    color:inherit;
    transition:box-shadow 0.2s, transform 0.2s;
}
.card:hover{
    box-shadow:0 4px 14px rgba(0,0,0,0.12);
    transform:translateY(-2px);
    text-decoration:none;
    color:inherit;
}
.card-img-wrap{
    height:160px;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    width:100%;
}
.card img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    transition:transform 0.3s;
}
.card:hover img{
    transform:scale(1.04);
}
.card-body{
    padding:12px 14px;
    flex:1;
    display:flex;
    flex-direction:column;
}
.card h3{
    font-size:15px;
    font-weight:600;
    color:#222;
    line-height:1.4;
    margin:0 0 6px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.card:hover h3{
    color:#1a3d7c;
}
.card p{
    color:#888;
    margin:auto 0 0;
    font-size:13px;
}

/* ========== 响应式列数 ========== */
@media (max-width:1024px){
    .card{ width:calc(33.333% - 11px); }
}
@media (max-width:768px){
    .card{ width:calc(50% - 8px); }
}
@media (max-width:600px){
    .card{ width:100%; }
}

/* ========== 详情页 ========== */
.detail-header{
    margin-bottom:20px;
    padding-bottom:16px;
    border-bottom:1px solid #e5e7eb;
}
.detail-title{
    font-size:24px;
    color:#1e293b;
    margin:0 0 10px;
    line-height:1.3;
}
.detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:0;
    font-size:13px;
    color:#94a3b8;
}
.meta-item{
    position:relative;
    padding-right:17px;
}
.meta-item:not(:last-child)::after{
    content:"·";
    position:absolute;
    right:6px;
    color:#cbd5e1;
}
.detail-cover{
    background:#f5f5f5;
    border-radius:12px;
    padding:20px;
    text-align:center;
    margin-bottom:24px;
    border:1px solid #e5e7eb;
}
.detail-cover img{
    max-width:100%;
    max-height:480px;
    object-fit:contain;
    border-radius:8px;
    cursor:pointer;
    transition:transform 0.2s;
}
.detail-cover img:hover{
    transform:scale(1.02);
}
.detail-section{
    margin:24px 0;
}
.detail-section-title{
    font-size:15px;
    font-weight:600;
    color:#475569;
    margin:0 0 12px;
    padding-left:10px;
    border-left:3px solid #1a3d7c;
    line-height:1.2;
}
.detail-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:32px;
    margin:24px 0;
}
.detail-block{
    min-width:0;
}
.detail-intro{
    color:#475569;
    line-height:1.9;
    font-size:15px;
    margin:0;
}
.param-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}
.param-table th,
.param-table td{
    padding:10px 14px;
    border:1px solid #e5e7eb;
    text-align:left;
}
.param-table th{
    background:#f9fafb;
    color:#64748b;
    font-weight:500;
    width:120px;
}

/* ========== 返回链接（仅 notfound 用） ========== */
.back-link{
    display:inline-block;
    padding:8px 16px;
    background:#1a3d7c;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
}
.back-link:hover{
    background:#122d5c;
    color:#fff;
    text-decoration:none;
}

/* ========== 细节图 ========== */
.img-group{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:0;
}
.img-group img{
    width:180px;
    height:150px;
    object-fit:contain;
    background:#f5f5f5;
    border-radius:6px;
    box-shadow:0 1px 3px rgba(0,0,0,0.1);
    transition:transform 0.2s;
    cursor:pointer;
}
.img-group img:hover{
    transform:scale(1.04);
}

/* ========== 分页 ========== */
.pagination{
    margin-top:36px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}
.pagination a,.pagination span{
    padding:7px 12px;
    border-radius:6px;
    border:1px #d1d5db solid;
}
.pagination a{
    background:#fff;
    color:#1a3d7c;
}
.pagination span.current{
    background:#1a3d7c;
    color:#fff;
    border-color:#1a3d7c;
}

/* ========== 二维码 ========== */
.qrcode-card{
    margin:0 auto;
    max-width:130px;
    border:1px #e5e7eb solid;
    padding:12px;
    border-radius:10px;
    text-align:center;
    background:#fff;
}
#qrcode{ margin:0 auto; }
.qrcode-tip{
    margin-top:6px;
    font-size:12px;
    color:#888;
}

/* ========== 页脚 ========== */
.footer{
    margin-top:60px;
    padding:32px 16px 24px;
    background:#eef2f7;
    color:#666;
    font-size:14px;
    text-align:center;
}
/* ★ 新增：页脚内容限宽，和头部/主体对齐 */
.footer-inner{
    max-width:1200px;
    margin:0 auto;
    width:100%;
}
.footer-section{
    margin-bottom:20px;
}
/* ★ 修改：免责声明不限宽，与 .footer-inner 同宽 */
.footer-disclaimer{
    font-size:12px;
    line-height:1.7;
    color:#999;
    text-align:left;
}
.footer-disclaimer strong{
    color:#888;
}

/* 页脚底部：两栏左右分栏 */
.footer-bottom{
    margin-top:8px;
    padding-top:16px;
    border-top:1px solid #e1e8f0;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    font-size:12px;
    color:#999;
}
.footer-bottom-left,
.footer-bottom-right{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.footer-bottom-left{
    text-align:left;
}
.footer-bottom-right{
    text-align:right;
}
.footer-bottom a{
    display:block;
    color:#999;
}
.footer-bottom a:hover{
    color:#1a3d7c;
    text-decoration:none;
}
.beian-ico{
    height:14px;
    margin-right:4px;
    vertical-align:middle;
    display:inline-block;
}

/* ========== 图片预览 ========== */
.img-preview{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.img-preview.show{ display:flex; }
.img-preview img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

/* ========== 头部（深蓝底 + 白字，居中布局） ========== */
.site-header{
    background:linear-gradient(180deg, #1e4487 0%, #1a3d7c 100%);
    border-bottom:none;
    box-shadow:0 2px 10px rgba(26,61,124,0.25);
    padding:20px 16px;
}
.header-inner{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
}
.site-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    min-width:0;
}
.site-title{
    font-size:24px;
    font-weight:800;
    color:#fff;
    letter-spacing:1px;
    margin:0 0 4px;
    line-height:1.3;
    text-shadow:0 1px 3px rgba(0,0,0,0.15);
}
.site-subtitle{
    font-size:13px;
    color:rgba(255,255,255,0.75);
    letter-spacing:1px;
    margin:0;
}
.site-nav{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
}
.site-nav a{
    color:#fff;
    background:rgba(255,255,255,0.12);
    font-size:15px;
    padding:8px 16px;
    border-radius:8px;
    transition:background 0.2s, color 0.2s;
    text-decoration:none;
    border:1px solid rgba(255,255,255,0.15);
}
.site-nav a:hover{
    background:rgba(255,255,255,0.22);
    color:#fff;
    text-decoration:none;
    border-color:rgba(255,255,255,0.25);
}
.site-nav a.active{
    background:#fff;
    color:#1a3d7c;
    border-color:#fff;
    font-weight:600;
}
.site-nav a.active:hover{
    background:#f1f5f9;
    color:#122d5c;
    border-color:#f1f5f9;
}

/* ========== 响应式（手机端） ========== */
@media (max-width:768px){
    .detail-grid{ grid-template-columns:1fr; gap:24px; }
    .detail-title{ font-size:20px; }
    .detail-cover{ padding:12px; }
    .detail-cover img{ max-height:320px; }
}
@media (max-width:600px){
    .site-title{
        font-size:20px;
    }
    .site-nav a{
        padding:6px 12px;
        font-size:14px;
    }
    .img-group img{
        width:calc(50% - 6px);
        height:130px;
    }
    .footer-bottom{
        font-size:11px;
        gap:8px;
    }
}