/* 产品页面专用样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 产品导航标签 */
.product-nav {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* 产品详情区域 */
.product-detail {
    display: none;
    padding: 80px 0;
}

.product-detail.active {
    display: block;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.product-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-tag i {
    font-size: 1rem;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent-color);
    border-radius: 20px;
    min-height: 400px;
}

.image-placeholder {
    color: var(--primary-color);
    opacity: 0.3;
    text-align: center;
}

/* 产品规格 */
.product-specs {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 3rem;
}

.product-specs h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.spec-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 15px;
}

.spec-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.spec-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* 矫正流程 */
.treatment-process {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.treatment-process h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 产品类型 */
.product-types,
.cleaning-products,
.whitening-products,
.toothpowder-types {
    margin-top: 4rem;
}

.product-types h3,
.cleaning-products h3,
.whitening-products h3,
.toothpowder-types h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.types-grid,
.cleaning-grid,
.whitening-grid,
.powder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.type-card,
.cleaning-item,
.whitening-item,
.powder-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.type-card h4,
.cleaning-item h4,
.whitening-item h4,
.powder-item h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.type-card p,
.cleaning-item p,
.whitening-item p,
.powder-item p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.type-card ul,
.cleaning-item ul {
    list-style: none;
    padding: 0;
}

.type-card ul li,
.cleaning-item ul li {
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.type-card ul li:before,
.cleaning-item ul li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 清洁产品图标 */
.item-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* 美白产品规格 */
.product-specs-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-specs-mini span {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 牙粉成分 */
.ingredients {
    margin-top: 1rem;
}

.ingredients span {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.ingredients ul {
    list-style: none;
    padding: 0;
}

.ingredients ul li {
    color: var(--text-light);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.ingredients ul li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 活动状态导航链接 */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .product-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .product-info h2 {
        font-size: 2rem;
    }
    
    .product-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .product-specs,
    .treatment-process {
        padding: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .types-grid,
    .cleaning-grid,
    .whitening-grid,
    .powder-grid {
        grid-template-columns: 1fr;
    }
    
    .type-card,
    .cleaning-item,
    .whitening-item,
    .powder-item {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 40px 0;
    }
    
    .product-specs,
    .treatment-process {
        padding: 1.5rem;
    }
    
    .product-specs h3,
    .treatment-process h3,
    .product-types h3,
    .cleaning-products h3,
    .whitening-products h3,
    .toothpowder-types h3 {
        font-size: 1.5rem;
    }
    
    .type-card,
    .cleaning-item,
    .whitening-item,
    .powder-item {
        padding: 1.5rem;
    }
}

/* 动画效果 */
.product-detail {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬浮效果 */
.type-card:hover,
.cleaning-item:hover,
.whitening-item:hover,
.powder-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-color);
    transition: all 0.3s ease;
}
