/* 动态波浪背景 */
.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    overflow: hidden;
}

.wave-bg::before,
.wave-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.1);
    animation: wave 8s linear infinite;
}

.wave-bg::after {
    animation-delay: -4s;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 产品页面英雄区 */
.products-hero {
    position: relative;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    overflow: hidden;
}

.products-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.products-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

/* 分类导航 */
.category-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    list-style: none;
}

.category-menu a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-menu a:hover,
.category-menu a.active {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* 类别标题样式 */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-blue), white);
    border-radius: 10px;
}

.category-description {
    max-width: 600px;
    margin: 1rem auto;
    color: #666;
}

/* 产品卡片基础样式更新 */
.product-card {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-preview {
    padding: 1.5rem;
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--light-blue);
    padding: 0 1.5rem;
}

.product-card.expanded .product-details {
    max-height: 1000px;
    padding: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.details-toggle {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.details-toggle:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.close-details {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.close-details:hover {
    background: var(--primary-blue);
    color: white;
}

.product-details-list {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.product-description h4 {
    color: var(--primary-blue);
    margin: 1.5rem 0 0.5rem;
}

.product-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 展开时的卡片样式 */
.product-card.expanded {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

/* 动画效果 */
@keyframes slideDown {
    from { max-height: 0; }
    to { max-height: 1000px; }
}

@keyframes slideUp {
    from { max-height: 1000px; }
    to { max-height: 0; }
}

/* 产品详情模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 10px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 产品分类标记 */
.category {
    position: relative;
    padding: 4rem 0;
}

.category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, var(--light-blue) 0%, transparent 100%);
    opacity: 0.3;
    z-index: -1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 添加媒体查询以支持更紧凑的布局 */
@media screen and (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 1399px) and (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
} 