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

:root {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --header-height: 64px;
    --mobile-nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}

.btn-ghost {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-generate {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

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

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.icon-btn-round {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-btn-round:hover {
    background: white;
    transform: scale(1.1);
}

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

/* ===== 头部导航 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-slogan {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

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

.nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== 移动端菜单 ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-menu-inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-title {
    font-size: 16px;
    font-weight: 600;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav {
    padding: 12px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background: var(--bg-secondary);
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
}

/* ===== 主内容区 ===== */
.main {
    min-height: calc(100vh - var(--header-height));
    padding-bottom: var(--mobile-nav-height);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    height: 500px;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.hero-dec-1 {
    width: 200px;
    height: 200px;
    background: #3b82f6;
    top: 20%;
    right: 10%;
}

.hero-dec-2 {
    width: 150px;
    height: 150px;
    background: #ec4899;
    bottom: 10%;
    left: 5%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    padding-right: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.hero-feature-icon svg {
    width: 18px;
    height: 18px;
}

.hero-feature-text {
    min-width: 0;
}

.hero-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-feature-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.hero-visual {
    position: relative;
    height: 360px;
}

.hero-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-img {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img-main {
    width: 70%;
    left: 0;
    top: 20px;
    z-index: 2;
}

.hero-img-inner {
    position: relative;
    aspect-ratio: 16/10;
}

.hero-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.video-time {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    border-radius: var(--radius-full);
}

.hero-img-sub {
    width: 38%;
    aspect-ratio: 1;
}

.hero-img-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-sub1 {
    right: 10px;
    top: 0;
    z-index: 3;
    transform: rotate(5deg);
}

.hero-img-sub2 {
    right: 0;
    bottom: 30px;
    z-index: 1;
    transform: rotate(-5deg);
}

.hero-tooltip {
    position: absolute;
    top: -10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.hero-tooltip svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* ===== 生成面板 ===== */
.gen-panel-section {
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

.gen-panel {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.gen-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gen-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.gen-tab svg {
    width: 16px;
    height: 16px;
}

.gen-tab:hover {
    background: var(--bg-tertiary);
}

.gen-tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gen-form {
    display: none;
}

.gen-form.active {
    display: block;
}

.prompt-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.prompt-input {
    width: 100%;
    padding: 16px;
    padding-bottom: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.prompt-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.prompt-input::placeholder {
    color: var(--text-tertiary);
}

.prompt-count {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.gen-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.gen-option-group {
    margin-bottom: 16px;
}

.gen-option-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.option-hint {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* 风格选择 */
.style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.style-icon {
    font-size: 16px;
}

.style-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.style-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* 尺寸选择 */
.size-select select,
.duration-select select,
.ratio-select select,
.model-select select {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-select select:hover,
.duration-select select:hover,
.ratio-select select:hover,
.model-select select:hover {
    border-color: var(--primary-light);
}

.size-select select:focus,
.duration-select select:focus,
.ratio-select select:focus,
.model-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 模式选择 */
.mode-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.mode-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.mode-tab.active {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* 上传区域 */
.upload-section {
    margin-bottom: 20px;
}

.upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upload-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--primary-light);
    background: rgba(59, 130, 246, 0.05);
}

.upload-box-sm {
    aspect-ratio: 1;
    max-width: 160px;
}

.upload-box-add {
    aspect-ratio: 1;
    width: 100px;
    flex-direction: column;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 12px;
}

.upload-box-add svg {
    width: 24px;
    height: 24px;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.upload-placeholder svg {
    width: 32px;
    height: 32px;
}

.upload-tag {
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    border-radius: var(--radius-full);
}

.upload-preview {
    position: absolute;
    inset: 0;
}

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

.upload-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.upload-remove:hover {
    background: var(--danger-color);
}

.upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.gen-actions {
    display: flex;
    justify-content: flex-end;
}

/* ===== 结果展示区 ===== */
.result-section {
    padding: 40px 0;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
}

.result-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

.result-loading p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.loading-progress {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

.result-media {
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.result-media img,
.result-media video {
    width: 100%;
    display: block;
}

.result-info {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.result-error {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
}

.error-icon svg {
    width: 32px;
    height: 32px;
}

.result-error h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.result-error p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== 热门推荐 ===== */
.hot-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: 8px;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.hot-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.hot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hot-item:hover .hot-item-overlay {
    opacity: 1;
}

.hot-item-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: white;
}

.hot-item-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-item-type {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 11px;
}

.hot-item-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.hot-item-video .play-icon svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

/* ===== 功能亮点 ===== */
.features-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 内页通用样式 ===== */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

.gen-page-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    padding-bottom: 40px;
}

.gen-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 32px);
    overflow-y: auto;
}

.gen-panel-full {
    padding: 20px;
}

.style-chips-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.style-chips-full .style-chip {
    flex-direction: column;
    gap: 4px;
    padding: 10px 8px;
    font-size: 12px;
}

.style-chips-full .style-icon {
    font-size: 20px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.size-option small {
    font-size: 11px;
    color: var(--text-tertiary);
}

.size-option:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.size-option.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.size-preview {
    border: 2px solid currentColor;
    border-radius: 2px;
    opacity: 0.6;
}

.size-square {
    width: 24px;
    height: 24px;
}

.size-16-9 {
    width: 32px;
    height: 18px;
}

.size-9-16 {
    width: 18px;
    height: 32px;
}

.size-4-3 {
    width: 28px;
    height: 21px;
}

/* 模式卡片 */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mode-card:hover {
    border-color: var(--primary-light);
}

.mode-card.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
}

.mode-card-icon {
    font-size: 24px;
}

.mode-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.mode-card-desc {
    font-size: 11px;
    color: var(--text-tertiary);
}

.keyframe-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.keyframe-upload-row .upload-box {
    flex: 1;
}

.keyframe-arrow {
    font-size: 20px;
    color: var(--text-tertiary);
}

.ref-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.duration-option {
    padding: 8px 4px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.duration-option:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.duration-option.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.ratio-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ratio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.ratio-option:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.ratio-option.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.ratio-preview {
    border: 2px solid currentColor;
    border-radius: 2px;
    opacity: 0.6;
}

.ratio-16-9 {
    width: 32px;
    height: 18px;
}

.ratio-9-16 {
    width: 18px;
    height: 32px;
}

.ratio-1-1 {
    width: 24px;
    height: 24px;
}

.ratio-4-3 {
    width: 28px;
    height: 21px;
}

.seed-input-wrapper {
    display: flex;
    gap: 8px;
}

.seed-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

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

.seed-random-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.seed-random-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

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

.btn-generate-full {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* 生成结果区域 */
.gen-result-area {
    min-height: 500px;
}

.result-placeholder {
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--text-tertiary);
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.result-placeholder h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.result-placeholder p {
    font-size: 14px;
    color: var(--text-tertiary);
    max-width: 300px;
}

.result-display-full {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-loading-full {
    text-align: center;
    padding: 60px 20px;
}

.result-loading-full p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.loading-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.result-image-wrapper,
.result-video-wrapper {
    position: relative;
    width: 100%;
}

.result-image-wrapper img {
    width: 100%;
    display: block;
}

.result-video-wrapper video {
    width: 100%;
    display: block;
}

.result-actions-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

/* ===== 我的作品 ===== */
.works-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

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

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
    color: white;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 40px;
}

.work-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

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

.work-item img,
.work-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.work-item:hover .work-item-overlay {
    opacity: 1;
}

.work-item-title {
    color: white;
    font-size: 13px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.work-item-actions {
    display: flex;
    gap: 8px;
}

.work-item-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.work-item-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.work-item-btn.danger:hover {
    background: rgba(239, 68, 68, 0.8);
}

.work-item-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.works-empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    color: var(--text-tertiary);
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.works-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.works-empty p {
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ===== 使用教程 ===== */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.tutorial-card {
    position: relative;
    padding: 28px 24px;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.tutorial-step {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.tutorial-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tutorial-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tutorial-faq {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.faq-title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-color);
}

/* ===== 移动端底部导航 ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* ===== 页脚 ===== */
.footer {
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    max-width: 300px;
}

.footer-slogan {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-link-group a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

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

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== 弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

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

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.form-hint a {
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
}

.modal-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-notice svg {
    width: 16px;
    height: 16px;
    color: var(--warning-color);
    flex-shrink: 0;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success-color);
}

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

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        height: 300px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gen-page-layout {
        grid-template-columns: 340px 1fr;
    }
    
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }
    
    .logo-slogan {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions .icon-btn,
    .header-actions .btn-ghost,
    .header-actions .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .gen-panel-section {
        margin-top: 0;
    }
    
    .gen-panel {
        padding: 16px;
    }
    
    .gen-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .hot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main {
        padding-bottom: calc(var(--mobile-nav-height) + 20px);
    }
    
    .footer {
        margin-bottom: var(--mobile-nav-height);
    }
    
    .gen-page-layout {
        grid-template-columns: 1fr;
    }
    
    .gen-sidebar {
        position: static;
        max-height: none;
    }
    
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 24px 20px;
        margin: 16px;
        width: calc(100% - 32px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-features {
        grid-template-columns: 1fr 1fr;
    }
    
    .style-chips {
        gap: 6px;
    }
    
    .style-chip {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .size-options,
    .ratio-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .style-chips-full {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mode-cards {
        grid-template-columns: 1fr;
    }
    
    .duration-options {
        grid-template-columns: repeat(3, 1fr);
    }
}
