/* 产品页面统一样式 */

/* 产品Banner样式 */
.product-banner {
    color: white;
    padding: 120px 0 80px; /* 恢复原来的padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.95;
    z-index: 1;
}

.product-banner .wrap {
    position: relative;
    z-index: 2;
}

.product-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
}

.product-banner p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 产品概述区域 */
.product-overview {
    padding: 120px 0 80px; /* 增加顶部padding避免被banner遮挡 */
    background: #f8f9fa;
}

/* 价值主张区域 */
.value-proposition {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2491F7, #4facfe);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.value-item:hover::before {
    transform: scaleY(1);
}

.value-item:hover {
    background: rgba(36,145,247,0.05);
    transform: translateX(10px);
}

.value-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    filter: grayscale(0%);
    transform: scale(1.1) rotate(5deg);
}

.value-content h5 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.value-item:hover .value-content h5 {
    color: #2491F7;
}

.value-content p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

/* 特性网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* 特性卡片样式 */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: all 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 特性图标 */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2491F7, #4facfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

/* 特性标题 */
.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #2491F7;
}

/* 特性描述 */
.feature-desc {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* 产品规格区域 */
.product-specs {
    padding: 80px 0;
    background: white;
}

/* 规格网格布局 */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* 规格项目样式 */
.spec-item {
    padding: 35px 30px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.spec-item:hover {
    border-color: #2491F7;
    box-shadow: 0 8px 25px rgba(36,145,247,0.15);
    background: white;
    transform: translateY(-5px);
}

.spec-item h4 {
    color: #2491F7;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.spec-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #2491F7;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.spec-item:hover h4::after {
    width: 60px;
}

/* 规格列表样式 */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 10px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.spec-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.spec-item:hover .spec-list li {
    color: #333;
}

/* 成功案例区域 */
.success-case {
    padding: 100px 0 80px; /* 增加顶部padding */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.case-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.case-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #2491F7, #4facfe, #00c6ff, #6ddead);
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.case-challenge,
.case-solution {
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.case-challenge {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    border: 2px solid #ffcdd2;
}

.case-solution {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid #c8e6c9;
}

.case-challenge:hover,
.case-solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.case-challenge h5,
.case-solution h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.case-challenge ul,
.case-solution ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-challenge li,
.case-solution li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.case-challenge li:before {
    content: "❌";
    position: absolute;
    left: 0;
    font-size: 14px;
}

.case-solution li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 14px;
}

.case-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(135deg, #2491F7 0%, #4facfe 100%);
    border-radius: 16px;
    padding: 40px 30px;
    color: white;
    text-align: center;
}

.result-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.result-item:nth-child(1) { animation-delay: 0.2s; }
.result-item:nth-child(2) { animation-delay: 0.4s; }
.result-item:nth-child(3) { animation-delay: 0.6s; }

.result-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.result-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* CTA区域样式 */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-section .wrap {
    position: relative;
    z-index: 2;
}

/* Banner统计数据样式 */
.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0 40px;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.9s; }

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Banner操作按钮区域 */
.banner-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* CTA按钮样式 */
.cta-btn {
    background: white;
    color: #667eea;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: white;
    color: #2491F7;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-banner {
        padding: 100px 0 60px;
        padding-top: 160px; /* 移动端也需要避开固定header */
    }

    .product-banner h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .product-banner p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .banner-stats {
        flex-direction: column;
        gap: 30px;
        margin: 40px 0 30px;
    }

    .stat-number {
        font-size: 40px;
    }

    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .product-overview {
        padding: 100px 0 60px; /* 移动端也需要增加顶部padding */
    }

    .product-specs,
    .cta-section {
        padding: 60px 0;
    }

    .feature-grid,
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 25px;
    }

    .feature-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .feature-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .spec-item {
        padding: 25px 20px;
    }

    .cta-btn {
        padding: 14px 35px;
        font-size: 15px;
        margin: 5px;
        width: 200px;
        text-align: center;
    }

    .value-proposition {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
        margin: 40px 0 50px;
    }

    .value-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .value-icon {
        font-size: 40px;
    }

    .success-case {
        padding: 80px 0 60px; /* 移动端调整成功案例区域间距 */
    }

    .case-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .case-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .case-results {
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
        padding: 30px 20px;
    }

    .result-number {
        font-size: 28px;
    }

    .result-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 20px;
    }

    .product-banner {
        padding-top: 140px; /* 小屏幕进一步调整 */
    }

    .product-banner h1 {
        font-size: 28px;
    }

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

    .feature-grid,
    .specs-grid {
        gap: 15px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .feature-title {
        font-size: 20px;
    }
}

/* 特定产品的渐变色变量 */
.cmdb-theme {
    background: linear-gradient(135deg, #2491F7 0%, #4facfe 100%);
}

.cmdb-theme .feature-icon {
    background: linear-gradient(135deg, #2491F7, #4facfe);
}

.itsm-theme {
    background: linear-gradient(135deg, #2491F7 0%, #00c6ff 100%);
}

.itsm-theme .feature-icon {
    background: linear-gradient(135deg, #2491F7, #00c6ff);
}

.monitoring-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.monitoring-theme .feature-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.visualization-theme {
    background: linear-gradient(135deg, #6bb3bd 0%, #07c5e2 100%);
}

.visualization-theme .feature-icon {
    background: linear-gradient(135deg, #6bb3bd, #07c5e2);
}

/* 加载动画 */
.feature-card,
.spec-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.spec-item:nth-child(1) { animation-delay: 0.1s; }
.spec-item:nth-child(2) { animation-delay: 0.2s; }
.spec-item:nth-child(3) { animation-delay: 0.3s; }
.spec-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}