/* ============================================================
   batch-generate.html — 暗黑霓虹主题 (Dark Neon)
   仅作用于本页；不改动公共 css/site-header.css
   调色集中在 :root 令牌，便于后续统一调整
   ============================================================ */
:root {
    /* 底色层次 */
    --bg-page: #05060d;
    --bg-panel: #0b0f1c;
    --bg-card: #0d1222;
    --bg-input: #070a13;
    --bg-elev: #121a2e;

    /* 描边 */
    --line: #1b2743;
    --line-soft: rgba(46, 224, 255, 0.16);
    --line-hi: rgba(46, 224, 255, 0.45);

    /* 霓虹主色 */
    --cyan: #2ee0ff;
    --cyan-2: #10b6f0;
    --cyan-deep: #0a7fb8;
    --pink: #ff2d8e;
    --pink-2: #d81b74;
    --purple: #8b5cf6;
    --blue: #3b82f6;

    /* 文字 */
    --txt-1: #e7ecf9;
    --txt-2: #9aa6c2;
    --txt-3: #6b7695;

    /* 语义色 */
    --green: #2ee6a8;
    --amber: #ffc44d;
    --red: #ff5c78;

    /* 光晕 */
    --glow-cyan: 0 0 18px rgba(46, 224, 255, 0.35);
    --glow-cyan-strong: 0 0 28px rgba(46, 224, 255, 0.55);
    --glow-pink: 0 0 18px rgba(255, 45, 142, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(58% 46% at 10% 4%, rgba(124, 58, 237, 0.30), transparent 62%),
        radial-gradient(48% 40% at 92% 8%, rgba(139, 92, 246, 0.22), transparent 60%),
        radial-gradient(70% 55% at 50% 112%, rgba(56, 130, 255, 0.20), transparent 66%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: var(--txt-2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(13, 17, 32, 0.96), rgba(8, 10, 20, 0.99));
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(46, 224, 255, 0.05),
        0 30px 80px rgba(0, 0, 0, 0.75),
        0 0 90px rgba(46, 224, 255, 0.07);
    overflow: hidden;
}

/* ---------- 头部 ---------- */
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 22px 32px 20px;
    background:
        radial-gradient(120% 160% at 6% -20%, rgba(139, 92, 246, 0.26), transparent 58%),
        radial-gradient(90% 150% at 96% -30%, rgba(46, 224, 255, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(19, 25, 46, 0.92), rgba(9, 12, 23, 0.55));
    border-bottom: 1px solid var(--line-soft);
}

.header h1 {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    margin-bottom: 0;
    font-weight: 700;
    color: #8df2ff;
    letter-spacing: 0.4px;
    text-shadow: 0 0 16px rgba(46, 224, 255, 0.55), 0 0 40px rgba(46, 224, 255, 0.22);
}

.header__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header__logo { display: block; /* height: 10px; */ width: 80px; max-width: 240px; flex: 0 0 auto; }

.header .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.header p {
    font-size: 14px;
    color: var(--txt-3);
    letter-spacing: 0.3px;
    text-align: right;
    order: 2;
}

.main-content {
    padding: 34px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #cfe9ff;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--purple) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(46, 224, 255, 0.85);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* ---------- Prompt 多列区域 ---------- */
.prompt-tips {
    font-size: 14px;
    /* color: var(--txt-3); */
    margin-bottom: 12px;
    line-height: 1.6;
}

.prompt-tips .highlight {
    color: var(--cyan);
    font-weight: 600;
    text-shadow: 0 0 12px rgba(46, 224, 255, 0.5);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.prompt-card {
    background: linear-gradient(180deg, #0e1322 0%, #0a0e1a 100%);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 26px rgba(0, 0, 0, 0.45);
}

.prompt-card:hover {
    border-color: var(--line-hi);
    box-shadow: 0 0 22px rgba(46, 224, 255, 0.13), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-card-index {
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(46, 224, 255, 0.09);
    border: 1px solid rgba(46, 224, 255, 0.28);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(46, 224, 255, 0.12);
}

.prompt-card-remove {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 92, 120, 0.35);
    background: rgba(255, 92, 120, 0.08);
    color: #ff8ea3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.prompt-card-remove:hover {
    background: var(--red);
    border-color: var(--red);
    color: #12030a;
    box-shadow: 0 0 16px rgba(255, 92, 120, 0.55);
}

.prompt-card-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Consolas', 'Monaco', 'SFMono-Regular', monospace;
    resize: vertical;
    transition: all 0.25s ease;
    background: var(--bg-input);
    color: var(--txt-1);
}

.prompt-card-textarea::placeholder {
    color: #556080;
}

.prompt-card-textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(46, 224, 255, 0.10), 0 0 20px rgba(46, 224, 255, 0.18);
}

/* 提示词实时预览（@image_N 内联显示） */
.prompt-preview {
    margin: 8px 0 4px;
    padding: 8px 10px;
    min-height: 20px;
    border: 1px dashed rgba(46, 224, 255, 0.22);
    border-radius: 8px;
    background: #070a12;
    font-size: 14px;
    line-height: 1.7;
    color: #c3cfe8;
    word-break: break-word;
}

.prompt-preview .pp-empty {
    color: var(--txt-3);
    font-size: 14px;
}

.prompt-preview .pp-thumb {
    display: inline-block;
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
    vertical-align: middle;
    margin: 0 2px;
    border: 1px solid rgba(46, 224, 255, 0.35);
    box-shadow: 0 0 10px rgba(46, 224, 255, 0.18);
}

/* 参考图上传区 */
.ref-images-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-images-label {
    font-size: 14px;
    color: var(--txt-3);
    font-weight: 500;
}

.ref-images-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
}

.ref-image-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: #070a12;
}

.ref-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-image-thumb .remove-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 92, 120, 0.92);
    color: #150208;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ref-image-thumb .remove-thumb:hover {
    background: var(--red);
    box-shadow: 0 0 10px rgba(255, 92, 120, 0.7);
}

