 /* AI Agent: 引入普惠字体 */
@font-face {
    font-family: 'puhui2';
    src: url('/fonts/AlibabaPuHuiTi-2-55-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* AI Agent: 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'puhui2', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    /* AI Agent: 设置背景图片 - top center, no-repeat */
    background: url('/images/infoCollection/securityCourse/bg.png') no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
}

/* AI Agent: 容器样式 */
.container {
    min-height: 100vh;
    /* display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px; */
}

/* AI Agent: 主要内容区域 - PC端固定宽度1362px */
.main-content {
    width: 1362px;
    max-width: 100%;
    position: relative;
    padding-top: 100px; /* AI Agent: 标题图片距离上方209px */
    margin: 0 auto;
}

/* AI Agent: 标题图片区域 */
.title-section {
    text-align: center;
    margin-bottom: 37px; /* AI Agent: 目标图片距离上方37px */
}

.title-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* AI Agent: 目标描述图片区域 */
.goal-section {
    text-align: center;
    margin-bottom: 75px;
}

.goal-img {
    width: 1035px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* AI Agent: 文字描述区域 */
.text-section {
    text-align: center;
    margin-bottom: 27px;
}

.highlight-text {
    font-size: 36px;
    font-weight: bold;
    color: #031D5F;
    margin-bottom: 14px;
    line-height: 1.5;
}

.time-text {
    font-size: 32px;
    font-weight: bold;
    color: #031d5f;
    line-height: 1.5;
}

/* AI Agent: 报名按钮区域 */
.button-section {
    text-align: center;
    margin-bottom: 24px;
}

.entry-btn {
    width: 300px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.live-button {
    width: 300px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.entry-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.live-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* AI Agent: 课程介绍文字区域 */
.course-intro-section {
    background-color: rgba(255, 255, 255, 0.52); /* AI Agent: 白色背景，透明度52% */
    padding: 67px 0;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.course-intro-content {
    width: 1021px;
    max-width: 100%;
    padding: 0 20px;
}

.course-intro-text {
    font-size: 24px;
    font-weight: bold;
    color: #031D5F;
    line-height: 1.5;
    margin-bottom: 0;
    text-indent: 2em; /* AI Agent: 首行缩进2个汉字 */
}

/* AI Agent: 课程亮点标题图片区域 */
.course-highlight-section {
    text-align: center;
    margin-top: 90px;
    margin-bottom: 48px;
}

.course-highlight-img {
    width: 475px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* AI Agent: 课程亮点详情区域 */
.course-details-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.course-details-content {
    width: 879px;
    max-width: 100%;
    padding: 0 20px;
}

.course-detail-item {
    margin-bottom: 37px;
}

.course-detail-item:last-child {
    margin-bottom: 0;
}

.course-detail-title {
    font-size: 36px;
    font-weight: bold;
    color: #031D5F;
    margin-bottom: 12px;
    line-height: 1.4;
}

.course-detail-desc {
    margin-left: 1.2em; /* AI Agent: 与标题文字对齐，不与数字对齐 */
}

.course-detail-desc p {
    font-size: 24px;
    color: #031D5F;
    line-height: 1.5;
}

.course-detail-desc p:last-child {
    margin-bottom: 0;
}

/* AI Agent: 报名入口区域 */
.registration-section {
    background-color: rgba(255, 255, 255, 0.52); /* AI Agent: 白色背景，透明度52% */
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.registration-content {
    width: 1073px;
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.registration-title {
    margin-bottom: 36px;
}

.registration-title-img {
    width: 510px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.registration-button {
    margin-bottom: 0;
}

.registration-btn {
    width: 300px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.registration-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.registration-info {
    text-align: center;
}

.registration-main-text {
    font-size: 32px;
    font-weight: bold;
    color: #031D5F;
    margin-bottom: 4px;
    line-height: 1.4;
}

.registration-detail-text {
    font-size: 24px;
    font-weight: bold;
    color: #031D5F;
    line-height: 1.5;
    margin-bottom: 4px;
}

.registration-detail-text:last-child {
    margin-bottom: 0;
}

/* AI Agent: Modal弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(3, 29, 95, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px 30px 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #031D5F 0%, #1e3a8a 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0; /* AI Agent: 防止header被压缩 */
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    font-family: 'puhui2', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto; /* AI Agent: 滚动条放在body上 */
    flex: 1; /* AI Agent: 占用剩余空间 */
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 16px;
    font-weight: bold;
    color: #031D5F;
    font-family: 'puhui2', 'Microsoft YaHei', Arial, sans-serif;
}

.required {
    color: #dc3545;
    font-size: 14px;
}

.form-input,
.form-select {
    padding: 8px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'puhui2', 'Microsoft YaHei', Arial, sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
    height: 40px; /* AI Agent: 固定高度40px */
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #031D5F;
    box-shadow: 0 0 0 3px rgba(3, 29, 95, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input::placeholder {
    color: #6c757d;
}

.form-select {
    cursor: pointer;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    display: none; /* AI Agent: 默认隐藏，不占空间 */
}

.modal-footer {
    padding: 20px 30px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0; /* AI Agent: 防止footer被压缩 */
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'puhui2', 'Microsoft YaHei', Arial, sans-serif;
    min-width: 100px;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #031D5F 0%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(3, 29, 95, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 29, 95, 0.4);
}

.btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* AI Agent: 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* AI Agent: 移动端响应式设计 */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll; /* AI Agent: 移动端背景图片滚动 */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding-top: 120px; /* AI Agent: 移动端减少顶部间距 */
    }
    
    .title-section {
        margin-bottom: 25px;
    }
    
    .goal-section {
        margin-bottom: 50px;
    }
    
    .goal-img {
        width: 100%;
        padding: 0 10px;
    }
    
    .text-section {
        margin-bottom: 22px;
        padding: 0 10px;
    }
    
    .highlight-text {
        font-size: 24px;
        margin-bottom: 12px;
        color: #031D5F;
    }
    
    .time-text {
        font-size: 20px;
        color: #031d5f;
        font-weight: bold;
    }
    
    .button-section {
        margin-bottom: 24px;
    }
    
    .entry-btn {
        width: 250px;
    }
    
    /* AI Agent: 课程介绍文字区域 - 移动端样式 */
    .course-intro-section {
        padding: 45px 0;
        margin-bottom: 40px;
    }
    
    .course-intro-content {
        padding: 0 15px;
    }
    
    .course-intro-text {
        font-size: 20px;
        font-weight: bold;
        line-height: 1.3;
        margin-bottom: 0;
        text-indent: 2em;
    }
    
    /* AI Agent: 课程亮点标题图片区域 - 移动端样式 */
    .course-highlight-section {
        margin-top: 60px;
        margin-bottom: 35px;
    }
    
    .course-highlight-img {
        width: 350px;
    }
    
    /* AI Agent: 课程亮点详情区域 - 移动端样式 */
    .course-details-section {
        margin-bottom: 40px;
    }
    
    .course-details-content {
        padding: 0 15px;
    }
    
    .course-detail-item {
        margin-bottom: 30px;
    }
    
    .course-detail-title {
        font-size: 28px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .course-detail-desc {
        margin-left: 1em;
    }
    
    .course-detail-desc p {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    /* AI Agent: 报名入口区域 - 移动端样式 */
    .registration-section {
        padding: 40px 0;
    }
    
    .registration-content {
        padding: 0 15px;
    }
    
    .registration-title {
        margin-bottom: 25px;
    }
    
    .registration-title-img {
        width: 380px;
    }
    
    .registration-button {
        margin-bottom: 0;
    }
    
    .registration-btn {
        width: 250px;
    }
    
    .registration-main-text {
        font-size: 24px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .registration-detail-text {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    /* AI Agent: Modal弹窗 - 移动端样式 */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px 12px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-close {
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .registration-form {
        gap: 16px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input,
    .form-select {
        padding: 8px 12px;
        font-size: 14px;
        height: 38px;
    }
    
    .modal-footer {
        padding: 15px 20px 18px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        height: 38px;
    }
}

/* AI Agent: 小屏幕设备优化 */
@media screen and (max-width: 480px) {
    .main-content {
        padding-top: 80px;
    }
    
    .title-section {
        margin-bottom: 20px;
    }
    
    .goal-section {
        margin-bottom: 40px;
    }
    
    .text-section {
        margin-bottom: 18px;
    }
    
    .highlight-text {
        font-size: 20px;
        margin-bottom: 10px;
        color: #031D5F;
    }
    
    .time-text {
        font-size: 18px;
        color: #031d5f;
        font-weight: bold;
    }
    
    .entry-btn {
        width: 200px;
    }
    
    /* AI Agent: 课程介绍文字区域 - 小屏幕设备样式 */
    .course-intro-section {
        padding: 35px 0;
        margin-bottom: 30px;
    }
    
    .course-intro-content {
        padding: 0 10px;
    }
    
    .course-intro-text {
        font-size: 18px;
        font-weight: bold;
        line-height: 1.3;
        margin-bottom: 0;
        text-indent: 2em;
    }
    
    /* AI Agent: 课程亮点标题图片区域 - 小屏幕设备样式 */
    .course-highlight-section {
        margin-top: 50px;
        margin-bottom: 30px;
    }
    
    .course-highlight-img {
        width: 280px;
    }
    
    /* AI Agent: 课程亮点详情区域 - 小屏幕设备样式 */
    .course-details-section {
        margin-bottom: 30px;
    }
    
    .course-details-content {
        padding: 0 10px;
    }
    
    .course-detail-item {
        margin-bottom: 25px;
    }
    
    .course-detail-title {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .course-detail-desc {
        margin-left: 0.8em;
    }
    
    .course-detail-desc p {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    /* AI Agent: 报名入口区域 - 小屏幕设备样式 */
    .registration-section {
        padding: 30px 0;
    }
    
    .registration-content {
        padding: 0 10px;
    }
    
    .registration-title {
        margin-bottom: 20px;
    }
    
    .registration-title-img {
        width: 300px;
    }
    
    .registration-button {
        margin-bottom: 0;
    }
    
    .registration-btn {
        width: 200px;
    }
    
    .registration-main-text {
        font-size: 20px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .registration-detail-text {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    /* AI Agent: Modal弹窗 - 小屏幕设备样式 */
    .modal-content {
        width: 98%;
        max-height: 98vh;
        margin: 5px;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 12px 15px 10px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-close {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .registration-form {
        gap: 14px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-input,
    .form-select {
        padding: 8px 10px;
        font-size: 13px;
        height: 36px;
        border-radius: 6px;
    }
    
    .modal-footer {
        padding: 12px 15px 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 13px;
        border-radius: 6px;
        height: 36px;
    }
}
