* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}
.fl {float: left;}
.fr {float: right;}
.clearfix:after{content: ''; display: block; height: 0; clear: both; visibility: hidden;  }
.clearfix {/* 触发 hasLayout */ zoom: 1; }
.container {
    max-width: 750px;
    margin: 0 auto;
}

/* 主色调定义 */
:root {
    --primary-color: #f62350;
    --primary-light: #ff6b8b;
    --primary-dark: #d81b3e;
    --text-color: #333;
    --light-bg: #fff;
    --border-color: #eee;
}

/* 头部区域 */
.header {
    text-align: center;
	margin-top: 60px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

/* 通用卡片样式 */
.card {
    padding: 20px;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

/* 交替背景色 */
.card:nth-child(odd) {
    background-color: white;
}

.card:nth-child(even) {
    background-color: #f9f9f9;
}

.card-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.card-title i {
    margin-right: 10px;
    font-size: 22px;
}

/* 报名资料准备 */
.prep-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.prep-item {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prep-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.prep-icon i {
    color: white;
    font-size: 18px;
}

.prep-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.prep-text p {
    font-size: 14px;
    color: #666;
}

/* 来校路线 */
.route-map {
    width: 100%;
    height: auto;
    background: #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.route-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-info {
    display: flex;
    gap: 15px;
}

.route-item {
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.route-item h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

.route-item h3 i {
    margin-right: 8px;
}

.route-item p {
    font-size: 14px;
    color: #666;
}

/* 报名流程 - 修改后 */
.timeline {
    position: relative;
    max-width: 800px;
    height: 855px;
    margin: 0 auto;
    padding: 0 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px; /* 减少间距 */
    min-height: 160px; /* 设置最小高度 */
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 2;
}

.timeline-content {
    position: absolute;
    width: calc(50% - 40px); /* 缩小宽度减少错位空间 */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 左侧项目 */
.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    margin-right: 40px; /* 减少边距 */
}

/* 右侧项目 */
.timeline-item:nth-child(even) .timeline-content {
    right: 0;
    margin-left: 40px; /* 减少边距 */
}

.timeline-img {
    height: auto;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.timeline-img img {
    width: 100%;
    object-fit: cover;
}

.timeline-text {
    padding: 10px;
}

.timeline-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 在线报名表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* 报名场景展示 */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.scene-item {
    height: auto;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.scene-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 报名名单 - 修改后 */
.applicants-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.applicants-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.applicants-list {
    position: absolute;
    top: 50px;
    bottom: 0;
    width: 100%;
    animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.applicant-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px dashed #ddd;
}

.applicant-item:last-child {
    border-bottom: none;
}

.applicant-name, .applicant-major, .applicant-phone, .applicant-time {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applicant-name {
    font-weight: 500;
    color: var(--text-color);
}

.applicant-major {
    color: var(--primary-color);
}

.applicant-phone {
    color: #666;
}

.applicant-time {
    color: #999;
    font-size: 12px;
}

/* 热门课程 */
.courses-container {
    position: relative;
    overflow: hidden;
}

.courses-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
}

.course-card {
    flex: 0 0 calc(50% - 8px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.course-img {
    height: auto;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.course-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.course-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.course-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.course-btn {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.consult-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.consult-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.trial-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.trial-btn:hover {
    background: #fff5f7;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination-dot.active {
    background: var(--primary-color);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
    background: #f5f5f5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline {height: 490px;}
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        min-height: 110px;
        padding-left: 30px;
        margin-bottom: 15px;
    }
    
    .timeline-dot {
        left: 10px;
        top: 15px;
    }
    
    .timeline-content {
        position: static;
        width: 100%;
        margin: 0 !important;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .timeline-img {
        width: 114px;
        height: 80px;
        margin-left: 10px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .timeline-text {
        flex: 1;
        padding: 5px 10px;
    }
    
    .prep-item {
        flex: 1 1 100%;
    }
    
    .route-info {
        flex-direction: column;
    }
    
    .course-card {
        flex: 0 0 calc(50% - 0px);
    }
    
    .applicant-name, .applicant-major, .applicant-phone, .applicant-time {
        font-size: 12px;
        padding: 0 2px;
    }
    
    .applicants-header {
        padding: 10px 5px;
    }
    
    .applicant-item {
        padding: 8px 5px;
    }
    
    .course-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .course-btn {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .applicant-name, .applicant-major, .applicant-phone, .applicant-time {
        font-size: 11px;
    }
    
    .scene-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}