    /* 标题样式，居中显示 */
    .title-container {
        text-align: center;
        margin-bottom: 20px;
    }

    .title-container h1 {
        font-size: 24px;
        color: #333;
    }

    /* 上传容器样式 - 宽度100%无边框 */
    .upload-container {
        width: 100%;
        margin: 0 auto 20px;
    }

    /* 拖放区域样式 - 细线风格 */
    .drop-area {
        width: 100%;
        border: 1px dashed #ccc;
        border-radius: 2px;
        padding: 40px 20px;
        text-align: center;
        background-color: #fafafa;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .drop-area:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

    .drop-area.drag-over {
        background-color: #f0f9ff;
        border-color: #007bff;
    }

    .upload-icon {
        font-size: 40px;
        margin-bottom: 10px;
        opacity: 0.6;
    }

    .drop-area h3 {
        margin: 10px 0;
        color: #333;
        font-size: 16px;
        font-weight: 500;
    }

    .upload-hint {
        color: #888;
        font-size: 12px;
        margin-bottom: 20px;
    }

    /* 文件信息样式 - 细线风格 */
    .file-info {
        width: 100%;
        margin-top: 10px;
        padding: 12px 15px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 2px;
    }

    .file-info-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .file-icon {
        font-size: 20px;
        margin-right: 10px;
        opacity: 0.7;
    }

    .file-name {
        flex: 1;
        font-weight: 400;
        color: #495057;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .remove-button {
        background: none;
        border: none;
        font-size: 20px;
        color: #6c757d;
        cursor: pointer;
        padding: 0 8px;
        line-height: 1;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 2px;
    }

    .remove-button:hover {
        background-color: #f8f9fa;
        color: #dc3545;
    }

    /* 按钮样式 - 细线风格 */
    .button {
        padding: 10px 30px;
        background-color: #f8f9fa;
        color: #495057;
        border: 1px solid #dee2e6;
        border-radius: 2px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
        font-weight: 400;
        min-width: 120px;
    }

    .button:hover {
        background-color: #e9ecef;
        border-color: #adb5bd;
        transform: translateY(-1px);
    }

    .button:active {
        transform: translateY(0);
    }

    .button:disabled {
        background-color: #f8f9fa;
        color: #adb5bd;
        border-color: #e9ecef;
        cursor: not-allowed;
        transform: none;
    }

    /* 转换按钮容器 */
    .button-container {
        width: 100%;
        margin: 0 auto 20px;
        text-align: center;
    }

    /* 进度条容器 */
    .progress-container {
        width: 100%;
        margin: 0 auto 20px;
    }

    .progress-container label {
        display: block;
        font-weight: 400;
        margin-bottom: 8px;
        color: #495057;
        font-size: 14px;
    }

    progress {
        width: 100%;
        height: 4px;
        border: none;
        background-color: #f8f9fa;
        border-radius: 1px;
    }

    progress::-webkit-progress-bar {
        background-color: #f8f9fa;
        border-radius: 1px;
    }

    progress::-webkit-progress-value {
        background-color: #007bff;
        border-radius: 1px;
        transition: width 0.3s ease;
    }

    progress::-moz-progress-bar {
        background-color: #007bff;
        border-radius: 1px;
    }

    .progress-text {
        display: block;
        margin-top: 5px;
        font-weight: 400;
        color: #6c757d;
        font-size: 12px;
    }

    /* 排序区域 */
    .sort-container {
        width: 100%;
        margin: 20px auto;
        display: none;
    }

    .sort-container h3 {
        font-size: 16px;
        font-weight: 500;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e9ecef;
    }

    /* 下载按钮容器 - 移动到预览图上方的位置 */
    .download-container {
        width: 100%;
        margin: 20px auto;
        text-align: center;
    }

    .download-all-btn {
        background-color: #28a745;
        color: white;
        border: 1px solid #28a745;
    }

    .download-all-btn:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

    /* 排序网格 - 卡片式布局 */
    .sort-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .sort-item {
        border: 1px solid #e9ecef;
        border-radius: 6px;
        background: white;
        transition: all 0.2s ease;
        cursor: grab;
        user-select: none;
        overflow: hidden;
        position: relative;
    }

    .sort-item:hover {
        border-color: #007bff;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
        transform: translateY(-2px);
    }

    .sort-item.dragging {
        opacity: 0.6;
        transform: rotate(3deg);
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
        z-index: 1000;
    }

    .sort-item.drag-over {
        border: 2px dashed #007bff;
        background-color: #f8fbff;
    }

    /* 页面序号标签 */
    .page-index {
        position: absolute;
        top: 8px;
        left: 8px;
        background: rgba(0, 123, 255, 0.9);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 500;
        z-index: 2;
    }

    /* 图片容器 */
    .image-container {
        width: 100%;
        height: 150px;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }

    .page-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .sort-item:hover .page-image {
        transform: scale(1.05);
    }

    /* 页面信息 */
    .page-info {
        padding: 12px;
    }

    .page-original-num {
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 4px;
    }

    .page-title {
        font-size: 13px;
        color: #333;
        font-weight: 500;
        margin-bottom: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 操作按钮容器 */
    .action-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px 12px;
        border-top: 1px solid #f8f9fa;
    }

    /* 排序箭头按钮 */
    .sort-arrow {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        color: #495057;
        transition: all 0.2s;
    }

    .sort-arrow:hover {
        background-color: #007bff;
        border-color: #007bff;
        color: white;
        transform: scale(1.1);
    }

    .sort-arrow:active {
        transform: scale(0.95);
    }

    .sort-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        background-color: #f8f9fa;
        color: #adb5bd;
    }

    .sort-arrow:disabled:hover {
        background-color: #f8f9fa;
        border-color: #dee2e6;
        color: #adb5bd;
        transform: none;
    }

    /* 排序提示 */
    .sort-hint {
        font-size: 12px;
        color: #888;
        text-align: center;
        margin-top: 10px;
        font-style: italic;
    }

    /* 页面总数显示 */
    .total-pages {
        text-align: center;
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 10px;
    }

    /* 响应式设计：适应手机端 */
    @media (max-width: 768px) {
        .drop-area {
            padding: 30px 15px;
        }

        .drop-area h3 {
            font-size: 14px;
        }

        .upload-icon {
            font-size: 32px;
        }

        .button {
            width: 100%;
            padding: 12px;
        }

        .sort-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 10px;
        }
        
        .image-container {
            height: 120px;
        }
    }

    @media (max-width: 480px) {
        .sort-grid {
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        }
        
        .image-container {
            height: 100px;
        }
        
        .page-info {
            padding: 8px;
        }
        
        .sort-arrow {
            width: 28px;
            height: 28px;
        }
    }

    .upload-icon img {
        width: 48px;
        height: 48px;
        opacity: 1;
        display: inline-block;
    }
