/* AI写真生成器 - 女性化设计样式 */

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 粉色系主色调 - 温柔优雅 */
    --primary-pink: #FF6B9D;
    --primary-pink-light: #FF8FB3;
    --primary-pink-dark: #E55A8A;
    --secondary-pink: #FFB3D1;

    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FFA8C8 100%);
    --gradient-light: linear-gradient(135deg, #FFE4F1 0%, #FFF0F8 100%);
    --gradient-purple: linear-gradient(135deg, #D4A5FF 0%, #E8BAFF 100%);

    /* 中性色 */
    --white: #FFFFFF;
    --light-gray: #F8F9FB;
    --medium-gray: #E2E8F0;
    --dark-gray: #64748B;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;

    /* 功能色 */
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;

    /* 圆角 */
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(255, 107, 157, 0.1);
    --shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 8px 25px rgba(255, 107, 157, 0.2);
    --shadow-xl: 0 12px 35px rgba(255, 107, 157, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #FFE8F4 0%, #FFF3F8 50%, #F8FBFF 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 导航栏 ===== */
.navbar {
    background: var(--gradient-primary);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.nav-brand {
    color: var(--white);
    z-index: 1;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.nav-actions {
    z-index: 1;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

/* ===== 导航栏容器（面包屑 + 步骤条） ===== */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    gap: 2rem;
}

/* ===== 步骤条 ===== */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 1.5rem;
    opacity: 0.4;
    transition: all 0.4s ease;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2px;
    background: var(--medium-gray);
    transition: all 0.4s ease;
}

.step:last-child::after {
    display: none;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step.completed::after {
    background: var(--gradient-primary);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.8rem;
    transition: all 0.4s ease;
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== 页面容器 ===== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 页面切换动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== 卡片样式 ===== */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: #4A5568;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: var(--white);
}

.btn-danger-outline {
    background: transparent;
    color: var(--error);
    border: 2px solid var(--error);
}

.btn-danger-outline:hover {
    background: var(--error);
    color: var(--white);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 36px;
}

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

/* ===== 上传页样式 ===== */
.upload-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-hero h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.example-gallery {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-light);
    border-radius: var(--border-radius);
}

.example-gallery h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.example-grid {
    display: flex;
    justify-content: center;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.example-before,
.example-after {
    text-align: center;
}

.example-before img,
.example-after img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.example-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.example-arrow {
    font-size: 1.5rem;
    color: var(--primary-pink);
    font-weight: 700;
}

.upload-area {
    margin-bottom: 2rem;
    border: 3px dashed var(--medium-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-pink);
    background: rgba(255, 107, 157, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-placeholder h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.upload-btn {
    background: var(--gradient-primary) !important;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.image-preview img {
    max-width: 300px;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* 上传进度样式 */
.upload-progress {
    text-align: center;
    padding: 2rem;
}

.upload-progress.hidden {
    display: none;
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.upload-progress-info p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.upload-file-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.image-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-sm);
}

.image-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.upload-tips {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.upload-tips h4 {
    color: var(--success);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.upload-tips ul {
    list-style: none;
    padding: 0;
}

.upload-tips li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.upload-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ===== 风格选择页样式 ===== */
.style-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.style-hero h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.style-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.style-section {
    margin-bottom: 2.5rem;
}

.style-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 风格控制区 */
.style-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.style-actions-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.style-actions-right {
    display: flex;
    align-items: center;
}

.favorite-count-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.5;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.view-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-pink);
}

.view-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* 网格视图 - 使用 Grid 布局实现每行5列（与首页一致） */
.style-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5列，每列等宽 */
    gap: 16px;
    width: 100%;
}

/* 列表视图 */
.style-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.style-list .style-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    height: auto;
}

.style-list .style-preview {
    display: none;
}

.style-list .style-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.style-list .style-info h4 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.style-list .style-info p {
    display: none;
}

.style-list .style-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 200px;
}

/* 搜索无结果提示 */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    margin: 0;
}

.style-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Grid 布局不需要 inline-block 和 break-inside */
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-pink);
}

.style-card.selected {
    border-color: var(--primary-pink);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.style-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.style-preview {
    position: relative;
    width: 100%;
    padding-top: 150%;
    /* 2:3 比例 (3/2 * 100% = 150%) */
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
}

.style-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-card:hover .style-preview img {
    transform: scale(1.05);
}

/* 预览按钮 */
.preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.style-preview:hover .preview-btn {
    opacity: 1;
}

.preview-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.style-info {
    padding: 1rem;
}

.style-info h4 {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.style-info p {
    display: none;
    /* 描述信息隐藏，通过Hover Card显示 */
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-pink);
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-size: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

/* Hover Card - 悬浮描述卡片 */
.style-hover-card {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--primary-pink);
    border-radius: var(--border-radius-lg);
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    /* 提高层级，确保在toast和modal之间 */
    min-width: 250px;
    max-width: 350px;
    pointer-events: none;
    display: none;
    /* 默认隐藏 */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
    /* 添加毛玻璃效果 */
    overflow: hidden;
}

.style-hover-card.show {
    display: block;
    /* 显示时设置为block */
    opacity: 1;
    transform: translateY(0);
}

/* HoverCard 预览图片（列表视图使用） */
.style-hover-card-preview {
    width: 100%;
    padding-top: 150%;
    /* 2:3 比例，与风格卡片一致 */
    position: relative;
    background: var(--light-gray);
    overflow: hidden;
}

.style-hover-card-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HoverCard 内容区 */
.style-hover-card-content {
    padding: 1rem;
}

.style-hover-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.style-hover-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.style-hover-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.style-hover-card-tags .tag {
    font-size: 0.75rem;
}

.custom-style-section {
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.custom-style-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.custom-input-area label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.custom-input-area textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.custom-input-area textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.input-tips {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== 生成中页样式 ===== */
.generate-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.generate-hero h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.generate-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.generate-status {
    text-align: center;
}

.generate-animation {
    margin-bottom: 2rem;
}

.generate-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: absolute;
}

.progress-circle {
    transition: stroke-dashoffset 0.8s ease-out;
}

.generate-icon {
    font-size: 2.5rem;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.generate-info h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.generate-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.generate-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer-progress 2s ease-in-out infinite;
}

@keyframes shimmer-progress {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.progress-text {
    font-weight: 600;
    color: var(--primary-pink);
    min-width: 40px;
}

.generate-tips {
    background: rgba(255, 107, 157, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    font-size: 1.2rem;
    width: 24px;
}

/* 生成中页 - 操作按钮区域 */
.generate-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn-cancel {
    min-width: 160px;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--error);
    border-color: var(--error);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cancel:disabled {
    background: var(--medium-gray);
    border-color: var(--medium-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* 生成中页 - 取消提示 */
.generate-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 235, 59, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generate-notice.hidden {
    display: none;
}

.notice-icon {
    font-size: 2rem;
    color: #FFC107;
}

.notice-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.notice-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== 结果页样式 ===== */
.result-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.result-hero h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.result-display {
    text-align: center;
    margin-bottom: 2rem;
}

.photo-container {
    display: inline-block;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.result-image {
    max-width: 400px;
    max-height: 500px;
    width: 100%;
    height: auto;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.photo-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-action-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.result-actions {
    text-align: center;
}

.primary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.satisfaction-feedback {
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
}

.satisfaction-feedback h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-btn {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-btn:hover {
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.rating-btn.selected {
    border-color: var(--primary-pink);
    background: rgba(255, 107, 157, 0.1);
}

.rating-emoji {
    font-size: 1.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== 设置页样式 ===== */
.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--medium-gray);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-info {
    flex: 1;
    margin-right: 2rem;
}

.setting-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.setting-control {
    flex-shrink: 0;
}

.setting-control select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

.setting-control select:focus {
    outline: none;
    border-color: var(--primary-pink);
}

/* 开关按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked+.slider {
    background: var(--gradient-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* 数据统计 */
.data-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    background: var(--gradient-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.data-actions {
    text-align: center;
}

/* ===== 操作按钮组 ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
    flex-wrap: wrap;
}

/* ===== 模态框 ===== */
.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;
    backdrop-filter: blur(5px);
}

/* 图片预览遮罩层 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-preview-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

#fullscreen-image {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: var(--border-radius);
}

.confirm-dialog {
    text-align: center;
    max-width: 400px;
}

.confirm-dialog h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.confirm-dialog p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== Toast 消息 ===== */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--text-primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
    color: var(--text-primary);
}

#toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#toast-close:hover {
    opacity: 1;
}

/* ===== 加载骨架屏 ===== */
.skeleton {
    background: linear-gradient(90deg,
            var(--light-gray) 25%,
            #f0f0f0 50%,
            var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

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

/* 骨架屏 - 风格卡片 */
.skeleton-style-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 400px;
}

.skeleton-style-preview {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg,
            var(--light-gray) 25%,
            #f0f0f0 50%,
            var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-style-info {
    padding: 1.5rem;
}

.skeleton-style-title {
    width: 60%;
    height: 24px;
    margin-bottom: 0.75rem;
}

.skeleton-style-desc {
    width: 100%;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-style-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skeleton-tag {
    width: 60px;
    height: 24px;
    border-radius: 12px;
}

/* 骨架屏 - 上传区域 */
.skeleton-upload-area {
    height: 300px;
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-upload-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* 骨架屏 - 生成进度 */
.skeleton-generation {
    text-align: center;
}

.skeleton-progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 2rem auto;
}

.skeleton-progress-text {
    width: 200px;
    height: 20px;
    margin: 1rem auto;
}

/* ===== 空状态提示 ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* ===== 项目工作区导航样式 ===== */
.project-workspace-nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    padding: 1rem 2rem;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.breadcrumb-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--primary-pink);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumb-btn:hover {
    background: rgba(255, 107, 157, 0.1);
}

.breadcrumb-btn svg {
    width: 16px;
    height: 16px;
}

.breadcrumb-separator {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* 页签导航 */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 157, 0.05);
}

.tab-btn.active {
    color: var(--primary-pink);
    border-bottom-color: var(--primary-pink);
    font-weight: 600;
}

.tab-icon {
    font-size: 1.1em;
}

.tab-label {
    font-size: inherit;
}

/* ===== 项目列表页样式 ===== */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.projects-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
    justify-content: center;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.14);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 157, 0.3);
    box-shadow: 0 14px 28px rgba(255, 107, 157, 0.16);
}

.project-cover {
    width: 100%;
    padding: 6px;
    background: linear-gradient(150deg, #fff4fa, #ffe7f2);
    position: relative;
    overflow: hidden;
}

.project-cover-grid {
    width: 100%;
    display: grid;
    gap: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f7fb;
}

.project-cover-tile {
    overflow: hidden;
    background: #f6f7fb;
    position: relative;
    min-height: 0;
}

.project-cover-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
    background: #f6f7fb;
}

.project-card:hover .project-cover-tile img {
    transform: scale(1.015);
}

.project-cover-grid.count-1 {
    grid-template-columns: 1fr;
    aspect-ratio: 3 / 4;
}

.project-cover-grid.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 3 / 2;
}

.project-cover-grid.count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 9 / 8;
}

.project-cover-grid.count-3 .project-cover-tile.tile-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.project-cover-grid.count-3 .project-cover-tile.tile-2 {
    grid-column: 2;
    grid-row: 1;
}

.project-cover-grid.count-3 .project-cover-tile.tile-3 {
    grid-column: 2;
    grid-row: 2;
}

.project-cover-grid.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 3 / 4;
}

.project-cover-more {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.66);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.project-cover-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    font-size: 2rem;
    color: rgba(92, 104, 128, 0.42);
    background: linear-gradient(135deg, #fff7fb, #ffeef7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-menu {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 10;
}

.project-menu-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.project-menu-btn:hover {
    background: var(--white);
    color: var(--text-primary);
    transform: scale(1.1);
}

.project-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-menu.active .project-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.project-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.project-menu-item:hover {
    background: var(--light-gray);
}

.project-menu-item.danger {
    color: var(--error);
}

.project-menu-item.danger:hover {
    background: rgba(245, 101, 101, 0.1);
}

.project-info {
    padding: 0.7rem 0.85rem 0.85rem;
}

.project-name {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.project-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 24px;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.12);
    color: #d84f84;
    font-weight: 600;
}

.project-date {
    font-size: 0.72rem;
    color: var(--dark-gray);
}

/* 项目弹窗样式 */
.project-dialog {
    max-width: 480px;
    padding: 2rem;
}

.project-dialog h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-form {
    margin-bottom: 2rem;
}

.project-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.project-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.project-input:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    transform: translateY(-1px);
}

.project-input:focus {
    outline: none;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%) border-box;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.25),
        0 0 0 4px rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

.project-input::placeholder {
    color: var(--dark-gray);
    opacity: 0.5;
    font-weight: 400;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-input:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    transform: translateY(-1px);
}

.form-input:focus {
    outline: none;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%) border-box;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.25),
        0 0 0 4px rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--dark-gray);
    opacity: 0.5;
    font-weight: 400;
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.form-hint span {
    font-weight: 600;
    color: var(--primary-pink);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 120px;
}