.ref-upload-btn {
    width: 60px;
    height: 60px;
    border: 1px dashed var(--line-hi);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--cyan);
    background: rgba(46, 224, 255, 0.04);
    transition: all 0.25s ease;
}

.ref-upload-btn:hover {
    border-color: var(--cyan);
    color: #baf6ff;
    background: rgba(46, 224, 255, 0.10);
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.25);
}

.ref-upload-btn input {
    display: none;
}

/* 参考图模式切换（上传 / 链接 / 历史） */
.ref-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ref-mode-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-input);
}

.ref-mode-btn {
    border: none;
    background: transparent;
    color: var(--txt-3);
    font-size: 14px;
    font-weight: 500;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.ref-mode-btn:hover {
    color: var(--cyan);
}

.ref-mode-btn.active {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #041620;
    font-weight: 600;
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.18), 0 0 14px rgba(46, 224, 255, 0.35);
}

.ref-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-input-area.hidden {
    display: none;
}

.ref-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: var(--bg-input);
    color: var(--txt-1);
}

.ref-url-input::placeholder {
    color: #556080;
}

.ref-url-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(46, 224, 255, 0.10), 0 0 18px rgba(46, 224, 255, 0.16);
}

.ref-url-add-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #041620;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.28);
}

.ref-url-add-btn:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 22px rgba(46, 224, 255, 0.45);
}

.ref-image-thumb.url-thumb {
    border-color: rgba(46, 224, 255, 0.4);
    background: #0a1020;
}

.ref-image-thumb.url-thumb .url-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    font-size: 14px;
    color: #041620;
    background: rgba(46, 224, 255, 0.9);
    text-align: center;
    border-radius: 3px;
    line-height: 1.3;
    font-weight: 700;
}

/* 历史选择：按钮样式（ref-input-history 区域） */
.ref-input-history {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-history-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--line-hi);
    border-radius: 8px;
    background: rgba(46, 224, 255, 0.05);
    color: #9fe9f8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ref-history-open-btn:hover {
    border-color: var(--cyan);
    background: rgba(46, 224, 255, 0.12);
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.25);
}

