/* CSS变量定义 */
:root {
    /* 主色调 */
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;

    /* 辅助色 */
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #22c55e;

    /* 中性色 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(135deg, #e0f2fe 0%, #cffafe 55%, #e0f2fe 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f9ff 50%, #ecfeff 100%);

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* 间距 */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;

    /* 字体 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --night-bg: #05060a;
    --night-panel: #141620;
    --night-surface: rgba(20, 23, 31, 0.92);
    --night-border: rgba(255, 255, 255, 0.16);
    --night-highlight: #facc15;
    --night-text: #f4f4f5;
    --night-muted: #a1a1aa;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

body.theme-night {
    background-color: var(--night-bg);
    color: var(--night-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 通知中心样式 */
.nav-notification {
    position: relative;
    margin-right: var(--spacing-3);
}

.notification-bell {
    position: relative;
    background: rgba(16, 185, 129, 0.08);
    border: none;
    border-radius: var(--radius-lg);
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700);
}

.notification-bell:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.notification-bell svg {
    width: 18px;
    height: 18px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    min-width: 18px;
    text-align: center;
    animation: badge-pulse 2s infinite;
}

.notification-badge.hidden {
    display: none;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.9);
    transform-origin: top right;
    transition: all 0.3s ease;
    z-index: 1001;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(0.9);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4) var(--spacing-5);
    border-bottom: 1px solid var(--gray-200);
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: rgba(16, 185, 129, 0.1);
}

.notification-list {
    max-height: 450px;
    overflow-y: auto;
}

.notification-item {
    padding: var(--spacing-4) var(--spacing-5);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(16, 185, 129, 0.02));
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.notification-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.notification-tag.update {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #3b82f6;
}

.notification-tag.feature {
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    color: #16a34a;
}

.notification-tag.info {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.notification-tag.warning {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.notification-tag.benefit {
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: #7c3aed;
}

.notification-item-content {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 14px;
}

.notification-item-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    padding-left: 14px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-notification {
        margin-right: var(--spacing-2);
    }

    .notification-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .notification-badge {
        font-size: 10px;
        min-width: 16px;
        padding: 1px 4px;
    }

    /* 充值卡片响应式样式 */
    .recharge-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }

    .recharge-card {
        padding: var(--spacing-4);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .price-currency {
        font-size: 1.25rem;
    }

    .recharge-features {
        gap: var(--spacing-1);
    }

    .feature-item {
        font-size: 0.8125rem;
    }

    .recharge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }

    .recharge-contact {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1200px) {
    .recharge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
    }
}

.global-announcement-bar {
    width: 100%;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-align: center;
    border-bottom: 1px solid #fde68a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

@media (max-width: 768px) {
    .global-announcement-bar {
        font-size: 0.75rem;
        padding: 0 12px;
        justify-content: flex-start;
        text-align: left;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .global-announcement-bar::-webkit-scrollbar {
        display: none;
    }

    .nav-brand .logo {
        display: inline-flex;
        font-size: 1.1rem;
        align-items: center;
        justify-content: center;
    }

    .nav-brand h1 {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.nav-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 var(--spacing-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.nav-brand .logo {
    display: none;
}

.nav-brand h1 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gray-900);
}

.version {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: var(--spacing-3);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 3px 8px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: var(--radius-lg);
    cursor: pointer;
    position: relative;
}

.nav-user::after {
    content: attr(data-credits);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.nav-user::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    right: 18px;
    border: 6px solid transparent;
    border-bottom-color: rgba(15, 23, 42, 0.92);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.nav-user:hover::after,
.nav-user:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
}

.nav-username {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.82rem;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.nav-auth .btn-link {
    font-size: 0.82rem;
}

.theme-toggle {
    position: relative;
    width: 78px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #000000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.theme-toggle:hover {
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25), 0 18px 44px rgba(0, 0, 0, 0.38);
}

.theme-toggle-icon {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    opacity: 0.95;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.theme-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
    transition: transform 0.22s ease;
    pointer-events: none;
}

.theme-toggle[data-mode="day"] .theme-toggle-moon {
    opacity: 0;
}

.theme-toggle[data-mode="day"] .theme-toggle-sun {
    opacity: 1;
}

.theme-toggle[data-mode="night"] .theme-toggle-thumb {
    transform: translateX(44px);
}

.theme-toggle[data-mode="night"] .theme-toggle-sun {
    opacity: 0;
}

.theme-toggle[data-mode="night"] .theme-toggle-moon {
    opacity: 1;
}

.page-normal.theme-night .theme-toggle {
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.nav-auth .btn-logout {
    padding: 4px 10px;
    font-size: 0.75rem;
    min-width: 60px;
    border-width: 1px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-color);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-auth .btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.25);
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.hot::after {
    content: 'HOT';
    position: absolute;
    top: -12px;
    right: -18px;
    background: linear-gradient(135deg, #fef3c7, #fee2e2);
    color: #ef4444;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.nav-link.midjourney {
    color: #667eea;
    font-weight: 600;
}

.nav-link.midjourney::after {
    content: 'NEW';
    position: absolute;
    top: -12px;
    right: -18px;
    background: linear-gradient(135deg, #e0e7ff, #e9d5ff);
    color: #3b82f6;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主页横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px var(--spacing-8) var(--spacing-20);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 35%),
                radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.12), transparent 30%),
                radial-gradient(circle at 60% 70%, rgba(14, 165, 233, 0.08), transparent 35%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin: 0;
}

.hero-title .highlight {
    color: var(--gray-900);
}

.hero-typing {
    font-size: 1.2rem;
    color: var(--gray-900);
    min-height: 1.6rem;
    letter-spacing: 0.5px;
}

.cursor {
    display: inline-block;
    width: 1ch;
    animation: blink 1s step-end infinite;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-4);
}

.proof-card {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(10px);
}

.proof-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.proof-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

.proof-score .score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--gray-900);
}

.proof-score .out-of {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-600);
}

.proof-stars {
    margin-top: 6px;
    color: #f59e0b;
    font-size: 1.05rem;
    letter-spacing: 1px;
    user-select: none;
}

.proof-stars .star {
    text-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
}

.proof-stars .star.half {
    color: rgba(245, 158, 11, 0.55);
}

.proof-note {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 600;
}

.proof-avatars {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 4px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    margin-left: -10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 48%),
        linear-gradient(135deg, hsl(var(--h, 210) 85% 60%), hsl(calc(var(--h, 210) + 40) 85% 45%));
}

.avatar:first-child {
    margin-left: 0;
}

.avatar.avatar-more {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--gray-800);
    font-size: 0.75rem;
    font-weight: 900;
}

.avatar.avatar-xs {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}

.testimonials-section {
    padding: var(--spacing-16) 0 var(--spacing-12);
    background: #ffffff;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.testimonials-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 6px;
    margin-bottom: var(--spacing-2);
    user-select: none;
    text-shadow: 0 10px 22px rgba(245, 158, 11, 0.18);
}

.testimonials-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 var(--spacing-2);
}

.testimonials-stream {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.testimonials-meta {
    margin-top: var(--spacing-5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.testimonials-avatars {
    justify-content: center;
}

.testimonials-tags {
    justify-content: center;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-4);
}

.review-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    padding: var(--spacing-5);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
}

.review-card-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-3);
}

.review-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.review-card-name {
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card-sub {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
}

.review-card-text {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.65;
}

.proof-marquee {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(240, 253, 250, 0.85));
    padding: var(--spacing-3);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.proof-track {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-3);
    width: max-content;
    animation: proof-marquee var(--duration, 36s) linear infinite;
    will-change: transform;
}

.proof-marquee:hover .proof-track {
    animation-play-state: paused;
}

@keyframes proof-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.review-pill {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 260px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 48%),
        linear-gradient(135deg, hsl(var(--h, 200) 85% 62%), hsl(calc(var(--h, 200) + 40) 85% 45%));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.review-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.review-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gray-800);
}

.review-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.35;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.proof-footer {
    margin-top: var(--spacing-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
}

.proof-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.proof-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.premium-features {
    padding-top: var(--spacing-16);
}

.feature-showcase {
    max-width: 1200px;
    margin: var(--spacing-10) auto 0;
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: var(--spacing-8);
    align-items: start;
}

.feature-showcase-aside {
    position: sticky;
    top: 120px;
}

.feature-showcase-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.88));
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.feature-showcase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.feature-showcase-title {
    margin-top: var(--spacing-4);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gray-900);
}

.feature-showcase-desc {
    margin-top: var(--spacing-2);
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.7;
}

.feature-showcase-actions {
    margin-top: var(--spacing-6);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.feature-showcase-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.showcase-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--spacing-4);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.showcase-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
}

.showcase-index {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary-dark);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.showcase-main h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gray-900);
}

.showcase-main p {
    margin-top: 10px;
    color: var(--gray-700);
    line-height: 1.7;
    font-weight: 600;
}

.showcase-tags {
    margin-top: var(--spacing-3);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-weight: 800;
    font-size: 0.8rem;
}

.hero-compare {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-4);
}

.compare-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.1rem;
}

.compare-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--gray-600);
}

.compare-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.compare-counter {
    font-weight: 600;
}

.compare-view {
    position: relative;
}

.compare-images {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
}

.compare-canvas {
    position: absolute;
    inset: var(--spacing-2);
    margin: auto;
    width: calc(100% - 2 * var(--spacing-2));
    max-height: calc(100% - 2 * var(--spacing-2));
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.compare-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    box-shadow: 6px 0 18px rgba(16, 185, 129, 0.25);
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    margin-left: -7px;
    background: linear-gradient(180deg, #0ea5e9, #10b981);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
    left: 50%;
    pointer-events: none;
}

.compare-slider {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 70%;
    -webkit-appearance: none;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    outline: none;
}

.compare-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
    border: 2px solid white;
    cursor: pointer;
}

.compare-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
    border: 2px solid white;
    cursor: pointer;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text {
    font-weight: 600;
    color: var(--gray-800);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* 万能生图：主生成按钮样式 */
.btn-generate-main {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-generate-main .btn-icon {
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

.btn-generate-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    background: #1e293b;
}

.btn-secondary {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.hero .hero-buttons .btn-ghost {
    color: #000000;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-midjourney {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.btn-midjourney:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-large {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2em;
}

/* 功能特点部分 */
.features {
    padding: var(--spacing-20) 0;
    background: white;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-16);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-8);
}

.feature-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-4);
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* 使用流程部分 */
.how-it-works {
    padding: var(--spacing-20) 0;
    background: var(--gray-50);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-6);
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-4);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-3);
    display: block;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-2);
    color: var(--gray-900);
}

.step p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* 设计表单部分 */
.design-form-section {
    padding: var(--spacing-12) 0;
    background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 50%, #ffffff 100%);
}

.module-block {
    background: transparent;
    margin-bottom: var(--spacing-8);
}

.module-head {
    margin-bottom: var(--spacing-4);
}

