/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 深色主题覆盖 */
body.dark {
    background: linear-gradient(135deg, #152a26 0%, #0f2220 100%);
    color: #e0e0e0;
}

.dark .container {
    background: rgba(16, 20, 22, 0.6);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.dark .header {
    background: linear-gradient(135deg, #169b86 0%, #107a6a 100%);
    color: #e9f2f1;
}

.dark .theme-toggle {
    background: rgba(0, 0, 0, 0.35);
    color: #bbb;
}

 

.dark .help-icon {
    color: rgba(255,255,255,0.85);
    background: rgba(0, 0, 0, 0.25);
}

/* 上传框内灯泡图标在暗黑模式默认更暗 */
.dark .help-icon-box {
    color: #e9f2f1;
    background: rgba(0, 0, 0, 0.25);
}

/* 上传框内灯泡提示文字在暗黑模式更白、更一致 */
.dark .help-tooltip-box h4,
.dark .help-tooltip-box p {
    color: #e9f2f1;
}

.dark .help-tooltip, 
.dark .help-tooltip-box, 
.dark .content, 
.dark .status-card, 
.dark .welcome-message, 
.dark .footer {
    background: #1f262b;
    color: #e0e0e0;
    border-color: #2a3137;
}

.dark .upload-box {
    background: #1e2327;
    border-color: #2a3137;
}

.dark .upload-title { color: #e0e0e0; }
.dark .upload-desc { color: #b0bec5; }
.dark .upload-icon { color: #169b86; }

.dark .select-btn,
.dark .process-btn,
.dark .btn-primary {
    background: linear-gradient(135deg, #169b86 0%, #107a6a 100%);
}
.dark .select-btn:hover,
.dark .process-btn:hover:not(:disabled),
.dark .btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(22, 155, 134, 0.35);
}

.dark .status-label { color: #cbd5dc; }
.dark .status-value { color: #e0e0e0; }
.dark .status-content .status-item { background: #20262b; border-color: #2a3137; }

/* 历史任务列表在暗黑模式下的可读性提升 */
.dark .task-item {
    background: #20262b;
    border-color: #2a3137;
}
.dark .task-item .task-value {
    color: #e9f2f1;
}
.dark .task-item .task-label {
    color: #cbd5dc;
}

/* 标题在暗黑模式下提高亮度（参照页脚 p 的可读性） */
.dark .status-title {
    color: #e9f2f1;
}

/* 未处理状态在暗黑模式下的高对比可读性 */
.dark .status-unprocessed {
    background-color: #2b3136;
    color: #ffb74d;
    border: 1px solid #3a4148;
}

.dark .notice-banner {
    background: #2b3136;
    color: #e9f2f1;
    border-color: #3a4148;
}

.dark .footer p { color: #cbd5dc; }

.dark .modal-content { background: #1a2126; color: #e0e0e0; }
.dark .form-label { color: #e0e0e0; }
.dark .form-input { background: #1e2327; border-color: #2a3137; color: #e9f2f1; }
.dark .form-input::placeholder { color: #9fb1b8; }
.dark .form-input:focus { border-color: #169b86; }

/* 完成状态在暗黑模式下增强对比度 */
.dark .status-completed {
    background-color: #234435;
    color: #ffffff;
    border: 1px solid #2f6b55;
}

/* 主容器 */
.container {
    max-width: 900px;
    margin: 40px auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease;
}

/* 移除容器的悬浮变换效果 */
/* 移除容器的悬浮变换效果，无需保留空规则集 */
    /* 保持原位置不变 */
.container:hover {
    transform: none;
}

/* 头部样式 */
/* 用户管理区域样式迁移至 index-user/index-user.css */

/* 帮助图标样式 */
.help-icon-container {
    position: relative;
    margin-right: 15px;
}

.help-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.help-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 帮助提示框样式 */
.help-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.help-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.help-tooltip h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.help-tooltip p {
    margin: 6px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.help-icon-container:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 上传框内帮助图标样式 */
.help-icon-container-box {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.help-icon-box {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-icon-box:hover {
    color: #1abc9c;
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 上传框内提示框样式 */
.help-tooltip-box {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.help-tooltip-box::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.help-tooltip-box h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.help-tooltip-box p {
    margin: 4px 0;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.help-icon-container-box:hover .help-tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 用户详细信息弹窗样式迁移至 index-user/index-user.css */

/* 欢迎信息样式 */
.welcome-message {
    background: #ffffff;
    padding: 20px;
    margin: 20px auto 0;
    border-radius: 12px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.welcome-message p {
    margin: 0;
    color: #1abc9c;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

/* 用户详情样式迁移至 index-user/index-user.css */

/* 用户头像悬停效果 */
/* 用户头像悬停效果迁移至 index-user/index-user.css */


/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    padding: 70px 30px 50px; /* 增加上方空间，不改变下方空间 */
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 主题切换按钮（与登录页保持一致） */
.theme-toggle {
    position: absolute;
    top: 16px;
    left: 16px; /* 主界面放置在左上角 */
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 3;
}

.theme-toggle:hover {
    color: #e9f2f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 188, 156, 0.25);
}

/* 头部装饰元素 */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区域 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 50px 30px;
    background: white;
}

/* 上传区域 */
.upload-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* 上传框美化 */
.upload-box {
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* 统一高度，保证与右侧模块在同一水平线上 */
}

.upload-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1abc9c 0%, #16a085 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.upload-box:hover {
    border-color: #1abc9c;
    background: #f0fcf9;
    /* 移除上浮效果 */
    box-shadow: 0 10px 25px rgba(26, 188, 156, 0.1);
}

.upload-box:hover::after {
    transform: scaleX(1);
}

/* 上传图标 */
.upload-icon {
    font-size: 56px;
    color: #1abc9c;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.upload-box:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 上传标题 */
.upload-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s ease;
}

.upload-box:hover .upload-title {
    color: #1abc9c;
}

/* 上传描述 */
.upload-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    white-space: nowrap; /* 保持文字在一行显示 */
    word-break: keep-all; /* 避免中文和符号随意断词换行 */
    overflow: hidden; /* 防止溢出影响布局 */
    text-overflow: ellipsis; /* 超出时显示省略号 */
    max-width: 100%; /* 确保不超出容器宽度 */
    text-align: left; /* 左对齐，确保省略号显示在末尾 */
    display: inline-block; /* 让文本宽度适应内容，同时保持居中容器内的左对齐 */
}

/* 分割上传框样式 */
.split-upload-box {
    display: flex;
    padding: 0;
    gap: 0;
    overflow: hidden; /* 限制内容溢出，确保整体容器宽度固定 */
    position: relative; /* 为中间分割线提供定位 */
}

.upload-half {
    flex: 1;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden; /* 限制内容溢出，避免文件名过长拉宽容器 */
    display: flex;             /* 使用 flex 保持内部纵向排列统一 */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 顶部对齐，使左右两侧元素在同一水平线上 */
    gap: 0;                     /* 由各自的 margin 控制间距，与单独上传模块一致 */
    box-sizing: border-box;
}

/* 互斥禁用的灰色外观 */
.upload-half.upload-disabled {
    opacity: 0.6;
    filter: grayscale(0.4);
}
.upload-half.upload-disabled .upload-label,
.upload-half.upload-disabled .select-btn {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* 使用父容器伪元素作为中间分割线，避免出现双线不对称 */
.split-upload-box::before {
    content: '';
    position: absolute;
    top: 0;                  /* 分割线覆盖整个容器高度，保证视觉对称 */
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #e0e0e0;
    transform: translateX(-0.5px);
}

/* 分割框中的图标样式调整 */
.split-upload-box .upload-icon {
    font-size: 56px;      /* 与单独上传模块一致 */
    margin-bottom: 25px;  /* 与单独上传模块一致 */
}

.split-upload-box .upload-title {
    font-size: 20px;      /* 与单独上传模块一致 */
    margin-bottom: 12px;  /* 与单独上传模块一致 */
}

.split-upload-box .upload-desc {
    font-size: 15px;      /* 与单独上传模块一致 */
    margin-bottom: 30px;  /* 与单独上传模块一致 */
    white-space: nowrap; /* 保持文字在一行显示 */
    word-break: keep-all; /* 避免中文和符号随意断词换行 */
    overflow: hidden; /* 防止溢出影响布局 */
    text-overflow: ellipsis; /* 超出时显示省略号 */
    max-width: 100%; /* 确保不超出容器宽度 */
    text-align: left; /* 左对齐，确保省略号显示在末尾 */
    display: inline-block; /* 让文本宽度适应内容，同时保持居中容器内的左对齐 */
}

.split-upload-box .select-btn {
    padding: 14px 36px;  /* 与单独上传框按钮保持一致 */
    font-size: 15px;     /* 与单独上传框按钮保持一致 */
    border-radius: 10px; /* 与基础样式一致，确保外观统一 */
    white-space: nowrap; /* 禁止换行，避免文字重叠 */
    word-break: keep-all; /* 保持中文不随意断字 */
    display: inline-block; /* 强制按钮为单块元素 */
}

/* 文件输入隐藏 */
.file-input {
    display: none;
}

/* 选择按钮 */
.select-btn {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

.select-btn:hover::before {
    left: 100%;
}

/* 上传标签样式 */
.upload-label {
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    display: inline-block;   /* 允许垂直方向外边距生效 */
    margin-top: 12px;        /* 将按钮下移一些 */
    white-space: nowrap;     /* 防止文字换行 */
    word-break: keep-all;    /* 保持中文不随意断字 */
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.3);
}

.upload-label:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.2);
}

/* 文件状态显示区域 */
.file-status-section {
    margin: 40px 0;
}

.status-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.status-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.refresh-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #1abc9c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: #f0fcf9;
    transform: rotate(180deg);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.status-label {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    margin-right: 10px;
}

.status-value {
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 15px;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-none {
    background-color: #f5f5f5;
    color: #999;
}

.status-unprocessed {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-processing {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-completed {
    background-color: #e8f5e8;
    color: #388e3c;
}

.status-failed {
    background-color: #ffebee;
    color: #d32f2f;
}

.status-actions {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.process-btn {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

.process-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 顶部状态区的“问题反馈”按钮样式 */
.feedback-btn {
    background: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 85, 54, 0.3);
}
.feedback-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 54, 0.4);
}
.feedback-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.download-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 删除按钮样式 */
.delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: white;
    border: none;
    padding: 14px 36px; /* 与 .select-btn 保持一致 */
    border-radius: 10px; /* 与 .select-btn 保持一致 */
    font-size: 15px; /* 与 .select-btn 保持一致 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
    margin-top: 10px;
    white-space: nowrap;     /* 防止文字换行 */
    word-break: keep-all;    /* 保持中文不随意断字 */
    display: inline-block;   /* 确保作为块级按钮呈现 */
}

.delete-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220,53,69,0.4);
}

.delete-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 页脚美化 */
.footer {
    text-align: center;
    padding: 30px;
    font-size: 15px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #1abc9c 0%, #16a085 100%);
    border-radius: 2px;
}

.footer p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer:hover p {
    color: #1abc9c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header {
        padding: 40px 15px 30px; /* 小屏同样仅增加上方空间，保持下方不变 */
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .upload-box {
        padding: 30px 15px;
    }
    
    /* 响应式分割上传框 */
    .split-upload-box {
        flex-direction: column;
    }
    
    .upload-half {
        padding: 30px 15px;
    }
    
    .upload-half.left-half {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .upload-half.right-half {
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .user-menu {
        position: static;
        margin-bottom: 20px;
        flex-direction: column;
    }
    
    .user-actions {
        justify-content: center;
    }
}

/* 修改密码弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow: hidden; /* 由 body 控制滚动 */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

#feedbackFilename {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.filename-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filename-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.15);
}

.password-toggle {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

/* 反馈类型选择样式 */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #eaeaea;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    justify-content: center;
    text-align: center;
}

.radio-card:hover {
    border-color: #1abc9c;
    box-shadow: 0 6px 18px rgba(26,188,156,0.12);
    transform: translateY(-1px);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
}

.radio-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.radio-card-sub {
    font-size: 12px;
    color: #777;
}

.radio-card:has(input:checked),
.radio-card.selected {
    border-color: #1abc9c;
    box-shadow: 0 8px 24px rgba(26,188,156,0.18);
    background: linear-gradient(180deg, rgba(26,188,156,0.06), rgba(26,188,156,0.02));
}

.radio-card:focus-within {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,188,156,0.2);
}

.radio-group input[type="radio"] {
    accent-color: #1abc9c;
}

/* 紧急通知样式 */
.notice-banner {
    text-align: center;
    padding: 12px 16px;
    margin: 16px 0 12px;
    background: #fff3cd; /* 淡黄色提示背景 */
    color: #7a5d00;
    border: 1px solid #ffe08a;
    border-radius: 8px;
}
.notice-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.notice-text {
    font-size: 14px;
}

/* 让弹窗主体区域在内容超出时可滚动 */
.modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.image-preview {
    margin-top: 8px;
}

.image-preview img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    display: block;
}

/* 小屏优化：减小上下留白，提升可视区域 */
@media (max-width: 768px) {
    .modal-content {
        max-height: calc(100vh - 40px);
        padding: 24px;
    }
    .radio-group {
        grid-template-columns: 1fr;
    }
    .radio-card {
        padding: 10px 12px;
    }
}

/* 反馈弹窗标题居中 */
#feedbackModal .modal-title {
    flex: 1;
    text-align: center;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    cursor: wait;
}

.error-message {
    color: #ed4c5a;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-hint {
    color: #888;
    font-size: 12px;
    margin-top: 6px;
}

input[type="file"].form-input {
    padding: 8px;
}

input[type="file"].form-input::file-selector-button {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"].form-input::file-selector-button:hover {
    transform: translateY(-1px);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
    border-radius: 6px;
}

.error-message.active {
    display: block;
}
/* 历史任务列表样式 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
    position: relative; /* 使子元素可定位到卡片的右下角 */
}
.task-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.task-line .task-label {
    color: #666;
    margin-right: 6px;
}
.task-line .task-value, .task-status {
    color: #333;
    font-weight: 500;
}
.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-refresh-btn {
    background: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.task-refresh-btn:hover:not(:disabled) {
    background: #16a085;
}
.task-refresh-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 任务预览按钮样式 */
.task-preview-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}
.task-preview-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}
.task-preview-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 任务下载按钮样式 */
.task-download-btn {
    background: linear-gradient(135deg, hsl(117, 80%, 42%) 0%, hsl(117, 90%, 27%) 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}
.task-download-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, hsl(117, 80%, 42%) 0%, hsl(117, 90%, 27%) 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}
.task-download-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 任务反馈按钮样式 */
.task-feedback-btn {
    background: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px; /* 更大尺寸 */
    font-size: 14px; /* 更大字号 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 85, 54, 0.2);
    position: absolute; /* 固定在卡片右下角 */
    right: 14px;
    bottom: 12px;
}
.task-feedback-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff4d4f 0%, #d4380d 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 85, 54, 0.3);
}
.task-feedback-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.loading {
    color: #666;
}

/* 反馈状态徽章（已提交反馈） */
.task-feedback-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    background: #52c41a; /* 绿色 */
    border-radius: 10px;
    vertical-align: middle;
}

/* 反馈图片预览区 */
#feedbackImagePreview img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.dark .upload-box:hover {
    border-color: #169b86;
    background: #20262b;
    box-shadow: 0 10px 25px rgba(22, 155, 134, 0.15);
}

.dark .upload-box.split-upload-box:hover {
    border-color: #169b86;
    background: #20262b;
}

.dark .refresh-btn:hover {
    background-color: #20262b;
}

.dark .help-icon-box:hover {
    color: #169b86;
    background: #20262b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