/* ---------- 弹窗（历史选择 / 写词 / 批量上传） ---------- */
.history-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 12, 0.78);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.history-modal-mask.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.history-modal {
    width: min(900px, 100%);
    max-height: 86vh;
    background: linear-gradient(180deg, #0d1120 0%, #080b16 100%);
    border: 1px solid var(--line-hi);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(46, 224, 255, 0.15), 0 30px 70px rgba(0, 0, 0, 0.8);
}

.history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(46, 224, 255, 0.03);
}

.history-modal-header h3 {
    margin: 0;
    font-size: 14px;
    color: #a8eeff;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-shadow: 0 0 14px rgba(46, 224, 255, 0.4);
}

.history-modal-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line-soft);
}

.history-modal-search input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg-input);
    color: var(--txt-1);
}

.history-modal-search input::placeholder {
    color: #556080;
}

.history-modal-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(46, 224, 255, 0.10);
}

.history-modal-body {
    padding: 16px 22px;
    overflow-y: auto;
    flex: 1;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.history-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--line-soft);
    cursor: pointer;
    background: #0a0e1a;
    transition: all 0.15s ease;
}

.history-item:hover {
    border-color: var(--line-hi);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.2);
}

.history-item.selected {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(46, 224, 255, 0.25), 0 0 22px rgba(46, 224, 255, 0.35);
}

.history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-item .hi-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cyan);
    color: #041620;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.7);
}

.history-item.selected .hi-check {
    display: flex;
}

.history-item .hi-prompt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    font-size: 14px;
    color: #dbe4f7;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.history-item:hover .hi-prompt {
    opacity: 1;
}

.history-empty {
    text-align: center;
    color: var(--txt-3);
    font-size: 14px;
    padding: 40px 0;
}

.history-modal-loading {
    text-align: center;
    color: var(--txt-3);
    font-size: 14px;
    padding: 40px 0;
}

.history-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--line-soft);
    background: rgba(46, 224, 255, 0.02);
}

.history-modal-footer .hi-count {
    font-size: 14px;
    color: var(--txt-2);
}

.history-modal-footer .hi-count b {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(46, 224, 255, 0.5);
}

.history-footer-btns {
    display: flex;
    gap: 10px;
}

.hi-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hi-btn.cancel {
    background: transparent;
    border-color: var(--line);
    color: var(--txt-2);
}

.hi-btn.cancel:hover {
    border-color: var(--line-hi);
    color: #b9f0ff;
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.18);
}

.hi-btn.confirm {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #041620;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.4);
}

.hi-btn.confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.hi-btn.confirm:not(:disabled):hover {
    filter: brightness(1.1);
    box-shadow: 0 0 26px rgba(46, 224, 255, 0.6);
}

/* ---------- 添加 Prompt 按钮 ---------- */
.add-prompt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px dashed var(--line-hi);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #8fdcf0;
    background: rgba(46, 224, 255, 0.03);
    transition: all 0.25s ease;
    margin-top: 12px;
    width: 100%;
}

.add-prompt-btn:hover {
    border-color: var(--cyan);
    color: #c9f7ff;
    background: rgba(46, 224, 255, 0.09);
    box-shadow: 0 0 20px rgba(46, 224, 255, 0.22);
}

/* ---------- 参数区域 ---------- */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.param-item {
    display: flex;
    flex-direction: column;
}

.param-label {
    font-size: 14px;
    color: var(--txt-2);
    margin-bottom: 8px;
    font-weight: 500;
}

.select-input,
.number-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-input);
    color: var(--txt-1);
    transition: all 0.25s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232ee0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.select-input:focus,
.number-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(46, 224, 255, 0.10), 0 0 18px rgba(46, 224, 255, 0.16);
}

.number-input {
    background-image: none;
    padding-right: 16px;
}

/* ---------- 比例选择 ---------- */
.ratio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ratio-option {
    padding: 8px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    background: var(--bg-card);
    color: var(--txt-2);
}

.ratio-option:hover {
    border-color: var(--line-hi);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.18);
}

