/* 
 * Homepage CSS for Cloud Computing Theme
 * 666Cloud云服务 - 首页样式
 */

/* 英雄区域 - 左侧文字 */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    background: url('../tu/bj3.jpg') no-repeat center center;
    background-size: cover;
    margin-bottom: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content.left-aligned {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 40px;
    text-align: left;
    margin: 0;
    margin-left: 5%;
}

/* 透明背景的英雄内容 */
.hero-content.transparent {
    background: transparent;
    box-shadow: none;
    border: none;
}

.hero-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

/* 折扣区域 */
.discount-section {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.discount-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.discount-info p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.discount-note {
    text-align: right;
    font-size: 14px;
    color: #777;
}

/* 促销活动区域 */
.promotions-section {
    padding: 40px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.promotions-list {
    max-width: 900px;
    margin: 0 auto;
}

.promotion-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.promotion-item h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* 公有云轮播区域 */
.public-cloud-section {
    padding: 40px 0;
    background-color: #f8f9fa; /* 这个颜色将用于模糊边缘 */
}

.cloud-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px; /* 恢复或调整内边距，例如10px，如果不需要之前的20px */
}

.cloud-carousel {
    display: flex;
    justify-content: center; 
    flex-wrap: nowrap; 
    padding: 0; /* 移除此处的特定左右内边距 */
    margin: 0;  /* 移除此处的特定左右外边距 */
}

.cloud-item {
    flex: 0 0 calc(20% - 20px); /* 调整为每行5张 (100% / 5 = 20%) */
    margin: 0 10px;
    box-sizing: border-box;
    /* height: 160px; */ /* 固定高度，或移除让内容决定 */
}

.cloud-item img {
    width: 100%;
    height: 160px; /* 或者设为 auto，如果上面 .cloud-item 没有固定高度 */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block; /* 确保图片是块级元素 */
}

.cloud-item img:hover {
    transform: scale(1.05);
}

/* 增大箭头图标 - 虽然JS隐藏了它们，但按要求修改 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* 增大 */
    height: 50px; /* 增大 */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 10; /* 确保在模糊效果之上 */
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-prev {
    left: 15px; /* 调整位置 */
}

.carousel-next {
    right: 15px; /* 调整位置 */
}

.carousel-arrow i {
    font-size: 24px; 
    color: #333;
}

/* FastCloud服务区域 */
.fastcloud-services {
    padding: 60px 0;
    background-color: #fff;
}

.service-row {
    display: flex;
    margin-bottom: 60px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-col {
    display: flex;
    width: 100%;
}

.service-image {
    flex: 0 0 50%;
    padding: 20px;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-content {
    flex: 0 0 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.service-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 1200px) { 
    .cloud-item {
        flex: 0 0 calc(25% - 20px); 
    }
    .cloud-carousel {
        flex-wrap: wrap; 
        justify-content: center;
        padding: 0; 
        margin: 0;
    }
}

@media (max-width: 992px) {
    .cloud-item {
        flex: 0 0 calc(33.33% - 20px);
    }
    
    /* 客户成功案例响应式 */
    .case-item p {
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .hero-content.left-aligned {
        margin-left: 0;
        padding: 20px;
        max-width: 100%;
    }
    
    .hero-text h2 {
        font-size: 24px;
    }
    
    .cloud-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .cloud-carousel-container {
        padding: 0;
    }
    
    .discount-content {
        flex-direction: column;
        text-align: center;
    }
    
    .discount-note {
        text-align: center;
        margin-top: 15px;
    }
    
    .service-row, 
    .service-row.reverse {
        flex-direction: column;
    }
    
    .service-col {
        flex-direction: column;
    }
    
    .service-image, 
    .service-content {
        flex: 0 0 100%;
        padding: 15px;
    }
    
    /* 客户成功案例响应式 */
    .case-row {
        flex-direction: column;
    }
    
    .case-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .case-item:last-child {
        margin-bottom: 0;
    }
    
    .case-item p {
        min-height: auto;
    }
}

/* 客户成功案例区域 */
.customer-success-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.case-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.case-row:last-child {
    margin-bottom: 0;
}

.case-item {
    flex: 0 0 calc(25% - 15px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-image {
    margin-bottom: 15px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    padding: 25px;
    border-radius: 8px 8px 0 0;
}

.case-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    height: 56px;
}

.case-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
    height: 165px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: background-color 0.3s ease;
    border: 1px solid #717171;
}

.tag:hover {
    background-color: #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .cloud-item {
        flex: 0 0 calc(25% - 20px); 
    }
    .cloud-carousel {
        flex-wrap: wrap; 
        justify-content: center;
        padding: 0; 
        margin: 0;
    }
    
    /* 客户成功案例响应式 */
    .case-item {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .cloud-item {
        flex: 0 0 calc(33.33% - 20px);
    }
    
    /* 客户成功案例响应式 */
    .case-item {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 20px;
    }
    
    .case-row {
        flex-wrap: wrap;
    }
    
    .case-item p {
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-content.left-aligned {
        margin-left: 0;
        padding: 20px;
        max-width: 100%;
    }
    
    .hero-text h2 {
        font-size: 24px;
    }
    
    .cloud-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .cloud-carousel-container {
        padding: 0;
    }
    
    .discount-content {
        flex-direction: column;
        text-align: center;
    }
    
    .discount-note {
        text-align: center;
        margin-top: 15px;
    }
    
    .service-row, 
    .service-row.reverse {
        flex-direction: column;
    }
    
    .service-col {
        flex-direction: column;
    }
    
    .service-image, 
    .service-content {
        flex: 0 0 100%;
        padding: 15px;
    }
    
    /* 客户成功案例响应式 */
    .case-row {
        flex-direction: column;
    }
    
    .case-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .case-item:last-child {
        margin-bottom: 0;
    }
    
    .case-item p {
        min-height: auto;
    }
} 