/* 产品页统一浅灰背景，避免纯白卡片与页面反差过大 */
body:has(.product-all) {
    background-color: #f5f6f8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
    line-height: 1.5;
    color: #333;
}

main:has(.product-all) {
    background-color: #f5f6f8;
}

/* ===== 产品中心 - 全屏背景 ===== */
.product-hero {
    position: relative;
    /* 作为定位参照 */
    width: 100%;
    height: 0;
    margin-top: 90px;
    overflow: hidden;
    height: 650px;

}

/* 独立图片 */
.hero-img {
    height: 650px;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* 关键：完整显示，不裁剪 */
    filter: brightness(0.55);
    /* 保证文字可读 */
    z-index: 1;
}

/* 文字层 */
.hero-content {
    position: absolute;
    inset: 0;
    /* 等价于 top:0;right:0;bottom:0;left:0 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, .4);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 15px;
    color: #f0f0f0;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    line-height: 1.6;
    color: #e0e0e0;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, .4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, .5);
}

/* 新增：所有产品区域 */
.all-products {
    padding: 60px 0;
    background: #f5f6f8;
}

.all-products .container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 26px;
}

.section-header h2 {
    font-size: 1.9rem;
    margin: 0 0 6px;
    font-weight: 700;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* 网格布局：四列，间距尽量贴近图片风格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid #e8ebef;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thumb-wrap {
    width: 100%;
    padding-top: 62%;
    /* 纵横比控制，图片区域保持一致高度 */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.product-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 1rem;
    margin: 12px 6px 6px;
    color: #333;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.92rem;
    color: #666;
    margin: 0 6px 6px;
    flex-grow: 0;
    line-height: 1.4;
}

/* ===== 产品页技术资源引导 ===== */
.product-guides {
    padding-bottom: 100px;
}

