/*styles\style-side.css*/
/* 右侧导航栏样式 */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    /* 垂直居中 */
    background: rgba(255, 255, 255, 0.4);
    /* 半透明白色背景 */
    backdrop-filter: blur(10px);
    /* 毛玻璃效果 */
    border-radius: 20px;
    padding: 15px 10px;
    z-index: 20;
    opacity: 0;
    /* 初始完全透明 */
    visibility: hidden;
    /* 初始隐藏 */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* 过渡动画 */
}

/* 可见状态的右侧导航栏 */
.side-nav.visible {
    opacity: 1;
    /* 完全不透明 */
    visibility: visible;
    /* 显示元素 */
}

/* 右侧导航栏项目样式 */
.side-nav .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    margin-bottom: 10px;
    width: 100%;
    cursor: pointer;
    /* 鼠标指针变为手型 */
    transition: all 0.3s ease;
    /* 所有属性过渡动画 */
    position: relative;
    border-radius: 10px;
}

/* 右侧导航栏项目悬停效果 */
.side-nav .item:hover {
    background: rgba(164, 60, 127, 0.2);
    /* 半透明粉色背景 */
    border-radius: 10px;
}

/* 右侧导航栏文本样式 */
.side-nav .text {
    color: #2c3e50;
    /* 深蓝色 */
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
}

/* 服务热线悬浮框样式 */
.side-nav .box {
    position: absolute;
    right: 90px;
    /* 紧贴导航栏右侧 */
    top: 15px;
    /* 与第一个项目对齐 */
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    /* 阴影效果 */
    width: 200px;
    height: 70px;
    /* 与"服务热线"标签高度一致 */
    display: flex;
    align-items: center;
    opacity: 0;
    /* 初始完全透明 */
    visibility: hidden;
    /* 初始隐藏 */
    transition: all 0.3s ease;
    /* 所有属性过渡动画 */
    z-index: 10;
}

/* 悬停时显示服务热线悬浮框 */
.side-nav .item:hover+.box,
.side-nav .box:hover {
    opacity: 1;
    /* 完全不透明 */
    visibility: visible;
    /* 显示元素 */
}