.module-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.module-desc {
    color: var(--gray-600);
    margin-top: var(--spacing-2);
}

.site-intro-section {
    padding: var(--spacing-12) var(--spacing-6) 0;
    background: #f8fafc;
}

.recharge-section {
    max-width: 1400px;
    margin: var(--spacing-10) auto 0;
    padding: 0 var(--spacing-4);
}

.recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.section-kicker {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-2);
}

.recharge-subtitle {
    color: var(--gray-600);
}

.recharge-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.wechat-id {
    font-weight: 700;
    color: var(--gray-800);
}

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-4);
}

.recharge-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: var(--spacing-6);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.recharge-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.recharge-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.recharge-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.recharge-desc {
    color: var(--gray-600);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-top: var(--spacing-2);
}

.recharge-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-1) var(--spacing-3);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-2);
    box-shadow: var(--shadow);
}

.recharge-badge.popular {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    }
}

.recharge-card.premium {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-xl);
}

.recharge-card.premium .recharge-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.recharge-card.ultimate {
    background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #8b5cf6;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.recharge-card.ultimate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
}

.recharge-card.ultimate .recharge-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.recharge-card.ultimate .price-amount {
    color: #7c3aed;
}

.recharge-card.ultimate .price-currency {
    color: #7c3aed;
}

.recharge-card.ultimate .recharge-value {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.recharge-card.ultimate .value-amount {
    color: #7c3aed;
}

.recharge-price {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-1);
    margin: var(--spacing-3) 0;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-top: var(--spacing-2);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.recharge-credits {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.recharge-unitprice {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

.recharge-unit {
    font-size: 0.875rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.recharge-bulk {
    margin-top: var(--spacing-6);
}

.bulk-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: var(--shadow);
}

.bulk-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.bulk-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.18);
    font-weight: 800;
    font-size: 0.85rem;
}

.bulk-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gray-900);
}

.bulk-desc {
    margin: 0;
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.7;
}

.bulk-highlight {
    color: var(--accent-color);
    font-weight: 900;
}

.bulk-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    flex-shrink: 0;
}

.bulk-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    background: rgba(15, 23, 42, 0.02);
    min-width: 140px;
}

.bulk-contact-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 700;
}

.bulk-contact-value {
    font-size: 0.98rem;
    color: var(--gray-900);
    font-weight: 900;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .bulk-card {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-right {
        width: 100%;
        justify-content: space-between;
    }

    .bulk-contact {
        flex: 1;
        min-width: 0;
    }
}

.recharge-value {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius);
    margin: var(--spacing-3) 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.value-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.value-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.recharge-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin: var(--spacing-3) 0;
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--gray-200);
}

.feature-item {
    font-size: 0.875rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    line-height: 1.5;
}

.feature-item:before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.history-section {
    max-width: 1400px;
    margin: var(--spacing-12) auto 0;
    padding: 0 var(--spacing-4) var(--spacing-12);
}

.history-scale {
    zoom: 0.8;
}

@supports not (zoom: 0.8) {
    .history-scale {
        transform: scale(0.8);
        transform-origin: top center;
        width: 125%;
        margin-left: -12.5%;
    }
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.history-list {
    display: grid;
    gap: var(--spacing-4);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.history-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: var(--spacing-4);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--spacing-3);
}

.history-cover {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    min-height: 140px;
    position: relative;
}

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


.history-prompt {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 2.6rem;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.history-meta-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.history-meta .history-quick-edit {
    margin-left: var(--spacing-2);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111827;
    color: #f9fafb;
    border: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.history-empty {
    color: var(--gray-500);
    text-align: center;
    padding: var(--spacing-4);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: #f8fafc;
}

.qrcode-box {
    display: flex;
    justify-content: center;
    padding: var(--spacing-4);
    background: #f8fafc;
    border-radius: var(--radius-lg);
}

.qrcode-box img {
    width: 240px;
    height: 240px;
    object-fit: contain;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    width: min(420px, 90vw);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.modal-close {
    position: absolute;
    right: var(--spacing-3);
    top: var(--spacing-3);
    border: none;
    background: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-close-ghost {
    right: var(--spacing-4);
    top: var(--spacing-4);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.modal-subtitle {
    color: var(--gray-600);
    margin-bottom: var(--spacing-4);
}

.modal-form .form-group {
    margin-bottom: var(--spacing-4);
}

.mode-toggle-group {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    gap: 4px;
}

.mode-toggle-option {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mode-toggle-option.active {
    background: var(--primary-soft);
    color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.normal-engine-toggle {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, #eef2ff 0%, #e0e7ff 40%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
    backdrop-filter: blur(10px);
}

.normal-engine-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-6);
    gap: var(--spacing-3);
}

.normal-engine-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.normal-engine-option {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #4f46e5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.15s ease;
    min-width: 130px;
    position: relative;
    font-weight: 600;
}

.normal-engine-option .normal-engine-sub {
    font-size: 0.75rem;
    color: #6366f1;
}

.normal-engine-option.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.normal-engine-option.active .normal-engine-sub {
    color: #e0e7ff;
}

.maintenance-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}


.normal-quality-disabled-group label {
    color: var(--gray-400);
}

.normal-quality-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--gray-100);
}

.normal-ratio-disabled-group label {
    color: var(--gray-400);
}

.normal-ratio-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--gray-100);
}

.normal-count-disabled-group label {
    color: var(--gray-400);
}

.normal-count-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--gray-100);
}

.composer-upload.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(148, 163, 184, 0.4);
}

.composer-upload.is-disabled input[type="file"] {
    pointer-events: none;
}

.modal-switch {
    margin-top: var(--spacing-2);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--gray-600);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.site-intro-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-6);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.intro-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.intro-image {
    display: block;
    width: 100%;
    height: auto;
}

.workspace-grid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--spacing-6) var(--spacing-20);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
    gap: var(--spacing-10);
    align-items: start;
}

.workspace-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-10);
}

.workspace-left .form-container {
    margin: 0;
}

.results-section {
    position: sticky;
    top: 100px;
    height: fit-content;
    margin-top: var(--spacing-8);
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.form-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-12);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-top: calc(-1 * var(--spacing-4));
    margin-bottom: var(--spacing-8);
}

.design-form {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    border: 1px solid var(--gray-200);
}

/* 上传区域 */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.upload-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upload-box:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.1);
}

.upload-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.upload-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 万能生图：上传图片卡片去掉左侧方形 icon，并统一标题字号 */
#normalForm .upload-header .upload-icon {
    display: none;
}

#normalForm .upload-header .config-title {
    margin-bottom: 0;
}

.upload-tip {
    position: relative;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.upload-tip-trigger {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 8px;
    border-radius: 999px;
    cursor: default;
}

.upload-tip-content {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--gray-700);
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 20;
}

.upload-tip-content p {
    margin: 2px 0;
}

.upload-tip:hover .upload-tip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.upload-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.required {
    background: var(--danger-color);
    color: white;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.optional {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.upload-area {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--gray-50);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-4);
    display: block;
}

.upload-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-2);
}

.upload-hint {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.image-preview {
    display: none;
    margin-top: var(--spacing-4);
}

.image-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: none;
}

/* 配置区域 */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.config-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.config-section.full-width {
    grid-column: 1 / -1;
    margin-bottom: var(--spacing-8);
}

.config-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
}

.config-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.config-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-6);
}

.config-title-row .config-title {
    margin-bottom: 0;
}

.prompt-enhance-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.btn-icon.prompt-enhance-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(16, 185, 129, 0.12));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.btn-icon.prompt-enhance-btn:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.prompt-enhance-badge {
    font-size: 0.72rem;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
    background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
    user-select: none;
    white-space: nowrap;
}

.prompt-enhance-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(240px, 70vw);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 55px rgba(2, 6, 23, 0.35);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50;
}

.prompt-enhance-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: rgba(15, 23, 42, 0.92);
}

.prompt-enhance-tooltip-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.prompt-enhance-tooltip-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.92;
}

.prompt-enhance-wrap:hover .prompt-enhance-tooltip,
.prompt-enhance-wrap:focus-within .prompt-enhance-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.btn-icon.prompt-enhance-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-3);
}

.label-icon {
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-unit {
    position: absolute;
    right: var(--spacing-4);
    color: var(--gray-500);
    font-weight: 600;
    pointer-events: none;
}

.form-hint {
    display: block;
    margin-top: var(--spacing-2);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: var(--spacing-10);
    text-align: center;
    width: min(420px, 90vw);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.35);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.loading-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-6);
    position: relative;
    background: conic-gradient(from 90deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.8), rgba(14, 165, 233, 0.2));
    display: grid;
    place-items: center;
}

.loading-ring::after {
    content: '';
    width: 58px;
    height: 58px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ring-segment {
    width: 72px;
    height: 72px;
    position: absolute;
    border-radius: 50%;
    border: 4px solid rgba(14, 165, 233, 0.2);
    border-top-color: #0ea5e9;
    border-right-color: #10b981;
    animation: spin 1.2s linear infinite;
}

.loading-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2);
    color: var(--gray-800);
}

.loading-subtext {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* 结果展示 */
.results-section {
    padding: var(--spacing-20) 0;
    background: var(--gray-50);
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* 生图页面右侧结果栏（万能生图 & 平面布局） */
.workspace-layout .results-section {
    padding: 0;
    background: transparent;
    position: sticky;
    top: 110px;
}

.workspace-layout .results-container {
    padding: 0;
}

/* 生成任务列表 */
.task-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    margin-bottom: var(--spacing-6);
}

.task-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-3);
}

.task-list-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: var(--gray-900);
}

.task-list-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
}

.task-count-badge {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.task-list-body {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-empty {
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: 6px 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: default;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.task-item.clickable {
    cursor: pointer;
}

.task-item.clickable:hover {
    background: #ecfeff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.task-main {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.task-status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.task-status-processing .task-status-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.task-status-completed .task-status-badge {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.task-status-failed .task-status-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-12);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
}

.success-icon {
    font-size: 3rem;
    color: var(--success-color);
    animation: success-pulse 1s ease-in-out infinite;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
}

.result-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.result-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--gray-900);
}

.result-image-container {
    position: relative;
    margin-bottom: var(--spacing-6);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.result-gallery {
    display: flex;
    gap: var(--spacing-4);
    overflow-x: auto;
    padding-bottom: var(--spacing-2);
    scroll-snap-type: x mandatory;
    align-items: flex-start;
    min-height: 240px;
}

.placeholder-gallery {
    opacity: 0.7;
}

.result-thumb.placeholder-thumb {
    background: var(--gray-100);
}

.placeholder-box {
    height: 200px;
    background: linear-gradient(135deg, #e5e7eb, #f1f5f9);
}

.result-gallery::-webkit-scrollbar {
    height: 8px;
}

.result-gallery::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius);
}

.result-thumb {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
    width: 600px; /* 固定容器宽度 */
    height: 400px; /* 固定容器高度 */
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    scroll-snap-align: start;
}

.result-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* 宽度自适应 */
    height: auto; /* 高度自适应 */
    display: block;
    object-fit: contain; /* 保持比例，不拉伸 */
}

