/* 业务范围页面样式 */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: rgba(26, 115, 232, 0.1);
    --text-dark: #333;
    --text-normal: #555;
    --text-light: #777;
    --bg-light: #f8f9fa;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* 按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.4);
}

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

.btn-primary:hover i {
    transform: translateX(4px);
}

/* 顶部英雄区域 */
.service-hero {
    position: relative;
    height: 450px;
    background: url('../images/service/1/顶部图片.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 服务类型切换 */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: -30px auto 50px;
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.service-tab {
    background: var(--white);
    color: var(--text-normal);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 180px;
    text-align: center;
}

.service-tab.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.service-tab:hover:not(.active) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.service-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 服务内容容器 */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 服务部分通用标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

/* 核心优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.advantage-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start; /* 改为从顶部开始 */
}

.advantage-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* 确保内容区域有最小高度 */
}

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

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.advantage-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--primary-color);
}

.advantage-card:hover .advantage-icon i {
    color: var(--white);
}

.advantage-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-normal);
    line-height: 1.7;
    margin-bottom: 15px;
}

.advantage-card ul {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 15px;
}

.advantage-card li {
    color: var(--text-normal);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.advantage-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

/* 优势卡片图片容器 */
.advantage-image {
    width: 100%;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 220px; /* 统一高度 */
    margin-top: auto; /* 推到底部 */
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.advantage-card:hover .advantage-image img {
    transform: scale(1.05);
}

/* 危化品优势卡片特殊样式 */
.advantage-card:first-child {
    display: flex;
    flex-direction: column;
}

.advantage-card:first-child .advantage-image {
    height: auto;
    max-height: 250px;
    margin-top: auto;
}

.advantage-card:first-child .advantage-image img {
    object-fit: contain;
}

/* 查看更多专业资质按钮 */
.advantage-card .btn-primary {
    margin-top: 20px;
    align-self: flex-start;
}

/* 案例展示 */
.case-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    margin: 40px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
    transition: var(--transition);
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 30px 20px 20px;
    color: var(--white);
    transform: translateY(70%);
    transition: var(--transition);
}

.case-item:hover .case-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(26, 115, 232, 0.9), rgba(26, 115, 232, 0.5), rgba(0,0,0,0));
}

.case-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.case-overlay p {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    font-size: 0.95rem;
}

.case-item:hover .case-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* 服务流程 */
.process-section {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.process-flow {
    display: flex;
    justify-content: space-around;
    position: relative;
    margin-top: 50px;
    padding: 20px 0;
}

.process-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 140px;
    padding: 10px;
}

.process-step:nth-child(odd) {
    margin-bottom: 100px;
}

.process-step:nth-child(even) {
    margin-top: 100px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.process-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.process-step:hover .process-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.process-step:hover .process-icon i {
    color: var(--white);
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.process-name {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    font-size: 0.85rem;
    margin-top: 15px;
    line-height: 1.3;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.2);
    transition: all 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 流程名称悬停效果 */
.process-step:hover .process-name {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* 危化品分类 */
.hazard-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.hazard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hazard-title {
    text-align: center;
    margin-bottom: 50px;
}

.hazard-title h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hazard-title p {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.hazard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.hazard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

.hazard-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.hazard-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.hazard-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.hazard-card:hover .hazard-icon {
    background: var(--primary-color);
}

.hazard-card:hover .hazard-icon i {
    color: var(--white);
}

.hazard-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.hazard-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.hazard-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-normal);
    font-size: 0.95rem;
}

.hazard-card li::before {
    content: '\f0da';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.hazard-card p {
    margin: 15px 0 0;
    color: var(--text-normal);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .process-flow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .process-flow::before {
        display: none;
    }
    
    .process-step {
        margin: 0 !important;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-tabs {
        gap: 10px;
        margin-bottom: 30px;
        flex-direction: column;
        width: 90%;
    }
    
    .service-tab {
        padding: 12px 20px;
        min-width: auto;
        width: 100%;
    }
    
    .service-hero h1 {
        font-size: 2.2rem;
    }
    
    .service-hero p {
        font-size: 1rem;
    }

    .service-hero {
        height: 400px;
    }
    
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        width: 200px;
        margin: 20px 0 !important;
    }
    
    .process-flow::before {
        display: none;
    }
    
    .process-name {
        white-space: normal;
        max-width: 160px;
    }
}

@media (max-width: 576px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .hazard-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2,
    .hazard-title h2 {
        font-size: 1.8rem;
    }
    
    .advantage-card,
    .hazard-card {
        padding: 20px;
    }
    
    .process-step {
        padding: 15px;
    }
    
    .process-icon {
        width: 50px;
        height: 50px;
    }
}