/* 电话信息容器 */
.side-nav .phoneBox {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 电话标签样式 */
.side-nav .key {
    color: #7f8c8d;
    /* 灰色 */
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* 电话号码样式 */
.side-nav .phoneNum {
    color: #a43c7f;
    /* 粉色 */
    font-size: 1.2rem;
    font-weight: bold;
}

/* ================================
   强制模态框初始隐藏 - 必须放在最前面
   ================================ */
.contact-modal {
    display: none !important;
}

.modal {
    display: none !important;
}

/* 只有当明确设置时才显示 */
.contact-modal[style*="display: block"] {
    display: flex !important;
}

.modal[style*="display: flex"] {
    display: flex !important;
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* 增加宽度 */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    max-height: 90vh;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 0;
    /* 改为直角 */
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-height: 90vh;
    /* 增加高度限制 */
    overflow: hidden;
    z-index: 10001;
    animation: modalSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态框头部 - 固定部分 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px 15px;
    /* 减少上下内边距 */
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.85) 30%, rgba(135, 206, 235, 0.85) 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0;
    /* 头部也改为直角 */
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.header-content {
    flex: 1;
}

.modal-title {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.modal-subtitle {
    margin: 6px 0 0 0;
    /* 减少上边距 */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}

.modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    /* 关闭按钮改为直角 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-left: 15px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.close-icon {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
}

/* 表单样式 - 无滚动 */
.recruitment-form {
    padding: 20px 30px 25px;
    /* 减少上下内边距 */
    overflow-y: visible;
    /* 改为可见，无滚动 */
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 移除滚动条样式，因为不再需要滚动 */
.recruitment-form::-webkit-scrollbar {
    display: none;
}

.recruitment-form {
    scrollbar-width: none;
}

/* 表单布局 - 两栏布局 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 两列网格 */
    gap: 18px;
    /* 减少间距 */
    margin-bottom: 18px;
    /* 减少间距 */
}

/* 单列项目 - 简历和留言使用单列 */
.form-group.full-width {
    grid-column: 1 / -1;
    /* 跨所有列 */
}

.form-group {
    margin-bottom: 18px;
    /* 减少间距 */
}

.form-label {
    display: block;
    margin-bottom: 6px;
    /* 减少间距 */
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.4;
}

/* 输入框样式 */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    /* 减少内边距 */
    border: 2px solid #e2e8f0;
    border-radius: 0;
    /* 输入框改为直角 */
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
    max-width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
    background: #fafaff;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0;
}

/* 选择框样式 */
.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a2be2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    /* 调整位置 */
    background-size: 12px;
    padding-right: 40px;
}

/* 文本域样式 */
.form-textarea {
    resize: vertical;
    min-height: 90px;
    /* 减少最小高度 */
    line-height: 1.5;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 0;
    /* 改为直角 */
    padding: 20px 18px;
    /* 减少内边距 */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

.file-upload-area:hover {
    border-color: #8a2be2;
    background: #f0f4ff;
    transform: translateY(-1px);
}

.file-upload-area.dragover {
    border-color: #8a2be2;
    background: #e9d8fd;
    transform: scale(1.01);
}

.upload-text {
    margin: 0 0 4px 0;
    /* 减少下边距 */
    color: #4a5568;
    font-weight: 600;
    font-size: 15px;
}

.file-types {
    font-size: 13px;
    color: #718096;
}

.file-info {
    margin-top: 8px;
    /* 减少上边距 */
    padding: 8px 12px;
    /* 减少内边距 */
    background: linear-gradient(135deg, #e9d8fd, #d6bcfa);
    border-radius: 0;
    /* 改为直角 */
    color: #2d3748;
    font-size: 13px;
    font-weight: 500;
    display: none;
    border-left: 4px solid #8a2be2;
    box-sizing: border-box;
}

.file-info.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 错误消息 */
.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    /* 减少上边距 */
    display: none;
    font-weight: 500;
    padding-left: 4px;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 提交按钮 */
.form-actions {
    text-align: center;
    margin-top: 20px;
    /* 减少上边距 */
    padding-top: 8px;
    /* 减少上内边距 */
    border-top: 1px solid #f1f1f1;
    flex-shrink: 0;
}

.submit-btn {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    border: none;
    padding: 14px 36px;
    /* 减少内边距 */
    border-radius: 0;
    /* 按钮改为直角 */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    box-sizing: border-box;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(138, 43, 226, 0.4),
        0 0 0 1px rgba(138, 43, 226, 0.1);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 成功模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.success-modal-content {
    position: relative;
    background: #ffffff;
    padding: 35px 30px;
    /* 减少内边距 */
    border-radius: 0;
    /* 成功模态框改为直角 */
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
}

.success-icon {
    font-size: 2.8rem;
    /* 稍微减小 */
    color: #8a2be2;
    margin-bottom: 18px;
    /* 减少下边距 */
    font-weight: 300;
}

.success-title {
    color: #2d3748;
    margin-bottom: 10px;
    /* 减少下边距 */
    font-size: 1.4rem;
    font-weight: 700;
}

.success-message {
    color: #718096;
    margin-bottom: 22px;
    /* 减少下边距 */
    line-height: 1.5;
    font-size: 0.95rem;
}

.success-close-btn {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    border: none;
    padding: 11px 28px;
    /* 减少内边距 */
    border-radius: 0;
    /* 按钮改为直角 */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
}

/* 防止水平滚动 */
body.modal-open {
    overflow: hidden;
}

/* 确保没有水平滚动条 */
.modal-content,
.recruitment-form,
.form-input,
.form-select,
.form-textarea,
.file-upload-area {
    max-width: 100%;
    box-sizing: border-box;
}

/* ================================
   响应式设计
   ================================ */
@media (max-width: 768px) {
    .modal-container {
        padding: 15px;
        max-width: calc(100% - 30px);
    }

    .modal-content {
        max-height: 90vh;
        border-radius: 0;
        /* 保持直角 */
    }

    .modal-header {
        padding: 20px 20px 12px;
        /* 移动端进一步减少 */
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .recruitment-form {
        padding: 15px 20px 20px;
        /* 移动端减少内边距 */
    }

    /* 移动端改为单列布局 */
    .form-grid {
        grid-template-columns: 1fr;
        /* 单列 */
        gap: 0;
    }

    .submit-btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-content {
        border-radius: 0;
        /* 保持直角 */
    }

    .modal-header {
        padding: 18px 15px 10px;
        /* 进一步减少 */
    }

    .recruitment-form {
        padding: 12px 15px 15px;
        /* 进一步减少 */
    }

    .file-upload-area {
        padding: 18px 15px;
        /* 进一步减少 */
    }

    .upload-text {
        font-size: 14px;
    }

    .success-modal-content {
        padding: 25px 20px;
        /* 进一步减少 */
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
        /* 进一步减少 */
        font-size: 14px;
    }
}

/* 小屏幕高度适配 */
@media (max-height: 600px) {
    .modal-container {
        max-height: 95vh;
    }

    .modal-content {
        max-height: 90vh;
    }
}