/* 服务流程页面专用样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #1469c4 0%, #0f5aa0 100%);
    color: #fff;
    padding: 80px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    opacity: 0.6;
}

.breadcrumb .current {
    opacity: 0.6;
    font-weight: 500;
}

/* 服务流程介绍 */
.process-intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-description {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* 详细流程步骤 */
.detailed-process {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #1469c4 0%, #0f5aa0 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.process-step-item:nth-child(odd) {
    flex-direction: row;
}

.process-step-item:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1469c4 0%, #0f5aa0 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(20, 105, 196, 0.3);
}

.step-content {
    width: 45%;
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-step-item:nth-child(odd) .step-content {
    margin-right: 55%;
}

.process-step-item:nth-child(even) .step-content {
    margin-left: 55%;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1469c4 0%, #0f5aa0 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.step-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.step-details li {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

/* 服务优势 */
.service-advantages {
    padding: 80px 0;
    background-color: #fff;
}

.advantages-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1469c4 0%, #0f5aa0 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.advantage-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* 常见问题 */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #1469c4;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 25px 30px;
    max-height: 500px; /* 增加最大高度确保内容完全显示 */
    opacity: 1;
}

.faq-answer p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* 联系表单增强 */
.contact-form .form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
}

.contact-form .form-group select:focus {
    outline: none;
    border-color: #1469c4;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step-item {
        flex-direction: row !important;
        margin-left: 60px;
    }
    
    .step-number {
        left: 30px;
    }
    
    .step-content {
        width: 100%;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .process-intro,
    .detailed-process,
    .service-advantages,
    .faq-section {
        padding: 60px 0;
    }
    
    .step-content {
        padding: 30px 20px;
    }
    
    .step-details ul {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .advantage-card {
        padding: 25px 20px;
        min-height: auto;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
        max-height: 0;
        opacity: 0;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
        max-height: 500px;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-content {
        padding: 25px 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .advantages-grid {
        gap: 15px;
        padding: 0 10px;
    }
    
    .advantage-card {
        padding: 20px 15px;
    }
    
    .advantage-title {
        font-size: 1.1rem;
    }
    
    .advantage-description {
        font-size: 0.9rem;
    }
}

/* 动画效果 */
.process-step-item {
    opacity: 1; /* 默认可见 */
    transform: translateY(0); /* 默认位置 */
    transition: all 0.6s ease-out;
}

.process-step-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card {
    opacity: 1; /* 默认可见 */
    transform: translateY(0); /* 默认位置 */
    transition: all 0.6s ease-out;
}

.advantage-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 如果JavaScript加载失败，确保内容仍然可见 */
.process-step-item:not(.animate) {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card:not(.animate) {
    opacity: 1;
    transform: translateY(0);
}

/* 触摸设备优化 */
@media (hover: none) {
    .step-content:hover {
        transform: none;
    }
    
    .advantage-card:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .page-header {
        background: none;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .step-number {
        border: 2px solid #000;
        background: none;
        color: #000;
    }
    
    .step-content,
    .advantage-card,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
