/* ========================================
   轮播图样式
   ======================================== */
.carousel-item {
    height: 450px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    height: 100px;
    width: 450px;
}

.carousel-caption h2 {
    font-size: calc(1.325rem + .9vw);
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: #ffc107;
}

.carousel-caption p {
    font-size: 16px;
    color: #ddd;
}

/* ========================================
   服务项样式
   ======================================== */
.service-item {
    margin-bottom: 2rem;
}

.service-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.service-content {
    padding-left: 1rem;
}

/* 服务图片基础样式 */
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 服务标题样式 */
.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid #3498db;
}

/* 服务描述列表样式 */
.service-desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-desc-item {
    font-size: 1.05rem;
    font-family: 'Roboto', Arial, sans-serif;
    color: #495057;
    background: #e9ecef;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    position: relative;
    transition: all 0.3s ease;
}

.service-desc-item:hover {
    background: #dee2e6;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-desc-item:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ========================================
   响应式媒体查询
   ======================================== */

/* 大屏幕优化 (≥1200px) */
@media (min-width: 1200px) {
    .service-img {
        max-width: 350px;
        height: 220px;
    }
}

/* 中等屏幕优化 (768px-1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .service-img {
        max-width: 320px;
        height: 200px;
    }
}

/* 移动端优化 (≤768px) */
@media (max-width: 768px) {
    .service-img {
        display: none;
    }

    .col-md-4.pe-md-5 {
        display: none;
    }

    .service-content {
        padding-left: 0 !important;
        text-align: center;
    }

    .service-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .service-desc-list {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-desc-item {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
    }
}

/* 超小屏幕优化 (≤576px) */
@media (max-width: 576px) {
    .service-title {
        font-size: 1.3rem;
    }

    .service-desc-item {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }

    .service-desc-list {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* ========================================
   区域通用样式
   ======================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-family: 'Open Sans', Arial, sans-serif;
    margin-bottom: 0;
}

/* ========================================
   核心价值区域样式
   ======================================== */
.value-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.value-icon {
    color: #667eea;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.value-desc {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   专业经验区域样式
   ======================================== */
.team-card {
    background: #ffffff;
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.team-card .value-icon {
    color: #28a745;
}

.team-card .value-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-card .value-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

/* ========================================
   联系方式区域样式
   ======================================== */
.contact-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #17a2b8;
}

.contact-icon {
    color: #17a2b8;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    word-break: break-word;
}

/* ========================================
   移动端响应式优化
   ======================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .value-card,
    .team-card,
    .contact-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .value-card,
    .team-card,
    .contact-card {
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   服务操作按钮样式
   ======================================== */
.service-actions {
    margin-top: 1.5rem;
}

.service-actions .btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.service-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.service-actions .btn i {
    transition: transform 0.3s ease;
}

.service-actions .btn:hover i {
    transform: translateX(3px);
}