/* 产品页面专用样式 */

/* 页面头部 */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* 产品轮播图区域 - 真正的全屏宽度 */
.products-carousel-section {
    padding: 0;
    background-color: white;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: 80px;
    margin-left: -50vw;
    margin-right: -50vw;
}

.category-carousel {
    display: none;
    width: 100vw;
    max-width: 100vw;
}

.category-carousel.active {
    display: block;
}

.products-carousel-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 520px;
    overflow: hidden;
}

.products-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 轮播图导航按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-nav i {
    transition: transform 0.3s ease;
}

.carousel-nav:hover i {
    transform: scale(1.2);
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 主要类别标签 - 移动到轮播图下方 */
.products-main {
    padding: 60px 0;
    background-color: var(--gray-light);
    min-height: 800px;
}

.main-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.main-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background-color: white;
    border: 2px solid var(--gray-medium);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.main-category i {
    font-size: 20px;
    color: var(--primary-color);
}

.main-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.main-category.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
}

.main-category.active i {
    color: white;
}

/* 产品容器布局 */
.products-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧分类导航 */
.category-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-content {
    background-color: var(--gray-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.subcategory-section {
    margin-bottom: 30px;
    display: none;
}

.subcategory-section.active {
    display: block;
}

.subcategory-section:last-child {
    margin-bottom: 0;
}

.subcategory-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-medium);
    font-weight: 600;
}

.subcategory-list {
    list-style: none;
    padding: 0;
}

.subcategory-list li {
    margin-bottom: 10px;
}

.subcategory-link {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.subcategory-link:hover {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.subcategory-link.active {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 89, 0.1));
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* 右侧产品内容 */
.products-content {
    min-height: 600px;
}

.products-category {
    display: none;
}

.products-category.active {
    display: block;
}

.category-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.category-header h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.category-header p {
    color: var(--gray-dark);
    font-size: 16px;
}

/* 产品网格 */
.products-grid {
    margin-top: 20px;
}

.product-group {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-group.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* 产品卡片 */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-medium);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    height: 250px;
    padding-bottom: 0;
    /*height: 200px;*/
    overflow: hidden;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.5;
}

/* 移动端菜单按钮 */
.mobile-category-toggle {
    display: none;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-category-toggle i {
    transition: transform 0.3s ease;
}

.mobile-category-toggle.active i {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .products-carousel-wrapper {
        height: 450px;
    }

    .carousel-caption {
        padding: 30px;
    }

    .carousel-caption h3 {
        font-size: 32px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .products-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
        padding: 30px;
        max-width: 1000px;
    }

    .product-image{
        height: 230px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .products-carousel-wrapper {
        height: 400px;
    }

    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .carousel-caption h3 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 15px;
    }

    .products-main {
        padding: 40px 0;
    }

    .main-categories {
        gap: 15px;
        padding: 0 15px;
    }

    .main-category {
        min-width: 180px;
        padding: 15px 25px;
        font-size: 15px;
    }

    .products-container {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 0;
        margin: 0 15px;
        max-width: 100%;
    }

    .category-sidebar {
        position: static;
        margin-bottom: 30px;
        display: none;
    }

    .category-sidebar.active {
        display: block;
    }

    .mobile-category-toggle {
        display: flex;
    }

    .subcategory-list {
        max-height: 300px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
        padding: 0 20px;
    }

    .products-carousel-wrapper {
        height: 350px;
    }

    .carousel-caption {
        padding: 25px 20px;
    }

    .carousel-caption h3 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .main-category {
        min-width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .category-header h2 {
        font-size: 24px;
    }

    .category-header p {
        font-size: 15px;
    }

    .products-container {
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        margin: 0 10px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 220px;
        padding-bottom: 0;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 30px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .products-carousel-wrapper {
        height: 300px;
    }

    .carousel-caption {
        padding: 20px 15px;
    }

    .carousel-caption h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .carousel-caption p {
        font-size: 13px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .products-main {
        padding: 30px 0;
    }

    .main-categories {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .category-header h2 {
        font-size: 20px;
    }

    .products-container {
        padding: 15px;
        margin: 0 5px;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .product-image {
        height: 200px;
        padding-bottom: 0;
    }

    .subcategory-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* GF 1.0特有的样式 */

/* 只有一个容量时的样式调整 */
.capacity-range:has(.capacity:only-child) {
    margin-bottom: 40px;
}

.capacity-range:has(.capacity:only-child) .capacity {
    padding: 20px 50px;
    font-size: 36px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
}

/* 技术规格网格 */
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.tech-spec-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.tech-spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 152, 0, 0.15);
    border-color: #FF9800;
}

.tech-spec-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tech-spec-icon i {
    font-size: 30px;
    color: white;
}

.tech-spec-content h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.tech-spec-content p {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.5;
    margin: 0;
}

/* 应用场景部分 */
.use-cases {
    margin-top: 60px;
    text-align: center;
}

.use-cases-title {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.use-cases-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF9800, #FF5722);
    border-radius: 2px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.use-case-item {
    padding: 25px;
    background-color: rgba(255, 152, 0, 0.05);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.use-case-item:hover {
    border-color: #FF9800;
    transform: translateY(-5px);
    background-color: white;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.1);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.use-case-icon i {
    font-size: 26px;
    color: white;
}

.use-case-item h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.use-case-item p {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.5;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .capacity-range:has(.capacity:only-child) .capacity {
        font-size: 28px;
        padding: 15px 30px;
    }

    .tech-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .capacity-range:has(.capacity:only-child) .capacity {
        font-size: 24px;
        padding: 12px 25px;
    }

    .tech-specs-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .tech-spec-card,
    .use-case-item {
        padding: 20px;
    }

    .use-cases-title {
        font-size: 24px;
    }
}