/* ======== Mobile 优化补丁（不破坏原样式） ======== */
@media (max-width: 768px) {

    /* 页面整体左右留白，防止贴边 */
    body {
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* 标题别太“桌面端”，稍微收一收 */
    .title-container h1 {
        font-size: 20px;
    }

    /* 上传区域：减少纵向高度，避免首屏太占 */
    .drop-area {
        padding: 24px 12px;
    }

    .upload-hint {
        margin-bottom: 12px;
    }

    /* 文件信息：允许换行，避免长文件名挤爆 */
    .file-info-content {
        gap: 8px;
    }

    .file-name {
        white-space: normal;
        line-height: 1.4;
    }

    /* 主按钮：手机端全宽你已经做了，这里只加点击舒适度 */
    .button {
        min-height: 44px; /* 符合 iOS / Android 触控建议 */
    }

    /* 排序区域标题 */
    .sort-container h3 {
        font-size: 15px;
    }

    /* 卡片 hover 在手机上没意义，顺手关掉浮夸动画 */
    .sort-item:hover {
        transform: none;
        box-shadow: none;
    }

    /* 图片区域：防止因比例导致卡顿 */
    .page-image {
        transition: none;
    }

    /* 操作区：让按钮更好点 */
    .action-container {
        padding: 10px 10px 12px;
    }

    .sort-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* 页码标识：稍微大一点，别太精致 */
    .page-index {
        width: 28px;
        height: 28px;
        font-size: 13px;
        border-radius: 14px;
    }
}

/* 超小屏（iPhone SE / 老安卓） */
@media (max-width: 420px) {

    .sort-grid {
        grid-template-columns: 1fr; /* 单列，别硬塞 */
    }

    .image-container {
        height: 160px; /* 单列时给点面子 */
    }

    .sort-hint {
        font-size: 11px;
    }
}
