/* 产品页面专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header h1 i {
    margin-right: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* 产品分类导航 */
.product-nav {
    background: var(--bg-white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.product-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.category-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.search-box input {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* 产品分类区域 */
.products-section {
    padding: 3rem 0;
}

.product-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.category-title i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.category-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: auto;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F5E8 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.eco {
    background: #27ae60;
    color: white;
}

.product-badge.new {
    background: #e74c3c;
    color: white;
}

.product-badge.hot {
    background: #f39c12;
    color: white;
}

.product-badge.premium {
    background: #9b59b6;
    color: white;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-summary {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.product-specs {
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    color: var(--text-dark);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

/* 技术支持区域 */
.tech-support {
    background: var(--bg-light);
    padding: 4rem 0;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.support-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.support-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.support-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.support-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--text-dark);
}

/* 产品详情样式 */
.product-detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.product-detail-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-detail-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.product-detail-content {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.detail-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.application-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.application-list li {
    background: var(--bg-light);
    padding: 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.application-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

.usage-steps {
    counter-reset: step-counter;
}

.usage-step {
    counter-increment: step-counter;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 4rem;
}

.usage-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.usage-step h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.usage-step p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .product-nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-subtitle {
        margin-left: 0;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .support-features {
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .product-detail-header {
        padding: 2rem 1rem 1rem;
    }
    
    .product-detail-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .category-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-actions .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 隐藏/显示产品分类 */
.product-category.hidden {
    display: none;
}

.product-card.hidden {
    display: none;
}

/* 搜索高亮 */
.search-highlight {
    background-color: yellow;
    font-weight: bold;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
