/* 自定义样式 */

/* 导航栏品牌样式 */
.brand-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    margin-bottom: 0.1rem;
}

/* 响应式设计 - 移动端调整 */
@media (max-width: 768px) {
    .brand-content {
        gap: 8px;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }
}

/* 超小屏幕调整 */
@media (max-width: 480px) {
    .brand-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }
}

.upload-area {
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa;
}

/* 文件拖拽上传区域 */
.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #0d6efd;
    background: #e3f2fd;
}

.drop-zone.dragover {
    border-color: #198754;
    background: #d1edcc;
    border-style: solid;
}

/* 表单区域样式 */
.form-section {
    margin-bottom: 24px;
}

.section-title {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title-with-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.section-title-with-btn .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 动态表单项样式 */
.dynamic-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
    padding: 12px !important;
    margin-bottom: 12px;
}

.dynamic-item:hover {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-color: #0d6efd !important;
}

.dynamic-item .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* 动态表单项内的textarea样式优化 */
.dynamic-item textarea {
    resize: vertical;
    min-height: 70px;
}

.delete-item {
    border: none;
    background: transparent;
    color: #dc3545;
    padding: 5px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.delete-item:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* 预览区域样式 */
.preview-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    min-height: 600px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.resume-preview {
    background: white;
    border-radius: 0;
    box-shadow: none;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.resume-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.resume-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.resume-section h5 {
    color: #34495e;
    font-weight: 600;
}

.border-dashed {
    border-style: dashed !important;
}

/* 进度条样式 */
#uploadProgress {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

#uploadProgress .progress-bar {
    background: linear-gradient(45deg, #0d6efd, #198754);
    transition: width 0.3s ease;
}

/* 优化进度条样式 */
#optimizationProgress {
    background: linear-gradient(45deg, #28a745, #20c997);
    transition: width 0.5s ease;
}

/* 加载模态框增强样式 */
#loadingModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#loadingModal .spinner-border {
    width: 3rem;
    height: 3rem;
}

#loadingModal .progress {
    background-color: #e9ecef;
    border-radius: 3px;
}

