@charset "utf-8";

/* 机组系列专用样式 */
body {
    background: #f5f5f5;
    padding-top: 64px;
}

/* 机组系列页面专用导航栏样式 - 纯黑背景 */
.navbar {
    background: #000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 覆盖透明和滚动状态样式 */
.navbar--transparent,
.navbar--scrolled {
    background: #000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #FF6B35;
}

.breadcrumb-separator {
    color: #999;
}

/* 产品系列区块 */
.product-series {
    margin-bottom: 80px;
}

/* 系列标题 */
.series-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.series-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #FF8C42);
    border-radius: 2px;
}

/* 系列横幅 */
.series-banner {
    position: relative;
    width: calc(100% - 80px);
    /* 16:8（等同于 2:1）折中横幅比例 */
    aspect-ratio: 2 / 1;
    overflow: hidden;
    margin: 0 auto 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 1400px;
}

.series-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    border-radius: inherit;
}

/* 横幅标题 */
.banner-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    z-index: 2;
    max-width: 600px;
}

.banner-title h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-title p {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 产品网格容器 */
.products-container {
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #FF6B35;
    color: #fff;
}

/* 搜索表单 */
.navbar__search-form {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 186px;
    height: 28px;
    padding: 3px 12px 3px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.navbar__search-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.navbar__search-icon:hover {
    background: rgba(255, 107, 53, 0.35);
    transform: scale(1.04);
}

.navbar__search-icon:active {
    transform: scale(0.96);
}

.navbar__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 12px;
}

.navbar__search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar__search-icon .navbar__search {
    width: 12px;
    height: 12px;
    padding: 0;
    opacity: 1;
}

/* 搜索结果页 */
.search-page {
    padding: 56px 0 80px;
}

.search-page__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.search-page__title {
    margin-bottom: 28px;
    color: #333;
    font-size: 34px;
    line-height: 1.25;
    text-align: center;
}

.search-page__form {
    max-width: 640px;
    height: 46px;
    margin: 0 auto 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 18px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.search-page__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-page__icon .navbar__search {
    width: 16px;
    height: 16px;
    padding: 0;
    stroke: currentColor;
    opacity: 1;
}

.search-page__input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: #333;
    background: transparent;
    font-size: 15px;
}

.search-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.search-result-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.search-result-card__desc {
    min-height: 44px;
    margin: -4px 0 14px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.search-page__empty {
    display: none;
    padding: 42px 20px;
    color: #777;
    text-align: center;
    background: #fff;
    border-radius: 12px;
}

.search-page__empty.is-visible { display: block; }
.search-page__empty h2 { margin: 0 0 10px; color: #222; font-size: 28px; }
.search-page__empty p { max-width: 620px; margin: 0 auto 22px; line-height: 1.7; }
.search-page__popular { margin-top: 54px; }
.search-page__popular[hidden] { display: none; }
.search-page__popular > h2 { margin: 0 0 24px; color: #1d1d1f; text-align: center; font-size: 30px; }

.search-page__grid:empty + .search-page__empty {
    display: block;
}

.search-page__pagination {
    margin-top: 42px;
    text-align: center;
    color: #fff;
    transform: scale(1.05);
}

/* 查看更多按钮 */
.load-more {
    text-align: center;
    margin: 60px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    background: #333;
    color: #fff;
}

.load-more-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: rotate(180deg);
}

/* 产品卡片动画效果 */
.more-products {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.more-products.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 按钮状态切换 */
.load-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.load-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.load-more-btn.expanded:hover .btn-icon {
    transform: rotate(180deg) scale(1.1);
}

/* 收回按钮样式 */
.load-more-btn.expanded .btn-text {
    opacity: 0.7;
}

/* 响应式设计 */
@media (min-width: 1600px) {
    .product-image {
        padding-bottom: 70%;
    }

}

@media (min-width: 1440px) and (max-width: 1599px) {
    .product-image {
        padding-bottom: 72%;
    }

}

@media (min-width: 1200px) and (max-width: 1439px) {
    .products-grid {
        gap: 25px;
    }

    .product-image {
        padding-bottom: 78%;
    }

    .product-image-inner {
        padding: 15px;
    }

    .series-banner {
        margin-bottom: 50px;
    }

    .banner-title h3 {
        font-size: 28px;
    }
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .banner-title {
        left: 20px;
        bottom: 20px;
    }

    .banner-title h3 {
        font-size: 26px;
    }

    .banner-title p {
        font-size: 16px;
    }

    .product-image {
        padding-bottom: 85%;
    }
}

@media (max-width: 600px) {
    .products-container {
        width: calc(100% - 40px);
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .series-title {
        font-size: 28px;
        margin: 40px 0 30px;
    }

    .series-banner {
        width: calc(100% - 40px);
        border-radius: 12px;
        margin-bottom: 40px;
    }

    .banner-title {
        left: 15px;
        bottom: 15px;
    }

    .banner-title h3 {
        font-size: 22px;
    }

    .banner-title p {
        font-size: 14px;
    }

    .product-image {
        padding-bottom: 85%;
    }

    .product-image-inner {
        padding: 10px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .navbar__search-form {
        display: none;
    }
}