.ratio-option.active {
    border-color: var(--cyan);
    background: linear-gradient(135deg, rgba(46, 224, 255, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    color: #041620;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(46, 224, 255, 0.45);
}

/* ---------- 模型多选 ---------- */
.model-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-option {
    padding: 10px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    background: var(--bg-card);
    color: var(--txt-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-option::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(46, 224, 255, 0.35);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.25s ease;
    background-color: #070a13;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
}

.model-option:hover {
    border-color: var(--line-hi);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.18);
}

.model-option:hover::before {
    border-color: var(--cyan);
}

.model-option.active {
    border-color: var(--cyan);
    background: rgba(46, 224, 255, 0.10);
    color: #9df2ff;
    box-shadow: 0 0 20px rgba(46, 224, 255, 0.22), inset 0 0 18px rgba(46, 224, 255, 0.07);
}

.model-option.active::before {
    background-color: var(--cyan);
    border-color: var(--cyan);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23041620' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    box-shadow: 0 0 12px rgba(46, 224, 255, 0.8);
}

/* ---------- 生成数量滑块 ---------- */
.generate-count-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.generate-slider {
    flex: 1 1 auto;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, rgba(46, 224, 255, 0.55), rgba(59, 130, 246, 0.25));
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.generate-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--cyan) 45%, var(--blue) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #eafcff;
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.85), 0 0 30px rgba(46, 224, 255, 0.45);
    transition: transform 0.2s ease;
}

.generate-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.generate-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--cyan) 45%, var(--blue) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #eafcff;
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.85), 0 0 30px rgba(46, 224, 255, 0.45);
}

.generate-count-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    min-width: 40px;
    text-align: center;
    text-shadow: 0 0 16px rgba(46, 224, 255, 0.7);
}

.generate-count-unit {
    font-size: 14px;
    color: var(--txt-3);
}

.generate-count-tips {
    font-size: 14px;
    color: var(--txt-3);
    margin-top: 8px;
}

/* ---------- 生成按钮 ---------- */
.action-section {
    text-align: center;
    padding-top: 10px;
}

.generate-btn {
    background: linear-gradient(135deg, rgba(46, 224, 255, 0.14) 0%, rgba(59, 130, 246, 0.16) 50%, rgba(139, 92, 246, 0.20) 100%);
    color: #b6f4ff;
    border: 1px solid rgba(46, 224, 255, 0.6);
    padding: 16px 60px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 28px rgba(46, 224, 255, 0.25), inset 0 0 24px rgba(46, 224, 255, 0.08);
    text-shadow: 0 0 14px rgba(46, 224, 255, 0.6);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    color: #e6feff;
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(46, 224, 255, 0.45), inset 0 0 30px rgba(46, 224, 255, 0.14);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------- 进度区 ---------- */
.progress-section {
    display: none;
    margin-top: 30px;
    background: linear-gradient(180deg, #0d1222 0%, #0a0e1a 100%);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--line-soft);
}

.progress-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-1);
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(46, 224, 255, 0.6);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: #0a0e1a;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 60%, var(--purple) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.6);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    background: rgba(46, 224, 255, 0.04);
    border: 1px solid var(--line-soft);
    padding: 12px;
    border-radius: 10px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-value.pending { color: var(--amber); text-shadow: 0 0 14px rgba(255, 196, 77, 0.5); }
.stat-value.processing { color: var(--cyan); text-shadow: 0 0 14px rgba(46, 224, 255, 0.6); }
.stat-value.completed { color: var(--green); text-shadow: 0 0 14px rgba(46, 230, 168, 0.5); }
.stat-value.failed { color: var(--red); text-shadow: 0 0 14px rgba(255, 92, 120, 0.5); }

.stat-label {
    font-size: 14px;
    color: var(--txt-3);
}

/* ---------- 结果区 ---------- */
.results-section {
    display: none;
    margin-top: 30px;
}

.results-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-1);
}

