/* css/ai-trainer.css */

/* --- 动画效果 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-icon.animate-on-scroll.animate-in {
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Banner立即显示样式 */
.page-banner.ai-trainer-banner {
    opacity: 1;
    transform: none;
}

.step.animate-on-scroll.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 波纹效果 --- */
.step {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- 页面横幅样式 --- */
.page-banner.ai-trainer-banner {
    background-image: linear-gradient(rgba(233, 106, 106, 0.583), rgba(50, 70, 180, 0.668)), url('../images/ai-trainer-banner.jpg'); /* 使用培训相关的背景图 */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0; /* 横幅上下内边距 */
    text-align: center;
}

.page-banner.ai-trainer-banner h2 {
    font-size: 2.8em; /* 标题字号 */
    margin-bottom: 0.4em;
    color: #fff;
}

.page-banner.ai-trainer-banner p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

/* --- 引言区域 --- */
.ai-intro .lead { /* 引言段落样式 */
    font-size: 1.15em;
    color: #444;
    max-width: 900px;
    margin: 20px auto 0 auto;
    line-height: 1.8;
}

/* --- 服务锚点导航 --- */
.services-anchor-nav {
    text-align: center;
    margin-bottom: 50px;
    padding: 10px 0;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    position: sticky; /* 滚动时固定在顶部 */
    top: 75px; /* 假设头部高度大约70px + 一点间距 */
    z-index: 990; /* 比头部低，比内容高 */
}
.services-anchor-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex; /* 使其内容宽度自适应并居中 */
    gap: 15px; /* 导航项之间的间隔 */
}
.services-anchor-nav li {
    margin: 0; /* 重置外部间距 */
}
.services-anchor-nav .anchor-link {
    padding: 10px 20px;
    color: #1A237E; /* 深海军蓝 */
    font-weight: 500;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
}
.services-anchor-nav .anchor-link:hover,
.services-anchor-nav .anchor-link.active-anchor { /* JS会添加active-anchor类 */
    background-color: #FF6F00; /* 强调色 */
    color: #fff;
    border-color: #FF6F00;
}

/* --- 核心服务模块通用样式 --- */
.service-module {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 35, 126, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    scroll-margin-top: 150px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-color: rgba(26, 35, 126, 0.2);
}

.service-module:hover::before {
    transform: scaleX(1);
}

.service-icon-container {
    text-align: center;
    margin-bottom: 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.service-title {
    text-align: center;
    font-size: 1.9em;
    color: #1A237E; /* 深海军蓝 */
    margin-bottom: 10px;
}

.service-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.content-block h4 {
    font-size: 1.35em;
    color: #0D47A1; /* 比主标题稍浅的蓝色 */
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E3F2FD; /* 浅蓝下划线 */
}

.content-block ul {
    list-style: none;
    padding-left: 0;
}
.content-block ul li {
    margin-bottom: 12px;
    padding-left: 28px; /* 为图标留出空间 */
    position: relative;
    font-size: 0.95em;
    color: #444;
}

/* 图标样式 */
.content-block ul li [class^="icon-"]::before,
.features-list li [class^="icon-feature-"]::before {
    content: "★"; /* 默认占位符 */
    font-family: "Arial", sans-serif;
    position: absolute;
    left: 0;
    top: 1px;
    color: #FF6F00; /* 强调色 */
    font-size: 1.1em;
    margin-right: 8px;
    line-height: 1;
}

        /* 新增图片的基础样式 - 调整大小 */
        .content-block-image {
            text-align: center; /* 如果图片比容器小，则居中显示 */
            margin-top: 20px; /* 图片上方的间距 */
            padding: 10px;
            /* 新增或修改 max-width 来控制图片容器的最大宽度 */
            /* 假设原先图片是撑满父容器的，现在让容器本身变小 */
            /* 你可能需要根据实际情况微调这个百分比或固定值 */
            max-width: 60%; /* 设置为父元素宽度的60% */
            margin-left: left; /* 配合max-width实现靠左 */
            margin-right: left; /* 配合max-width实现靠左 */
        }
        .content-block-image img {
            max-width: 100%; /* 图片撑满 .content-block-image 容器 */
            height: auto;
            border-radius: 8px; /* 可选：圆角 */
            box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 可选：轻微阴影 */
            border: 1px solid #eee;
            display: block; /* 确保图片是块级元素，以便margin:auto生效 */
        }

.features-list li {
    font-size: 1em; /* 特性列表字体可以稍大 */
}
.features-list strong {
    color: #1A237E; /* 特性标题加粗颜色 */
}

/* --- 课程选择样式 --- */
.course-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.course-option {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.course-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.course-option.featured {
    border: 2px solid #FF6F00;
}

.recommend-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #FF6F00;
    color: white;
    padding: 5px 15px;
    font-size: 0.85em;
    font-weight: bold;
    border-bottom-left-radius: 8px;
}

.course-header {
    background-color: #1A237E;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.course-header h4 {
    margin: 0;
    font-size: 1.4em;
    color: white;
}

.price {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 10px;
}

.course-content {
    padding: 25px;
}

.course-description {
    margin-bottom: 20px;
    color: #555;
    text-align: center;
    font-style: italic;
}

.course-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.course-features li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 25px;
}

