
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #f6f8fc, #fff);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    margin-bottom: 25px;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    padding: 30px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-box {
    border: 2px dashed #d2d8e2;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}
.upload-box:hover {
    border-color: #0d6efd;
    background: #f8f9ff;
}

.upload-icon {
    font-size: 42px;
    color: #0d6efd;
    margin-bottom: 10px;
}

.pick-wrap {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.pick-item {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.del-btn {
    background: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.queue-wrap {
    max-height: 180px;
    overflow-y: auto;
    margin-top: 15px;
}

.queue-item {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.item-name {
    font-size: 14px;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}
.progress {
    height: 100%;
    width: 0%;
    background: #0d6efd;
    border-radius: 3px;
}
.status {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

/* 一行 12 个图片卡片 */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

.img-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.img-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.img-body {
    padding: 6px;
}

.img-title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.img-btn {
    width: 100%;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 11px;
}

.open-btn {
    padding: 6px 14px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.clear-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

.table th {
    background: #f5f7fa;
}

.copy-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    transition: 0.3s;
    z-index: 9999;
}

#noticeModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}
.notice-content-box {
    background: #fff;
    width: 90%;
    max-width: 520px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    text-align: center;
}
.notice-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #222;
}
.notice-text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    white-space: pre-wrap;
}
.notice-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.list-group-item {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f9fc;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.list-group-item.active {
    background: #0d6efd;
    color: #fff;
}
.list-group-item:hover:not(.disabled) {
    background: #eef2f7;
}
.list-group-item.active:hover {
    background: #0b5ed7;
}
.list-group-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 992px) {
    .row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1200px) {
    .grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}
