.product-showcase {
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 24px;
}

.showcase-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* 分类导航 */
.category-nav {
    margin-bottom: 40px;
    overflow-x: auto; /* 允许横向滚动 */
    -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
}

.category-nav::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.category-nav ul {
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    gap: 24px; /* 减小间距 */
    list-style: none;
    padding: 0 16px; /* 添加两端内边距 */
    margin: 0;
    white-space: nowrap; /* 防止文字换行 */
    min-width: min-content; /* 确保内容不会被压缩 */
}

.category-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px; /* 移动端字体稍小 */
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 4px; /* 增加点击区域 */
    display: block;
}

.category-nav li.active a {
    color: #000;
    font-weight: 600;
    position: relative;
}

/* 激活状态下的下划线 */
.category-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

/* 产品网格布局 */
.showcase-product-grid {
    display: grid;
    /* 左侧大图占一列，右侧2x2网格占一列 */
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 左侧大图 */
.showcase-card.large {
    grid-row: span 2;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* 右侧容器 */
.showcase-product-grid .right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2网格 */
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

/* 右侧卡片 */
.showcase-card:not(.large) {
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.showcase-card .product-image-showcase {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.showcase-card .product-image-showcase img {
    width: 100%;
    object-fit: contain;
}

.showcase-card .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    margin: 20px;
}

.showcase-card .badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.showcase-card .badge.new {
    background: #0066FF;
    color: #fff;
}

.showcase-card .badge.sale {
    background: #FF3131;
    color: #fff;
}

/* 产品信息 */
.showcase-card .product-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.showcase-card .product-info p {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-showcase {
        padding: 0 16px;
    }

    .showcase-product-grid {
        grid-template-columns: 1fr;
    }

    .showcase-card.large {
        aspect-ratio: 1/1;
    }

    .category-nav {
        margin: 20px -16px; /* 负边距使其占满屏幕 */
    }

    .showcase-title {
        font-size: 24px;
        padding: 0 16px;
    }
}

/* 产品导航区域 */
.product-navigation {
    max-width: 1440px;
    margin: 80px auto 0;  /* 增加顶部间距，保持左右居中 */
    padding: 0 24px;
    background: #000;
    color: #fff;
    overflow: hidden;
}

/* 第一个产品导航区域特殊处理 */
.product-navigation:first-of-type {
    margin-top: 40px;  /* 第一个区域的间距可以小一些 */
}

/* 导航标题样式 */
.nav-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.product-nav-container {
    position: relative;
    margin: 0 -24px;
    background: #000;
}

.nav-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 24px;
    position: relative;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-item {
    background: none;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-item.active {
    opacity: 1;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* 产品内容区域 */
.product-content {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.product-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-info {
    position: absolute;
    bottom: 60px;
    left: 60px;
    max-width: 500px;
    color: #fff;
    z-index: 2;
}

.ai-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    margin-bottom: 16px;
}

.content-info h3 {
    font-size: 42px;
    margin-bottom: 16px;
}

.content-info p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.content-buttons {
    display: flex;
    gap: 16px;
}

.btn-learn, .btn-buy {
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-learn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-buy {
    background: #fff;
    color: #000;
}

/* 添加渐变遮罩效果 */
.product-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-navigation {
        margin: 60px auto 0;  /* 移动端调整间距 */
        padding: 0;
        border-radius: 0;
    }

    .product-navigation:first-of-type {
        margin-top: 30px;
    }

    .nav-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .product-content {
        height: 400px;
        margin: 0;
    }

    .nav-scroll {
        padding: 0 16px;
    }

    .nav-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    .content-info {
        bottom: 30px;
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .content-info h3 {
        font-size: 32px;
    }

    .content-info p {
        font-size: 16px;
    }

    .content-buttons {
        flex-direction: column;
    }

    .btn-learn, .btn-buy {
        text-align: center;
    }
}

/* 产品展示区域样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: #fff;
    padding: 20px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.product-item h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 18px;
}

.product-item img {
    height: auto;
    margin: 15px auto;
}

.product-item ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.product-item ul li {
    color: #003366;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 15px;
    }
} 