/* 生图页面专用样式 */

.header .logo-text h1 {
    color: #ff6b35;
    font-weight: 700;
}

.gen-nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.gen-nav .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--banana-yellow);
    box-shadow: 0 4px 15px rgba(255, 225, 53, 0.4);
    transition: all 0.3s;
    animation: pulse-glow 2s ease-in-out infinite;
}

.gen-nav .nav-link:hover {
    background: var(--banana-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.6);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.7);
    }
}

.generate-main {
    min-height: calc(100vh - 200px);
    padding: 1rem 0;
}

.generate-main .container {
    max-width: 1100px;
    padding: 0 80px;
}

.hero-section {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #fdc830 50%, #f37335 75%, #ff6b35 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.model-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--banana-yellow);
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--banana-light);
}

.tag-active {
    background: var(--banana-yellow);
    border-color: var(--banana-dark);
}

.generate-area {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    position: relative;
    border: 3px solid var(--banana-yellow);
}

.prompt-input {
    width: 100%;
    padding: 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 0;
    background: #fafafa;
    transition: all 0.3s;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--banana-yellow);
    box-shadow: 0 0 0 3px rgba(255, 225, 53, 0.2);
}

.generate-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    padding: 0.6rem 1rem;
    border: 2px solid var(--banana-light);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.icon-btn:hover {
    background: var(--banana-light);
    border-color: var(--banana-yellow);
}

