/* ============================================
   ECS Style - Cloud Server (云服务器ECS) Page
   ============================================ */

/* --- 1. ECS Banner --- */
.ecs-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 50%, #ffffff 100%);
    padding: 70px 0;
}

.ecs-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ecs-banner-content {
    max-width: 550px;
    text-align: left;
}

.ecs-banner-title {
    font-size: 38px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.ecs-banner-subtitle {
    font-size: 16px;
    color: #595959;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ecs-banner-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1a3c8f;
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ecs-banner-btn:hover {
    background: #152f73;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.ecs-banner-right {
    flex: 1;
    text-align: right;
}

/* --- 2. ECS Products --- */
.ecs-products {
    padding: 60px 0;
    background: #fff;
}

.ecs-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.ecs-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1a7fd4, #4facfe);
}

.ecs-product-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.ecs-product-card {
    width: calc(25% - 15px);
    min-width: 260px;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.ecs-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 127, 212, 0.12);
}

.ecs-product-header {
    padding: 24px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ecs-product-info {
    flex: 1;
}

.ecs-product-name,
.ecs-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.ecs-product-subtitle {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.ecs-product-badge,
.ecs-product-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.badge-blue, .ecs-icon-blue {
    background: linear-gradient(135deg, #1a7fd4, #4facfe);
}

.badge-orange, .ecs-icon-orange {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

.badge-cyan, .ecs-icon-cyan {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.badge-purple, .ecs-icon-purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.ecs-product-specs {
    padding: 0 20px;
}

.ecs-product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ecs-product-specs li,
.ecs-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
}

.ecs-product-specs li:last-child,
.ecs-spec-item:last-child {
    border-bottom: none;
}

.ecs-spec-label {
    color: #888;
    width: 55px;
    flex-shrink: 0;
}

.ecs-spec-value {
    color: #333;
    font-weight: 500;
    text-align: right;
}

.ecs-product-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecs-product-price {
    font-size: 26px;
    font-weight: 700;
    color: #ff4500;
}

.ecs-price-unit {
    font-size: 13px;
    font-weight: 400;
}

.ecs-product-feature {
    font-size: 12px;
    color: #999;
}

.ecs-product-action {
    padding: 0 20px 20px;
    text-align: center;
}

.ecs-consult-btn {
    display: inline-block;
    padding: 8px 0;
    width: 100%;
    max-width: 140px;
    border: 1px solid #333;
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.ecs-consult-btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* --- 3. ECS Panel (reuses vhost-feature classes) --- */
.ecs-panel {
    padding: 60px 0;
    background: #f7f9fc;
}

.ecs-panel .vhost-feature-card {
    margin-bottom: 0;
}

/* --- 4. ECS Func (Features Table) --- */
.ecs-func {
    padding: 60px 0;
    background: #fff;
}

.ecs-func-table-wrap {
    overflow-x: auto;
}

.ecs-func-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ecs-func-table thead th {
    background: #1a7fd4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 24px;
    text-align: left;
}

.ecs-func-table thead th:first-child {
    background: #c0392b;
    border-radius: 8px 0 0 0;
}

.ecs-func-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.ecs-func-table tbody td {
    padding: 14px 24px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.ecs-func-table tbody td:first-child {
    color: #333;
    font-weight: 600;
    width: 130px;
    background: #fafbfd;
}

.ecs-func-table tbody td:last-child {
    color: #555;
}

.ecs-func-table tbody tr:last-child td {
    border-bottom: none;
}

.ecs-func-table tbody tr:hover {
    background: #f8faff;
}

.ecs-func-check,
.ecs-check-icon {
    color: #1a7fd4;
    margin-right: 8px;
}

.ecs-func-table-container {
    overflow-x: auto;
}

/* --- 5. Responsive --- */
@media (max-width: 1199px) {
    .ecs-product-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .ecs-banner {
        padding: 40px 0;
    }

    .ecs-banner .container {
        flex-direction: column;
    }

    .ecs-banner-right {
        display: none;
    }

    .ecs-banner-title {
        font-size: 30px;
    }

    .ecs-product-card {
        width: 100%;
        min-width: 0;
    }

    .ecs-section-title {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .ecs-products,
    .ecs-panel,
    .ecs-func {
        padding: 40px 0;
    }

    .ecs-func-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ecs-func-table {
        min-width: 500px;
    }
}