/* 弹性云服务器产品页面样式 */

/* 产品banner样式 */
.product-banner {
    background: url('../img/banner1.png') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 添加背景遮罩层，确保文字可读性 */
.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.product-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.banner-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    background: #2175f5;
    color: white;
    padding: 15px 35px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2175f5;
    font-size: 1.1rem;
}

.primary-btn:hover {
    background: transparent;
    border-color: #2175f5;
    color: #2175f5;
}

.secondary-btn {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    font-size: 1.1rem;
}

.secondary-btn:hover {
    background: white;
    color: #333;
}

.banner-image {
    flex: 0 0 400px;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 产品特性样式 */
.product-features {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 价格方案样式 */
.pricing-section {
    padding: 80px 0;
}

.pricing-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #667eea;
    color: white;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

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

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: #667eea;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.pricing-specs {
    margin-bottom: 2rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.spec i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
}

.spec span {
    color: #666;
    font-weight: 500;
}

.buy-btn {
    display: block;
    text-align: center;
    background: #f8f9fa;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.buy-btn:hover {
    background: #667eea;
    color: white;
}

.buy-btn.primary {
    background: #667eea;
    color: white;
}

.buy-btn.primary:hover {
    background: #5a6fd8;
}

/* 应用场景样式 */
.use-cases {
    padding: 80px 0;
    background: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.case-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.case-icon i {
    font-size: 1.8rem;
    color: white;
}

.case-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.case-card p {
    color: #666;
    line-height: 1.6;
}

/* 技术优势样式 */
.tech-advantages {
    padding: 80px 0;
}

.advantages-content {
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.advantage-item.reverse {
    flex-direction: row-reverse;
}

.advantage-text {
    flex: 1;
}

.advantage-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.advantage-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.advantage-image {
    flex: 0 0 300px;
}

.advantage-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 常见问题样式 */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .banner-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin-top: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .advantage-item {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .advantage-item.reverse {
        flex-direction: column;
    }
    
    .advantage-image {
        flex: none;
        width: 100%;
        max-width: 300px;
    }
    
    .tab-buttons {
        flex-direction: column;
        max-width: 300px;
    }
    
    .tab-button {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .product-banner {
        padding: 60px 0;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-btn, .secondary-btn {
        width: 200px;
        text-align: center;
    }
}