/* 首页特定样式 */

/* 轮播图 */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    /* Crossfade: remove slide motion, fade only */
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    /* Avoid capturing events when hidden and hint GPU */
    pointer-events: none;
    will-change: opacity;
}

.carousel-slide.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.carousel-slide.prev {
    transform: none;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 不同幻灯片的背景 */
.slide-bg-1 {
    /* 统一与其它幻灯片：底色 #447AB0，顶部加半透明遮罩，保证文案可读性 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #447AB0;
}

.slide-bg-2 {
    /* 维持图片原始比例，空白区域使用统一背景色 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/cooperate.png');
    background-size: auto, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-color: #447AB0;
}

.slide-bg-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/security.png');
    background-size: auto, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-color: #447AB0;
}

.slide-bg-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/application.png');
    background-size: auto, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-color: #447AB0;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.banner-content .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.banner-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* 箭头图标 */
.arrow-left,
.arrow-right {
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow-left {
    border-left: none;
    border-right: 8px solid var(--white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: -2px;
}

.arrow-right {
    border-right: none;
    border-left: 8px solid var(--white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-right: -2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        height: 500px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .arrow-left {
        border-right-width: 6px;
        border-top-width: 5px;
        border-bottom-width: 5px;
    }
    
    .arrow-right {
        border-left-width: 6px;
        border-top-width: 5px;
        border-bottom-width: 5px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
}

/* 表单区域 */
.form-section {
    background-color: var(--light-bg);
    padding: 50px 0;
}

.form-section .form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 客户痛点 */
.pain-points {
    padding: 80px 0;
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pain-point-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pain-point-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pain-point-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.pain-point-item p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.pain-point-item p:last-child {
    margin-bottom: 0;
}

/* 客户痛点图标 */
.pain-point-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.pain-point-icon.security {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.2));
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.pain-point-icon.cost {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 165, 0, 0.3);
}

.pain-point-icon.deployment {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.2));
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.pain-point-item:hover .pain-point-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pain-point-item:hover .pain-point-icon.security {
    border-color: #FF6B6B;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.3));
}

.pain-point-item:hover .pain-point-icon.cost {
    border-color: #FFA500;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.3));
}

.pain-point-item:hover .pain-point-icon.deployment {
    border-color: #4A90E2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(74, 144, 226, 0.3));
}

/* 核心产品 */
.core-products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.product-description {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: left;
}

.product-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.product-features {
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text);
}

.product-architecture {
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
}

.architecture-image {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 产品优势 */
.advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.advantage-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.advantage-item p {
    color: var(--light-text);
}

/* 应用场景 */
.solutions {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.solution-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--light-text);
    border-bottom: 3px solid transparent;
    margin: 0 3px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.solution-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.solution-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 30px;
}

.solution-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature p {
    font-size: 14px;
    margin-bottom: 0;
}

/* 产品咨询表单 */
.consultation-form {
    padding: 80px 0;
}

.consultation-form .form-group {
    margin-bottom: 20px;
}

.consultation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.consultation-form .required {
    color: #ff4d4f;
    font-weight: bold;
    margin-left: 2px;
}

/* 专业产品选择样式 */
.product-selection-professional {
    margin-top: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.product-item {
    position: relative;
}

.product-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.product-label {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    gap: 12px;
}

.product-label:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.product-input:checked + .product-label {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #64748b;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-input:checked + .product-label .product-icon {
    background-color: #3b82f6;
    color: white;
}

.product-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.product-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.3;
}

.product-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e5e7eb;
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-input:checked + .product-label .product-check {
    background-color: #3b82f6;
    opacity: 1;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.consultation-form .form-container {
    max-width: 800px;
    margin: 0 auto;
}

.consultation-form p {
    text-align: left;
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--light-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.form-group button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

/* 联系我们 */
.contact-info {
    padding: 80px 0;
}

.info-box {
    background-color: #e8f4ff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.info-box .highlight {
    font-size: 18px;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--light-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 40px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .pain-points-grid,
    .advantages-grid,
    .solution-features,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consultation-form .form-container {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 80px 0;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .product-intro {
        font-size: 16px;
    }
    
    .product-features {
        font-size: 14px;
    }
    
        .pain-points-grid,
    .advantages-grid,
    .solution-features,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pain-point-item,
    .advantage-item,
    .feature,
    .contact-item {
        padding: 20px;
    }
    
    .consultation-form .form-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .tab-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        margin: 5px 0;
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .banner {
        padding: 60px 0;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .pain-points,
    .core-products,
    .advantages,
    .application-scenarios,
    .consultation-form,
    .contact-info {
        padding: 50px 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group button {
        padding: 10px;
        font-size: 14px;
    }
} 