/* 经典苹果风格 —— 浅色、干净、大圆角、SF美学（与原站保持一致） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, 'Helvetica Neue', 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

body {
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 12px;
    color: #1d1c1f;
}

.platform {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: #ffffffdd;
    border-radius: 42px;
    padding: 28px 22px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.02) inset;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.platform.platform-wide {
    max-width: 980px;
    min-width: 0;
}

/* 头部 */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-group h1 {
    font-size: 1.9rem;
    font-weight: 540;
    letter-spacing: -0.03em;
    background: linear-gradient(155deg, #222, #3a3a44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.queue-mobile {
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    color: #1c1c1e;
}

.queue-number {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.82rem;
    border: 0.5px solid rgba(46, 125, 50, 0.18);
}

.api-doc-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    background: #ffffff;
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.api-doc-btn:hover {
    background: #f5f9ff;
    border-color: rgba(0, 122, 255, 0.35);
}

.back-link {
    background: #f0f0f5;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.95rem;
    color: #007aff;
    text-decoration: none;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
    transition: 0.15s;
    cursor: pointer;
}

.back-link:hover {
    background: #e5e5ea;
}

/* 使用前必读步骤 */
.preflight-card {
    background: linear-gradient(145deg, #fff7ed 0%, #fff 54%, #f4f9ff 100%);
    border: 0.5px solid rgba(255, 159, 10, 0.34);
    border-radius: 32px;
    padding: 18px 18px 16px;
    margin: -4px 0 20px;
    box-shadow: 0 10px 28px rgba(255, 149, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    position: relative;
    overflow: hidden;
}

.preflight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9f0a, #007aff);
    opacity: 0.9;
}

.preflight-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.preflight-icon {
    width: 38px;
    height: 38px;
    border-radius: 18px;
    background: rgba(255, 159, 10, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 159, 10, 0.1) inset;
}

.preflight-title {
    font-size: 1.08rem;
    font-weight: 680;
    letter-spacing: -0.02em;
    color: #2b2418;
}

.preflight-subtitle {
    font-size: 0.84rem;
    color: #8a5a1c;
    margin-top: 2px;
    font-weight: 500;
}

.preflight-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preflight-step {
    background: rgba(255, 255, 255, 0.78);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #1c1c1e;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.025);
}

.preflight-step:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 122, 255, 0.32);
    box-shadow: 0 8px 18px rgba(0, 122, 255, 0.08);
    background: #ffffff;
}

.preflight-step:active {
    transform: scale(0.985);
}

.preflight-step-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.preflight-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #007aff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 680;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.18);
}

.preflight-step-text {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

.preflight-step-arrow {
    color: #007aff;
    font-weight: 700;
    flex-shrink: 0;
}

/* 核心卡片 */
.card-shell {
    background: #ffffff;
    border-radius: 36px;
    padding: 24px 20px 22px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 0.5px solid rgba(224, 224, 230, 0.8);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 1.25rem;
    font-weight: 460;
    color: #1c1c1e;
}

.card-label span {
    width: 8px;
    height: 8px;
    background: #007aff;
    border-radius: 20px;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* 卡密输入框 */
.input-block {
    width: 100%;
    margin-bottom: 22px;
}

.input-block input {
    width: 100%;
    background: #f9f9fb;
    border: 1.5px solid #e6e6ed;
    border-radius: 60px;
    padding: 16px 22px;
    font-size: 1.05rem;
    color: #1c1c1e;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.input-block input:focus {
    border-color: #007aff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.input-block input::placeholder {
    color: #8e8e93;
    font-weight: 400;
}

/* 输入模式切换 tab */
.input-mode-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    background: #f2f2f7;
    padding: 6px;
    border-radius: 80px;
    width: fit-content;
}

.mode-btn {
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5e5e6e;
}

.mode-btn.active {
    background: #ffffff;
    color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 122, 255, 0.2);
}

.accounts-container {
    position: relative;
    min-height: 308px;
    margin-bottom: 8px;
}

#singleAccountPanel,
#batchPanel {
    width: 100%;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    background: #fbfbfd;
    border-radius: 28px;
    padding: 12px 0 8px 0;
}

#singleAccountPanel.show-mode,
#batchPanel.show-mode {
    opacity: 1;
    visibility: visible;
    position: relative;
}

