/* ===================== 全局基础样式（首页共用） ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
header {
    background-color: #000000;
    color: #fff;
    padding: 14px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 36px;
}
.logo-text {
    font-size: 20px;
    font-weight: bold;
}
.nav {
    display: flex;
    gap: 28px;
}
.nav a {
    font-size: 15px;
    transition: 0.2s;
}
.nav a.active,
.nav a:hover {
    color: #ffc107;
}

/* ========== Hero 首页横幅 ========== */
.hero {
    background: #f5f5f5;
    padding: 70px 0;
    text-align: center;
}
.hero h1 {
    font-size: 38px;
    margin-bottom: 16px;
}
.hero p {
    font-size: 18px;
    color: #444;
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.btn-black {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 15px;
    transition: 0.25s;
}
.btn-black:hover {
    background: #333;
}

/* ========== 产品分类卡片板块 ========== */
.category-section {
    padding: 60px 0;
}
.category-section h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.category-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: 0.25s;
}
.category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.category-card h3 {
    padding: 14px 12px 6px;
    font-size: 16px;
}
.category-card p {
    padding: 0 12px 14px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.category-card .btn-black {
    margin-bottom: 18px;
    padding: 8px 18px;
    font-size: 13px;
}

/* ========== 页脚 Footer（左右两栏，居中，黄色横线） ========== */
.site-footer{
    background:#111111;
    color:#fff;
    padding:40px 0;
    margin-top:60px;
}
.footer-wrap{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:30px;
}
.footer-logo img{
    height:50px;
    margin-bottom:16px;
}
.footer-left, .footer-right{
    text-align:center;
}
.footer-left p{
    line-height:1.7;
    margin-bottom:8px;
}
.footer-right h3{
    margin-bottom:12px;
}
.line-yellow{
    display:block;
    width:40px;
    height:2px;
    background:#ffc107;
    margin:0 auto 20px;
}
.footer-nav-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:12px;
}
.footer-nav-grid a{
    font-size:14px;
}
.footer-nav-grid a:hover{
    color:#ffc107;
}

/* ===================== 产品详情页全套样式 ===================== */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.main-img-wrap {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}
#mainImage {
    width: 100%;
    height: auto;
    display: block;
}
.thumb-list {
    display: flex;
    gap: 12px;
    margin-top:16px;
    flex-wrap: wrap;
}
.thumb-item {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius:4px;
    cursor: pointer;
    object-fit: contain;
    padding:4px;
}
.thumb-item.active {
    border-color:#000;
}
.detail-info h2 {
    font-size:30px;
    margin-bottom:16px;
}
.detail-info .desc {
    color: #555;
    line-height:1.7;
    margin-bottom:24px;
}
.spec-table {
    width:100%;
    border-collapse: collapse;
    margin:20px 0;
}
.spec-table td {
    border:1px solid #ddd;
    padding:10px 14px;
}
.spec-table td:first-child {
    background:#f7f7f7;
    width:35%;
    font-weight:500;
}
.feature-list {
    padding-left:20px;
    line-height:1.8;
    color:#444;
}
.oem-block {
    background:#f8f8f8;
    padding:24px;
    border-radius:8px;
    margin:30px 0;
}
.oem-block h3 {
    margin-bottom:12px;
}
.btn-inquiry {
    display: inline-block;
    background:#000;
    color:#fff;
    padding:12px 28px;
    border-radius:4px;
    margin-top:12px;
    transition:0.25s;
}
.btn-inquiry:hover {
    background:#333;
}
.pack-section {
    margin-top:60px;
}
.pack-section h3 {
    font-size:24px;
    margin-bottom:20px;
    text-align:center;
}
.pack-img-box {
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap:20px;
}
.pack-img-box img {
    width:100%;
    border:1px solid #eee;
    border-radius:8px;
}

/* ===================== 响应式适配（手机端） ===================== */
@media (max-width:992px) {
    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .detail-row {
        grid-template-columns: 1fr;
    }
    .pack-img-box {
        grid-template-columns: 1fr;
    }
}
@media (max-width:576px) {
    .header-inner {
        flex-direction: column;
        gap:14px;
    }
    .nav {
        gap:16px;
    }
    .hero h1 {
        font-size:28px;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .footer-wrap {
        grid-template-columns:1fr;
    }
}
