/* Main CSS - 主样式文件 */

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

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

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.credits-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.credits-icon {
    font-size: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    border: 2px solid var(--border-color);
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-item.active {
    background-color: #e0e7ff;
    color: var(--primary-color);
}

.sidebar-icon {
    font-size: 1.25rem;
}

.sidebar-label {
    font-size: 0.9375rem;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 2rem;
    background-color: var(--bg-secondary);
}

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-description {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Content Card */
.content-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.step:hover {
    opacity: 0.8;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.step-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

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

.step-connector {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 0.5rem;
    max-width: 100px;
}

.step.completed + .step-connector {
    background-color: var(--success-color);
}

/* Input Tabs */
.input-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

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

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

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Input Fields */
.text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.url-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.file-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-name {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* Settings Panel */
.settings-panel {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.setting-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.setting-select,
.setting-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.setting-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Action Section */
.action-section {
    margin-top: 2rem;
    text-align: center;
}

.action-hint {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Status Display */
.status-display {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.status-text {
    flex: 1;
}

.status-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 9999px;
    transition: width 0.3s;
    width: 0%;
}

/* Result Display */
.result-display {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

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

.success-message {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--success-color);
}

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

/* Step Header */
.step-header {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-input-area {
    flex: 1;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.input-content-wrapper {
    position: relative;
}

.text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 400px;
    transition: border-color 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.editor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.improve-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

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

.improve-icon {
    font-size: 1rem;
}

/* Audio Settings Sidebar */
.audio-settings-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.settings-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.settings-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-icon {
    font-size: 1.25rem;
}

.setting-section {
    margin-bottom: 2rem;
}

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

.section-icon {
    font-size: 1rem;
}

.voice-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.voice-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.voice-option:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.voice-option.active {
    border-color: var(--primary-color);
    background-color: #e0e7ff;
}

.voice-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.browse-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.browse-link:hover {
    text-decoration: underline;
}

.music-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--bg-color);
    cursor: pointer;
    transition: border-color 0.2s;
}

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

.auto-mastering-section {
    margin-top: 2rem;
}

.auto-mastering-box {
    border: 2px solid #f472b6;
    border-radius: var(--radius);
    padding: 1rem;
    background-color: #fdf2f8;
}

.auto-mastering-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.auto-mastering-icon {
    font-size: 1rem;
}

.auto-mastering-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #be185d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auto-mastering-text {
    font-size: 0.875rem;
    color: #9f1239;
    line-height: 1.5;
}

/* Bottom Action Area */
.bottom-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.action-button-wrapper {
    position: relative;
}

.next-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.next-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.arrow-icon {
    font-size: 1.25rem;
}

.step-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.action-details {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-icon {
    font-size: 1rem;
}

/* Story Idea Box */
.story-idea-box {
    position: fixed;
    bottom: 2rem;
    left: calc(240px + 2rem);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    z-index: 10;
}

.story-idea-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.idea-icon {
    font-size: 1.25rem;
}

.idea-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idea-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-with-sidebar {
        flex-direction: column;
    }

    .audio-settings-sidebar {
        width: 100%;
    }

    .story-idea-box {
        left: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav {
        margin-left: 0;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }

    .header-right {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .credits-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        max-height: 80px;
        overflow-y: hidden;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .sidebar-item {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .sidebar-icon {
        font-size: 1rem;
    }

    .sidebar-label {
        font-size: 0.8125rem;
    }

    .main-content-area {
        padding: 1rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .progress-container {
        padding: 1rem 0;
        overflow-x: auto;
    }

    .progress-steps {
        flex-wrap: nowrap;
        gap: 0.5rem;
        min-width: max-content;
        padding: 0 1rem;
    }

    .step {
        flex-shrink: 0;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .step-connector {
        display: none;
    }

    .step-label {
        font-size: 0.625rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .step-header {
        margin-bottom: 1.5rem;
    }

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

    .step-description {
        font-size: 0.875rem;
    }

    .content-with-sidebar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-input-area {
        padding: 1rem;
    }

    .audio-settings-sidebar {
        width: 100%;
    }

    .settings-card {
        padding: 1rem;
    }

    .input-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .text-input,
    .url-input {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .bottom-action-area {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .next-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
    }

    .action-details {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .story-idea-box {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 2rem;
        max-width: 100%;
        padding: 1rem;
    }

    .preview-section {
        padding: 1.5rem;
    }

    .preview-header h2 {
        font-size: 1.5rem;
    }

    .preview-header p {
        font-size: 0.875rem;
    }

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

    .video-player-wrapper {
        padding: 1rem;
    }

    .video-player-large {
        max-width: 100%;
    }

    .generation-section {
        padding: 1.5rem;
    }

    .generation-header h2 {
        font-size: 1.5rem;
    }

    .generation-header p {
        font-size: 0.875rem;
    }

    .character-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .character-selection-list {
        max-height: 250px;
    }

    .character-selection-item {
        padding: 0.5rem;
    }

    .character-selection-avatar {
        width: 32px;
        height: 32px;
    }

    .character-selection-name {
        font-size: 0.8125rem;
    }

    .character-selection-desc {
        font-size: 0.6875rem;
    }

    .characters-main-title {
        font-size: 2rem;
    }

    .characters-subtitle {
        font-size: 1rem;
    }

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

    .filters-container {
        flex-direction: column;
        gap: 1rem;
    }

    .search-group {
        width: 100%;
    }

    .search-input-large {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
    }

    .pictures-actions,
    .video-actions {
        margin-top: 1rem;
    }

    .pictures-actions button,
    .video-actions button {
        width: 100%;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .story-content {
        gap: 1rem;
    }

    .story-line {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .story-avatar {
        align-self: flex-start;
    }

    .story-avatar img {
        width: 40px;
        height: 40px;
    }

    .story-text {
        font-size: 0.9375rem;
    }

    .audio-player-container {
        margin-top: 0.75rem;
    }

    .audio-player {
        height: 50px;
    }

    .task-card-content {
        padding: 1rem;
    }

    .task-card-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .task-card-meta {
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .task-card-actions {
        gap: 0.375rem;
        margin-top: 0.75rem;
    }

    .work-action-btn,
    .task-action-btn {
        min-width: 2rem;
        padding: 0.375rem;
        font-size: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .page-info {
        font-size: 0.875rem;
    }
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Preview Section */
.preview-section {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.preview-header {
    margin-bottom: 2rem;
    text-align: center;
}

.preview-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.preview-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Audio Preview */
.audio-preview-container {
    margin-bottom: 2rem;
}

.audio-player-wrapper {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.audio-player-large {
    width: 100%;
    max-width: 600px;
    height: 60px;
}

.story-text-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.story-preview-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.story-text-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
}

.story-line-preview {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.story-line-preview strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Pictures Preview */
.pictures-preview-container {
    margin-bottom: 2rem;
}

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

.picture-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

.picture-item:hover {
    transform: scale(1.02);
}

.picture-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Preview */
.video-preview-container {
    margin-bottom: 2rem;
}

.video-player-wrapper {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.video-player-large {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius);
}

/* Generation Section */
.generation-section {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    text-align: center;
}

.generation-header {
    margin-bottom: 2rem;
}

.generation-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.generation-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.generation-status {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Preview Actions */
.preview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* View Container */
.view-container {
    width: 100%;
    min-height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .pictures-grid {
        grid-template-columns: 1fr;
    }

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

    .preview-actions .btn-primary,
    .preview-actions .btn-secondary {
        width: 100%;
    }
}
