@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}


/* 超小屏幕额外优化 */
@media (max-width: 480px) {
    .analysis-upload-area {
        padding: 20px 12px !important;
    }
    
    #analyze-image-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

/* 对于Firefox */
* {
    scrollbar-width: none;
}

.gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.shareholder-bg {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

/* 🎨 突出提示词生成区域 */
.prompt-generation-hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.prompt-result-area {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 图片预览区 - 弱化处理 */
.image-preview-area {
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.image-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

/* 横幅模式使用1列布局 */
.image-grid.banner-mode {
    grid-template-columns: 1fr;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(42, 42, 42, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    group: true;
}

/* 不同模式的宽高比和高度 */
.image-card.poster,
.image-card.social {
    aspect-ratio: 9/16;
}

.image-card.banner {
    aspect-ratio: 16/9;
}

.image-card.emoji,
.image-card.logo {
    aspect-ratio: 1/1;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-card.selected {
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

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

/* 图片操作按钮 */
.image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-card:hover .image-actions {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.image-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f2937;
}

.image-action-btn:hover {
    transform: scale(1.1);
    background: white;
}

.image-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.loading-pulse {
    background: linear-gradient(45deg, #374151, #4b5563, #374151);
    background-size: 200% 200%;
    animation: pulse 2s ease-in-out infinite;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.loading-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: sweep 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer.show {
    opacity: 1;
    visibility: visible;
}

.viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.viewer-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-nav.prev {
    left: 20px;
}

.viewer-nav.next {
    right: 20px;
}

.viewer-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.viewer-actions {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.viewer-action-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.viewer-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 左右布局优化 */
.content-split-layout {
    display: flex;
    gap: 2rem;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.content-left {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

.content-right {
    width: 40%;
    min-width: 400px;
    overflow-y: auto;
    padding-left: 1rem;
}

@media (max-width: 1200px) {
    .content-split-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .content-left,
    .content-right {
        width: 100%;
        min-width: auto;
        padding: 0;
    }
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #404040;
    outline: none;
    width: 100%;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: 2px solid #1f1f1f;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: 2px solid #1f1f1f;
}

.count-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #374151;
    color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.count-btn.active {
    background: #0ea5e9;
    color: white;
}

.count-btn:hover {
    background: #4b5563;
}

.count-btn.active:hover {
    background: #7c3aed;
}

.mode-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #374151;
    color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.mode-btn.active {
    background: #0ea5e9;
    color: white;
}

.mode-btn:hover {
    background: #4b5563;
}

.mode-btn.active:hover {
    background: #7c3aed;
}

/* 🆕 像素风格开关样式 */
.pixel-switch {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 60px;
    height: 26px;
}

.pixel-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.pixel-slider {
    image-rendering: pixelated;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAEECAYAAAD0wkrNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsEAAA7BAbiRa+0AAAGHaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pg0KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyI+PHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj48cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0idXVpZDpmYWY1YmRkNS1iYTNkLTExZGEtYWQzMS1kMzNkNzUxODJmMWIiIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj48dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPjwvcmRmOkRlc2NyaXB0aW9uPjwvcmRmOlJERj48L3g6eG1wbWV0YT4NCjw/eHBhY2tldCBlbmQ9J3cnPz4slJgLAAAFd0lEQVR4Xu3YMWpbQRhG0ZGdwqAVJqQzRsYIL8aoSUgppKUJvIaYl346+91Csc+Bab52msu/GWMsAwCAzM08AACwjsACAIgJLACAmMACAIgJLACAmMACAIgJLACAmMACAIgJLACAmMACAIgJLACAmMACAIgJLACAmMACAIgJLACAmMACAIgJLACAmMACAIgJLACA2GaMsczjGsfTeZ4AAK7azx/f52kVFywAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICSwAgJjAAgCICS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AGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGICCwAgJrAAAGKbMcYyjwAAfJwLFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBATGABAMQEFgBA7B+FCmkzoT9HAAAAAABJRU5ErkJggg==);
    background-size: 100% 100%;
    transition: 0.3s;
}

.pixel-slider:before {
    box-sizing: border-box;
    position: absolute;
    content: "";
    height: 32px;
    width: 28px;
    bottom: 0px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAFACAYAAABnU2MWAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsEAAA7BAbiRa+0AAAGHaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pg0KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyI+PHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj48cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0idXVpZDpmYWY1YmRkNS1iYTNkLTExZGEtYWQzMS1kMzNkNzUxODJmMWIiIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj48dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPjwvcmRmOkRlc2NyaXB0aW9uPjwvcmRmOlJERj48L3g6eG1wbWV0YT4NCjw/eHBhY2tldCBlbmQ9J3cnPz4slJgLAAAEZElEQVR4Xu3cMWojURBF0WpHQpYXOxivYjBerGWhrCf/aesOFpwTvgVcKqptZvYBCLysA8CjCAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCCzPfon7/V2XyfgSVzOp3U6xAUDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwACZbWb2dTzieruv06/y/f2zTvDfvL29rtOvcjmf1ukQFwyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2S2mdnX8Yjr7b5OwJO4nE/rdIgLBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMtvM7Ot4xN/Pr3UCnsTH+591OsQFA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQEZggIzAABmBATICA2QEBsgIDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAmW1m9nUEeAQXDJARGCAjMEBGYICMwAAZgQEyAgNkBAbICAyQERggIzBARmCAjMAAGYEBMgIDZAQGyAgMkBEYICMwQOYfxHAXdb5V9+0AAAAASUVORK5CYII=);
    background-size: 28px 32px;
    transition: 0.3s;
}

.pixel-toggle:checked + .pixel-slider {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAEECAYAAAD0wkrNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABEYSURBVHhe7daxDTBVDoXRvxqqYHMagJBwO9kqVkh0CjHXof2YG5wnncSRNQ7m+/Hjx4+/AAA4NQYAAOyMAQAAO2MAAMDOGAAAsDMGAADsjAEAADtjAADAzhgAALAzBgAA7IwBAAA7YwAAwM4YAACwMwYAAOyMAQAAO2MAAMDOGAAAsDMGAADsjAEAADtjsJJB0yY/KABA9syBMVjJoGmTHxQAIHvmwBisZNC0yQ8KAJA9c2AMVjJo2uQHBQDInjkwBisZNG3ygwIAZM8cGIOVDJo2+UEBALJnDozBSgZNm/ygAADZMwfGYCWDpk0eHAB4L//HbbJnDozBSi7cJg8OALyX/+M22TMHxmAlF26TBwcA3sv/cZvsmQNjsJILt8mDAwDv5f+4TfbMgTFYyYXb5MEBgPfyf9wme+bAGKzkwm3y4ADAe/k/bpM9c2AMVnLhNnlwAOC9/B+3yZ45MAYruXCbPDgA8F7+j9tkzxwYg5VcuE0eHAB4L//Hbb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TX5QAIDsmQNjsJJB0yY/KABA9syBMVjJoGmTHxQAIHvmwBisZNC0yQ8KAJA9c2AMVjJo2uQHBQDInjkwBisZNG3ygwIAZM8cGIOVDJo2+UEBALJnDozBSgZNm/ygAADZMwfGYCWDpk1+UACA7JkDY7CSQdMmPygAQPbMgTFYyaBpkx8UACB75sAYrGTQtMkPCgCQPXNgDFYyaNrkBwUAyJ45MAYrGTRt8oMCAGTPHBiDlQyaNvlBAQCyZw6MwUoGTZv8oAAA2TMHxmAlg6ZNflAAgOyZA2OwkkHTJj8oAED2zIExWMmgaZMfFAAge+bAGKxk0LTJDwoAkD1zYAxWMmja5AcFAMieOTAGKxk0bfKDAgBkzxwYg5UMmjb5Qf/feO+/DREAAAADoAF4gJ5w6wTGdN8P4bIlIHBCQAAAAAMSUVORK5CYII=);
}

.pixel-toggle:checked + .pixel-slider:before {
    transform: translateX(32px);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid #3b82f6; }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1f2937;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #111827;
    color: white;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.form-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.form-button:hover {
    opacity: 0.9;
}

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

.verification-group {
    display: flex;
    gap: 8px;
}

.verification-input {
    flex: 1;
}

.send-code-btn {
    padding: 12px 16px;
    background: #374151;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: #4b5563;
}

.send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-link {
    text-align: center;
    margin-top: 16px;
    color: #9ca3af;
}

.form-link a {
    color: #8b5cf6;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* 会员中心相关样式 */
.package-card {
    background: #374151;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.package-card.popular {
    border-color: #f59e0b;
}

.package-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.package-card.shareholder {
    border-color: #ec4899;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.package-popular {
    position: absolute;
    top: -8px;
    left: 20px;
    background: #f59e0b;
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.package-price {
    text-align: center;
    margin-bottom: 16px;
}

.package-price-main {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
}

.package-price-main.shareholder {
    background: linear-gradient(135deg, #0ea5e9 0%, #18c3e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-price-original {
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 14px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.package-features li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.package-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.package-button.primary {
    background: #3b82f6;
    color: white;
}

.package-button.premium {
    background: linear-gradient(135deg, #0ea5e9 0%, #0ea5e9 100%);
    color: white;
}

.package-button:hover {
    opacity: 0.9;
}

/* 云股东专属样式 */
.shareholder-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.shareholder-panel {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
}

.shareholder-stats {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.privilege-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.privilege-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.privilege-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.privilege-text {
    font-size: 12px;
    font-weight: 500;
}

/* 🆕 图片分析页面尺寸选择样式 */
.size-option-btn {
    padding: 12px 16px;
    border-radius: 8px;
    background: #374151;
    color: #d1d5db;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-option-btn.active {
    background: #8b5cf6;
    border-color: #7c3aed;
    color: white;
}

.size-option-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.size-option-btn.active:hover {
    background: #7c3aed;
    border-color: #6d28d9;
}

/* 历史记录相关样式 */
.history-item {
    background: #374151;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #4b5563;
    border-color: #8b5cf6;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.history-item-mode {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-mode-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.history-mode-icon.poster { background: #059669; }
.history-mode-icon.banner { background: #2563eb; }
.history-mode-icon.emoji { background: #d97706; }
.history-mode-icon.logo { background: #7c3aed; }
.history-mode-icon.social { background: #059669; }

.history-mode-name {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.history-item-actions {
    display: flex;
    gap: 4px;
}

.history-action-btn {
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.history-action-btn:hover {
    background: #4b5563;
}

.history-action-btn.delete:hover {
    background: #dc2626;
}

.history-item-title {
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.history-item-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
    line-height: 1.4;
}

.history-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-item-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
}

.history-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9ca3af;
}

.history-status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.history-status-icon.has-images { background: #10b981; }
.history-status-icon.prompt-only { background: #f59e0b; }
.history-status-icon.has-prompt { background: #6b7280; }

.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.status-badge.complete {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.draft {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.history-item-footer {
    text-align: center;
}

.history-click-hint {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

/* 积分历史模态框样式 */
.credit-history-modal {
    max-width: 600px;
    max-height: 80vh;
}

.credit-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #374151;
    transition: background 0.2s;
}

.credit-record:hover {
    background: #374151;
}

.credit-record:last-child {
    border-bottom: none;
}

.credit-amount {
    font-weight: 600;
}

.credit-amount.positive {
    color: #10b981;
}

.credit-amount.negative {
    color: #ef4444;
}

.credit-description {
    font-size: 14px;
    color: #d1d5db;
}

.credit-time {
    font-size: 12px;
    color: #9ca3af;
}

.birthday-privilege {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
    to { box-shadow: 0 0 30px rgba(245, 158, 11, 0.8); }
}

/* 🆕 炫酷生成按钮样式 */
.space-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    overflow: hidden;
    height: 3.5rem;
    background-size: 300% 300%;
    cursor: pointer;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: gradient_301 5s ease infinite;
    border: double 4px transparent;
    background-image: linear-gradient(#212121, #212121),
         linear-gradient(137.48deg, #e0dccb 10%, #87aec6 45%, #a7c1ec 67%, #84e6cc 87%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    position: relative;
}

#container-stars {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
}

.space-btn strong {
    z-index: 2;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 4px white;
}

#glow {
    position: absolute;
    display: flex;
    width: 12rem;
}

.circle {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
}

.circle:nth-of-type(1) {
    background: rgba(254, 83, 186, 0.636);
}

.circle:nth-of-type(2) {
    background: rgba(142, 81, 234, 0.704);
}

.space-btn:hover #container-stars {
    z-index: 1;
    background-color: #212121;
}

.space-btn:hover {
    transform: scale(1.05);
}

.space-btn:active {
    border: double 4px #fe53bb;
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none;
}

.space-btn:active .circle {
    background: #fe53bb;
}

.space-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.space-btn:disabled:hover {
    transform: none !important;
}

#stars {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
}

#stars::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite;
}

#stars::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
}

#stars::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite;
}

#stars::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes animStar {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-135rem);
    }
}

@keyframes animStarRotate {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0);
    }
}

@keyframes gradient_301 {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse_3011 {
    0% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* 积分显示标签 */
.cost-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 移动端侧边栏 */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-header {
    display: none;
    background: #1f2937;
    border-bottom: 1px solid #374151;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: #374151;
}

/* 图片分析页面样式 */
.analysis-upload-area {
    border: 2px dashed #8b5cf6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(139, 92, 246, 0.05);
}

.analysis-upload-area:hover {
    border-color: #7c3aed;
    background: rgba(139, 92, 246, 0.1);
}

.analysis-upload-area.dragover {
    border-color: #5b21b6;
    background: rgba(139, 92, 246, 0.15);
}

.analysis-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.analysis-result {
    background: #374151;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.analysis-section {
    background: #4b5563;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.analysis-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-content {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    white-space: pre-wrap;
}

/* 🎨 提示词展示区域优化 */
.prompt-output-area {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    position: relative;
}

.prompt-output-textarea {
    background: transparent;
    border: none;
    resize: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.secondary-btn {
    background: rgba(75, 85, 99, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.5);
    color: #d1d5db;
}

.secondary-btn:hover {
    background: rgba(75, 85, 99, 1);
    border-color: rgba(107, 114, 128, 0.8);
}

@media (max-width: 768px) {
    /* 基础布局 */
    .main-layout {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }
    
    /* 移动端头部 */
    .mobile-header {
        display: flex;
    }
    
    /* 侧边栏移动端适配 */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 51;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-right: 1px solid #374151;
        border-bottom: none;
        overflow-y: auto;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* 主内容区 */
    .main-content {
        width: 100%;
        height: calc(100vh - 60px);
        flex: 1;
        overflow: hidden;
    }
    
    /* 内容区域 */
    #content-area {
        padding: 16px;
        height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    /* 提示词输入区 */
    .prompt-generation-hero {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    #promptInput {
        font-size: 16px;
        padding: 16px;
        min-height: 100px;
        rows: 3;
    }
    
    /* 生成按钮 */
    .space-btn {
        width: 100%;
        height: 3rem;
        margin-top: 12px;
    }
    
    /* 图片网格 */
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: none;
    }
    
    .image-grid.banner-mode {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .image-card {
        height: 120px;
        border-radius: 12px;
    }
    
    .image-card.banner {
        height: 80px;
    }
    
    .image-card.poster,
    .image-card.social {
        height: 160px;
    }
    
    .image-card.emoji,
    .image-card.logo {
        height: 120px;
    }
    
    /* 左右布局在移动端改为上下布局 */
    .content-split-layout {
        flex-direction: column;
        height: auto;
    }
    
    .content-left,
    .content-right {
        width: 100%;
        min-width: auto;
        padding: 0;
    }
    
    /* 🆕 图片分析页面移动端适配 */
    .image-analysis-page .flex.h-full {
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    .image-analysis-page .w-1\/2 {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #374151 !important;
        min-height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .image-analysis-page .w-1\/2:first-child {
        padding: 16px !important;
        order: 1 !important;
    }
    
    .image-analysis-page .w-1\/2:last-child {
        padding: 16px !important;
        order: 2 !important;
        border-bottom: none !important;
    }
    
    /* 图片上传区域移动端优化 */
    .analysis-upload-area {
        padding: 24px 16px !important;
    }
    
    .analysis-upload-area .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .analysis-upload-area p {
        font-size: 16px !important;
    }
    
    /* 分析预览图片 */
    .analysis-preview {
        max-height: 200px !important;
    }
    
    /* 分析按钮 */
    #analyze-image-btn {
        padding: 16px 24px !important;
        font-size: 16px !important;
    }
    
    #analyze-image-btn span {
        font-size: 16px !important;
    }
    
    /* 分析结果区域 */
    .analysis-section {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .analysis-section-title {
        font-size: 14px !important;
    }
    
    .analysis-content {
        font-size: 13px !important;
        padding: 12px !important;
    }
    
    /* 结果操作按钮移动端适配 */
    #analysis-results .flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    #analysis-results button {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    /* 生成图片网格 */
    #analysis-image-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* 空状态调整 */
    #analysis-right-empty {
        min-height: 200px !important;
        padding: 24px !important;
    }
    
    #analysis-right-empty .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    /* 加载状态优化 */
    #analysis-loading {
        padding: 24px 16px !important;
    }
    
    #analysis-loading .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    /* 生成状态网格 */
    #analysis-generation-status .grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕额外优化 */
    .sidebar {
        width: 100vw;
    }
    
    .prompt-generation-hero h2 {
        font-size: 1.5rem;
    }
    
    .space-btn strong {
        font-size: 12px;
    }
    
    /* 图片分析页面超小屏优化 */
    .analysis-upload-area {
        padding: 20px 12px !important;
    }
    
    .analysis-upload-area p {
        font-size: 14px !important;
    }
    
    #analyze-image-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
    
    #analyze-image-btn span {
        font-size: 14px !important;
    }
    
    .analysis-section {
        padding: 10px !important;
    }
    
    .analysis-content {
        font-size: 12px !important;
        padding: 10px !important;
    }
    
    #analysis-results h2 {
        font-size: 16px !important;
    }
}