/* ====================
   产品矩阵页面样式 - 昱环智慧科技官网
   ==================== */

/* 页面头部 */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: var(--white);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="10" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}

.header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* 产品概览 */
.products-overview {
    padding: 80px 0;
    background: var(--background-light);
}

.overview-content {
    text-align: center;
    margin-bottom: 60px;
}

.overview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-family: 'Noto Serif SC', serif;
    color: var(--text-primary);
}

.overview-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.product-card[data-product="feixiao"]::before {
    background: var(--gradient-secondary);
}

.product-card[data-product="tanxiao"]::before {
    background: var(--gradient-tertiary);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-blue);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}

.product-subtitle {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-weight: 500;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    background: var(--background-light);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Noto Serif SC', serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 产品详情展示 */
.product-details {
    background: var(--white);
}

.product-detail-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-section.alternate {
    background: var(--background-light);
}

.detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.detail-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}

.detail-subtitle {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 500;
}

.detail-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.detail-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.product-detail-section.alternate .feature-item {
    background: var(--white);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
    stroke-width: 2;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 产品对比表格 */
.product-comparison {
    padding: 80px 0;
    background: var(--background-light);
}

.product-comparison h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}

.comparison-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--gradient-primary);
    color: var(--white);
}

.header-cell {
    padding: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 1.05rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:nth-child(even) {
    background: var(--background-light);
}

.cell {
    padding: 16px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.cell:not(.feature-name) {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 成功案例 */
.success-cases {
    padding: 80px 0;
    background: var(--white);
}

.success-cases h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.case-card {
    background: var(--background-light);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.case-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.case-product {
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.case-metrics {
    display: flex;
    gap: 32px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Noto Serif SC', serif;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 联系咨询 */
.contact-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-family: 'Noto Serif SC', serif;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式扩展 */
.btn.btn-secondary {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
}

.btn.btn-secondary:hover {
    background: #3e6b1e;
    border-color: #3e6b1e;
}

.btn.btn-tertiary {
    background: var(--tertiary-brown);
    border-color: var(--tertiary-brown);
}

.btn.btn-tertiary:hover {
    background: #7a3f11;
    border-color: #7a3f11;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .detail-header {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .products-overview {
        padding: 60px 0;
    }
    
    .overview-content h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-card {
        padding: 24px;
    }
    
    .product-detail-section {
        padding: 60px 0;
    }
    
    .detail-header {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .header-cell,
    .cell {
        padding: 12px 8px;
    }
    
    .success-cases {
        padding: 60px 0;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .case-metrics {
        gap: 20px;
        justify-content: center;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-info h3 {
        font-size: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .header-cell,
    .cell {
        padding: 10px 6px;
    }
    
    .case-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* 产品卡片特殊样式 */
.product-card[data-product="feixiao"]:hover {
    border-color: var(--secondary-green);
}

.product-card[data-product="feixiao"] .product-subtitle {
    color: var(--secondary-green);
}

.product-card[data-product="feixiao"] .stat-number {
    color: var(--secondary-green);
}

.product-card[data-product="tanxiao"]:hover {
    border-color: var(--tertiary-brown);
}

.product-card[data-product="tanxiao"] .product-subtitle {
    color: var(--tertiary-brown);
}

.product-card[data-product="tanxiao"] .stat-number {
    color: var(--tertiary-brown);
}

/* 加载动画 */
.products-grid.loading .product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.products-grid.loading .product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.products-grid.loading .product-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 