.product-guides-lead {
    margin: -8px 0 24px 6px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.product-guides-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.product-guide-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-guide-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-guide-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.product-guide-desc {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.55;
    flex: 1;
}

.product-guides-cta {
    margin-top: 28px;
    margin-bottom: 32px;
    text-align: center;
}

/* ===== 产品列表 ===== */
/* 总容器 */
.product-all {
    width: 100%;
    padding: 0 190px;
    box-sizing: border-box;
    padding-top: 72px;
}

.product-title {
    height: 80px;
    font-size: 2.2rem;
    line-height: 60px;
    border-bottom: 2px solid #E5E7EB;
    font-weight: 700;
    margin: 0 0 20px;
    padding-left: 6px;
}

/* 产品列表网格：宽屏两列，窄屏自动单列 */
.product-box {
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* 单个 item：桌面端左图右文（与产品中心设计稿一致） */
.product-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    min-height: 0;
    padding: 20px 24px;
    gap: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.item-imgbox {
    flex: 0 0 42%;
    max-width: 42%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s ease;
    padding: 4px 8px;
}

.item-imgbox picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.item-img,
.item-imgbox img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

.item-textbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4px 0;
    min-width: 0;
}

.item-name {
    font-size: 1.5rem;
    margin: 0 0 6px;
    color: #333;
    font-weight: 700;
}

.item-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.product-item .card-link,
.product-item .card-action-link {
    margin-top: auto;
    align-self: flex-start;
}

/* 悬停放大效果：鼠标悬停整行，图片放大，图片盒子略微放大以增强视觉效果 */
.product-item:hover .item-img {
    transform: scale(1.08);
}

.product-item:hover .item-imgbox {
    transform: scale(1.03);
}

/* ===== 面包屑导航 ===== */
.breadcrumb-nav {

    width: 100%;
    background: #f5f6f8;
    position: relative;
    z-index: 10;
    color: #000;
    /* 默认文本颜色，未选中项为黑色 */
}

.breadcrumb-inner {

    margin-top: 50px;
    width: 50%;
    max-width: 1400px;
    margin-left: 190px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #000;
    /* 未选中项为黑色 */
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover,
.breadcrumb-item:focus {
    color: #1a73e8;
    /* 移入时变为蓝色 */
    outline: none;
    text-decoration: none;
}

.breadcrumb-current {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
    white-space: nowrap;
}

.breadcrumb-separator {
    color: #999;
    user-select: none;
    line-height: 1;
    font-size: 0;
}

.breadcrumb-separator::before {
    content: '›';
    font-size: 1rem;
}

/* breadcrumb-column + SEO 引导条（不依赖 components.css 也能正确显示） */
.breadcrumb-nav .breadcrumb-column {
    box-sizing: border-box;
    max-width: none;
    width: auto;
    margin: 0 0 0 190px;
    padding: 110px 0 0;
}

.breadcrumb-nav .breadcrumb-column .breadcrumb-inner {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

.breadcrumb-nav .page-seo-bar {
    margin: 8px 0 0;
    padding: 0;
    font-family: inherit;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #8a9199;
    white-space: nowrap;
}

.breadcrumb-nav .page-seo-bar a,
.breadcrumb-nav .page-seo-bar a:link,
.breadcrumb-nav .page-seo-bar a:visited {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb-nav .page-seo-bar a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}


/* ========= 移动端适配 ========= */
@media (max-width: 1400px) {
    .breadcrumb-nav .breadcrumb-column {
        margin-left: 20px;
    }

    .breadcrumb-inner {
        margin-left: 20px;
    }





    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .all-products {
        padding: 40px 0;
    }

    .all-products .container {
        width: 94%;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .product-grid {
        gap: 16px;
    }

    .product-card {
        padding: 10px;
        border-radius: 10px;
    }

    .thumb-wrap {
        padding-top: 70%;
        border-radius: 8px;
    }

    .product-title {
        font-size: 0.95rem;
        margin: 10px 4px 4px;
    }

    .product-desc {
        font-size: 0.85rem;
        margin: 0 4px 4px;
    }

    .product-all {
        padding: 0 15px;
        padding-top: 48px;
    }

    .product-title {
        height: auto;
        font-size: 1.6rem;
        line-height: 1.3;
        padding: 10px 0;
        margin: 0 0 15px;
    }

    .product-box {
        gap: 20px;
        padding: 15px 0;
    }
}

@media (max-width: 1024px) {
    .product-all {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-nav .breadcrumb-column {
        margin: 0;
        padding: 16px 20px 0;
        width: 100%;
    }

    .breadcrumb-nav .page-seo-bar {
        white-space: normal;
        font-size: 1rem;
    }

    .product-hero {
        margin-top: -20px;
        height: 300px;

    }

    .hero-img {
        height: 300px;
    }

    .hero-content {
        height: 300px;

        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .all-products {
        padding: 40px 0;
    }

    .all-products .container {
        width: 94%;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .product-grid {
        gap: 16px;
    }

    .product-card {
        padding: 10px;
        border-radius: 10px;
    }

    .thumb-wrap {
        padding-top: 70%;
        border-radius: 8px;
    }

    .product-title {
        font-size: 0.95rem;
        margin: 10px 4px 4px;
    }

    .product-desc {
        font-size: 0.85rem;
        margin: 0 4px 4px;
    }

    .product-all {
        padding: 0 15px;
        padding-top: 60px;
    }

    .product-title {
        height: auto;
        font-size: 1.6rem;
        line-height: 1.3;
        padding: 10px 0;
        margin: 0 0 15px;
    }

    .product-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }

    .product-guides-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-guide-item {
        padding: 18px 16px;
    }

    .product-guides-cta {
        margin-top: 22px;
        margin-bottom: 24px;
    }

    .product-item {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0 24px;
        gap: 14px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #e2e5ea;
    }

    .product-box .product-item:last-child {
        border-bottom: none;
    }

    .item-imgbox {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .item-img,
    .item-imgbox img {
        max-height: none;
        width: 100%;
    }

    .item-textbox {
        padding: 0;
    }

    .item-name {
        font-size: 1.05rem;
        margin: 0 0 8px;
    }

    .item-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .all-products {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .product-grid {
        gap: 12px;
    }

    .product-card {
        padding: 8px;
        border-radius: 8px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-desc {
        font-size: 0.8rem;
    }

    .product-all {
        padding-top: 40px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-box {
        gap: 16px;
        padding: 10px 0;
    }

    .product-item {
        padding: 16px 0 20px;
        gap: 12px;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-desc {
        font-size: 0.85rem;
        line-height: 1.55;
    }
}

/* 原有的响应式样式保持不变 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 28px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .thumb-wrap {
        padding-top: 70%;
    }
}