/* 表单控件增强 */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
    transform: none;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* 按钮样式增强 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 14px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* 卡片样式增强 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .col-lg-6 {
        margin-bottom: 16px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
        min-width: auto;
    }

    .d-md-flex {
        flex-direction: column !important;
    }

    .me-md-2 {
        margin-right: 0 !important;
    }

    .resume-preview {
        min-height: 400px;
    }

    .dynamic-item {
        padding: 10px !important;
        margin-bottom: 10px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .form-section {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .section-title-with-btn {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 拖拽状态 */
.drag-over {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* 上传区域样式 */
.upload-area .border-dashed {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.upload-area:hover .border-dashed {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

/* 简历预览样式 */
.resume-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.resume-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.resume-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0d6efd;
}

.resume-section h5 {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* 技能标签样式 */
.badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 20px;
}

/* 列表样式 */
.resume-section ul {
    padding-left: 0;
}

.resume-section li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.resume-section li:last-child {
    border-bottom: none;
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 提示信息样式 */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 空状态样式 */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    opacity: 0.5;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .container-fluid {
        padding: 0 15px;
    }

    .resume-preview {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .resume-header {
        padding: 20px 15px;
    }

    .resume-header h2 {
        font-size: 2rem;
    }

    .resume-section {
        padding: 20px 15px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .section-header {
        padding: 12px 15px;
    }

    .drop-zone .text-center {
        padding: 30px 15px !important;
    }
}

/* 工作流指示器 */
.workflow-indicator {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.workflow-step {
    display: flex;
    align-items: center;
    margin: 0 10px;
    color: #6c757d;
}

.workflow-step.active {
    color: #0d6efd;
    font-weight: 600;
}

.workflow-step.completed {
    color: #198754;
}

/* 打印样式 */
@media print {

    .navbar,
    .btn,
    .upload-area,
    #resumeForm {
        display: none !important;
    }

    .resume-preview {
        box-shadow: none;
        border: none;
    }

    .col-lg-6 {
        width: 100% !important;
    }
}

/* 操作按钮区域样式 */
.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-success.btn-lg {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success.btn-lg:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.btn-outline-primary.btn-lg {
    border-width: 2px;
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary.btn-lg:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 文档预览样式 */
.document-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.document-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.document-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

.document-content {
    background: white;
    padding: 30px;
    min-height: 500px;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Markdown内容样式 */
.markdown-content h1 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.markdown-content h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    margin: 25px 0 15px 0;
    font-size: 1.5rem;
}

.markdown-content h3 {
    color: #7f8c8d;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.markdown-content p {
    margin-bottom: 15px;
    color: #2c3e50;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.markdown-content li {
    margin-bottom: 8px;
    color: #34495e;
}

.markdown-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.markdown-content em {
    color: #7f8c8d;
    font-style: italic;
}

.markdown-content code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.markdown-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin: 15px 0;
    color: #7f8c8d;
    font-style: italic;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    opacity: 0.5;
}

/* 切换视图按钮样式 */
#toggleViewBtn {
    transition: all 0.3s ease;
}

#toggleViewBtn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* 滚动条样式 */
.section-body::-webkit-scrollbar {
    width: 6px;
}

.section-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.section-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.section-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 工作经历和项目经历的列表样式 */
.resume-preview .list-unstyled li {
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 8px;
    border-left: 2px solid #e9ecef;
}

.resume-preview .text-success {
    color: #198754 !important;
}

.resume-preview .text-primary {
    color: #0d6efd !important;
}

.resume-preview .text-muted {
    color: #6c757d !important;
}

/* 优化后的简历内容样式 */
.resume-preview .resume-section {
    margin-bottom: 25px;
}

.resume-preview .resume-section h5 {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.resume-preview .resume-section .mb-3 {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

/* 必填字段错误状态样式 */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* 必填字段标识样式 */
.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

/* 悬浮二维码样式 */
.floating-qr {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.floating-qr:hover {
    transform: scale(1.05);
}

.qr-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    min-width: 140px;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.qr-container.hidden {
    transform: translateX(100%);
    opacity: 0;
}

.qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #f8f9fa;
}

.qr-text {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}

/* 箭头切换按钮样式 */
.qr-toggle {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
}

.qr-toggle:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.qr-toggle i {
    transition: transform 0.3s ease;
}

.qr-toggle.rotated i {
    transform: rotate(180deg);
}

/* 响应式设计 - 在小屏幕上调整二维码位置 */
@media (max-width: 768px) {
    .floating-qr {
        bottom: 15px;
        right: 15px;
    }

    .qr-container {
        min-width: 120px;
        padding: 12px;
    }

    .qr-image {
        width: 100px;
        height: 100px;
    }

    .qr-text {
        font-size: 11px;
    }

    .qr-toggle {
        width: 35px;
        height: 35px;
        font-size: 12px;
        margin-left: 8px;
    }
}

/* 二维码淡入动画 */
.floating-qr {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 欢迎弹窗样式 */
.welcome-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.welcome-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545, #6f42c1);
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-icon {
    animation: bounceIn 1s ease-out;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.guide-item {
    padding: 20px 15px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.guide-item:nth-child(1) {
    animation-delay: 0.6s;
}

.guide-item:nth-child(2) {
    animation-delay: 0.8s;
}

.guide-item:nth-child(3) {
    animation-delay: 1.0s;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.guide-item h6 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.feature-item {
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.1);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.feature-item:nth-child(1) {
    animation-delay: 1.2s;
}

.feature-item:nth-child(2) {
    animation-delay: 1.4s;
}

.feature-item:nth-child(3) {
    animation-delay: 1.6s;
}

.feature-item:nth-child(4) {
    animation-delay: 1.8s;
}

.feature-item:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}

#startUsingBtn {
    animation: pulse 2s infinite;
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 30px;
}

/* 彩纸烟花动画 */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}


/* 动画关键帧 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .guide-item {
        padding: 15px 10px;
    }
}