.course-features li::before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.course-features li strong {
    color: #1A237E;
}

.course-goal {
    background-color: #E3F2FD;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95em;
    color: #0D47A1;
}

/* 实战班课程详情 */
.practical-course-details {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.practical-course-details h4 {
    text-align: center;
    margin-bottom: 25px;
    color: #1A237E;
}

.course-schedule {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-item {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.time-slot {
    background-color: #0D47A1;
    color: white;
    padding: 20px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.schedule-content {
    padding: 20px;
    flex-grow: 1;
}

.schedule-content h5 {
    margin-top: 0;
    color: #1A237E;
    margin-bottom: 15px;
}

.schedule-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.schedule-content ul li {
    margin-bottom: 8px;
}

.schedule-content ul li:last-child {
    margin-bottom: 0;
}

/* --- 证书与补贴样式 --- */
.certificate-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.certificate-details ul li {
    margin-bottom: 15px;
}

.subsidy-info {
    background-color: #FFF8E1;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.subsidy-highlight {
    margin-bottom: 20px;
}

.subsidy-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #FF6F00;
    margin-bottom: 10px;
}

.subsidy-note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.exam-info {
    margin-top: 30px;
}

.exam-info h4 {
    text-align: center;
    margin-bottom: 25px;
}

.exam-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.exam-detail-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.exam-detail-item h5 {
    color: #1A237E;
    margin-bottom: 15px;
}

.exam-detail-item p {
    margin-bottom: 8px;
    color: #555;
}

/* --- 报名流程样式 --- */
.enrollment-process {
    margin-bottom: 20px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.step {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
    cursor: pointer;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.12);
    border-color: rgba(26, 35, 126, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step strong {
    display: block;
    color: #1A237E;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.step p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.step-arrow {
    display: none;
}

.contact-cta {
    margin-top: 40px;
    text-align: center;
}

.contact-cta h4 {
    margin-bottom: 25px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qr-code-container {
    text-align: center;
}

.qr-code {
    max-width: 150px;
    margin-bottom: 10px;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    margin-bottom: 15px;
}

.cta-buttons {
    margin-top: 20px;
}

/* --- FAQ样式 --- */
.faq-section {
    background-color: #f8f9fa;
    padding: 20px 0 60px 0; /* 进一步减少上方间距，保持下方间距 */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: white;
}

.faq-question {
    padding: 20px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1em;
    color: #1A237E;
}

.toggle-icon {
    font-size: 1.5em;
    color: #1A237E;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

/* --- 号召行动区域 --- */
.cta-section {
    background-color: #1A237E;
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button.light {
    background-color: white;
    color: #1A237E;
}

.cta-button.outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- 响应式调整 --- */
@media (max-width: 992px) {
    .certificate-info,
    .course-options-container {
        grid-template-columns: 1fr;
    }
    
    .exam-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-banner.ai-trainer-banner {
        padding: 80px 0;
    }
    
    .page-banner.ai-trainer-banner h2 {
        font-size: 2.2em;
    }
    
    .page-banner.ai-trainer-banner p {
        font-size: 1em;
    }
    
    .services-anchor-nav {
        top: 65px;
        padding: 5px 0;
    }
    
    .services-anchor-nav ul {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-anchor-nav .anchor-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .exam-details-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .service-module {
        padding: 25px;
        margin-bottom: 30px;
        /* 在移动端禁用3D效果，避免操作不便 */
        transform: none !important;
    }
    
    /* 减少移动端的FAQ部分间距 */
    .faq-section {
        padding: 15px 0 40px 0;
    }
    
    .enrollment-process {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1em;
    }
}