#singleAccountPanel.hide-mode,
#batchPanel.hide-mode {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c3a;
    margin-bottom: 8px;
    margin-left: 6px;
}

.optional-tag {
    color: #8e8e93;
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 4px;
}

.required-star {
    color: #ff3b30;
    margin-left: 4px;
}

.form-row input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e6e6ed;
    border-radius: 60px;
    padding: 14px 20px;
    font-size: 1rem;
    color: #1c1c1e;
    outline: none;
    transition: all 0.2s ease;
}

.form-row input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.form-row input::placeholder {
    color: #8e8e93;
}

/* 批量模式文本域 */
.batch-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px;
    font-size: 0.82rem;
    color: #6c6c7a;
}

.batch-counter {
    background: #f0f0f5;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: #3a3a4a;
}

.batch-counter.over-limit {
    background: #ffebee;
    color: #c62828;
}

textarea#accountLines {
    width: 100%;
    background: #f9f9fb;
    border: 1.5px solid #e6e6ed;
    border-radius: 26px;
    padding: 14px 20px;
    font-size: 0.82rem;
    color: #1d1c21;
    outline: none;
    resize: vertical;
    min-height: 260px;
    font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
    line-height: 1.55;
}

textarea#accountLines:focus {
    border-color: #007aff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

textarea#accountLines::placeholder {
    font-size: 0.95rem;
    color: #8e8e93;
}

/* 教程按钮 */
.helper-area {
    margin: 8px 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tutorial-btn {
    background-color: #ffffff;
    border: 1px solid #e5e5ea;
    padding: 12px 22px;
    border-radius: 40px;
    font-size: 0.92rem;
    font-weight: 540;
    color: #d92d20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tutorial-btn:hover {
    background: #f8f8fc;
    border-color: #007aff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tutorial-btn:active {
    transform: translateY(1px);
}

.tutorial-btn .btn-icon {
    font-size: 1.1rem;
}

/* 主提交按钮 */
.submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #007aff, #005fc7);
    border: none;
    padding: 16px 12px;
    border-radius: 60px;
    font-weight: 560;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.15s;
    margin: 8px 0 6px;
    letter-spacing: -0.01em;
}