.result-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.image-actions {
    display: flex;
    gap: var(--spacing-2);
    justify-content: flex-end;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-8);
    color: var(--gray-500);
}

.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.result-actions {
    display: flex;
    justify-content: center;
}

/* 生成结果预览弹窗 */
/* 万能生图 - 结果大图预览与局部重绘 */
.image-preview-modal {
    width: min(1280px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding: var(--spacing-6);
}

.image-preview-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    max-height: 92vh;
}

.image-preview-layout.two-column-preview {
    flex-direction: row;
    gap: var(--spacing-6);
    height: 100%;
}

.image-preview-main {
    flex: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-3);
    max-height: 78vh;
}

.image-preview-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 78vh;
    max-height: 78vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-canvas-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: block;
    background: #ffffff;
}

#resultMaskCanvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: crosshair;
    opacity: 0.45;
}

.image-preview-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    padding: var(--spacing-2) var(--spacing-4);
}

@media (max-width: 1024px) {
    .image-preview-layout.two-column-preview {
        flex-direction: column;
    }
    .image-preview-side {
        max-width: 100%;
        flex: 1;
    }
}

/* 顶部绘制工具栏 */
.inpaint-controls-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    flex-wrap: wrap;
    padding: var(--spacing-4);
    margin-top: var(--spacing-3);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

/* 右侧信息栏 */
.image-preview-side {
    flex: 0 0 360px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    padding: var(--spacing-4);
    background: #f8fafc;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.preview-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.preview-meta-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preview-meta-chips .meta-pill {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.preview-meta-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(148, 163, 184, 0.22);
    color: var(--gray-700);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.preview-meta-time:empty {
    display: none;
}

.preview-section {
    background: #fff;
    border-radius: 14px;
    padding: var(--spacing-3);
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.preview-section-title {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.preview-prompt {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    padding: var(--spacing-3);
    color: var(--gray-700);
    line-height: 1.6;
    max-height: 220px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.preview-upload-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}

.preview-upload-list .upload-thumb {
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.preview-upload-list .upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-upload-empty {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.preview-actions-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: var(--spacing-2);
}

.preview-actions-stack .btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-weight: 600;
}

#previewSendToComposerBtn {
    grid-column: auto;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #0f766e;
}

#previewSendToComposerBtn:hover {
    border-color: rgba(16, 185, 129, 0.45);
    color: #0f766e;
}

.inpaint-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 600;
}

.inpaint-label i {
    color: var(--primary-color);
}

.inpaint-label input[type="range"] {
    width: 160px;
    cursor: pointer;
}

.inpaint-mode-switch {
    display: inline-flex;
    gap: var(--spacing-2);
}

.inpaint-mode-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.inpaint-mode-button i {
    font-size: 0.95rem;
}

.inpaint-mode-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.inpaint-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.inpaint-hint i {
    color: var(--secondary-color);
}

.inpaint-prompt-row {
    margin-top: var(--spacing-3);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.inpaint-prompt-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
}

.inpaint-prompt-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.next-steps {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.next-steps h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    color: var(--gray-900);
}

.next-actions {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.footer-logo .logo {
    font-size: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.6;
}

.link-group h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-4);
}

.link-group a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: var(--spacing-2);
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--spacing-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-400);
}

.footer-social {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* 动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-bg {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0% {
        filter: brightness(1);
    }
    100% {
        filter: brightness(1.2);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-12);
    }

    .proof-card {
        margin: 0 auto;
        text-align: left;
    }

    .hero-title {
        font-size: 3rem;
    }

    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase-aside {
        position: static;
        max-width: 720px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .steps-container {
        flex-direction: column;
        gap: var(--spacing-4);
    }

    .step-arrow {
        transform: rotate(90deg);
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* 移动端优化预览弹窗按钮 */
    #previewActionButtons {
        justify-content: center;
    }

    #previewActionButtons .btn {
        font-size: 0.85rem;
        padding: var(--spacing-2) var(--spacing-4);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: var(--spacing-3) var(--spacing-3);
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .version {
        display: none;
    }

    .nav-links {
        margin-top: var(--spacing-3);
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--spacing-2);
        gap: var(--spacing-3);
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-auth {
        margin-left: auto;
    }

    .hero {
        padding: 100px 0 var(--spacing-16);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .proof-card {
        padding: var(--spacing-5);
    }

    .proof-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .proof-avatars {
        justify-content: flex-start;
    }

    .proof-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        mask-image: none;
        -webkit-mask-image: none;
        scroll-snap-type: x mandatory;
    }

    .proof-track {
        animation: none;
        width: auto;
    }

    .review-pill {
        min-width: 220px;
        scroll-snap-align: start;
    }

    .testimonials-section {
        padding: var(--spacing-12) 0 var(--spacing-10);
    }

    .testimonials-header h2 {
        font-size: 2rem;
    }

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

    .showcase-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }

    .showcase-index {
        width: fit-content;
        padding: 8px 12px;
        height: auto;
        border-radius: 999px;
    }

    .hero-compare {
        padding: var(--spacing-4);
        margin-top: var(--spacing-4);
    }

    .compare-images {
        min-height: 320px;
        padding: var(--spacing-3);
    }

    .compare-canvas {
        inset: var(--spacing-2);
        aspect-ratio: 4 / 3;
    }

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

    .next-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-4);
        text-align: center;
    }

    .page-header {
        padding: calc(70px + var(--spacing-6)) 0 var(--spacing-8);
    }

    .page-header-content {
        flex-direction: column;
        gap: var(--spacing-4);
    }

    .page-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .results-section {
        position: static;
        margin-top: var(--spacing-8);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-3);
    }

    .nav-brand h1 {
        max-width: 140px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-title {
        font-size: 1.875rem;
    }

    .design-form {
        padding: var(--spacing-6);
    }

    .btn-large {
        padding: var(--spacing-3) var(--spacing-6);
        font-size: 1rem;
    }
}

/* 导航活跃状态 */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 页面头部 */
.page-header {
    background: var(--gradient-hero);
    padding: calc(70px + var(--spacing-12)) 0 var(--spacing-12);
    border-bottom: 1px solid var(--gray-200);
}

/* 精致版页面头部 - 更紧凑高级 */
.page-header-premium {
    padding: calc(70px + var(--spacing-10)) 0 var(--spacing-8);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-8);
}

.page-header-left {
    flex: 1;
}

.page-badge {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-4);
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-badge.hot-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation: pulse 2s infinite;
}

/* 精致版徽章 */
.page-header-premium .page-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
    line-height: 1.2;
}

/* 精致版标题 */
.page-header-premium h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-3);
}

.page-header-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
}

/* 精致版描述 */
.page-header-premium .page-header-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 650px;
}

.page-header-right {
    display: flex;
    gap: var(--spacing-4);
}

.quick-stats {
    display: flex;
    gap: var(--spacing-6);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-3) var(--spacing-4);
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-1);
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    padding: var(--spacing-16) 0 var(--spacing-20);
    min-height: calc(100vh - 70px);
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.10), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.10), transparent 55%),
        #f4f7fb;
}

.page-normal .page-header {
    display: none;
}

.page-normal {
    overflow-x: hidden;
}

.page-normal .main-content {
    padding: calc(28px + 44px + var(--spacing-5)) 0 240px;
    zoom: 0.9;
}

@supports not (zoom: 1) {
    .page-normal .main-content {
        transform: scale(0.9);
        transform-origin: top center;
        width: 111.112%;
    }
}

.workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: var(--spacing-10);
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.form-section {
    max-width: none;
}

/* 万能生图 - 对话式布局 */
.studio-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
    max-width: 1200px;
    margin: 0 auto;
}

.page-normal .studio-layout {
    max-width: 1280px;
}

.page-normal.theme-night {
    background: var(--night-bg);
    color: var(--night-text);
}

.page-normal.theme-night .global-announcement-bar {
    background: rgba(24, 24, 27, 0.95);
    color: var(--night-highlight);
    border-color: rgba(63, 63, 70, 0.8);
}