.download-all-btn {
    background: rgba(46, 230, 168, 0.12);
    color: var(--green);
    border: 1px solid rgba(46, 230, 168, 0.5);
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.download-all-btn:hover {
    background: rgba(46, 230, 168, 0.22);
    box-shadow: 0 0 22px rgba(46, 230, 168, 0.4);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.result-item {
    background: linear-gradient(180deg, #0e1322 0%, #0a0e1a 100%);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    border-color: var(--line-hi);
    box-shadow: 0 0 26px rgba(46, 224, 255, 0.2), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.result-image {
    width: 100%;
    aspect-ratio: 1;
    background: #080b14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.result-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.result-status.completed {
    background: rgba(46, 230, 168, 0.92);
    color: #062a1e;
    box-shadow: 0 0 14px rgba(46, 230, 168, 0.6);
}

.result-status.failed {
    background: rgba(255, 92, 120, 0.92);
    color: #2a0710;
    box-shadow: 0 0 14px rgba(255, 92, 120, 0.6);
}

.result-status.pending {
    background: rgba(255, 196, 77, 0.92);
    color: #2c1d02;
    box-shadow: 0 0 14px rgba(255, 196, 77, 0.55);
}

.result-status.processing {
    background: rgba(46, 224, 255, 0.92);
    color: #041620;
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.65);
}

/* 处理中卡片脉冲边框 */
@keyframes pulse-border {
    0%, 100% { border-color: var(--cyan); box-shadow: 0 0 0 0 rgba(46, 224, 255, 0.35); }
    50% { border-color: var(--purple); box-shadow: 0 0 22px 1px rgba(46, 224, 255, 0.08); }
}

.result-item.processing {
    animation: pulse-border 2s ease-in-out infinite;
}

.result-item.pending {
    opacity: 0.6;
}

/* 加载旋转动画 */
.task-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46, 224, 255, 0.16);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.25);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.task-pending-icon {
    font-size: 14px;
    opacity: 0.4;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

.task-error {
    color: var(--red);
    font-size: 14px;
    text-align: center;
    padding: 12px 8px;
    line-height: 1.5;
    word-break: break-all;
}

.result-info {
    padding: 12px;
}

.result-prompt {
    font-size: 14px;
    color: var(--txt-2);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.result-action-btn {
    flex: 1;
    padding: 6px;
    border: 1px solid var(--line-soft);
    background: rgba(46, 224, 255, 0.03);
    color: var(--txt-2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.result-action-btn:hover {
    background: rgba(46, 224, 255, 0.10);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.22);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--txt-3);
}

.empty-state .icon {
    font-size: 14px;
    margin-bottom: 16px;
}

.empty-state .text {
    font-size: 14px;
}

.error-message {
    background: rgba(255, 92, 120, 0.08);
    border: 1px solid rgba(255, 92, 120, 0.4);
    color: #ff9db0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--cyan);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 10px;
    color: #04121a;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success { background: var(--green); box-shadow: 0 0 26px rgba(46, 230, 168, 0.5); }
.toast.error { background: var(--red); box-shadow: 0 0 26px rgba(255, 92, 120, 0.5); }
.toast.info { background: var(--cyan); box-shadow: 0 0 26px rgba(46, 224, 255, 0.5); }

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 12px;
    }

    .main-content {
        padding: 20px;
    }

    .header {
        padding: 24px 20px;
    }

    .header h1 {
        font-size: 14px;
    }

    .params-grid {
        grid-template-columns: 1fr;
    }

    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .prompt-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 顶部用户栏 ---------- */
.header .user-bar {
    position: static;
    order: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}

.header__title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.header .skin-bar {
    flex: 0 0 100%;
    order: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 14px;
}
.skin-bar__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-2);
    letter-spacing: .3px;
    white-space: nowrap;
}
.skin-bar .theme-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 14, 26, 0.55);
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.10);
}
.skin-bar .theme-opt {
    border: none;
    background: transparent;
    color: var(--txt-3);
    font-size: 14px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.skin-bar .theme-opt:hover { color: var(--cyan); }
.skin-bar .theme-opt.active {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #041620;
    font-weight: 700;
}
/* 霓虹按钮：默认即带霓虹色（青色描边 + 青色辉光），凸显其身份 */
.skin-bar .theme-opt[data-theme-val="neon"] {
    color: #8df2ff;
    text-shadow: 0 0 10px rgba(46, 224, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(46, 224, 255, 0.45), 0 0 12px rgba(46, 224, 255, 0.28);
}
.skin-bar .theme-opt[data-theme-val="neon"].active {
    text-shadow: none;
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.6);
}

.user-bar .user-name {
    color: #bdf3ff;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid var(--line-hi);
    border-radius: 20px;
    background: rgba(46, 224, 255, 0.06);
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.14);
}

