/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Global Layout Adjustments */
    body {
        overscroll-behavior-y: none; /* Prevent pull-to-refresh on some browsers */
        background-color: var(--color-page);
    }
    
    .dark body {
        background-color: var(--color-page);
    }

    /* Mobile Drawer / Bottom Sheet */
    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-card);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        z-index: 151;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    }

    .dark .mobile-drawer {
        background: var(--color-card);
        border-top: 1px solid var(--color-line);
    }

    .mobile-drawer.active {
        transform: translateY(0);
    }

    .drawer-handle {
        width: 3rem;
        height: 0.25rem;
        background: var(--color-line);
        border-radius: 999px;
        margin: 0.75rem auto;
    }

    .dark .drawer-handle {
        background: var(--color-line);
    }

    /* New Mobile Immersive Layout - Matching Design */
    .mobile-immersive-container {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 4rem); /* Subtract header height */
        padding: 1rem;
        gap: 1rem;
        overflow-y: auto;
        padding-bottom: 6rem; /* Space for fixed bottom action */
    }

    /* 1. Parameter Grid Area */
    .mobile-param-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        background: var(--color-card);
        padding: 1rem;
        border-radius: 1rem;
    }

    .dark .mobile-param-grid {
        background: var(--color-card);
    }

    .mobile-select-box {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        position: relative; /* For dropdown positioning */
    }

    /* Mobile Dropdown Styles */
    .mobile-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 100%;
        width: max-content;
        max-width: 85vw;
        z-index: 20;
        margin-top: 0.25rem;
    }

    /* Right align dropdown for the 3rd column to prevent overflow */
    .mobile-select-box:nth-child(3n) .mobile-dropdown {
        left: auto;
        right: 0;
    }

    .mobile-select-label {
        font-size: 0.75rem;
        color: #94a3b8;
        font-weight: 600;
    }

    .mobile-select-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        padding: 0.5rem;
        height: 2.25rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #334155;
    }

    .dark .mobile-select-trigger {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    .mobile-select-trigger span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 2. Reference Image Area */
    .mobile-ref-container {
        background: #ffffff;
        border-radius: 1rem;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .dark .mobile-ref-container {
        background: #1e293b;
    }

    .mobile-ref-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-ref-title {
        font-size: 0.75rem;
        color: #94a3b8;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-ref-history-btn {
        font-size: 0.75rem;
        color: var(--color-secondary);
        background: var(--color-secondary-soft);
        padding: 0.25rem 0.75rem;
        border-radius: 999px;
        font-weight: 600;
    }

    .dark .mobile-ref-history-btn {
        background: var(--color-secondary-soft);
        color: var(--color-secondary);
    }

    .mobile-upload-placeholder {
        border: 2px dashed #cbd5e1;
        border-radius: 1rem;
        height: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        color: #64748b;
        cursor: pointer;
    }

    .dark .mobile-upload-placeholder {
        border-color: #334155;
        color: #94a3b8;
    }

    .mobile-upload-icon {
        font-size: 1.5rem;
        color: #94a3b8;
    }

    .mobile-upload-text {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .mobile-upload-subtext {
        font-size: 0.65rem;
        color: #cbd5e1;
    }

    /* Reference Images List (When images uploaded) */
    .mobile-ref-list {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
    }
    
    .mobile-ref-item {
        width: 4rem;
        height: 4rem;
        border-radius: 0.5rem;
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
    }

    /* 3. Input Card Area */
    .mobile-input-card {
        background: #ffffff;
        border-radius: 1rem;
        padding: 1rem;
        flex: 1;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .dark .mobile-input-card {
        background: #1e293b;
    }

    .mobile-input-tools {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mobile-tool-btn {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border: 1px dashed #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
    }

    .dark .mobile-tool-btn {
        border-color: #334155;
    }

    .mobile-input-textarea {
        flex: 1;
        width: 100%;
        background: transparent;
        border: none;
        resize: none;
        font-size: 0.95rem;
        line-height: 1.6;
        outline: none;
        color: #334155;
    }

    .dark .mobile-input-textarea {
        color: #e2e8f0;
    }

    .mobile-input-textarea::placeholder {
        color: #94a3b8;
    }

    /* 4. Bottom Action Bar (Fixed) */
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        background: rgba(243, 244, 246, 0.9); /* Matches body bg */
        backdrop-filter: blur(10px);
        display: flex;
        gap: 0.75rem;
        z-index: 40;
    }

    .dark .mobile-bottom-bar {
        background: rgba(2, 6, 23, 0.9);
    }

    /* Batch Control Group */
    .mobile-batch-group {
        display: flex;
        background: #ffffff;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        height: 3.5rem;
    }

    .dark .mobile-batch-group {
        background: #1e293b;
    }

    .batch-btn {
        width: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 0.875rem;
    }

    .batch-display {
        width: 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #f1f5f9;
        border-right: 1px solid #f1f5f9;
    }

    .dark .batch-display {
        border-color: #334155;
    }

    .batch-num {
        font-weight: bold;
        font-size: 1.125rem;
        line-height: 1;
        color: #0f172a;
    }

    .dark .batch-num {
        color: #f8fafc;
    }

    .batch-label {
        font-size: 0.55rem;
        color: #94a3b8;
        text-transform: uppercase;
    }

    /* Generate Button */
    .mobile-gen-btn {
        flex: 1;
        height: 3.5rem;
        border-radius: 0.75rem;
        background: var(--color-primary);
        color: var(--color-primary-contrast);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 20%, transparent);
        transition: transform 0.1s;
    }

    .mobile-gen-btn:active {
        transform: scale(0.98);
    }

    .mobile-gen-btn:disabled {
        opacity: 0.5;
        box-shadow: none;
        cursor: not-allowed;
    }

    .gen-cost-pill {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 500;
    }

    /* Task Queue Drawer Specifics */
    .mobile-queue-drawer {
        height: 85vh;
    }

    /* Fullscreen Preview Modal */
    .mobile-fullscreen-preview {
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 200;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .mobile-fullscreen-preview.active {
        opacity: 1;
        pointer-events: auto;
    }

    .preview-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        z-index: 201;
    }

    .ecommerce-mobile-page,
    .mine-mobile-page {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
    }

    .ecommerce-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
        padding: 0.3rem;
        border: 1px solid #ECEEF2;
        border-radius: 0.75rem;
        background: #F4F5F7;
        box-shadow: none;
    }

    .dark .ecommerce-mobile-tabs {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .ecommerce-mobile-tabs button {
        min-height: 2.5rem;
        border-radius: 0.55rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        color: #64748b;
        font-size: 0.8125rem;
        font-weight: 700;
        transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .ecommerce-mobile-tabs button.is-active {
        color: #2F6BFF;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
    }

    .dark .ecommerce-mobile-tabs button.is-active {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.08);
    }

    .ecommerce-mobile-tabs button span {
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 0.35rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #dbeafe;
        color: #2563eb;
        font-size: 0.6875rem;
        font-weight: 900;
    }

    .ecommerce-mobile-workspace {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .app-content,
    .ecommerce-mobile-page,
    .ecommerce-mobile-workspace,
    .mobile-ref-strip,
    .mobile-select-menu {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .app-content::-webkit-scrollbar,
    .ecommerce-mobile-page::-webkit-scrollbar,
    .ecommerce-mobile-workspace::-webkit-scrollbar,
    .mobile-ref-strip::-webkit-scrollbar,
    .mobile-select-menu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .mobile-panel,
    .mine-account-card,
    .mine-menu-card {
        border: 1px solid #ECEEF2;
        border-radius: 0.875rem;
        background: #FFFFFF;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .dark .mobile-panel,
    .dark .mine-account-card,
    .dark .mine-menu-card {
        background: rgba(15, 23, 42, 0.78);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-panel {
        padding: 0.7rem;
    }

    .mobile-field-label,
    .mobile-section-title,
    .mobile-panel-heading h3 {
        color: #0f172a;
        font-weight: 900;
    }

    .dark .mobile-field-label,
    .dark .mobile-section-title,
    .dark .mobile-panel-heading h3 {
        color: #f8fafc;
    }

    .mobile-field-label {
        margin-bottom: 0.375rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.6875rem;
        color: #64748b;
    }

    .mobile-select-trigger-soft {
        min-height: 2.75rem;
        padding: 0 0.75rem;
        border: 1px solid #E2E5EB;
        border-radius: 0.65rem;
        background: #F4F5F7;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        color: #0f172a;
        font-size: 0.8125rem;
        font-weight: 700;
    }

    .dark .mobile-select-trigger-soft {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-select-trigger-soft.is-open {
        border-color: #2F6BFF;
        box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
    }

    .mobile-select-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        z-index: 60;
        max-height: 20rem;
        overflow-y: auto;
        padding: 0.375rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 0.875rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(18px);
    }

    .dark .mobile-select-menu {
        background: rgba(15, 23, 42, 0.96);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-select-option {
        min-height: 3.75rem;
        padding: 0.625rem;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: #0f172a;
    }

    .dark .mobile-select-option {
        color: #f8fafc;
    }

    .mobile-select-option.is-selected {
        background: rgba(37, 99, 235, 0.08);
    }

    .mobile-select-option.is-disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    .mobile-option-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.75rem;
        overflow: hidden;
        flex-shrink: 0;
        display: grid;
        place-items: center;
        background: #f1f5f9;
        color: #64748b;
    }

    .dark .mobile-option-icon {
        background: rgba(255, 255, 255, 0.08);
    }

    .mobile-option-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-select-option strong,
    .mobile-select-option span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-select-option strong {
        font-size: 0.875rem;
        font-weight: 900;
    }

    .mobile-select-option span {
        margin-top: 0.125rem;
        color: #94a3b8;
        font-size: 0.71875rem;
    }

    .mobile-example-btn,
    .mobile-secondary-link {
        min-height: 1.75rem;
        padding: 0 0.625rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: #eff6ff;
        color: #2563eb;
        font-size: 0.6875rem;
        font-weight: 900;
    }

    .mobile-queue-heading-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem;
        min-width: 0;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .mobile-queue-check,
    .mobile-clear-failed-btn,
    .mobile-queue-action-btn {
        min-height: 1.75rem;
        border: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 0.6875rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .mobile-queue-check {
        gap: 0.28rem;
        padding: 0 0.45rem;
        background: #eaf1ff;
        color: #2f6bff;
    }

    .mobile-queue-check .custom-checkbox,
    .mobile-task-check .custom-checkbox {
        width: 1rem;
        height: 1rem;
        border-radius: 0.3rem;
        flex: 0 0 auto;
    }

    .mobile-queue-bulk-actions {
        display: inline-flex;
        align-items: center;
        gap: 0.28rem;
        flex: 0 0 auto;
    }

    .mobile-queue-action-btn {
        width: 1.75rem;
        color: #2f6bff;
        background: #eaf1ff;
    }

    .mobile-queue-action-btn.danger,
    .mobile-clear-failed-btn {
        color: #e11d48;
        background: rgba(225, 29, 72, 0.1);
    }

    .mobile-clear-failed-btn {
        gap: 0.3rem;
        padding: 0 0.55rem;
    }

    .mobile-queue-action-btn:active,
    .mobile-clear-failed-btn:active,
    .mobile-queue-check:active {
        transform: scale(0.96);
    }

    .dark .mobile-queue-check,
    .dark .mobile-queue-action-btn {
        background: rgba(47, 107, 255, 0.18);
        color: #93b4ff;
    }

    .dark .mobile-queue-action-btn.danger,
    .dark .mobile-clear-failed-btn {
        background: rgba(244, 63, 94, 0.16);
        color: #fb7185;
    }

    .mobile-upload-section {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    .mobile-section-title,
    .mobile-panel-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .mobile-section-title span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.82rem;
        font-weight: 900;
    }

    .mobile-section-title em {
        color: #2563eb;
        font-size: 0.7rem;
        font-style: normal;
        font-weight: 900;
    }

    .mobile-ref-strip {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.62rem 0.62rem 0.125rem 0;
    }

    .mobile-ref-tile,
    .mobile-ref-add {
        position: relative;
        width: 4.25rem;
        height: 4.25rem;
        border-radius: 0.75rem;
        flex: 0 0 auto;
        overflow: hidden;
        background: #f8fafc;
        border: 1px solid rgba(148, 163, 184, 0.22);
    }

    .mobile-ref-tile {
        overflow: visible;
    }

    .mobile-ref-tile img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }

    .mobile-ref-tile .ref-upload-overlay {
        border-radius: inherit;
    }

    .mobile-ref-tile > span {
        position: absolute;
        left: 0.3rem;
        top: 0.3rem;
        min-width: 1.1rem;
        height: 1.1rem;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(37, 99, 235, 0.9);
        color: #ffffff;
        font-size: 0.56rem;
        font-weight: 900;
    }

    .mobile-ref-tile button {
        position: absolute;
        right: -0.5rem;
        top: -0.5rem;
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        min-height: 1.25rem;
        padding: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.86);
        color: #ffffff;
        font-size: 0.58rem;
        line-height: 1;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0.25rem 0.6rem rgba(15, 23, 42, 0.24);
        z-index: 5;
    }

    .mobile-ref-tile button i {
        font-size: 0.58rem;
        line-height: 1;
    }

    .mobile-ref-add,
    .mobile-upload-drop {
        border: 1px dashed rgba(148, 163, 184, 0.55);
        color: #64748b;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.68rem;
        font-weight: 900;
    }

    .mobile-upload-drop {
        min-height: 5.75rem;
        border-radius: 0.875rem;
        background: rgba(248, 250, 252, 0.74);
    }

    .dark .mobile-ref-add,
    .dark .mobile-upload-drop {
        color: #94a3b8;
        background: rgba(255, 255, 255, 0.04);
    }

    .mobile-generate-panel {
        padding: 0.75rem;
        border-radius: 0.875rem;
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        gap: 0.625rem;
        background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.9));
        border: 1px solid rgba(37, 99, 235, 0.16);
    }

    .dark .mobile-generate-panel {
        background: rgba(37, 99, 235, 0.08);
    }

    .mobile-generate-panel strong {
        display: block;
        margin-top: 0.125rem;
        color: #0f172a;
        font-size: 1rem;
        font-weight: 900;
    }

    .dark .mobile-generate-panel strong {
        color: #f8fafc;
    }

    .mobile-cost-pill {
        min-height: 2.25rem;
        padding: 0 0.75rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        background: #fffbeb;
        color: #b45309;
        font-size: 0.75rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .mobile-cost-pill span {
        padding: 0 0.35rem;
        border-radius: 0.35rem;
        background: #f59e0b;
        color: #ffffff;
        font-size: 0.625rem;
    }

    .mobile-generate-panel > button {
        min-height: 2.75rem;
        min-width: 0;
        border-radius: 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        background: #2563eb;
        color: #ffffff;
        font-size: 0.875rem;
        font-weight: 900;
        box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
    }

    .mobile-generate-panel > button:disabled {
        opacity: 0.52;
        box-shadow: none;
    }

    .mobile-panel-heading {
        margin-bottom: 0.55rem;
        align-items: flex-start;
    }

    .mobile-panel-heading.compact {
        margin-bottom: 0.45rem;
    }

    .mobile-panel-heading h3 {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.86rem;
    }

    .mobile-panel-heading p {
        margin-top: 0.2rem;
        color: #94a3b8;
        font-size: 0.71875rem;
        font-weight: 700;
    }

    .mobile-counter {
        border-radius: 999px;
        padding: 0.25rem 0.55rem;
        background: #eff6ff;
        color: #2563eb;
        font-size: 0.75rem;
        font-weight: 900;
    }

    .mobile-result-viewer {
        position: relative;
        min-height: 19rem;
        border-radius: 0.875rem;
        overflow: hidden;
        background: #0b1120;
    }

    /* 成片预览：左右切换箭头 */
    .mobile-result-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.55);
        color: #ffffff;
        font-size: 0.875rem;
        backdrop-filter: blur(6px);
    }

    .mobile-result-nav.prev {
        left: 0.625rem;
    }

    .mobile-result-nav.next {
        right: 0.625rem;
    }

    .mobile-result-nav:active {
        background: rgba(15, 23, 42, 0.78);
    }

    /* 成片预览：圆点指示 */
    .mobile-result-dots {
        position: absolute;
        bottom: 0.75rem;
        left: 0;
        right: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        pointer-events: none;
    }

    .mobile-result-dots span {
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.45);
        transition: width 0.2s ease, background-color 0.2s ease;
    }

    .mobile-result-dots span.is-active {
        width: 1.1rem;
        background: #ffffff;
    }

    .mobile-result-frame {
        width: 100%;
        min-height: 19rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0b1120;
    }

    .mobile-result-frame img {
        width: 100%;
        max-height: 26rem;
        object-fit: contain;
    }

    .mobile-result-empty {
        min-height: 19rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        color: #94a3b8;
        text-align: center;
        padding: 1.5rem;
    }

    .mobile-result-empty.small {
        min-height: 8rem;
    }

    .mobile-result-empty i {
        font-size: 2rem;
        opacity: 0.55;
    }

    .mobile-result-empty strong {
        color: #64748b;
        font-size: 0.875rem;
    }

    .mobile-result-empty span {
        font-size: 0.75rem;
    }

    .mobile-result-thumbs {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-top: 0.625rem;
    }

    .mobile-result-thumbs button {
        width: 3rem;
        height: 4rem;
        flex: 0 0 auto;
        border-radius: 0.625rem;
        overflow: hidden;
        border: 2px solid transparent;
        background: #0b1120;
    }

    .mobile-result-thumbs button.is-active {
        border-color: #2563eb;
    }

    .mobile-result-thumbs img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-result-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .mobile-result-actions button {
        min-height: 2.5rem;
        border-radius: 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        background: #f1f5f9;
        color: #334155;
        font-size: 0.75rem;
        font-weight: 900;
    }

    .mobile-result-actions button.danger {
        background: #fef2f2;
        color: #dc2626;
    }

    .dark .mobile-result-actions button {
        background: rgba(255, 255, 255, 0.07);
        color: #e2e8f0;
    }

    .mobile-task-list {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .mobile-queue-pager {
        position: relative;
        margin-top: 0.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .mobile-queue-page-btn,
    .mobile-queue-page-indicator,
    .mobile-queue-size-trigger {
        height: 2rem;
        border: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        white-space: nowrap;
        font-weight: 800;
    }

    .mobile-queue-page-btn {
        width: 2rem;
        background: #eaf1ff;
        color: #2f6bff;
        font-size: 0.7rem;
    }

    .mobile-queue-page-btn:disabled {
        opacity: 0.36;
    }

    .mobile-queue-page-indicator {
        min-width: 4.15rem;
        padding: 0 0.65rem;
        background: rgba(241, 245, 249, 0.92);
        color: #0f172a;
        font-size: 0.75rem;
    }

    .mobile-queue-page-size {
        position: relative;
        flex: 0 0 auto;
        z-index: 12;
    }

    .mobile-queue-size-trigger {
        gap: 0.3rem;
        padding: 0 0.62rem;
        background: #eaf1ff;
        color: #2f6bff;
        font-size: 0.68rem;
    }

    .mobile-queue-size-trigger.is-open {
        background: #2f6bff;
        color: #fff;
    }

    .mobile-queue-size-trigger i {
        font-size: 0.6rem;
    }

    .mobile-queue-size-menu {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        width: 5.25rem;
        padding: 0.3rem;
        border-radius: 0.85rem;
        border: 1px solid rgba(148, 163, 184, 0.18);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 1.1rem 2.5rem rgba(15, 23, 42, 0.18);
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        z-index: 40;
    }

    .mobile-queue-size-menu::after {
        content: '';
        position: absolute;
        right: 1rem;
        bottom: -0.36rem;
        width: 0.72rem;
        height: 0.72rem;
        background: rgba(255, 255, 255, 0.98);
        border-right: 1px solid rgba(148, 163, 184, 0.18);
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        transform: rotate(45deg);
    }

    .mobile-queue-size-option {
        position: relative;
        z-index: 1;
        height: 1.95rem;
        border: 0;
        border-radius: 0.65rem;
        background: transparent;
        color: #475569;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .mobile-queue-size-option.is-selected {
        background: #2f6bff;
        color: #fff;
    }

    .dark .mobile-queue-page-btn,
    .dark .mobile-queue-size-trigger {
        background: rgba(47, 107, 255, 0.18);
        color: #93b4ff;
    }

    .dark .mobile-queue-size-trigger.is-open {
        background: #2f6bff;
        color: #fff;
    }

    .dark .mobile-queue-page-indicator {
        background: rgba(255, 255, 255, 0.06);
        color: #e2e8f0;
    }

    .dark .mobile-queue-size-menu,
    .dark .mobile-queue-size-menu::after {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(15, 23, 42, 0.98);
    }

    .dark .mobile-queue-size-option {
        color: #cbd5e1;
    }

    .dark .mobile-queue-size-option.is-selected {
        background: #2f6bff;
        color: #fff;
    }

    .mobile-task-row {
        position: relative;
        min-height: 3.75rem;
        padding: 0.42rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.18);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(248, 250, 252, 0.7);
    }

    .mobile-task-row.is-active:not(.is-selected) {
        border-color: rgba(47, 107, 255, 0.26);
        background: rgba(248, 250, 252, 0.7);
    }

    .mobile-task-row.is-active:not(.is-selected)::before {
        content: '';
        position: absolute;
        left: -1px;
        top: 0.75rem;
        bottom: 0.75rem;
        width: 0.18rem;
        border-radius: 999px;
        background: #2f6bff;
    }

    .mobile-task-row.is-selected {
        border-color: rgba(47, 107, 255, 0.45);
        background: rgba(234, 241, 255, 0.9);
    }

    .mobile-task-row.is-active.is-selected {
        border-color: rgba(47, 107, 255, 0.72);
        background: rgba(219, 234, 254, 0.95);
    }

    .dark .mobile-task-row {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .dark .mobile-task-row.is-active:not(.is-selected) {
        border-color: rgba(147, 180, 255, 0.25);
        background: rgba(255, 255, 255, 0.04);
    }

    .dark .mobile-task-row.is-active:not(.is-selected)::before {
        background: #93b4ff;
    }

    .dark .mobile-task-row.is-selected {
        border-color: rgba(147, 180, 255, 0.42);
        background: rgba(47, 107, 255, 0.12);
    }

    .dark .mobile-task-row.is-active.is-selected {
        border-color: rgba(147, 180, 255, 0.68);
        background: rgba(47, 107, 255, 0.18);
    }

    .mobile-task-check {
        width: 1.25rem;
        min-height: 2.75rem;
        display: grid;
        place-items: center;
        flex: 0 0 1.25rem;
    }

    .mobile-task-thumb {
        width: 2.75rem;
        height: 2.75rem;
        flex: 0 0 auto;
        border-radius: 0.75rem;
        overflow: hidden;
        display: grid;
        place-items: center;
        background: #e2e8f0;
        color: #64748b;
    }

    .mobile-task-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-task-row strong,
    .mobile-task-row span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-task-row strong {
        color: #0f172a;
        font-size: 0.75rem;
        font-weight: 900;
    }

    .dark .mobile-task-row strong {
        color: #f8fafc;
    }

    .mobile-task-row span {
        margin-top: 0.15rem;
        color: #94a3b8;
        font-size: 0.64rem;
        font-weight: 700;
    }

    .mobile-empty-line {
        padding: 1rem;
        text-align: center;
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: 800;
    }

    .mine-account-card {
        padding: 1rem;
    }

    .mine-account-main {
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }

    .mine-avatar {
        width: 4rem;
        height: 4rem;
        border-radius: 1.25rem;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, #2563eb, #60a5fa);
        color: #ffffff;
        font-size: 1.5rem;
        font-weight: 900;
        box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
    }

    .mine-avatar.is-guest {
        background: #e2e8f0;
        color: #64748b;
        box-shadow: none;
    }

    .mine-account-card h3 {
        color: #0f172a;
        font-size: 1rem;
        font-weight: 900;
    }

    .dark .mine-account-card h3 {
        color: #f8fafc;
    }

    .mine-account-card p {
        margin-top: 0.25rem;
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .mine-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.5rem;
    }

    .mine-badges span {
        min-height: 1.5rem;
        padding: 0 0.55rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        background: #fffbeb;
        color: #b45309;
        font-size: 0.6875rem;
        font-weight: 900;
    }

    .mine-badges span.vip {
        background: #eff6ff;
        color: #2563eb;
    }

    .mine-login-btn {
        width: 100%;
        min-height: 2.75rem;
        margin-top: 1rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(37, 99, 235, 0.35);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        color: #2563eb;
        font-size: 0.875rem;
        font-weight: 900;
    }

    .mine-menu-card {
        overflow: hidden;
    }

    .mine-menu-row {
        width: 100%;
        min-height: 3.5rem;
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        color: #0f172a;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14);
        font-size: 0.875rem;
        font-weight: 900;
    }

    .mine-menu-row:last-child {
        border-bottom: 0;
    }

    .dark .mine-menu-row {
        color: #f8fafc;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .mine-menu-row span {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .mine-menu-row span i {
        width: 1.25rem;
        color: #64748b;
        text-align: center;
    }

    .mine-menu-row > i {
        color: #94a3b8;
        font-size: 0.75rem;
    }

    .mine-menu-row.danger {
        color: #dc2626;
    }

    /* =========================================
       设计对齐：扁平化字重 + 主色 + 新组件
       ========================================= */

    /* 字重收敛（设计图字重适中，非全员 900） */
    .mobile-field-label,
    .mobile-section-title,
    .mobile-panel-heading h3 { font-weight: 800; }
    .mobile-section-title span { font-weight: 800; }
    .mobile-field-label { font-weight: 700; }
    .mobile-select-option strong { font-weight: 700; }
    .mobile-task-row strong { font-weight: 700; }
    .mine-menu-row { font-weight: 700; }
    .mine-account-card h3 { font-weight: 800; }
    .mine-badges span { font-weight: 700; }
    .mine-login-btn { font-weight: 800; }
    .mobile-section-title em { color: #2F6BFF; }
    .mobile-counter { background: #EAF1FF; color: #2F6BFF; }
    .mobile-example-btn,
    .mobile-secondary-link { background: #EAF1FF; color: #2F6BFF; font-weight: 700; }
    .mobile-secondary-link i { font-size: 0.625rem; }
    .mobile-select-option.is-selected { background: rgba(47, 107, 255, 0.08); }
    .mobile-ref-tile > span { background: rgba(47, 107, 255, 0.92); }
    .mobile-result-thumbs button.is-active { border-color: #2F6BFF; }

    /* 模型 / 功能 / 示例图 三列布局 */
    .mobile-config-grid {
        position: relative;
        z-index: 40;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 3.25rem;
        gap: 0.625rem;
        align-items: end;
    }

    .mobile-config-grid > .relative {
        position: static;
    }

    .mobile-config-grid .mobile-select-menu {
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        width: 100%;
        min-width: 0;
    }

    .mobile-config-grid .mobile-select-trigger-soft {
        padding: 0 0.62rem;
        font-size: 0.75rem;
    }

    .mobile-config-grid .mobile-select-trigger-soft > span {
        min-width: 0;
        line-height: 1.2;
    }

    .mobile-select-option > .min-w-0 {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-config-grid .mobile-select-option strong {
        font-size: 0.8125rem;
        font-weight: 700;
    }

    .mobile-config-grid .mobile-select-option span {
        font-size: 0.6875rem;
    }

    .mobile-config-grid .mobile-select-menu button {
        font-size: 0.625rem;
    }

    .mobile-example-thumb {
        position: relative;
        width: 3.25rem;
        height: 2.75rem;
        border-radius: 0.65rem;
        overflow: hidden;
        border: 1px solid #ECEEF2;
        background: #FFFFFF;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.02rem;
        color: #94a3b8;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
    }

    .mobile-example-thumb:active {
        transform: scale(0.96);
        border-color: rgba(47, 107, 255, 0.45);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    }

    .dark .mobile-example-thumb {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .mobile-example-svg {
        width: 1.35rem;
        height: 1.35rem;
        flex: 0 0 auto;
        overflow: visible;
    }

    .mobile-example-scene {
        opacity: 1;
        transform-box: fill-box;
        transform-origin: center;
        transform: none;
    }

    .mobile-example-thumb span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #64748b;
        font-size: 0.5rem;
        font-weight: 700;
        line-height: 1.1;
    }

    .mobile-example-thumb.is-empty {
        justify-content: center;
        color: #cbd5e1;
        pointer-events: none;
    }

    .mobile-example-thumb.is-empty span {
        color: #94a3b8;
    }

    .mobile-example-thumb.is-empty .mobile-example-scene {
        opacity: 1;
        transform: none;
    }

    /* 生成操作条 */
    .mobile-action-panel {
        position: relative;
        z-index: 18;
        overflow: visible;
        padding: 0.72rem 0.7rem;
    }

    .mobile-action-row {
        display: grid;
        grid-template-columns: 3.95rem minmax(5.2rem, 1fr) fit-content(9.6rem);
        align-items: center;
        gap: 0.42rem;
    }

    .mobile-batch-select {
        position: relative;
        z-index: 80;
        min-width: 0;
    }

    .mobile-batch-select::after {
        content: "";
        position: absolute;
        top: 0.58rem;
        right: -0.2rem;
        width: 1px;
        height: calc(100% - 1.16rem);
        background: rgba(148, 163, 184, 0.18);
    }

    .mobile-batch-trigger {
        width: 100%;
        min-height: 3.1rem;
        padding: 0.18rem 0.18rem 0.18rem 0.05rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        align-items: center;
        align-content: center;
        justify-content: start;
        gap: 0.18rem 0.22rem;
        color: #0f172a;
        box-shadow: none;
        transition: color 0.16s ease, transform 0.12s ease;
    }

    .mobile-batch-trigger:active {
        transform: scale(0.98);
    }

    .mobile-batch-trigger.is-open {
        color: #2F6BFF;
        box-shadow: none;
    }

    .mobile-batch-trigger strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.03rem;
        font-weight: 850;
        line-height: 1;
        letter-spacing: 0;
    }

    .mobile-batch-trigger i {
        color: #64748b;
        font-size: 0.62rem;
        transition: transform 0.16s ease, color 0.16s ease;
    }

    .mobile-batch-trigger.is-open i {
        color: #2F6BFF;
        transform: rotate(180deg);
    }

    .mobile-batch-trigger span {
        grid-column: 1 / -1;
        color: #94a3b8;
        font-size: 0.6rem;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-batch-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.4rem);
        z-index: 90;
        max-height: 12.5rem;
        overflow-y: auto;
        padding: 0.28rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 0.82rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(18px);
    }

    .mobile-batch-option {
        width: 100%;
        min-height: 2.05rem;
        padding: 0 0.45rem;
        border-radius: 0.58rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #334155;
        font-size: 0.78rem;
        font-weight: 850;
    }

    .mobile-batch-option.is-selected {
        background: rgba(47, 107, 255, 0.09);
        color: #2F6BFF;
    }

    .mobile-batch-option i {
        font-size: 0.62rem;
    }

    .mobile-price-card {
        min-width: 0;
        min-height: 3.1rem;
        padding: 0.18rem 0.05rem 0.18rem 0.24rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.18rem;
        box-shadow: none;
    }

    .mobile-price-card.is-vip-active,
    .mobile-price-card.has-vip-hint {
        background: transparent;
    }

    .mobile-price-main {
        min-width: 0;
        display: flex;
        align-items: baseline;
        gap: 0.18rem;
        overflow: hidden;
        white-space: nowrap;
    }

    .mobile-price-kicker {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.6rem;
        font-weight: 850;
    }

    .mobile-price-card.is-vip-active .mobile-price-kicker {
        color: #9A6400;
    }

    .mobile-price-main strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #0f172a;
        font-size: 0.95rem;
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0;
    }

    .mobile-price-main em {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.62rem;
        font-style: normal;
        font-weight: 800;
    }

    .mobile-price-sub {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #94a3b8;
        font-size: 0.6rem;
        font-weight: 800;
        line-height: 1.15;
    }

    .mobile-price-sub span {
        text-decoration: line-through;
        text-decoration-thickness: 1px;
    }

    .mobile-price-sub b {
        margin-left: 0.22rem;
        color: #A16207;
        font-weight: 900;
    }

    .mobile-price-vip-hint {
        color: #9A6400;
    }

    .dark .mobile-batch-trigger,
    .dark .mobile-price-card {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .dark .mobile-batch-select::after {
        background: rgba(226, 232, 240, 0.14);
    }

    .dark .mobile-batch-trigger {
        color: #f8fafc;
    }

    .dark .mobile-batch-menu {
        background: rgba(15, 23, 42, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
    }

    .dark .mobile-batch-option {
        color: #e2e8f0;
    }

    .dark .mobile-batch-option.is-selected {
        background: rgba(47, 107, 255, 0.18);
        color: #93c5fd;
    }

    .dark .mobile-price-card.is-vip-active,
    .dark .mobile-price-card.has-vip-hint {
        background: transparent;
    }

    .dark .mobile-price-main strong {
        color: #f8fafc;
    }

    .dark .mobile-price-kicker,
    .dark .mobile-price-main em {
        color: #94a3b8;
    }

    .dark .mobile-price-card.is-vip-active .mobile-price-kicker,
    .dark .mobile-price-vip-hint,
    .dark .mobile-price-sub b {
        color: #fbbf24;
    }

    .mobile-generate-btn {
        justify-self: end;
        width: 100%;
        min-width: 0;
        min-height: 3.25rem;
        padding: 0 0.7rem;
        border-radius: 0.78rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.36rem;
        background: linear-gradient(135deg, #2F6BFF 0%, #2558E8 100%);
        color: #fff;
        font-size: 0.82rem;
        font-weight: 850;
        white-space: nowrap;
        box-shadow: 0 10px 22px rgba(47, 107, 255, 0.25);
        transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.16s ease;
    }

    .mobile-generate-btn i {
        flex: 0 0 auto;
        font-size: 0.82rem;
    }

    .mobile-generate-btn span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-generate-btn:active { transform: scale(0.97); }

    .mobile-generate-btn:disabled {
        opacity: 0.5;
        box-shadow: none;
    }

    @media (max-width: 360px) {
        .mobile-action-row {
            grid-template-columns: 3.6rem minmax(4.8rem, 1fr) fit-content(8.7rem);
            gap: 0.3rem;
        }

        .mobile-action-panel {
            padding: 0.62rem 0.56rem;
        }

        .mobile-price-card {
            padding-left: 0.2rem;
            padding-right: 0;
        }

        .mobile-generate-btn {
            padding: 0 0.54rem;
            gap: 0.28rem;
            font-size: 0.74rem;
        }

        .mobile-generate-btn i {
            font-size: 0.76rem;
        }

        .mobile-price-main strong {
            font-size: 0.86rem;
        }

        .mobile-price-kicker,
        .mobile-price-main em,
        .mobile-price-sub {
            font-size: 0.56rem;
        }
    }

    /* 任务行右侧箭头 */
    .mobile-task-arrow {
        flex: 0 0 auto;
        color: #cbd5e1;
        font-size: 0.7rem;
    }

    /* 圆点指示：移到大图下方独立一行 */
    .ecommerce-mobile-workspace .mobile-result-dots {
        position: static;
        margin-top: 0.625rem;
    }

    .ecommerce-mobile-workspace .mobile-result-dots span {
        background: #cbd5e1;
        pointer-events: auto;
    }

    .ecommerce-mobile-workspace .mobile-result-dots span.is-active {
        background: #2F6BFF;
    }

    /* 成片预览：浅色底（夜间转深） */
    .mobile-result-viewer,
    .mobile-result-frame {
        background: #F1F3F6;
    }

    .dark .mobile-result-viewer,
    .dark .mobile-result-frame {
        background: #0b1120;
    }

    /* 失败原因 */
    .mobile-task-error {
        margin-top: 0.625rem;
        padding: 0.55rem 0.7rem;
        border-radius: 0.6rem;
        background: #fef2f2;
        color: #dc2626;
        font-size: 0.71875rem;
        font-weight: 600;
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .dark .mobile-task-error { background: rgba(239, 68, 68, 0.1); }

    /* 空状态「去生成」引导按钮 */
    .mobile-empty-cta {
        margin-top: 0.75rem;
        min-height: 2.25rem;
        padding: 0 1rem;
        border-radius: 0.65rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: #2F6BFF;
        color: #fff;
        font-size: 0.8125rem;
        font-weight: 800;
    }

    /* 我的页用户卡片箭头 */
    a.mine-account-main { text-decoration: none; }

    .mine-account-arrow {
        flex: 0 0 auto;
        align-self: center;
        color: #cbd5e1;
        font-size: 0.8rem;
    }

    /* =========================================
       移动端历史记录顶部面板优化（云端存档）
       ========================================= */
    
    /* 顶部面板容器 - 减小内边距和间距 */
    .sticky.top-0.z-\[25\] {
        padding: 0.625rem !important; /* 10px，原16px */
        gap: 0.5rem !important; /* 8px，原16px */
        margin-bottom: 0.75rem !important; /* 12px，原24px */
        border-radius: 0.75rem !important; /* 更小的圆角 */
    }
    
    /* 标题 - 更小字体 */
    .sticky.top-0 h3.font-bold {
        font-size: 0.8rem !important;
    }
    
    /* 搜索框 - 更紧凑 */
    .sticky.top-0 input[placeholder="搜索提示词..."] {
        padding: 0.375rem 0.5rem 0.375rem 2rem !important;
        font-size: 11px !important;
    }
    
    /* 分页器区域 - 更紧凑 */
    .sticky.top-0 .flex.flex-wrap.justify-center {
        gap: 0.375rem !important;
        margin-left: 0 !important;
    }
    
    /* 分页按钮 - 保持可点击尺寸但更紧凑 */
    .sticky.top-0 .flex.items-center.gap-1 button {
        width: 1.375rem !important; /* 22px，保持可点击 */
        height: 1.375rem !important;
        min-width: 1.375rem !important;
        min-height: 1.375rem !important;
    }
    
    /* 分页数字按钮 */
    .sticky.top-0 .flex.items-center.gap-1 button:not(:disabled) {
        font-size: 10px !important;
    }
    
    /* 每页选择器 */
    .sticky.top-0 select {
        font-size: 10px !important;
        padding: 0.125rem !important;
    }
    
    /* 分页文字 */
    .sticky.top-0 .text-\[10px\] {
        font-size: 9px !important;
    }
    
    /* 全选区域 - 更紧凑 */
    .sticky.top-0 .flex.items-center.gap-2.px-3 {
        padding: 0.25rem 0.5rem !important;
        gap: 0.375rem !important;
    }
    
    /* 全选文字 */
    .sticky.top-0 .flex.items-center.gap-2 span.text-xs {
        font-size: 10px !important;
    }
    
    /* 清空按钮 */
    .sticky.top-0 button.text-accent {
        font-size: 10px !important;
        padding: 0.25rem 0 !important;
    }
    
    /* =========================================
       移动端历史记录卡片优化
       ========================================= */
    
    /* 卡片信息区域 - 减小内边距和间距 */
    .grid.grid-cols-2 > div > .p-3 {
        padding: 0.5rem !important;
        gap: 0.25rem !important;
    }
    
    /* 移除 Prompt 区域的最小高度 */
    .grid.grid-cols-2 > div .min-h-\[2\.5em\] {
        min-height: auto !important;
    }
    
    /* Prompt 文本 - 限制为1行 */
    .grid.grid-cols-2 > div .line-clamp-2 {
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
    }
    
    /* 参数标签区域 - 更紧凑 */
    .grid.grid-cols-2 > div .flex-wrap.gap-1\.5 {
        gap: 0.25rem !important;
    }
    
    /* 参数标签 - 更小的字体和内边距 */
    .grid.grid-cols-2 > div .flex-wrap.gap-1\.5 > span {
        padding: 0.125rem 0.375rem !important;
        font-size: 9px !important;
    }
    
    /* 底部操作栏 - 减小上边距和内边距 */
    .grid.grid-cols-2 > div .pt-2.border-t {
        padding-top: 0.375rem !important;
        margin-top: 0.25rem !important;
    }
    
    /* 操作按钮 - 更紧凑 */
    .grid.grid-cols-2 > div .pt-2.border-t .flex.gap-1 {
        gap: 0 !important;
    }
    
    /* 隐藏移动端的"同款"文字，只保留图标 */
    .grid.grid-cols-2 > div .pt-2.border-t button[title="使用同款配置"] {
        padding: 0.25rem !important;
    }
    
    /* 模型名和时间行 - 更小字体 */
    .grid.grid-cols-2 > div .text-\[10px\] {
        font-size: 9px !important;
    }
}