.page-normal.theme-night .navbar {
    background: rgba(16, 16, 19, 0.95);
    border-bottom-color: rgba(63, 63, 70, 0.75);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-normal.theme-night .nav-brand h1,
.page-normal.theme-night .nav-link {
    color: rgba(244, 244, 245, 0.78);
}

.page-normal.theme-night .nav-link.active,
.page-normal.theme-night .nav-link.hot {
    color: var(--night-highlight);
}

.page-normal.theme-night .nav-link::after {
    background: linear-gradient(90deg, var(--night-highlight), #f59e0b);
}

.page-normal.theme-night .version {
    background: rgba(250, 204, 21, 0.16);
    color: var(--night-highlight);
}

.page-normal.theme-night .notification-bell {
    background: rgba(250, 204, 21, 0.12);
    color: rgba(244, 244, 245, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.page-normal.theme-night .notification-dropdown {
    background: rgba(15, 15, 20, 0.92);
    border-color: rgba(63, 63, 70, 0.65);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.page-normal.theme-night .notification-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.page-normal.theme-night .notification-header h3 {
    color: rgba(244, 244, 245, 0.95);
}

.page-normal.theme-night .notification-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.page-normal.theme-night .notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.page-normal.theme-night .notification-item.unread {
    background: rgba(250, 204, 21, 0.06);
}

.page-normal.theme-night .notification-item-title {
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .notification-item-content {
    color: rgba(244, 244, 245, 0.72);
}

.page-normal.theme-night .notification-item-date {
    color: rgba(244, 244, 245, 0.55);
}

.page-normal.theme-night .notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.page-normal.theme-night .notification-list::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.28);
}

.page-normal.theme-night .notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 204, 21, 0.4);
}

.page-normal.theme-night .nav-user {
    background: rgba(39, 39, 42, 0.72);
    border: 1px solid rgba(63, 63, 70, 0.75);
}

.page-normal.theme-night .nav-user::after {
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid rgba(63, 63, 70, 0.75);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.page-normal.theme-night .nav-user::before {
    border-bottom-color: rgba(24, 24, 27, 0.96);
}

.page-normal.theme-night .nav-username {
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .nav-auth .btn-link {
    color: var(--night-highlight);
}

.page-normal.theme-night .nav-auth .btn-link:hover {
    color: #f7d680;
}

.page-normal.theme-night .history-filter-select {
    background: rgba(39, 39, 42, 0.65);
    color: rgba(244, 244, 245, 0.86);
    border-color: rgba(250, 204, 21, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.page-normal.theme-night .stream-header h2 {
    color: rgba(244, 244, 245, 0.95);
}

.page-normal.theme-night .main-content {
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.18), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(217, 162, 79, 0.12), transparent 45%),
        var(--night-bg);
}

.page-normal.theme-night .studio-composer {
    background: rgba(15, 15, 22, 0.72);
    border-radius: 20px;
    border: 1px solid rgba(250, 204, 21, 0.14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.page-normal.theme-night .stream-header {
    background: rgba(20, 20, 26, 0.92);
    color: var(--night-text);
    border: 1px solid rgba(250, 204, 21, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.page-normal.theme-night .stream-header p {
    color: rgba(244, 244, 245, 0.7);
}

.page-normal.theme-night .timeline-list::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.4);
}

.page-normal.theme-night .timeline-empty {
    color: rgba(244, 244, 245, 0.65);
}

.page-normal.theme-night .timeline-item {
    background: rgba(22, 24, 36, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    color: var(--night-text);
}

.page-normal.theme-night .timeline-meta {
    color: rgba(228, 228, 235, 0.85);
}

.page-normal.theme-night .timeline-meta .meta-pill {
    background: rgba(250, 204, 21, 0.12);
    color: var(--night-highlight);
}

.page-normal.theme-night .timeline-meta .meta-pill.meta-time {
    background: rgba(63, 63, 70, 0.35);
    color: rgba(244, 244, 245, 0.8);
}

.page-normal.theme-night .timeline-meta .meta-pill.meta-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.page-normal.theme-night .task-count-badge {
    background: rgba(250, 204, 21, 0.14);
    color: var(--night-highlight);
}

.page-normal.theme-night .timeline-date {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(244, 244, 245, 0.78);
}

.page-normal.theme-night .timeline-date-live {
    background: rgba(250, 204, 21, 0.16);
    color: var(--night-highlight);
}

.page-normal.theme-night .timeline-status.processing {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.page-normal.theme-night .timeline-status.completed {
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
}

.page-normal.theme-night .timeline-status.failed {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.page-normal.theme-night .timeline-prompt {
    color: rgba(244, 244, 245, 0.85);
}

.page-normal.theme-night .timeline-prompt-toggle {
    color: #0ea5e9;
}

.page-normal.theme-night .timeline-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fee2e2;
}

.page-normal.theme-night .timeline-thumb {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.page-normal.theme-night .composer-shell {
    background: rgba(15, 15, 22, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-normal.theme-night .composer-input-shell {
    background: rgba(17, 23, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.page-normal.theme-night .composer-input textarea {
    background: rgba(10, 10, 15, 0.65);
    color: rgba(244, 244, 245, 0.9);
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.page-normal.theme-night .composer-input textarea::placeholder {
    color: rgba(244, 244, 245, 0.5);
}

.page-normal.theme-night .composer-upload {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.page-normal.theme-night .composer-upload-inline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.page-normal.theme-night .upload-placeholder-inline p {
    color: rgba(244, 244, 245, 0.65);
}

.page-normal.theme-night .composer-controls,
.page-normal.theme-night .compact-controls {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(244, 244, 245, 0.85);
}

.page-normal.theme-night .engine-cards-dropdown::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.28);
    border: 2px solid rgba(24, 24, 27, 0.9);
}

.page-normal.theme-night .composer-settings-panel {
    background: rgba(24, 24, 27, 0.96);
    border-color: rgba(250, 204, 21, 0.16);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.7);
}

.page-normal.theme-night .settings-group {
    color: rgba(244, 244, 245, 0.72);
}

.page-normal.theme-night .ratio-chip,
.page-normal.theme-night .quality-chip,
.page-normal.theme-night .count-chip {
    background: rgba(39, 39, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(244, 244, 245, 0.78);
}

.page-normal.theme-night .ratio-chip::before {
    border-color: rgba(250, 204, 21, 0.25);
    background: rgba(250, 204, 21, 0.08);
}

.page-normal.theme-night .ratio-chip.active,
.page-normal.theme-night .quality-chip.active,
.page-normal.theme-night .count-chip.active {
    border-color: rgba(250, 204, 21, 0.55);
    color: var(--night-highlight);
    background: rgba(250, 204, 21, 0.12);
}

.page-normal.theme-night .engine-cards-dropdown {
    background: rgba(24, 24, 27, 0.96);
    border-color: rgba(250, 204, 21, 0.16);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.7);
}

.page-normal.theme-night .engine-option-card {
    background: rgba(39, 39, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(244, 244, 245, 0.9);
}

.page-normal.theme-night .engine-option-card:hover {
    background: rgba(39, 39, 42, 0.8);
    border-color: rgba(250, 204, 21, 0.22);
}

.page-normal.theme-night .engine-option-card.active {
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.page-normal.theme-night .engine-option-card .card-meta {
    color: rgba(244, 244, 245, 0.7);
}

.page-normal.theme-night .engine-option-card .card-title {
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .engine-option-card.active .card-title {
    color: var(--night-highlight);
}

.page-normal.theme-night .prompt-enhance-tooltip {
    background: rgba(24, 24, 27, 0.96);
    border-color: rgba(250, 204, 21, 0.16);
    color: rgba(244, 244, 245, 0.88);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.page-normal.theme-night .prompt-enhance-tooltip::before {
    border-bottom-color: rgba(24, 24, 27, 0.96);
}

.page-normal.theme-night .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(244, 244, 245, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-normal.theme-night .nav-auth .btn-logout {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(244, 244, 245, 0.92);
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.page-normal.theme-night .nav-auth .btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
}

.page-normal.theme-night .modal {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.page-normal.theme-night .modal-content {
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid rgba(250, 204, 21, 0.14);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .modal-subtitle {
    color: rgba(244, 244, 245, 0.7);
}

.page-normal.theme-night .modal-close {
    color: rgba(244, 244, 245, 0.9);
}

.page-normal.theme-night .modal-close-ghost {
    background: rgba(250, 204, 21, 0.08);
    border-color: rgba(250, 204, 21, 0.22);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65);
}

.page-normal.theme-night .form-group label {
    color: rgba(244, 244, 245, 0.88);
}

.page-normal.theme-night .form-group input,
.page-normal.theme-night .form-group textarea,
.page-normal.theme-night .form-group select {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .form-group input::placeholder,
.page-normal.theme-night .form-group textarea::placeholder {
    color: rgba(244, 244, 245, 0.55);
}

.page-normal.theme-night .form-hint,
.page-normal.theme-night .modal-switch {
    color: rgba(244, 244, 245, 0.7);
}

.page-normal.theme-night .qrcode-box {
    background: rgba(0, 0, 0, 0.18);
}

.page-normal.theme-night .image-annotate-modal .annotate-group-title,
.page-normal.theme-night .image-annotate-modal .annotate-hint,
.page-normal.theme-night .image-annotate-modal .annotate-subtitle {
    color: rgba(244, 244, 245, 0.72);
}

.page-normal.theme-night .image-annotate-modal .annotate-mode-switch {
    background: rgba(39, 39, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.14);
}

.page-normal.theme-night .image-annotate-modal .annotate-mode-btn {
    color: rgba(244, 244, 245, 0.78);
}

.page-normal.theme-night .image-annotate-modal .annotate-mode-btn.active {
    background: rgba(250, 204, 21, 0.12);
    color: var(--night-highlight);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.page-normal.theme-night .image-preview-canvas-wrapper {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-normal.theme-night .image-preview-canvas-wrapper img {
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
}

.page-normal.theme-night .inpaint-controls-row {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

.page-normal.theme-night .inpaint-label {
    color: rgba(244, 244, 245, 0.82);
}

.page-normal.theme-night .inpaint-hint {
    color: rgba(244, 244, 245, 0.65);
}

.page-normal.theme-night .inpaint-prompt-input {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(244, 244, 245, 0.9);
}

.page-normal.theme-night .inpaint-prompt-input::placeholder {
    color: rgba(244, 244, 245, 0.55);
}

.page-normal.theme-night .image-preview-side {
    background: rgba(17, 24, 39, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
}

.page-normal.theme-night .preview-meta-chips .meta-pill {
    background: rgba(250, 204, 21, 0.12);
    color: var(--night-highlight);
}

.page-normal.theme-night .preview-meta-time {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(244, 244, 245, 0.85);
}

.page-normal.theme-night .preview-section {
    background: rgba(39, 39, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.1);
}

.page-normal.theme-night .preview-section-title {
    color: rgba(244, 244, 245, 0.9);
}

.page-normal.theme-night .preview-prompt {
    background: rgba(0, 0, 0, 0.22);
    color: rgba(244, 244, 245, 0.82);
}

.page-normal.theme-night .preview-upload-list .upload-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.page-normal.theme-night .download-dropdown-menu {
    background: rgba(24, 24, 27, 0.98);
    border-color: rgba(250, 204, 21, 0.16);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.75);
}

.page-normal.theme-night .download-dropdown-menu::before {
    border-top-color: rgba(24, 24, 27, 0.98);
}

.page-normal.theme-night .download-dropdown-item {
    color: rgba(244, 244, 245, 0.88);
}

.page-normal.theme-night .download-dropdown-item:hover {
    background: rgba(250, 204, 21, 0.12);
    color: var(--night-highlight);
}

.page-normal.theme-night .download-dropdown-divider {
    background: rgba(255, 255, 255, 0.12);
}

.page-normal.theme-night .download-dropdown-hint {
    color: rgba(244, 244, 245, 0.7);
    background: rgba(0, 0, 0, 0.22);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.page-normal.theme-night .layered-action-section .layered-action-bar {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(250, 204, 21, 0.22);
}

.page-normal.theme-night .layered-title {
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .layered-sub,
.page-normal.theme-night .layered-action-right label {
    color: rgba(244, 244, 245, 0.7);
}

.page-normal.theme-night .layered-action-right select {
    background: rgba(39, 39, 42, 0.65);
    color: rgba(244, 244, 245, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
}

.page-normal.theme-night .layered-credit {
    color: rgba(244, 244, 245, 0.88);
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.22);
}

/* 主题切换：用 [data-mode] 控制状态，避免跟随页面主题样式冲突 */

.studio-stream {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: var(--spacing-6);
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-normal .studio-stream {
    max-height: none;
    overflow: visible;
    padding: 0;
    padding-bottom: 240px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.page-normal .stream-header {
    position: sticky;
    top: 80px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.94);
    padding: 10px 14px;
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.stream-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.history-filter-select {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--gray-600);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.stream-header h2 {
    font-size: 1.25rem;
    margin: 0 0 var(--spacing-1);
    font-weight: 700;
    color: var(--gray-900);
}

.stream-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.timeline-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.page-normal .timeline-list {
    overflow: visible;
    padding-bottom: 240px;
}

.timeline-list::-webkit-scrollbar {
    width: 6px;
}

.timeline-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 999px;
}

.timeline-empty {
    padding: var(--spacing-6);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.95rem;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    width: fit-content;
}

.timeline-date-live {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.35));
    color: #1d4ed8;
}

.timeline-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: var(--spacing-4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.timeline-item.is-loading {
    position: relative;
    overflow: hidden;
}

.timeline-processing {
    background: linear-gradient(135deg, #f8fbff 0%, #eef2ff 100%);
    min-height: 220px;
}

.timeline-item.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.6) 40%, transparent 70%);
    transform: translateX(-100%);
    animation: timelineShimmer 1.6s ease-in-out infinite;
}

@keyframes timelineShimmer {
    100% {
        transform: translateX(100%);
    }
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    align-items: center;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.timeline-meta .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    font-weight: 600;
}

.timeline-meta .meta-pill i {
    font-size: 0.72rem;
    opacity: 0.8;
}

.timeline-meta .meta-pill.meta-time {
    background: rgba(148, 163, 184, 0.18);
    color: var(--gray-600);
}

.timeline-meta .meta-pill.meta-mj {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.timeline-meta .meta-pill.meta-mj::before {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("/static/siteintro/midjounery_icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.timeline-meta button.meta-pill {
    border: none;
    cursor: pointer;
}

.timeline-meta .meta-pill.meta-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.timeline-meta .meta-pill.meta-delete:hover {
    background: rgba(239, 68, 68, 0.18);
}

.timeline-status {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
}

.timeline-status.processing {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.timeline-status.completed {
    background: rgba(16, 185, 129, 0.12);
    color: #0f766e;
}

.timeline-status.failed {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.timeline-prompt-row {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
}

.timeline-prompt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.timeline-prompt.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.timeline-prompt-toggle {
    border: none;
    background: transparent;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0;
    pointer-events: none;
}

.timeline-prompt-toggle.visible {
    opacity: 1;
    pointer-events: auto;
}

.timeline-error {
    font-size: 0.85rem;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
    padding: 6px 10px;
    border-radius: 10px;
}

.timeline-images-row {
    display: flex;
    gap: var(--spacing-3);
    overflow-x: auto;
    padding-bottom: 4px;
    min-height: 120px;
}

.timeline-thumb {
    flex: 0 0 auto;
    height: 160px; /* 固定高度 */
    max-width: 400px; /* 最大宽度限制 */
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-thumb img {
    height: 100%; /* 固定高度，填满容器 */
    width: auto; /* 宽度自适应，保持比例 */
    max-width: 100%; /* 最大不超过容器宽度 */
    object-fit: contain; /* 保持比例，不裁剪 */
    display: block;
}

.timeline-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
    height: 120px;
    min-width: 120px;
}

.timeline-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.7) 45%, transparent 75%);
    transform: translateX(-100%);
    animation: placeholderShimmer 1.4s ease-in-out infinite;
    z-index: 1;
}

@keyframes placeholderShimmer {
    100% {
        transform: translateX(100%);
    }
}

.timeline-progress-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 2;
}

.timeline-loading-text {
    font-size: 0.9rem;
    color: #1d4ed8;
    font-weight: 700;
}

.timeline-loading-bar {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.7), rgba(59, 130, 246, 0.2));
    background-size: 200% 100%;
    animation: timelineLoading 1.2s ease-in-out infinite;
    margin-bottom: var(--spacing-2);
}

@keyframes timelineLoading {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}

.timeline-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-3);
}

.timeline-actions .btn-link {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.timeline-mj-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

.mj-action-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
}

.mj-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mj-action-btn {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.mj-action-btn:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(224, 231, 255, 0.7);
    color: #4338ca;
}

.mj-action-btn.is-loading,
.mj-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.studio-composer {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    padding: var(--spacing-6);
}

.page-normal .studio-composer {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(1200px, 92vw);
    z-index: 30;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
    padding: 10px;
}

.composer-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.page-normal .composer-form {
    gap: 0;
}

.composer-shell {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.page-normal .composer-shell {
    gap: 10px;
}

.composer-upload {
    position: relative;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    padding: var(--spacing-3);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.composer-upload-inline {
    width: 76px;
    min-height: 76px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.composer-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.composer-upload.has-image .upload-placeholder {
    opacity: 0.75;
}

.composer-upload.has-image .upload-hint {
    display: none;
}

.upload-placeholder-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.upload-placeholder-inline p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    margin: 0;
}

.upload-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.18);
}

.composer-upload.drag-over {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.08);
}

.composer-upload.drag-over {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.08);
}

.composer-upload .upload-placeholder {
    text-align: center;
    color: var(--gray-500);
}

.composer-upload .upload-icon-large {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2);
}

.composer-input {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.page-normal .composer-input {
    position: relative;
    padding-bottom: 0;
    gap: 0;
}

.page-normal .composer-input-shell {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.98);
    overflow: visible;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
}

.page-normal .composer-input-shell:focus-within {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.10), 0 14px 38px rgba(15, 23, 42, 0.08);
}

.composer-preview-row {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 12px;
}

.page-normal .composer-preview-row {
    position: relative;
    z-index: 1;
    min-height: 32px;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.page-normal .composer-upload-inline {
    width: 44px;
    min-height: 44px;
    padding: 4px;
    border-radius: 12px;
    box-shadow: none;
    background: rgba(248, 250, 252, 0.6);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-normal .upload-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.page-normal .upload-placeholder-inline p {
    display: none;
}

.page-normal .composer-upload-inline .upload-placeholder-inline {
    width: 100%;
    height: 100%;
    justify-content: center;
}

.image-preview-strip {
    flex: 1;
}

.composer-upload-inline {
    margin-right: 8px;
    flex-shrink: 0;
}

.image-preview-strip {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-top: 0;
}

.page-normal .image-preview-strip {
    position: relative;
    z-index: 1;
}

.image-preview-strip::-webkit-scrollbar {
    height: 6px;
}

.image-preview-strip::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.normal-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.normal-image-container.dragging {
    opacity: 0.6;
    transform: scale(0.98);
    cursor: grabbing;
}

.normal-image-label {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.normal-image-order-label {
    z-index: 1;
    pointer-events: none;
}

.normal-image-container:hover .normal-image-label,
.normal-image-container:hover .normal-image-move {
    opacity: 1;
}

.normal-image-move {
    opacity: 0;
    transition: opacity 0.2s ease;
}


.normal-image-hover-preview {
    position: fixed;
    max-width: 240px;
    max-height: 180px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.98);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
}

.normal-image-hover-preview.below {
    transform: translate(-50%, 8px) scale(0.98);
}

.normal-image-hover-preview.show {
    opacity: 1;
    transform: translate(-50%, -14px) scale(1);
}

.normal-image-hover-preview.below.show {
    transform: translate(-50%, 12px) scale(1);
}

.normal-image-hover-preview img {
    max-width: 240px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
    background: #fff;
    display: block;
}

.image-annotate-modal {
    width: min(980px, 92vw);
    padding: 22px 24px 20px;
}

.annotate-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.annotate-subtitle {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.annotate-body {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.annotate-canvas-wrapper {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.annotate-canvas-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.annotate-canvas-stage img {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #fff;
}

.annotate-canvas-stage canvas {
    position: absolute;
    left: 0;
    top: 0;
    touch-action: none;
}

.annotate-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    row-gap: 10px;
}

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

.annotate-group-title {
    font-size: 0.85rem;
    color: var(--gray-600);
    min-width: 48px;
}

.annotate-mode-group,
.annotate-color-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.annotate-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.annotate-mode-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.annotate-mode-btn.active {
    background: #fff;
    color: var(--gray-900);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.annotate-history-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.annotate-history-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.annotate-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--dot-color);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.annotate-color-dot:hover {
    transform: scale(1.05);
}

.annotate-color-dot.active {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.25);
}

.annotate-size-group input[type="range"] {
    width: 140px;
}

.annotate-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.annotate-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.annotate-text-input {
    position: absolute;
    z-index: 4;
    min-width: 32px;
    max-width: 320px;
    min-height: 1.2em;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
    outline: none;
    resize: none;
}

@media (max-width: 720px) {
    .image-annotate-modal {
        padding: 18px;
    }

    .annotate-canvas-wrapper {
        padding: 10px;
        min-height: 240px;
    }

    .annotate-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .annotate-actions {
        margin-left: 0;
    }
}
.composer-input textarea {
    width: 100%;
    min-height: 64px;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.page-normal .composer-input textarea {
    min-height: 108px;
    border: none;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
    background: transparent;
    resize: none;
    flex: 1;
}

.page-normal .composer-input textarea:focus {
    outline: none;
}

.composer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.page-normal .compact-controls {
    position: relative;
    z-index: 20;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    border-radius: 999px;
    padding: 6px 8px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-wrap: nowrap;
    align-items: center;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.page-normal .compact-controls .composer-left {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    display: flex;
    flex: 1;
    min-width: 0;
    max-width: none;
}

.page-normal .compact-controls .composer-right {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.page-normal .engine-selector-inline {
    position: relative;
    z-index: 1300;
    flex-shrink: 0;
    flex: 0 1 auto;
}

.page-normal .settings-chip-wrap {
    position: relative;
    z-index: 1200;
    flex-shrink: 0;
}

.page-normal .engine-cards-dropdown {
    z-index: 1200;
    max-height: min(58vh, 460px);
    overflow-y: auto;
}

.page-normal .engine-cards-dropdown::-webkit-scrollbar {
    width: 8px;
}

.page-normal .engine-cards-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.page-normal .composer-settings-panel {
    z-index: 1150;
    max-height: min(58vh, 520px);
    overflow-y: auto;
}

.page-normal .prompt-enhance-tooltip {
    top: auto;
    bottom: calc(100% + 10px);
    z-index: 1200;
}

.page-normal .prompt-enhance-tooltip::before {
    top: auto;
    bottom: -6px;
    transform: rotate(45deg);
}

.page-normal .composer-right {
    align-items: center;
}

.page-normal .composer-chip .chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    opacity: 0.75;
}

.page-normal .composer-chip .chip-text {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-normal .engine-current-display .stat-badge {
    display: none;
}

.page-normal .engine-current-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-width: 150px;
    max-width: 220px;
    padding: 4px 6px 4px 32px;
    height: 32px;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.page-normal .engine-current-display:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.page-normal .engine-current-display::before {
    width: 22px;
    height: 22px;
}

.page-normal .engine-mode-name {
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.page-normal .engine-mode-info {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.page-normal .engine-mode-stats {
    display: none;
}

.page-normal .btn-generate-main {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 999px;
}

.page-normal .composer-controls .btn-generate-main {
    min-width: auto;
    padding: 4px 12px;
    font-size: 0.78rem;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.page-normal .composer-chip {
    padding: 4px 8px;
    font-size: 0.76rem;
    max-width: 140px;
    height: 32px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.page-normal .prompt-enhance-wrap {
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.page-normal .btn-icon.prompt-enhance-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-size: 14px;
}

.page-normal .btn-icon.prompt-enhance-btn:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.page-normal .composer-chip.btn-secondary {
    border-width: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-normal .composer-chip.btn-secondary:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    color: var(--gray-800);
}

.page-normal.theme-night .engine-current-display,
.page-normal.theme-night .composer-chip,
.page-normal.theme-night .composer-chip.btn-secondary,
.page-normal.theme-night .btn-icon.prompt-enhance-btn {
    background: rgba(39, 39, 42, 0.72);
    border-color: rgba(250, 204, 21, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    color: rgba(244, 244, 245, 0.9);
}

.page-normal.theme-night .composer-chip.btn-secondary:hover,
.page-normal.theme-night .engine-current-display:hover,
.page-normal.theme-night .composer-chip:hover,
.page-normal.theme-night .btn-icon.prompt-enhance-btn:hover {
    border-color: rgba(250, 204, 21, 0.26);
    background: rgba(39, 39, 42, 0.82);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
    color: rgba(244, 244, 245, 0.95);
}

.page-normal.theme-night .composer-chip .chip-text,
.page-normal.theme-night .composer-chip .chip-icon,
.page-normal.theme-night .engine-mode-name {
    color: rgba(244, 244, 245, 0.92);
}

.page-normal.theme-night .engine-arrow {
    color: rgba(244, 244, 245, 0.75);
}

.page-normal .prompt-enhance-badge {
    display: none;
}

.page-normal .composer-controls .btn-generate-main:hover {
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.page-normal .btn-generate-main .btn-icon {
    margin-right: 4px;
}
.composer-left,
.composer-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.composer-right {
    margin-left: auto;
}

.settings-chip-wrap {
    position: relative;
}

.composer-actions .composer-chip {
    border-radius: 999px;
    background: white;
    font-weight: 600;
    padding: 6px 14px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.composer-actions .prompt-enhance-wrap {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.composer-settings-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    padding: var(--spacing-4);
    display: none;
    z-index: 20;
}

.composer-settings-panel.is-open {
    display: grid;
    gap: var(--spacing-3);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    font-size: 0.85rem;
    color: var(--gray-600);
}

.settings-group select,
.settings-group input {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 8px 10px;
}

.settings-ratio-grid,
.quality-chip-row,
.count-chip-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: var(--spacing-2);
}

.ratio-chip,
.quality-chip,
.count-chip {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 6px 8px;
    background: #fff;
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ratio-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 6px 8px;
}

.ratio-chip::before {
    content: "";
    display: block;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.08);
}

.ratio-chip[data-value="1x1"]::before { width: 16px; height: 16px; }
.ratio-chip[data-value="4x3"]::before { width: 18px; height: 14px; }
.ratio-chip[data-value="16x9"]::before { width: 20px; height: 11px; }
.ratio-chip[data-value="3x2"]::before { width: 18px; height: 12px; }
.ratio-chip[data-value="2x3"]::before { width: 12px; height: 18px; }
.ratio-chip[data-value="3x4"]::before { width: 12px; height: 16px; }
.ratio-chip[data-value="4x5"]::before { width: 12px; height: 15px; }
.ratio-chip[data-value="5x4"]::before { width: 16px; height: 13px; }
.ratio-chip[data-value="9x16"]::before { width: 11px; height: 20px; }
.ratio-chip[data-value="21x9"]::before { width: 20px; height: 9px; }

.ratio-chip.active,
.quality-chip.active,
.count-chip.active {
    border-color: rgba(59, 130, 246, 0.6);
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
}

.quality-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ratio-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.count-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.settings-group select {
    display: none;
}

.settings-group input[type="number"] {
    display: none;
}

.prompt-enhance-inline {
    margin-left: auto;
}

.composer-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.compact-engine .engine-current-display {
    padding: 6px 10px 6px 52px;
    border-radius: 999px;
    min-width: 160px;
}

.engine-current-display {
    position: relative;
    padding-left: 52px;
}

.engine-current-display::before {
    content: "";
    position: absolute;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png");
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.engine-current-display[data-engine="normal"]::before,
.engine-current-display[data-engine="vip"]::before {
    background-image: url("/static/siteintro/bananicon.png");
    background-size: contain;
}

.engine-current-display[data-engine="midjourney"]::before {
    background-image: url("/static/siteintro/midjounery_icon.png");
    background-size: contain;
}

.engine-option-card {
    position: relative;
    padding-left: 52px; /* 从 58px 进一步减少到 52px */
}

.engine-option-card::before {
    content: "";
    position: absolute;
    left: 12px; /* 从 14px 减少到 12px */
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png");
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.engine-option-card[data-engine="normal"]::before,
.engine-option-card[data-engine="vip"]::before {
    background-image: url("/static/siteintro/bananicon.png");
    background-size: contain;
}

/* 千问 Edit 专用图标 */
.engine-option-card[data-engine="qwen_edit"]::before {
    background-image: url("/static/icon/qwen.png");
    background-size: contain;
}

.engine-option-card[data-engine="qwen_max"]::before {
    background-image: url("/static/icon/qwen.png");
    background-size: contain;
}

.engine-option-card[data-engine="midjourney"]::before {
    background-image: url("/static/siteintro/midjounery_icon.png");
    background-size: contain;
}

@media (max-width: 1024px) {
    .studio-stream {
        max-height: 55vh;
    }
}

@media (max-width: 768px) {
    .studio-stream {
        max-height: 50vh;
    }

    .composer-shell {
        grid-template-columns: 1fr;
    }

    .composer-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .composer-actions {
        margin-right: 0;
    }

    .composer-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* 功能介绍区域 */
.features-section {
    padding: var(--spacing-20) 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
}

.section-kicker {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-4);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-8);
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-4);
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-6);
    line-height: 1.6;
}

/* 历史页面样式 */
.history-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-8);
    padding: var(--spacing-6);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.filter-tabs {
    display: flex;
    gap: var(--spacing-2);
    background: var(--gray-100);
    padding: var(--spacing-1);
    border-radius: var(--radius-lg);
}

.filter-tab {
    padding: var(--spacing-3) var(--spacing-6);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--gray-900);
}

.filter-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.history-stats {
    display: flex;
    gap: var(--spacing-6);
}

.history-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-stats .stat-value {
    font-size: 1.5rem;
}

.history-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    box-shadow: var(--shadow);
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.pagination-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4);
}

.pagination-info {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.history-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.history-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.history-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-card:hover .history-cover img {
    transform: scale(1.05);
}

.history-actions {
    position: absolute;
    top: var(--spacing-3);
    right: var(--spacing-3);
    display: flex;
    gap: var(--spacing-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-card:hover .history-actions {
    opacity: 1;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: white;
    transform: scale(1.1);
}

.history-prompt-container {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2);
    padding: var(--spacing-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.history-prompt {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    cursor: help;
}

.copy-prompt {
    flex-shrink: 0;
    margin-top: 2px;
}

.history-meta {
    padding: var(--spacing-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.history-type {
    font-weight: 600;
    color: var(--primary-color);
}

.history-date {
    color: var(--gray-500);
}

.history-credits {
    color: var(--danger-color);
    font-weight: 500;
}

.load-more-section {
    text-align: center;
    padding-top: var(--spacing-6);
}

.history-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-16) var(--spacing-8);
    color: var(--gray-500);
    font-size: 1.125rem;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-8);
    color: var(--gray-500);
}

/* 图片预览弹窗 */
.modal-large {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.image-preview-container {
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
}

.image-preview-container img {
    max-width: 600px;
    max-height: 70vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.preview-info {
    flex: 1;
    min-width: 300px;
}

.preview-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
}

.preview-info p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-6);
    max-height: 300px;
    overflow-y: auto;
    padding: var(--spacing-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.preview-actions {
    display: flex;
    gap: var(--spacing-4);
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 响应式设计更新 */
@media (max-width: 1024px) {
    .workspace-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }

    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-6);
    }

    .history-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header-premium h1 {
        font-size: 1.5rem;
    }

    .page-header-desc {
        font-size: 0.95rem;
    }

    .quick-stats {
        gap: var(--spacing-3);
    }

    .stat-item {
        padding: var(--spacing-2) var(--spacing-3);
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

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

    .history-list {
        grid-template-columns: 1fr;
    }

    .history-filters {
        flex-direction: column;
        gap: var(--spacing-4);
    }

    .image-preview-container {
        flex-direction: column;
        align-items: center;
    }

    .image-preview-container img {
        max-width: 100%;
    }

    .preview-info {
        width: 100%;
        min-width: auto;
    }
}

/* 上传图片显示区域 */
.uploaded-images-section {
    padding: var(--spacing-3);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.uploaded-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--spacing-2);
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.uploaded-label::before {
    content: "📸";
    font-size: 0.875rem;
}

.uploaded-images {
    display: flex;
    gap: var(--spacing-2);
    overflow-x: auto;
    padding-bottom: var(--spacing-1);
}

.uploaded-image-item {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.uploaded-image-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.uploaded-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploaded-image-item:hover .uploaded-preview {
    opacity: 1;
}

.uploaded-preview:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 联系客服按钮样式 */
.contact-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-tip {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 40%, #e0f2fe 100%);
    border-radius: 999px;
    padding: 10px 16px 10px 12px;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-800);
    max-width: 260px;
    backdrop-filter: blur(6px);
    animation: float-tip 3.5s ease-in-out infinite;
}

.contact-tip::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 26px;
    width: 14px;
    height: 14px;
    background: inherit;
    border-radius: 4px;
    transform: rotate(45deg);
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.contact-tip-arrow {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fef9c3 0%, #facc15 35%, #eab308 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 6px 14px rgba(234, 179, 8, 0.45);
}

.contact-tip-text {
    line-height: 1.5;
    white-space: nowrap;
}

.contact-tip-highlight {
    color: #0f766e;
    font-weight: 700;
}

.contact-tip-close {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.05);
    color: var(--gray-500);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.contact-tip-close:hover {
    background: rgba(15, 23, 42, 0.12);
    color: var(--gray-800);
}

.contact-tip-hidden {
    display: none !important;
}

@keyframes float-tip {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.contact-button {
    width: 52px;
    height: 52px;
    background: rgb(224, 225, 229);
    color: #000;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: contact-glimmer 3.6s ease-in-out infinite;
    position: relative;
}

.contact-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%);
    opacity: 0.55;
    pointer-events: none;
}

.contact-button:hover {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    animation: none;
}

.contact-icon {
    width: 22px;
    height: 22px;
    display: block;
    color: #000;
}

@keyframes contact-glimmer {
    0% {
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
    }
    50% {
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    }
    100% {
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
    }
}

.contact-qrcode {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    width: 280px;
    text-align: center;
}

.contact-qrcode.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qrcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.qrcode-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.qrcode-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.qrcode-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.contact-qrcode img {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: 10px;
    aspect-ratio: 1;
}

.qrcode-tip {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-support {
        bottom: 20px;
        right: 20px;
    }

    .contact-button {
        width: 46px;
        height: 46px;
    }

    .contact-icon {
        width: 20px;
        height: 20px;
    }

    .contact-qrcode {
        width: 250px;
        bottom: 70px;
        right: -10px;
    }

    .contact-qrcode img {
        width: 180px;
        height: auto;
        object-fit: contain;
        aspect-ratio: 1;
    }
}

/* ========== Banana Pro 模式选择器样式 ========== */

/* 按钮操作行 - 并排布局 */
.actions-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: flex-start;
}

/* 容器 - 横向布局 */
.engine-selector-inline {
    position: relative;
    width: 100%;
}

.composer-controls .engine-selector-inline {
    width: auto;
    min-width: 280px;
}

.composer-controls .btn-generate-main {
    border-radius: 999px;
    padding: 10px 18px;
    min-width: 160px;
}

/* 生成按钮 - 在并排布局中 */
.actions-row .btn-generate-main {
    width: 100%;
    min-width: 180px;
    max-width: 280px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 生成按钮文本不换行 */
.actions-row .btn-generate-main #normalSubmitText {
    white-space: nowrap;
}

/* ========== 触发按钮(折叠状态) ========== */
.engine-current-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.engine-current-display:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.engine-mode-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.engine-mode-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.engine-mode-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

/* 成功率徽章 - 文字样式 */
.stat-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.stat-badge.stat-yellow {
    background: #fef3c7;
    color: #92400e;
}

.stat-badge.stat-green {
    background: #d1fae5;
    color: #065f46;
}

.stat-badge.stat-orange {
    background: #fed7aa;
    color: #9a3412;
}

.stat-badge.stat-purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.stat-divider {
    color: #9ca3af;
}

/* 速度格子显示(触发按钮中) */
.stat-speed-bars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.stat-speed-bars .speed-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.stat-speed-bars .speed-bar-fill {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #fbbf24;
}

.stat-speed-bars .speed-bar-empty {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #e5e7eb;
}

.engine-arrow {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.engine-current-display.expanded .engine-arrow {
    transform: rotate(180deg);
}

/* ========== 下拉卡片列表 - 向上弹出 ========== */
.engine-cards-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: min(360px, 90vw);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(12px);
    animation: slideUp 0.2s ease;
}

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

/* ========== 选项卡片 ========== */
.engine-option-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px 12px 52px; /* 左侧从 58px 减少到 52px */
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 64px; /* 确保最小高度，让底部小字显示完整 */
}

.engine-option-card:last-child {
    border-bottom: none;
}

.engine-option-card:hover {
    background: #f9fafb;
}

.engine-option-card.active {
    background: #eff6ff;
    border-left: 3px solid #4f46e5;
}

.card-left {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 86px); /* 调整为 86px (80px右侧 + 6px间距) */
    overflow: visible; /* 改为 visible，让描述文字完整显示 */
    padding-right: 6px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4; /* 从 1.3 增加到 1.4，与描述文字保持一致 */
}

.card-meta {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4; /* 从 1.3 增加到 1.4，让小字更易读 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px; /* 从 2px 增加到 3px，稍微增加间距 */
}

/* 卡片右侧 - 两行布局 */
.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    width: 80px; /* 从 65px 增加到 80px，让积分显示更宽 */
    padding-left: 6px;
}

/* 第一行: 成功率 + 积分 */
.card-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* 成功率徽章 - 弱化样式 */
.success-badge {
    padding: 2px 6px; /* 从 2px 8px 减小到 2px 6px */
    border-radius: 4px;
    font-weight: 500;
    font-size: 10px; /* 从 11px 减小到 10px */
    opacity: 0.8;
    white-space: nowrap; /* 确保不换行 */
}

.success-badge.success-yellow {
    background: #fef3c7;
    color: #92400e;
}

.success-badge.success-green {
    background: #d1fae5;
    color: #065f46;
}

.success-badge.success-orange {
    background: #fed7aa;
    color: #9a3412;
}

.success-badge.success-purple {
    background: #e9d5ff;
    color: #6b21a8;
}

/* 积分标签 */
.credits-tag {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap; /* 防止 "4-6" 换行 */
}

.credits-tag .credits-icon {
    font-size: 14px;
}

/* 速度格子显示(卡片中) */
.speed-bars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.speed-bars .speed-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-right: 2px;
}

.speed-bars .speed-bar-fill {
    width: 12px;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.speed-bars .speed-bar-fill.speed-yellow {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 1px 3px rgba(251, 191, 36, 0.4);
}

.speed-bars .speed-bar-fill.speed-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.4);
}

.speed-bars .speed-bar-fill.speed-purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 1px 3px rgba(168, 85, 247, 0.4);
}

.speed-bars .speed-bar-empty {
    width: 12px;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    opacity: 0.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .engine-selector-inline {
        max-width: 100%;
    }

    .card-title {
        font-size: 14px;
    }

    .card-meta {
        font-size: 12px;
    }

    .actions-row {
        flex-direction: column;
    }

    .actions-row .btn-generate-main {
        width: 100%;
        max-width: 100%;
    }
}

/* Page-normal composer overrides (late) */
.page-normal .composer-controls {
    flex-wrap: nowrap;
}

.page-normal .composer-controls .engine-selector-inline {
    min-width: 0;
    max-width: 260px;
}

.page-normal .composer-controls .settings-chip-wrap,
.page-normal .composer-controls .prompt-enhance-wrap {
    flex: 0 1 auto;
    min-width: 0;
}

.page-normal .engine-current-display {
    min-width: 190px;
    max-width: 250px;
    flex: 0 1 auto;
}

.page-normal .engine-mode-name {
    max-width: 200px;
}

.page-normal .composer-controls .composer-left,
.page-normal .composer-controls .composer-right {
    gap: 6px;
}

.page-normal .composer-controls .btn-generate-main {
    min-width: auto;
    padding: 4px 12px;
}

/* Layered split UI */
.layered-action-section .layered-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px dashed rgba(79, 70, 229, 0.25);
    border-radius: 12px;
    padding: 8px 10px;
}

.layered-action-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layered-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layered-sub {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.layered-action-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.layered-action-right label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.layered-action-right select {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 4px 8px;
    background: #fff;
    font-size: 0.85rem;
}

.layered-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.layered-credit {
    font-size: 0.75rem;
    color: #0f766e;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
}

.layered-playground {
    margin-top: 16px;
    background: #0f172a;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.layered-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.layered-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.layered-header-title {
    font-weight: 800;
    font-size: 1rem;
}

.layered-status {
    color: #e2e8f0;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 6px 10px;
    border-radius: 999px;
}

.layered-canvas-shell {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 12px;
    align-items: start;
}

.layered-canvas {
    position: relative;
    min-height: 320px;
    border-radius: 12px;
    background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.2), transparent 30%),
                radial-gradient(circle at 80% 40%, rgba(16,185,129,0.2), transparent 26%),
                rgba(15, 23, 42, 0.8);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.layered-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.layered-canvas::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(56, 189, 248, 0.25);
    pointer-events: none;
}

.layered-layer {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}

.layered-layer.active {
    outline: 2px solid rgba(56, 189, 248, 0.9);
    box-shadow: 0 18px 32px rgba(14, 165, 233, 0.35);
    cursor: grabbing;
}

.layered-layer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layered-layer-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    cursor: grab;
    transition: all 0.2s ease;
}

.layered-layer-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.layered-layer-label {
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.85rem;
}

.layered-layer-thumb.active {
    border-color: rgba(56, 189, 248, 0.8);
    background: rgba(56, 189, 248, 0.12);
}

.layered-layer-thumb.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.layered-control-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.layered-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
}

.layered-slider input[type="range"] {
    width: 220px;
}

.layered-scale-value {
    min-width: 54px;
    text-align: right;
    color: #a5b4fc;
    font-weight: 700;
}

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

.layered-canvas .empty-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226, 232, 240, 0.8);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.image-preview-side {
    overflow-y: auto;
    max-height: 78vh;
}

.image-preview-layout {
    overflow-y: auto;
}

.image-preview-modal .modal-close-ghost {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 5;
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(6px);
}

.image-preview-modal {
    overflow-y: auto;
}

/* 下载按钮下拉菜单样式 */
.download-menu-wrapper {
    position: relative;
    display: inline-block;
}

.download-dropdown-btn {
    position: relative;
    cursor: pointer;
}

.download-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
}

.download-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.download-dropdown-menu::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.98);
}

.download-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.download-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.download-dropdown-item i {
    font-size: 0.875rem;
}

.download-dropdown-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.3);
    margin: 4px 0;
}

.download-dropdown-hint {
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    line-height: 1.4;
}

/* 点击外部关闭菜单 */
.download-menu-wrapper.active .download-dropdown-btn {
    background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .download-dropdown-menu {
        min-width: 180px;
        bottom: calc(100% + 6px);
    }
}

/* ========== 首页（Dark + Warm Gold）视觉覆写：仅作用于 .page-home ========== */
.page-home {
    --home-bg: rgb(24, 24, 27);
    --home-surface: rgba(39, 39, 42, 0.92);
    --home-border: rgba(63, 63, 70, 0.7);
    --home-text: #f4f4f5;
    --home-text-body: #d4d4d8;
    --home-text-muted: #a1a1aa;
    --home-gold: #facc15;
    --home-gold-deep: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #f7d680 0%, #d9a24f 100%);
    --primary-color: #facc15;
    --primary-dark: #d9a24f;
    --primary-light: #fde68a;
    --secondary-color: #f59e0b;

    background: var(--home-bg);
    color: var(--home-text-body);
}

.page-home .global-announcement-bar {
    background: rgba(39, 39, 42, 0.92);
    color: var(--home-gold);
    border-bottom: 1px solid var(--home-border);
}

.page-home .navbar {
    background: rgba(24, 24, 27, 0.75);
    border-bottom: 1px solid var(--home-border);
    backdrop-filter: blur(14px);
}

.page-home .nav-brand h1,
.page-home .nav-link {
    color: rgba(244, 244, 245, 0.82);
}

.page-home .nav-link:hover,
.page-home .nav-link.active {
    color: var(--home-text);
}

.page-home .nav-link.hot {
    color: var(--home-gold);
}

.page-home .nav-link::after {
    background: linear-gradient(90deg, var(--home-gold) 0%, var(--home-gold-deep) 100%);
}

.page-home .version {
    background: rgba(250, 204, 21, 0.14);
    color: var(--home-gold);
    box-shadow: none;
}

.page-home .notification-bell {
    background: rgba(250, 204, 21, 0.10);
    color: rgba(244, 244, 245, 0.92);
}

.page-home .notification-dropdown {
    background: rgba(39, 39, 42, 0.96);
    border: 1px solid var(--home-border);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.page-home .nav-user {
    background: rgba(39, 39, 42, 0.72);
    border: 1px solid rgba(63, 63, 70, 0.75);
}

.page-home .nav-user::after {
    background: rgba(39, 39, 42, 0.96);
    border: 1px solid rgba(63, 63, 70, 0.75);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.page-home .nav-user::before {
    border-bottom-color: rgba(39, 39, 42, 0.96);
}

.page-home .nav-avatar {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-home .nav-username {
    color: rgba(244, 244, 245, 0.92);
}

.page-home .nav-auth .btn-link {
    color: var(--home-gold);
}

.page-home .nav-auth .btn-link:hover {
    color: #f7d680;
}

.page-home .hero {
    background: var(--home-bg);
}

.page-home .hero::before {
    background:
        radial-gradient(circle at 16% 22%, rgba(250, 204, 21, 0.18), transparent 46%),
        radial-gradient(circle at 86% 18%, rgba(217, 162, 79, 0.14), transparent 44%),
        radial-gradient(circle at 54% 86%, rgba(250, 204, 21, 0.10), transparent 52%);
}

.page-home .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/siteintro/bg-bananas.png") top center / 100% auto no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.page-home .hero-content {
    transform: scale(0.9);
    transform-origin: center top;
}

@media (max-width: 1024px) {
    .page-home .hero-content {
        transform: none;
    }
}

.page-home .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-home .kicker-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(39, 39, 42, 0.85);
    border: 1px solid var(--home-border);
    color: rgba(244, 244, 245, 0.92);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.page-home .kicker-note {
    color: var(--home-text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.page-home .hero-title {
    color: var(--home-text);
    letter-spacing: -0.02em;
}

.page-home .hero-title .highlight {
    background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-deep) 55%, #f7d680 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-home .hero-title-art {
    width: min(420px, 92%);
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 22px 70px rgba(0, 0, 0, 0.55));
}

.page-home .hero-subtitle {
    max-width: 580px;
    color: var(--home-text-body);
    font-weight: 600;
    line-height: 1.75;
}

.page-home .hero-typing {
    color: var(--home-text-muted);
}

.page-home .hero-buttons {
    align-items: flex-start;
}

.page-home .hero-cta {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .page-home .hero-title-art {
        width: min(360px, 94%);
    }

    .page-home .hero-buttons {
        align-items: center;
    }

    .page-home .hero-cta {
        align-items: center;
    }
}

.page-home .hero-cta-sub {
    color: rgba(244, 244, 245, 0.72);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.page-home .btn-primary {
    color: #141414;
    border: 1px solid rgba(250, 204, 21, 0.35);
    box-shadow: 0 18px 55px rgba(217, 162, 79, 0.22);
}

.page-home .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(217, 162, 79, 0.26);
}

.page-home .btn-secondary {
    background: rgba(39, 39, 42, 0.75);
    color: rgba(244, 244, 245, 0.92);
    border: 1px solid var(--home-border);
}

.page-home .btn-secondary:hover {
    background: rgba(39, 39, 42, 0.92);
    border-color: rgba(250, 204, 21, 0.35);
    color: rgba(244, 244, 245, 0.96);
}

.page-home .hero-compare {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.page-home .compare-title {
    color: rgba(244, 244, 245, 0.92);
}

.page-home .compare-counter {
    color: rgba(244, 244, 245, 0.75);
}

.page-home .compare-btn {
    background: rgba(39, 39, 42, 0.85);
    color: rgba(244, 244, 245, 0.9);
    border: 1px solid rgba(63, 63, 70, 0.8);
}

.page-home .compare-btn:hover {
    background: rgba(39, 39, 42, 0.96);
    border-color: rgba(250, 204, 21, 0.35);
}

.page-home .compare-canvas {
    border: 1px solid rgba(63, 63, 70, 0.65);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.page-home .compare-images {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.92) 0%, rgba(24, 24, 27, 0.92) 100%);
    border: 1px solid rgba(63, 63, 70, 0.65);
}

.page-home .compare-canvas {
    background: rgba(24, 24, 27, 0.65);
}

.page-home .compare-overlay {
    border-right-color: rgba(250, 204, 21, 0.92);
    box-shadow: 10px 0 30px rgba(250, 204, 21, 0.12);
}

.page-home .compare-handle {
    background: rgba(250, 204, 21, 0.92);
    box-shadow: 0 12px 40px rgba(250, 204, 21, 0.18);
}

.page-home .compare-slider {
    accent-color: var(--home-gold);
    background: linear-gradient(90deg, rgba(63, 63, 70, 0.9), rgba(39, 39, 42, 0.9));
}

.page-home .compare-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, #f7d680 0%, #d9a24f 100%);
    border: 2px solid rgba(24, 24, 27, 0.95);
    box-shadow: 0 10px 34px rgba(217, 162, 79, 0.28);
}

.page-home .compare-slider::-moz-range-thumb {
    background: linear-gradient(135deg, #f7d680 0%, #d9a24f 100%);
    border: 2px solid rgba(24, 24, 27, 0.95);
    box-shadow: 0 10px 34px rgba(217, 162, 79, 0.28);
}

.page-home .testimonials-section,
.page-home .features-section {
    background: var(--home-bg);
}

.page-home .section-header h2,
.page-home .testimonials-header h2,
.page-home .recharge-header h2 {
    color: var(--home-text);
}

.page-home .section-subtitle,
.page-home .recharge-subtitle,
.page-home .review-card-sub,
.page-home .review-card-text,
.page-home .feature-showcase-desc,
.page-home .showcase-main p,
.page-home .module-desc {
    color: var(--home-text-body);
}

.page-home .section-kicker {
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.18);
    color: var(--home-gold);
}

.page-home .proof-tag,
.page-home .showcase-index,
.page-home .feature-showcase-badge {
    background: rgba(250, 204, 21, 0.10);
    border: 1px solid rgba(250, 204, 21, 0.18);
    color: var(--home-gold);
}

.page-home .proof-marquee {
    border: 1px solid rgba(63, 63, 70, 0.7);
    background: rgba(39, 39, 42, 0.55);
}

.page-home .review-pill {
    background: rgba(39, 39, 42, 0.9);
    border: 1px solid rgba(63, 63, 70, 0.7);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.page-home .review-name {
    color: rgba(244, 244, 245, 0.92);
}

.page-home .review-text {
    color: rgba(212, 212, 216, 0.92);
}

.page-home .review-card,
.page-home .recharge-card,
.page-home .feature-card,
.page-home .feature-showcase-card,
.page-home .showcase-item {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.page-home .review-card:hover,
.page-home .showcase-item:hover {
    border-color: rgba(250, 204, 21, 0.25);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

.page-home .recharge-card.featured {
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 24px 85px rgba(250, 204, 21, 0.10), 0 18px 60px rgba(0, 0, 0, 0.38);
}

.page-home .recharge-badge {
    background: rgba(250, 204, 21, 0.14);
    color: var(--home-text);
    box-shadow: none;
}

.page-home .recharge-badge.popular {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
    color: #141414;
}

.page-home .recharge-name,
.page-home .feature-card h3,
.page-home .feature-showcase-title,
.page-home .showcase-main h3,
.page-home .review-card-name {
    color: var(--home-text);
}

.page-home .recharge-price {
    color: var(--home-gold);
}

.page-home .wechat-id {
    color: rgba(212, 212, 216, 0.9);
}

.page-home .recharge-credits {
    color: rgba(244, 244, 245, 0.92);
}

.page-home .recharge-unitprice {
    color: rgba(161, 161, 170, 0.92);
}

.page-home .recharge-value {
    background: rgba(250, 204, 21, 0.10);
    border-color: rgba(250, 204, 21, 0.18);
}

.page-home .value-label {
    color: rgba(161, 161, 170, 0.92);
}

.page-home .value-amount {
    color: var(--home-gold);
}

.page-home .recharge-features {
    border-top: 1px solid rgba(63, 63, 70, 0.75);
}

.page-home .feature-item {
    color: rgba(212, 212, 216, 0.92);
}

.page-home .feature-item:before {
    background: rgba(250, 204, 21, 0.95);
    color: #141414;
}

.page-home .showcase-tag {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.14);
    color: rgba(244, 244, 245, 0.92);
}

.page-home .recharge-card.premium .recharge-badge,
.page-home .recharge-card.ultimate .recharge-badge {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
    color: #141414;
}

.page-home .recharge-card.ultimate::before {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.92) 0%, rgba(245, 158, 11, 0.92) 50%, rgba(250, 204, 21, 0.92) 100%);
}

.page-home .recharge-card.ultimate .price-amount,
.page-home .recharge-card.ultimate .price-currency,
.page-home .recharge-card.ultimate .value-amount {
    color: var(--home-gold);
}

.page-home .recharge-card.ultimate .recharge-value {
    background: rgba(250, 204, 21, 0.10);
    border-color: rgba(250, 204, 21, 0.18);
}

.page-home .bulk-card {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.page-home .bulk-badge {
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.18);
    color: var(--home-gold);
}

.page-home .bulk-title {
    color: var(--home-text);
}

.page-home .bulk-desc {
    color: rgba(212, 212, 216, 0.92);
}

.page-home .bulk-highlight {
    color: var(--home-gold);
}

.page-home .bulk-contact {
    background: rgba(24, 24, 27, 0.45);
    border: 1px solid rgba(63, 63, 70, 0.75);
}

.page-home .bulk-contact-label {
    color: rgba(161, 161, 170, 0.92);
}

.page-home .bulk-contact-value {
    color: rgba(244, 244, 245, 0.92);
}

.page-home .footer {
    background: var(--home-bg);
}

.page-home .footer-bottom {
    border-top: 1px solid rgba(63, 63, 70, 0.8);
}

/* ========================================
.page-home .footer-bottom {
    border-top: 1px solid rgba(63, 63, 70, 0.8);
}

/* ========================================
   API 通道健康状态指示器
   ======================================== */

/* 给卡片添加相对定位 */
.engine-option-card {
    position: relative !important;
}

/* 状态指示器容器 - 左上角显示，优化版 */
.channel-status-indicator {
    position: absolute;
    top: 8px;
    left: 6px; /* 从 8px 进一步减少到 6px */
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 11px;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 日间模式优化 */
body.theme-day .channel-status-indicator {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 夜间模式优化 */
body.theme-night .channel-status-indicator {
    background: rgba(20, 23, 31, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 状态点 - 增大并优化 */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: statusPulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    position: relative;
}

/* 状态点外圈光晕 */
.status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    animation: statusRipple 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 状态颜色优化 */
.status-green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.status-yellow {
    background: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.status-red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.status-gray {
    background: #9ca3af;
    box-shadow: 0 0 6px rgba(156, 163, 175, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* 状态文字优化 */
.status-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.3px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 日间模式文字颜色 */
body.theme-day .status-text {
    color: rgba(0, 0, 0, 0.82);
    text-shadow: none;
    font-weight: 600;
}

/* 脉冲动画优化 */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* 波纹动画 */
@keyframes statusRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .channel-status-indicator {
        top: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-text {
        font-size: 9px;
    }
}

/* 为卡片左侧内容添加左边距，避免被状态指示器遮挡 */
.engine-option-card .card-left {
    padding-left: 50px !important; /* 从 56px 进一步减少到 50px */
}

/* 卡片悬停时状态指示器微调 */
.engine-option-card:hover .channel-status-indicator {
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

body.theme-day .engine-option-card:hover .channel-status-indicator {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}