.user-bar .user-points {
    background: rgba(46, 224, 255, 0.12);
    color: #a6f3ff;
    border: 1px solid rgba(46, 224, 255, 0.45);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.18);
}

.user-bar .link-btn {
    color: var(--txt-2);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-bar .link-btn:hover {
    color: var(--cyan);
    border-color: var(--line-hi);
    background: rgba(46, 224, 255, 0.08);
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.2);
    text-decoration: none;
}

/* 语言切换器 */
.user-bar .lang-switch {
    color: #bcaeff;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.user-bar .lang-switch:hover {
    background: rgba(139, 92, 246, 0.22);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.user-bar .lang-switch option {
    color: var(--txt-1);
    background: #0d1120;
}

/* ---------- 批量 Prompt 输入条 ---------- */
.batch-prompt-bar {
    display: flex;
    gap: 8px;
    margin: 4px 0 12px;
    align-items: stretch;
}

.batch-prompt-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg-input);
    color: var(--txt-1);
}

.batch-prompt-input::placeholder {
    color: #556080;
}

.batch-prompt-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(46, 224, 255, 0.10), 0 0 18px rgba(46, 224, 255, 0.16);
}

.btn-apply-batch {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #041620;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(46, 224, 255, 0.35);
}

.btn-apply-batch:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 26px rgba(46, 224, 255, 0.55);
}

.btn-apply-batch:active {
    transform: scale(0.98);
}

/* ---------- 任务按钮组 ---------- */
.prompt-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt-btn-group .add-prompt-btn {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.batch-upload-btn {
    background: rgba(255, 45, 142, 0.14);
    border-color: rgba(255, 45, 142, 0.6);
    color: #ffa8d0;
}

.batch-upload-btn:hover {
    background: rgba(255, 45, 142, 0.24);
    border-color: var(--pink);
    color: #ffd6ea;
    box-shadow: 0 0 22px rgba(255, 45, 142, 0.35);
}

/* ---------- 顶部操作按钮行（一键写词 / 一键传图 / 添加任务） ---------- */
.prompt-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.prompt-top-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #041620;
    transition: filter .15s, box-shadow .2s, transform .05s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.prompt-top-btn:active {
    transform: scale(0.98);
}

.prompt-top-btn.write {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    box-shadow: 0 0 20px rgba(46, 224, 255, 0.42);
}

.prompt-top-btn.write:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(46, 224, 255, 0.65);
}

.prompt-top-btn.batch {
    background: linear-gradient(135deg, #a06bff 0%, var(--purple) 100%);
    color: #14051f;
    box-shadow: 0 0 20px rgba(160, 107, 255, 0.42);
}

.prompt-top-btn.batch:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(160, 107, 255, 0.65);
}

.prompt-top-btn.upload {
    background: linear-gradient(135deg, #ff5aa8 0%, var(--pink) 55%, var(--purple) 100%);
    color: #21040f;
    box-shadow: 0 0 20px rgba(255, 45, 142, 0.42);
}

.prompt-top-btn.upload:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(255, 45, 142, 0.65);
}

/* 行内「添加Prompt任务」按钮：推到右侧 */
.prompt-actions-row .add-prompt-btn {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto;
    padding: 8px 18px;
    border-width: 1px;
    border-radius: 22px;
    font-size: 14px;
}

.batch-prompt-hint {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--txt-3);
    line-height: 1.5;
}

/* 写词弹窗内输入框占满宽度 */
#writePromptModalMask .batch-prompt-bar { margin: 0; }
#writePromptModalMask .batch-prompt-input { flex: 1; }