/* ===== 工具类 ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* ===== 响应式设计 ===== */
/* ===== 响应式设计 ===== */

/* 超大屏幕 (1200px+): 5列 */
@media (min-width: 1200px) {
    .style-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

/* 中等屏幕 (900px - 1199px): 4列 */
@media (min-width: 900px) and (max-width: 1199px) {
    .style-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

/* 平板屏幕 (600px - 899px): 3列 */
@media (min-width: 600px) and (max-width: 899px) {
    .style-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* 手机横屏/小平板 (480px - 599px): 2列 */
@media (min-width: 480px) and (max-width: 599px) {
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 手机竖屏 (< 480px): 2列 */
@media (max-width: 479px) {
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 平板端 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-container {
        padding: 0 2rem 3rem;
        max-width: 720px;
    }

    .card {
        padding: 2rem;
    }

    .search-box {
        max-width: 400px;
    }

    .primary-actions,
    .secondary-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        min-width: 160px;
    }

    .stepper {
        gap: 1.5rem;
    }

    /* 平板端横屏优化 */
    @media (orientation: landscape) {
        .upload-preview-image {
            max-height: 300px;
        }

        .result-display img {
            max-height: 400px;
        }
    }
}

/* 移动端 (<768px) */
@media (max-width: 768px) {
    .page-container {
        padding: 0 1rem 2rem;
    }

    /* 项目工作区导航响应式 */
    .project-workspace-nav {
        padding: 0.75rem 1rem;
    }

    .breadcrumb {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .breadcrumb-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .breadcrumb-current {
        font-size: 0.85rem;
    }

    .tabs-nav {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .tab-label {
        display: none;
    }

    .tab-icon {
        font-size: 1.3em;
    }

    /* 项目列表响应式 */
    .projects-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .projects-title {
        font-size: 1.5rem;
    }

    .projects-header .btn {
        width: 100%;
    }

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

    .project-dialog {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100vw - 2rem);
    }

    .card {
        padding: 1.5rem;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

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

    .stepper {
        padding: 1.5rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step {
        margin: 0;
        flex: 1;
        min-width: 120px;
    }

    .step::after {
        display: none;
    }

    .step-number {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .style-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .view-toggle {
        justify-content: center;
    }

    .example-item {
        flex-direction: column;
        gap: 1rem;
    }

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

    .primary-actions,
    .secondary-actions,
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .rating-buttons {
        gap: 0.5rem;
    }

    .rating-btn {
        min-width: 70px;
        padding: 0.8rem;
    }

    .setting-item {
        flex-direction: column;
        gap: 1rem;
    }

    .setting-info {
        margin-right: 0;
    }

    .data-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .toast {
        right: 1rem;
        left: auto;
        max-width: calc(100vw - 2rem);
        min-width: 280px;
    }

    .generate-circle {
        width: 120px;
        height: 120px;
    }

    .generate-icon {
        font-size: 2rem;
    }

    /* 修复移动端上传区域和图片预览 */
    .upload-area {
        padding: 1rem;
    }

    .image-preview {
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .image-preview img {
        max-width: 100%;
        max-height: 250px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .image-info {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .image-actions {
        padding: 0.5rem 0;
    }

    .image-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {

    .upload-hero h2,
    .style-hero h2,
    .generate-hero h2,
    .result-hero h2 {
        font-size: 1.5rem;
    }

    .example-before img,
    .example-after img {
        width: 100px;
        height: 130px;
    }

    .result-image {
        max-width: 100%;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    #fullscreen-image {
        max-width: 90vw;
        max-height: 70vh;
    }
}

/* 移动端横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .page-container {
        padding: 0 1rem 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

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

    .stepper {
        padding: 1rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .upload-preview-image,
    .result-display img {
        max-height: 250px;
    }

    .generate-circle {
        width: 100px;
        height: 100px;
    }

    .example-before img,
    .example-after img {
        width: 80px;
        height: 100px;
    }

    .card {
        padding: 1rem;
    }
}

/* 安全区域适配（刘海屏、药丸屏） */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .navbar {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .page-container {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .toast {
        top: max(2rem, env(safe-area-inset-top));
        right: max(2rem, env(safe-area-inset-right));
    }

    .modal {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* 触摸屏优化 */
@media (hover: none) and (pointer: coarse) {

    /* 增大可点击区域 */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.75rem;
    }

    .rating-btn {
        min-height: 48px;
        min-width: 80px;
    }

    .style-card {
        padding: 1.25rem;
    }

    /* 移除悬停效果 */
    .btn:hover,
    .style-card:hover {
        transform: none;
    }

    /* 优化点击反馈 */
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    .style-card:active {
        transform: scale(0.98);
    }

    /* 禁用长按选择文本 */
    .btn,
    .style-card,
    .step,
    .rating-btn {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* 优化图标和文本渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* 优化边框 */
    .card,
    .btn,
    .style-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* 减少动画（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 暗色模式支持（预留） */
@media (prefers-color-scheme: dark) {
    /* 未来可以在这里添加暗色模式样式 */
}

/* 打印样式优化 */
@media print {

    .navbar,
    .stepper,
    .action-buttons,
    .btn,
    .toast {
        display: none !important;
    }

    body {
        background: white;
    }

    .page-container {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== 风格页面增强样式 ===== */

/* 标签筛选器 */
.tag-filter-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.tag-filter-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-filter-btn:hover {
    border-color: var(--primary-pink);
    background: rgba(255, 107, 157, 0.05);
    transform: translateY(-2px);
}

.tag-filter-btn.active {
    border-color: var(--primary-pink);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

/* 加载状态 */
.loading-placeholder,
.error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

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

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

.loading-placeholder p,
.error-placeholder p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.error-placeholder p {
    color: var(--error);
}

.error-placeholder .btn {
    margin-top: 1rem;
}

/* 无结果状态 */
.no-results {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Toast 样式增强 */
.toast.toast-info {
    background: var(--gradient-primary);
}

.toast.toast-success {
    background: linear-gradient(135deg, #48BB78 0%, #68D391 100%);
}

.toast.toast-warning {
    background: linear-gradient(135deg, #ED8936 0%, #F6AD55 100%);
}

.toast.toast-error {
    background: linear-gradient(135deg, #F56565 0%, #FC8181 100%);
}

/* ===== 移动端响应式适配 ===== */
@media (max-width: 768px) {

    /* 导航栏适配：强制垂直排列，确保步骤条在面包屑下方 */
    .navigation-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0.5rem;
        overflow-x: hidden;
        height: auto;
        /* 允许高度自适应 */
    }

    /* 步骤条适配：允许换行 */
    .stepper {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        /* 关键：允许步骤项换行 */
        justify-content: center;
        /* 居中对齐 */
        margin-top: 0.5rem;
        padding: 0;
        gap: 1rem 0;
        /* 行间距 */
    }

    .step {
        margin: 0 !important;
        padding: 0 5px;
        /* 默认每行放4个（如果屏幕够宽），不够宽时会自动换行 */
        flex: 0 0 25%;
        min-width: 80px;
        /* 设置最小宽度，触发布局换行 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        position: relative;
    }

    /* 移动端隐藏连接线，避免布局混乱 */
    .step::after {
        display: none !important;
    }

    .step-label {
        font-size: 0.75rem;
        text-align: center;
        display: block;
        width: 100%;
        margin-top: 4px;
        white-space: nowrap;
    }

    .step-number {
        margin-right: 0;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        z-index: 2;
        /* 确保在最上层 */
    }

    /* 面包屑适配 */
    .breadcrumb {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        text-align: center;
        /* 面包屑居中 */
        display: flex;
        justify-content: center;
    }
}

/* 极小屏幕适配：强制每行显示2个步骤 */
@media (max-width: 480px) {
    .step {
        flex: 0 0 50%;
        /* 强制占50%宽度，即一行两个 */
        margin-bottom: 0.5rem !important;
    }

    .step-label {
        /* 恢复显示文字，因为现在有空间了（一行只放两个） */
        display: block !important;
        font-size: 0.7rem;
    }
}

/* ===== v2.6 模型选择与批量生成组件 ===== */

/* 生成配置区域容器 */
.generation-config-section {
    margin: 2rem 0;
    padding: 0;
}

.generation-config-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== 模型选择器 ===== */
.model-selector-section {
    margin-bottom: 1.5rem;
}

.model-selector-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.model-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.model-card:hover {
    border-color: var(--primary-pink-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.model-card.selected {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.03) 0%, rgba(255, 143, 179, 0.05) 100%);
    box-shadow: var(--shadow-lg);
}

.model-card.selected::before {
    background: var(--gradient-primary);
}

/* 选中指示器 */
.model-card .model-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.model-card.selected .model-check {
    background: var(--gradient-primary);
    opacity: 1;
    transform: scale(1);
}

.model-card .model-check svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.model-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.model-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.model-card.selected .model-icon {
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
}

.model-card.selected .model-icon span {
    filter: brightness(10);
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-badge.fast {
    background: linear-gradient(135deg, #48BB78 0%, #68D391 100%);
    color: var(--white);
}

.model-badge.pro {
    background: var(--gradient-primary);
    color: var(--white);
}

.model-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===== Pro 参数配置面板 ===== */
.pro-config-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.3s ease,
                padding 0.3s ease;
    margin-top: 0;
}

.pro-config-panel.expanded {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}

.pro-config-panel-inner {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.04) 0%, rgba(212, 165, 255, 0.04) 100%);
    border: 1px solid rgba(255, 107, 157, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pro-config-panel-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.pro-config-row {
    margin-bottom: 1.5rem;
}

.pro-config-row:last-child {
    margin-bottom: 0;
}

.pro-config-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pro-config-label .label-icon {
    font-size: 1rem;
}

/* 比例选择器 */
.aspect-ratio-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.aspect-ratio-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 70px;
}

.aspect-ratio-option:hover {
    border-color: var(--primary-pink-light);
    transform: translateY(-2px);
}

.aspect-ratio-option.selected {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(255, 143, 179, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.aspect-ratio-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspect-ratio-icon .ratio-shape {
    background: var(--medium-gray);
    border-radius: 2px;
    transition: background 0.25s ease;
}

.aspect-ratio-option.selected .ratio-shape {
    background: var(--gradient-primary);
}

/* 不同比例的形状 */
.ratio-1-1 { width: 24px; height: 24px; }
.ratio-3-4 { width: 18px; height: 24px; }
.ratio-4-3 { width: 24px; height: 18px; }
.ratio-9-16 { width: 14px; height: 24px; }
.ratio-16-9 { width: 24px; height: 14px; }

.aspect-ratio-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.aspect-ratio-option.selected .aspect-ratio-text {
    color: var(--primary-pink);
}

/* 画质选择器 */
.quality-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quality-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 72px;
}

.quality-option:hover {
    border-color: var(--primary-pink-light);
    transform: translateY(-2px);
}

.quality-option.selected {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(255, 143, 179, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.quality-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.quality-option.selected .quality-text {
    color: var(--primary-pink);
}

.quality-label {
    font-size: 0.7rem;
    color: var(--dark-gray);
    margin-left: 0.25rem;
}

/* ===== 生成数量选择器 ===== */
.generation-count-section {
    margin-bottom: 1.5rem;
}

.generation-count-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generation-count-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.count-selector {
    display: flex;
    gap: 0.75rem;
}

.count-option {
    flex: 1;
    max-width: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
}

.count-option:hover {
    border-color: var(--primary-pink-light);
    transform: translateY(-2px);
}

.count-option.selected {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(255, 143, 179, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1;
    transition: color 0.25s ease;
}

.count-option.selected .count-number {
    color: var(--primary-pink);
}

.count-label {
    font-size: 0.75rem;
    color: var(--dark-gray);
}

/* ===== 批量生成进度状态 ===== */
.batch-progress-section {
    margin-bottom: 2rem;
}

.batch-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.batch-progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.batch-progress-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.batch-progress-count span {
    font-size: 1.25rem;
}

.batch-progress-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.batch-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.batch-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer-slide 1.5s ease-in-out infinite;
}

@keyframes shimmer-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 批量任务状态列表 */
.batch-tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.batch-task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.batch-task-item.completed {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.05);
}

.batch-task-item.processing {
    border-color: var(--primary-pink);
    background: rgba(255, 107, 157, 0.05);
}

.batch-task-item.failed {
    border-color: var(--error);
    background: rgba(245, 101, 101, 0.05);
}

.batch-task-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.batch-task-item.completed .batch-task-status {
    background: var(--success);
    color: var(--white);
}

.batch-task-item.processing .batch-task-status {
    background: var(--gradient-primary);
    color: var(--white);
    animation: pulse 1.5s ease-in-out infinite;
}

.batch-task-item.pending .batch-task-status {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.batch-task-item.failed .batch-task-status {
    background: var(--error);
    color: var(--white);
}

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

.batch-task-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.batch-task-progress {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== 结果页网格布局 ===== */
.result-grid-section {
    margin-bottom: 2rem;
}

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

/* 单张时居中 */
.result-grid.single-result {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
}

.result-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

/* 结果序号标签 */
.result-card-index {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.result-card-image {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 比例 */
    background: var(--light-gray);
    overflow: hidden;
}

.result-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .result-card-image img {
    transform: scale(1.03);
}

/* 图片悬浮操作 */
.result-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover .result-card-overlay {
    opacity: 1;
}

.result-card-actions {
    display: flex;
    gap: 0.5rem;
}

.result-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-primary);
    font-size: 1rem;
}

.result-action-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.result-action-btn.like-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* 结果卡片信息区 */
.result-card-info {
    padding: 1rem;
}

.result-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 失败状态卡片 */
.result-card.failed .result-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 101, 101, 0.1);
}

.result-card-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}

.result-card-error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.result-card-error-text {
    font-size: 0.9rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.result-card-retry-btn {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--error);
    border-radius: var(--border-radius);
    color: var(--error);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.result-card-retry-btn:hover {
    background: var(--error);
    color: var(--white);
}

/* ===== v2.6 响应式适配 ===== */
@media (max-width: 768px) {
    .model-selector-grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        padding: 1rem;
    }

    .model-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .model-name {
        font-size: 1rem;
    }

    .aspect-ratio-selector,
    .quality-selector {
        justify-content: center;
    }

    .aspect-ratio-option {
        padding: 0.6rem 0.75rem;
        min-width: 60px;
    }

    .quality-option {
        padding: 0.5rem 1rem;
        min-width: 65px;
    }

    .count-selector {
        flex-wrap: wrap;
    }

    .count-option {
        flex: 1 1 calc(50% - 0.375rem);
        max-width: none;
    }

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

    .result-grid.single-result {
        max-width: 100%;
    }

    .batch-tasks-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .model-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .model-info {
        text-align: center;
    }

    .model-name {
        justify-content: center;
    }

    .pro-config-panel-inner {
        padding: 1rem;
    }

    .aspect-ratio-option,
    .quality-option,
    .count-option {
        padding: 0.5rem;
    }

    .aspect-ratio-icon {
        width: 28px;
        height: 28px;
    }

    .aspect-ratio-text {
        font-size: 0.7rem;
    }

    .count-number {
        font-size: 1.25rem;
    }
}
