/* ===== 子页面顶部大图：产品展示 ===== */
.sub-hero {
    position: relative;
    width: 100%;
    height: 360px;
    margin-top: 64px; /* 顶部导航高度 */
    overflow: hidden;
}

.hero-product {
    background-image: url("../data/text.png"); /* 先用占位图，之后自己换 */
    background-size: cover;
    background-position: center;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.sub-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12%;
    color: #ffffff;
}

.sub-hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.sub-hero-line {
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    margin-bottom: 16px;
}

.sub-hero-en {
    font-size: 15px;
    opacity: 0.9;
}

/* ===== 产品分类 Tab ===== */
.product-tab-section {
    padding-top: 40px;
    padding-bottom: 10px;
}

.product-tab-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.product-tab {
    min-width: 160px;
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.product-tab:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.product-tab.active {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* ===== 产品列表卡片区域 ===== */
.product-page-section {
    padding-top: 20px;
    padding-bottom: 80px;
}

/* 每个 panel 对应一个分类 */
.product-panel {
    display: none;
}

.product-panel.active {
    display: block;
}

/* 单条卡片：左文右图 */
.product-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 26px;
    background: #ffffff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card-row:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.product-card-left {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.product-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.9;
}

.product-card-right {
    min-height: 180px;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 简单响应式 */
@media (max-width: 900px) {
    .product-card-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-tab-bar {
        flex-direction: column;
        align-items: center;
    }
}