.model-select,
.ratio-select,
.count-select {
    padding: 0.6rem 1rem;
    border: 2px solid var(--banana-light);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.model-select:hover,
.ratio-select:hover,
.count-select:hover {
    border-color: var(--banana-yellow);
}

.upload-btn {
    padding: 0.6rem 1rem;
    border: 2px solid var(--banana-light);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.upload-btn:hover {
    border-color: var(--banana-yellow);
    background: var(--banana-light);
}

.generate-btn {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.tips-section {
    padding: 1.5rem;
    background: var(--banana-light);
    border-radius: 16px;
    border-left: 4px solid var(--banana-yellow);
}

.tip-item {
    margin: 0.8rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.8;
    font-weight: 600;
}

.tip-icon {
    color: var(--banana-brown);
    font-weight: bold;
    margin-right: 0.3rem;
}

.result-area {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* 公告栏 */
.announcement-bar {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #856404;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 配置弹窗 */
.config-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
}

.config-modal.active {
    display: block;
}

.config-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.config-content {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
}

.config-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--banana-light);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.config-close:hover {
    background: var(--banana-yellow);
}

.config-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.config-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.config-steps {
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--banana-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text p {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.step-btn {
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--banana-yellow);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.step-btn:hover {
    background: var(--banana-yellow);
}

.config-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--banana-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--banana-yellow);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.config-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel,
.btn-save {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: var(--banana-light);
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-save {
    background: var(--banana-yellow);
    color: var(--text-dark);
}

.btn-save:hover {
    background: var(--banana-dark);
}

/* 生成结果展示 */
.results-section {
    margin-top: 2rem;
}

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

.results-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.clear-history-btn {
    padding: 0.6rem 1.2rem;
    background: #ff4444;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-history-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

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

.result-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-card-loading {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-time {
    color: rgba(255,255,255,0.9);
    font-size: 1.5rem;
    font-weight: 700;
}

.loading-model {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.result-card-success {
    transition: transform 0.3s;
    position: relative;
}

.result-card-success:hover {
    transform: translateY(-5px);
}

.result-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.result-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.result-card-success:hover .result-image {
    filter: brightness(0.9);
}

.result-actions {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.result-card-success:hover .result-actions {
    opacity: 1;
    pointer-events: auto;
}

.action-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.action-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* 复制按钮 - 蓝色 */
.copy-prompt-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.copy-prompt-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 编辑按钮 - 橙色 */
.edit-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* 下载按钮 - 绿色 */
.download-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.download-btn:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* 删除按钮 - 红色 */
.delete-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
}

.result-info {
    padding: 1rem;
    text-align: center;
}

.result-model {
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 0.25rem;
}

.result-time {
    color: #2C2C2C;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-card-error {
    background: #fff5f5;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.error-icon {
    width: 48px;
    height: 48px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-title {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.error-model {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Toast 提示消息 */
.toast-message {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 图片大图弹窗 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.image-modal.active {
    display: block;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.image-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
}

.image-modal-model {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.image-modal-prompt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    word-break: break-word;
}

/* 删除确认对话框 */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.delete-modal.active {
    display: block;
}

.delete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.delete-content {
    position: relative;
    max-width: 500px;
    margin: 10rem auto;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
}

.delete-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--banana-light);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-close:hover {
    background: var(--banana-yellow);
}

.delete-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.delete-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.delete-prompt {
    background: var(--banana-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.delete-prompt strong {
    display: block;
    margin-bottom: 0.5rem;
}

.delete-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel-delete,
.btn-confirm-delete {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel-delete {
    background: var(--banana-light);
    color: var(--text-dark);
}

.btn-cancel-delete:hover {
    background: #e0e0e0;
}

.btn-confirm-delete {
    background: #ff4444;
    color: var(--white);
}

.btn-confirm-delete:hover {
    background: #cc0000;
}

/* 广告图片可点击 */
.header-ad .ad-image {
    cursor: pointer;
}

/* 广告放大弹窗 - 全局样式 */
.ad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
}

.ad-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
}

.ad-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ad-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    /* 头部导航优化 */
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }

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

    .logo-text h1 {
        font-size: 1.2rem;
    }

    /* 导航按钮优化 */
    .gen-nav {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .gen-nav .nav-link {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    /* 广告位悬浮 */
    .header-ad {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 120px;
        height: auto;
        margin: 0;
        z-index: 999;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
        animation: float 3s ease-in-out infinite;
    }

    .header-ad .ad-image {
        border-radius: 8px;
    }

    /* 主内容区优化 */
    .generate-main .container {
        padding: 0 15px;
    }

    /* 公告栏优化 */
    .announcement-bar {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        line-height: 1.6;
    }

    /* 标题区优化 */
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .model-tags {
        gap: 0.6rem;
    }

    .tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* 生图区域优化 */
    .generate-area {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .prompt-input {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 150px;
    }

    /* 控制按钮优化 */
    .generate-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .control-left {
        flex-direction: column;
        gap: 0.8rem;
    }

    .icon-btn {
        width: 100%;
        height: 44px;
        font-size: 1rem;
    }

    .model-select,
    .ratio-select,
    .count-select,
    .upload-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .generate-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    /* 提示信息优化 */
    .tips-section {
        padding: 1rem;
    }

    .tip-item {
        font-size: 0.75rem;
        margin: 0.6rem 0;
    }

    /* 结果展示优化 */
    .results-section {
        margin-top: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .results-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .clear-history-btn {
        width: 100%;
        padding: 0.7rem 1rem;
    }

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

    .result-card-loading,
    .result-card-error {
        min-height: 250px;
    }

    .result-image {
        height: 250px;
    }

    /* 操作按钮优化 */
    .result-actions {
        right: 5px;
        gap: 0.3rem;
    }

    .action-icon-btn {
        width: 40px;
        height: 40px;
    }

    .action-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    /* 配置弹窗优化 */
    .config-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .config-content h3 {
        font-size: 1.3rem;
    }

    .config-steps {
        margin-bottom: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        gap: 0.8rem;
    }

    .step-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .form-group small {
        font-size: 0.8rem;
    }

    .config-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    /* 图片大图弹窗优化 */
    .image-modal-content {
        max-width: 95vw;
        margin: 2vh auto;
    }

    .image-modal-close {
        top: -40px;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .image-modal-img {
        max-height: 60vh;
    }

    .image-modal-info {
        margin-top: 1rem;
        padding: 1rem;
    }

    .image-modal-model {
        font-size: 1rem;
    }

    .image-modal-prompt {
        font-size: 0.85rem;
    }

    /* 删除确认弹窗优化 */
    .delete-content {
        margin: 5rem 1rem;
        padding: 1.5rem;
    }

    .delete-title {
        font-size: 1.3rem;
    }

    .delete-desc {
        font-size: 0.9rem;
    }

    .delete-prompt {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .delete-actions {
        flex-direction: column;
    }

    .btn-cancel-delete,
    .btn-confirm-delete {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    /* Toast 提示优化 */
    .toast-message {
        bottom: 60px;
        right: 15px;
        left: 15px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .main-title {
        font-size: 1.3rem;
    }

    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .generate-area {
        padding: 1rem;
    }

    .prompt-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .tip-item {
        font-size: 0.7rem;
    }

    .result-image {
        height: 200px;
    }

    .config-content {
        margin: 0.5rem;
        padding: 1rem;
    }

    .delete-content {
        margin: 3rem 0.5rem;
        padding: 1rem;
    }
}

/* 平板优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .generate-main .container {
        padding: 0 40px;
    }

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

    .header-ad {
        width: 300px;
        height: 80px;
    }
}
