/* ============== 全局样式 ============== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 70px;
    color: #333;
}

/* ============== 导航栏 ============== */
.navbar-brand {
    font-size: 1.5rem;
}

/* ============== 轮播图 ============== */
.carousel {
    margin-bottom: 0;
}

.carousel-item .placeholder-banner {
    height: 60vh;
    min-height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-item img {
    width: 100%;
    height: 60vh;
    min-height: 300px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item .placeholder-banner,
    .carousel-item img {
        height: 40vh;
        min-height: 200px;
    }
}

/* ============== 区块标题 ============== */
.section-title {
    font-weight: 700;
    position: relative;
    margin-bottom: 1rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0d6efd;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============== 产品分类卡片 ============== */
.product-category-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.product-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-category-card .card-img-wrap {
    height: 200px;
    overflow: hidden;
}

.product-category-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-category-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.product-category-card .card-body {
    padding: 1.5rem;
}

.product-category-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============== 产品案例卡片 ============== */
.product-case-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.product-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-case-card .card-img-wrap {
    height: 180px;
    overflow: hidden;
}

.product-case-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============== 合作伙伴 ============== */
.partner-item {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-item img {
    max-height: 80px;
    max-width: 200px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item:hover img {
    opacity: 1;
}

/* ============== 页面头部 ============== */
.page-header {
    margin-top: -70px;
    padding-top: 140px;
    padding-bottom: 60px;
}

.page-header h1 {
    font-weight: 700;
}

/* ============== 产品筛选按钮 ============== */
#categoryFilter .btn {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
}

#categoryFilter .btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ============== 产品卡片 ============== */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card .product-img {
    height: 200px;
    overflow: hidden;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============== 联系表单 ============== */
.contact-info .item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info .item i {
    font-size: 2rem;
    color: #0d6efd;
    margin-top: 0.2rem;
}

.contact-info .item h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ============== 页脚 ============== */
footer {
    margin-top: 0;
}

footer h4 {
    margin-bottom: 0.5rem;
}

footer h5 {
    color: #adb5bd;
    font-weight: normal;
}

/* ============== 响应式 ============== */
@media (max-width: 576px) {
    body {
        padding-top: 66px;
    }

    .page-header {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-category-card .card-img-wrap {
        height: 160px;
    }
}

/* ============== 加载状态 ============== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}
