* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
}
/* 标题栏 */
.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: #5d9cec;
    padding: 0 20px;
}
.nav-left {
    display: flex;
    align-items: center;
}
.nav-left span {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
}
.nav-left span:hover {
    background-color: #4a89dc;
}
.nav-left span.active {
    background-color: #4a89dc;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-info {
    color: #fff;
    font-size: 14px;
}
.auth-btn {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.auth-btn:hover {
    background-color: rgba(255,255,255,0.3);
}
.user-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}
.icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}
.btn-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}
/* 主内容区 */
.main {
    display: flex;
    height: calc(100vh - 60px);
}
/* 左侧上传区 */
.left {
    width: 40%;
    padding: 20px;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.upload-box {
    width: 100%;
    height: 120px;
    border: 2px dashed #5d9cec;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
}
.upload-box:hover {
    border-color: #4a89dc;
    background-color: #eef5ff;
}
.upload-box p {
    color: #666;
    font-size: 16px;
}
/* 图片预览列表 */
.preview-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}
.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-item .delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background-color: rgba(255,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    font-size: 14px;
}
.preview-item .delete-btn:hover {
    background-color: red;
}
.preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 2px;
}
/* 模型选择行 */
.model-select-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.model-select-row label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}
.model-select-row select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #5d9cec;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    outline: none;
}
.model-select-row select:hover {
    border-color: #4a89dc;
}
.model-select-row select:focus {
    border-color: #4a89dc;
    box-shadow: 0 0 0 3px rgba(93,156,236,0.2);
}
.btn {
    margin-top: 20px;
    padding: 12px 40px;
    font-size: 16px;
    color: #fff;
    background-color: #5d9cec;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn:hover {
    background-color: #4a89dc;
}
.loading {
    display: none;
    margin-top: 15px;
    color: #5d9cec;
}
/* 右侧结果区 */
.right {
    width: 60%;
    padding: 20px;
    overflow-y: auto;
}
.right h3 {
    margin-bottom: 15px;
    color: #333;
}
#timuList {
    min-height: 200px;
}
.tip {
    color: #999;
    text-align: center;
    margin-top: 50px;
}
/* 题目卡片 */
.timu-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.timu-card .tihao {
    font-weight: bold;
    color: #5d9cec;
}
.timu-card .timu {
    margin: 10px 0;
    color: #333;
}
.timu-card .daan-row {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.timu-card label {
    width: 80px;
    color: #666;
}
.timu-card input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.timu-card input:focus {
    outline: none;
    border-color: #5d9cec;
}
/* 选项样式 */
.timu-card .xuanxiang {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    color: #555;
    line-height: 1.8;
}
/* 识别状态样式 */
#statusList {
    min-height: 200px;
}
#statusList p {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
#statusList .success {
    color: #27ae60;
}
#statusList .fail {
    color: #e74c3c;
}
#statusList .summary {
    font-weight: bold;
    color: #5d9cec;
    margin-top: 10px;
    font-size: 18px;
}
#statusList h4 {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 2px solid #5d9cec;
    color: #333;
}
/* 汇总栏 */
/* 试卷名称输入 */
.shijuan-name-bar {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}
.shijuan-name-bar label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.shijuan-name-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #5d9cec;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}
.shijuan-name-bar input:focus {
    border-color: #4a89dc;
    box-shadow: 0 0 0 3px rgba(93,156,236,0.2);
}
.summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f0f7ff;
    border-radius: 8px;
    margin-bottom: 15px;
}
.summary-bar .summary {
    font-weight: bold;
    color: #5d9cec;
    font-size: 18px;
}
.action-btns {
    display: flex;
    gap: 15px;
}
.action-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s;
}
.action-icon:hover {
    transform: scale(1.2);
}
/* 小按钮样式 */
.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn-green {
    background-color: #27ae60;
}
.btn-green:hover {
    background-color: #219a52;
}
/* 题目头部 */
.timu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.delete-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.delete-icon:hover {
    opacity: 1;
}
/* 弹窗样式 */
.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;
}
.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 {
    color: #333;
    font-size: 18px;
}
.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}
.modal-close:hover {
    color: #333;
}
.modal-body {
    padding: 20px;
}
.form-row {
    margin-bottom: 15px;
}
.form-row label {
    color: #666;
    font-size: 14px;
}
.form-row input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 10px;
    text-align: center;
}
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    margin-top: 8px;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #5d9cec;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}
.modal-footer .btn {
    margin-top: 0;
    padding: 10px 25px;
}
.btn-cancel {
    background-color: #95a5a6;
}
.btn-cancel:hover {
    background-color: #7f8c8d;
}
/* 题目列表容器 */
.timu-list-container {
    margin-top: 15px;
}
/* 图片预览点击提示 */
.preview-img {
    cursor: zoom-in;
}
/* 图片查看弹窗 */
.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
    cursor: grab;
}
.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}
.image-modal-close:hover {
    transform: scale(1.2);
}
