* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body {
    background: #f5f7fb;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 20px 24px 32px;
}
.header-info {
    background: #f0f2f6;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #2c3e4e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.stats {
    font-weight: 500;
}
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    background: white;
    border: 1px solid #cfdfed;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f6e8c;
}
.btn-primary {
    background: #1f6e8c;
    border-color: #1f6e8c;
    color: white;
}
.btn-primary:hover {
    background: #0e4f68;
}
.btn:hover {
    background: #e9f0f5;
    transform: translateY(-1px);
}
.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #e9edf2;
    background: white;
    margin: 20px 0;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 560px;
}
.data-table th {
    background: #f8fafd;
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    color: #1e2a3a;
    border-bottom: 1px solid #e2e8f0;
}
.data-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #eff3f8;
    vertical-align: middle;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}
.status-success { background: #e1f7e8; color: #1e7b48; }
.status-processing { background: #fff3e0; color: #c46f1a; }
.status-failed { background: #ffe6e5; color: #c23d2e; }
.status-timeout { background: #f0eef9; color: #5b4c8c; }
.action-link {
    color: #1f6e8c;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 30px;
    transition: 0.1s;
    display: inline-block;
}
.action-link:hover {
    background: #eef2fa;
}
.preview-btn {
    background: #e6f7f0;
    color: #117a4b;
    margin-left: 8px;
}
.preview-btn:hover {
    background: #c8f0e2;
}
.retry-btn {
    background: #ffedd5;
    color: #b45309;
    border: none;
    padding: 5px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}
.retry-btn:hover {
    background: #fed7aa;
}
.disabled-link {
    color: #9aaebf;
    pointer-events: none;
}
.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid #eef2f8;
}
.footer-buttons button {
    background: #f1f5f9;
    border: none;
    padding: 10px 28px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.footer-buttons button:hover {
    background: #e2e8f0;
}
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}
.modal-mask.show {
    visibility: visible;
    opacity: 1;
}
.modal-container {
    background: white;
    width: 90%;
    max-width: 420px;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}
.preview-modal-content {
    max-width: 90vw;
    width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f8;
}
.modal-header h3 {
    margin: 0;
}
.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #8a9cb0;
    line-height: 1;
}
.close-btn:hover {
    color: #1f2e3a;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafcff;
}
.preview-content {
    width: 100%;
    overflow-x: auto;
}
.preview-content table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}
.preview-content td, .preview-content th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.preview-loading, .preview-error {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: #4a627a;
}
.preview-error {
    color: #c23d2e;
}
.modal-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 60px;
    font-size: 15px;
    margin-bottom: 20px;
}
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.modal-buttons button {
    padding: 8px 18px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
}
.contact-bar {
    background: #f8fafc;
    border-radius: 28px;
    padding: 14px 20px;
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #4a627a;
}
.loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #cbd5e1;
    border-top-color: #1f6e8c;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.text-muted {
    color: #6c7e94;
    font-size: 13px;
}
.retry-text {
    font-size: 13px;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.action-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
/* 图片预览列的样式 */
.img-preview-cell {
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
}

.img-preview-cell img {
    max-width: 100px;  /* 缩略图最大宽度 */
    max-height: 60px;  /* 缩略图最大高度 */
    border-radius: 4px;
    object-fit: cover; /* 保持比例裁剪 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.img-preview-cell img:hover {
    transform: scale(1.05); /* 鼠标悬停微放大 */
}

.img-tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: none; /* 默认隐藏，或者你可以去掉这行让它一直显示 */
}

.img-preview-cell:hover .img-tip {
    display: block; /* 鼠标悬停时提示文字 */
}

/* 纯文本按钮样式 */
.btn-text-link {
    background: none;
    border: 1px solid #1f6e8c; /* 边框颜色 */
    color: #1f6e8c;             /* 文字颜色 */
    padding: 4px 12px;          /* 内边距 */
    border-radius: 20px;        /* 圆角 */
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;                   /* 图标和文字间距 */
    line-height: 1;
    margin: 0 auto;             /* 居中 */
}

.btn-text-link:hover {
    background: #1f6e8c;        /* 悬停背景色 */
    color: white;               /* 悬停文字颜色 */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 110, 140, 0.2);
}

.btn-text-link:active {
    transform: translateY(0);
}

/* 提示文字样式优化 */
.img-tip {
    font-size: 11px;
    color: #9aaebf;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    text-align: center;
}

.img-preview-cell:hover .img-tip {
    opacity: 1;
}