/* ---------- 写词弹窗：标签切换（统一写词 / 批量写词） ---------- */
.wp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.wp-tab {
    flex: 0 0 auto;
    padding: 8px 20px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 22px;
    font-size: 14px;
    cursor: pointer;
    color: var(--txt-2);
    transition: all .18s;
}

.wp-tab:hover {
    border-color: var(--line-hi);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.18);
}

.wp-tab.active {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    border-color: transparent;
    color: #041620;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(46, 224, 255, 0.45);
}

.wp-iframe {
    width: 100%;
    height: 60vh;
    max-height: 640px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #0a0e1a;
}

/* ---------- 批量上传弹窗 ---------- */
.batch-upload-tip {
    font-size: 14px;
    color: var(--txt-2);
    margin: 0 0 12px;
    line-height: 1.5;
}

.batch-upload-pick {
    display: inline-block;
    margin-bottom: 12px;
    padding: 18px 20px;
    font-size: 14px;
}

.batch-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.batch-upload-preview .bup-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: #070a12;
}

.batch-upload-preview .bup-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.batch-upload-preview .bup-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background: rgba(255, 92, 120, 0.92);
    color: #150208;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* ---------- 预估消耗条 ---------- */
.estimate-bar {
    margin: 4px 0 12px;
    font-size: 14px;
    color: var(--amber);
    font-weight: 600;
    text-shadow: 0 0 14px rgba(255, 196, 77, 0.45);
}

/* ---------- 滚动条（暗色适配） ---------- */
.history-modal-body::-webkit-scrollbar,
.batch-upload-preview::-webkit-scrollbar {
    width: 10px;
}

.history-modal-body::-webkit-scrollbar-track,
.batch-upload-preview::-webkit-scrollbar-track {
    background: #070a13;
    border-radius: 6px;
}

.history-modal-body::-webkit-scrollbar-thumb,
.batch-upload-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(46, 224, 255, 0.5), rgba(59, 130, 246, 0.5));
    border-radius: 6px;
    border: 2px solid #070a13;
}

/* ---------- 移动端头部适配（覆盖 site-header.css 的浅色假设） ---------- */
@media (max-width: 768px) {
    .header {
        padding: 20px 16px !important;
    }

    /* 收起重置：桌面端的 .header .site-nav 规则会盖过 site-header.css 的移动端 display:none */
    .header .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--line-soft);
        padding-top: 12px;
        margin-top: 4px;
    }

    .header .site-nav.site-nav-open {
        display: flex;
    }

    .header p {
        text-align: center;
        order: 2;
    }

    .header .user-bar {
        order: 1;
        justify-content: center;
    }

    .header .site-nav__toggle {
        color: #8df2ff;
        border-color: var(--line-hi);
        box-shadow: 0 0 16px rgba(46, 224, 255, 0.2);
    }

    /* 「添加Prompt任务」在窄屏独占一行，避免被容器裁切 */
    .prompt-actions-row .add-prompt-btn {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: center;
    }

    .generate-count-unit {
        white-space: nowrap;
    }
}

/* ---------- 主题切换器（霓虹） ---------- */
.user-bar .theme-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 14, 26, 0.55);
    box-shadow: 0 0 14px rgba(46, 224, 255, 0.10);
}

.user-bar .theme-opt {
    border: none;
    background: transparent;
    color: var(--txt-3);
    font-size: 14px;
    padding: 4px 11px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}

.user-bar .theme-opt:hover {
    color: var(--cyan);
}

.user-bar .theme-opt.active {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #041620;
    font-weight: 700;
}
/* 霓虹按钮：默认即带霓虹色 */
.user-bar .theme-opt[data-theme-val="neon"] {
    color: #8df2ff;
    text-shadow: 0 0 9px rgba(46, 224, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(46, 224, 255, 0.4), 0 0 10px rgba(46, 224, 255, 0.25);
}
.user-bar .theme-opt[data-theme-val="neon"].active {
    text-shadow: none;
    box-shadow: 0 0 16px rgba(46, 224, 255, 0.55);
}