.submit-btn:hover:not(:disabled) {
    filter: brightness(1.04);
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
    background: #005fc7;
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: linear-gradient(145deg, #8a8a9e, #6c6c7a);
    box-shadow: none;
    transform: none;
}

/* 最近提交结果条 */
.recent-submit-banner {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: #f2f7ff;
    border: 1px solid rgba(0, 122, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.recent-submit-banner[hidden] {
    display: none;
}

.recent-submit-info {
    font-size: 0.88rem;
    color: #1e3a5f;
    line-height: 1.45;
}

.recent-submit-info strong {
    color: #007aff;
}

.recent-submit-link {
    background: #007aff;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.recent-submit-link:hover {
    background: #005fc7;
}

/* 查询区块 */
.query-section {
    background: #ffffff;
    border-radius: 36px;
    padding: 20px 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 0.5px solid #eaeaef;
}

.query-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 520;
    color: #1c1c1e;
}

.query-label span {
    width: 8px;
    height: 8px;
    background: #007aff;
    border-radius: 20px;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.query-block {
    background: #fafafc;
    border: 0.5px solid #ececf2;
    border-radius: 28px;
    padding: 16px;
}

.query-block-title {
    font-size: 1.02rem;
    font-weight: 620;
    color: #1c1c1e;
    margin-bottom: 6px;
}

.query-block-desc {
    font-size: 0.86rem;
    color: #6c6c7a;
    line-height: 1.45;
    margin-bottom: 12px;
}

.query-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.query-flex input {
    flex: 1;
    min-width: 0;
    background: #f9f9fb;
    border: 1.5px solid #e3e3ec;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.query-flex input:focus {
    border-color: #007aff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.query-flex input::placeholder {
    color: #8e8e93;
}

.query-flex button {
    background: #f4f4f9;
    border: 1px solid #d9d9e3;
    padding: 14px 24px;
    border-radius: 60px;
    font-weight: 500;
    color: #1d1c21;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.98rem;
    transition: 0.15s;
}

.query-flex button.primary-btn {
    background: #007aff;
    border: none;
    color: #ffffff;
    font-weight: 560;
    box-shadow: 0 8px 18px rgba(0, 122, 255, 0.25);
}

.query-flex button.primary-btn:hover:not(:disabled) {
    background: #0066d6;
}

.query-flex button:active:not(:disabled) {
    transform: scale(0.97);
}

.query-flex button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 查询页高级筛选栏 */
.query-toolbar {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-pill {
    padding: 7px 14px;
    border-radius: 40px;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1px solid #e3e3ec;
    background: #f9f9fb;
    color: #4a4a5a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    border-color: #007aff;
    color: #007aff;
}

.filter-pill.active {
    background: #007aff;
    border-color: #007aff;
    color: #ffffff;
}

.poll-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-id-lookup {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-id-lookup input {
    width: 140px;
    background: #f9f9fb;
    border: 1px solid #e3e3ec;
    border-radius: 40px;
    padding: 7px 14px;
    font-size: 0.85rem;
    outline: none;
}

.task-id-lookup input:focus {
    border-color: #007aff;
    background: #ffffff;
}

.mini-btn {
    background: #f4f4f9;
    border: 1px solid #d9d9e3;
    padding: 7px 14px;
    border-radius: 40px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #1d1c21;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s;
}

.mini-btn:hover:not(:disabled) {
    border-color: #007aff;
    color: #007aff;
}

.mini-btn.active-poll {
    background: #e8f5e9;
    border-color: #81c784;
    color: #2e7d32;
}

/* 说明卡片 */
.info-card {
    background: #ffffff;
    border-radius: 36px;
    padding: 24px 20px;
    border: 0.5px solid #ebebf0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.01);
}

.info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 520;
    margin-bottom: 20px;
}

.instruction-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid #efeff4;
    padding-bottom: 14px;
    margin-bottom: 14px;
    font-size: 0.96rem;
    line-height: 1.4;
    color: #2c2c38;
}

.instruction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-icon {
    background: #f2f2f8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #007aff;
    flex-shrink: 0;
    border: 0.5px solid #e1e1ec;
}

.warning-tag {
    background: #fdebd0;
    color: #b85c1a;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 30px;
    margin-left: 8px;
    font-weight: 600;
    border: 0.5px solid #f7cba0;
}

/* 解决方案展示区 */
.solution-panel {
    background: linear-gradient(115deg, #fff6e5 0%, #ffe8cf 100%);
    border-left: 8px solid #ff9f0a;
    border-radius: 28px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 22px rgba(255, 149, 0, 0.14), 0 0 0 1px rgba(255, 149, 0, 0.22);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.solution-icon {
    background: #ff9f0a;
    width: 38px;
    height: 38px;
    border-radius: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 159, 10, 0.35);
    flex-shrink: 0;
}

.solution-title {
    font-weight: 680;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #b45f06, #ff9f0a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solution-content {
    color: #5c3d0e;
    font-size: 0.96rem;
    line-height: 1.5;
    font-weight: 500;
    background: rgba(255, 250, 235, 0.78);
    border-radius: 18px;
    padding: 12px 16px;
}

.solution-content a {
    color: #007aff;
    text-decoration: none;
    font-weight: 600;
}

.solution-content a:hover {
    text-decoration: underline;
}

/* 任务列表区块 */
.result-section {
    background: #ffffff;
    border-radius: 36px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 0.5px solid #eaeaef;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 540;
    color: #1c1c1e;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hint-badge {
    font-size: 0.74rem;
    background: #f0f0f5;
    color: #5e5e6e;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.result-stats {
    background: #f0f0f8;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #3a3a4a;
    border: 0.5px solid #d9d9e3;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 24px;
    background: #fafafc;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 760px;
}

.task-table th,
.task-table td {
    padding: 15px 12px;
    text-align: left;
    vertical-align: top;
}

.task-table thead tr th {
    background: #f2f2f7;
    color: #3a3a4a;
    font-weight: 560;
    font-size: 0.85rem;
    border-bottom: 1px solid #e1e1e8;
}

.task-table tbody tr td {
    border-bottom: 1px solid #efeff4;
}

.task-table tbody tr:last-child td {
    border-bottom: none;
}

.task-id-pill {
    font-family: 'SF Mono', ui-monospace, monospace;
    font-size: 0.84rem;
    font-weight: 600;
    background: #f2f2f8;
    color: #1c1c1e;
    padding: 4px 10px;
    border-radius: 20px;
    border: 0.5px solid #e1e1ec;
    display: inline-block;
}

.account-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.76rem;
    color: #6c6c7a;
    font-family: 'SF Mono', ui-monospace, monospace;
    word-break: break-all;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

.status-badge::before {
    content: "●";
    font-size: 0.65rem;
    opacity: 0.85;
}

.status-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-failed {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.status-processing {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdef5 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
}

.status-waiting {
    background: linear-gradient(135deg, #fff8e1 0%, #ffefc4 100%);
    color: #b45f06;
    border: 1px solid #ffe0b2;
}

.status-cancelled {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #616161;
    border: 1px solid #bdbdbd;
}

.result-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #1c1c1e;
    display: block;
}

.task-cell-label {
    display: none;
}

.refresh-row-btn {
    background: #f4f9ff;
    border: 1px solid #cfe3ff;
    color: #007aff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s;
}

.refresh-row-btn:hover:not(:disabled) {
    background: #e6f2ff;
    border-color: #007aff;
}

.refresh-row-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.page-btn {
    background: #f9f9fb;
    border: 1px solid #e6e6ed;
    color: #1c1c1e;
    min-width: 40px;
    height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.12s;
    padding: 0 12px;
}

.page-btn.active {
    background: #007aff;
    border-color: #007aff;
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: #eaeef5;
    border-color: #b8b8cd;
}

.page-ellipsis {
    color: #8e8e9a;
    padding: 0 4px;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 46px 20px;
    color: #8e8e9a;
    font-size: 1rem;
    background: #fafafc;
    border-radius: 24px;
}

.empty-state span,
.loading-state span {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
}

/* Toast 与 Modal */
.toast-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #ffffffec;
    backdrop-filter: blur(12px);
    color: #1d1c1f;
    padding: 14px 26px;
    border-radius: 60px;
    font-size: 0.96rem;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 0.5px solid rgba(255, 255, 255, 0.8);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    max-width: 86vw;
    text-align: center;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    padding: 16px;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffffea;
    backdrop-filter: blur(20px);
    width: 340px;
    max-width: 100%;
    border-radius: 40px;
    padding: 28px 24px 24px;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.7);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.show .modal-card {
    transform: scale(1);
}

.modal-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 560;
    margin-bottom: 10px;
    color: #1c1c1e;
}

.modal-message {
    font-size: 0.96rem;
    color: #4a4a5a;
    margin-bottom: 22px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 45vh;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-button {
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 560;
    font-size: 1rem;
    flex: 1;
    cursor: pointer;
    transition: 0.1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-button.secondary {
    background: #f2f2f7;
    color: #1c1c1e;
}

.modal-button:active {
    transform: scale(0.98);
}

@media (max-width: 520px) {
    .preflight-steps {
        grid-template-columns: 1fr;
    }
    .preflight-card {
        border-radius: 28px;
        padding: 17px 15px 15px;
    }
}

@media (max-width: 720px) {
    .platform.platform-wide {
        padding: 20px 12px 24px;
        border-radius: 26px;
    }
    .platform.platform-wide .query-section,
    .platform.platform-wide .result-section {
        padding: 16px 12px;
        border-radius: 22px;
    }
    .table-wrapper {
        border-radius: 0;
        background: transparent;
    }
    .task-table {
        display: block;
        min-width: 0;
    }
    .task-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .task-table tbody {
        display: grid;
        gap: 12px;
    }
    .task-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px;
        background: #fafafc;
        border: 1px solid #eaeaef;
        border-radius: 18px;
    }
    .task-table tbody tr td {
        width: auto;
        min-width: 0;
        padding: 0;
        border-bottom: 0;
        overflow-wrap: anywhere;
    }
    .task-cell-label {
        display: block;
        margin-bottom: 5px;
        color: #60606e;
        font-size: 0.75rem;
        font-weight: 600;
    }
    .task-table tbody tr .result-cell {
        grid-column: 1 / -1;
        padding: 12px;
        border: 1px solid #e6e6ed;
        border-radius: 12px;
        background: #fff;
    }
}
