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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0c1220 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0c1220 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* 标题和文本样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 1rem;
    color: #b3b3b3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.1);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .logo {
    height: 32px;
    width: auto;
}

.nav-logo .logo-text {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Ensure dropdown trigger has pointer cursor */
.nav-dropdown .nav-link {
    cursor: pointer;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Video Models dropdown特殊样式 */
.nav-dropdown:has(.dropdown-section) .dropdown-content {
    min-width: 280px;
    padding: 1.25rem;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 0;
    color: #b3b3b3;
    font-size: 14px;
    border-bottom: none;
}

.dropdown-content a:hover {
    color: #4f46e5;
}

/* Video Models dropdown styles */
.dropdown-section {
    margin-bottom: 1rem;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section-title {
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-section a {
    display: block;
    padding: 0.25rem 0;
    color: #b3b3b3;
    font-size: 13px;
    margin-left: 0.5rem;
}

.dropdown-section a:hover {
    color: #4f46e5;
}

/* Mobile nav dropdown styles */
.mobile-nav-dropdown {
    margin: 0.5rem 0;
}

.mobile-nav-dropdown-title {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.mobile-nav-dropdown-title:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-dropdown-content {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

.mobile-nav-section {
    margin-bottom: 1rem;
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-section-title {
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-sublink {
    display: block;
    padding: 0.5rem 0;
    color: #b3b3b3;
    font-size: 14px;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.mobile-nav-sublink:hover {
    color: #4f46e5;
}

/* Footer subsection styles */
.footer-subsection {
    margin-bottom: 1.5rem;
}

.footer-subsection:last-child {
    margin-bottom: 0;
}

.footer-subtitle {
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 语言选择器 */
.language-selector {
    position: relative;
    z-index: 1000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 150px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

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

.lang-option {
    display: block;
    padding: 0.5rem 1rem;
    color: #b3b3b3;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-option:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.lang-option.active {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

/* 导航操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .lang-btn,
    .signin-btn,
    .user-avatar,
    .lang-option,
    .faq-question,
    .pricing-card,
    .feature-card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .lang-btn:active,
    .signin-btn:active,
    .user-avatar:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .lang-option:active {
        background: rgba(79, 70, 229, 0.1);
    }

    .faq-question:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 认证区域样式 */
.auth-section {
    position: relative;
}

.signin-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
}

.user-avatar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    margin-top: 0.5rem;
}

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

.user-info {
    margin-bottom: 0.75rem;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #b3b3b3;
    font-size: 12px;
}

.dropdown-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 0;
}

.user-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

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

.stat-icon {
    font-size: 14px;
}

.stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0;
    color: #b3b3b3;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-item:hover {
    color: #4f46e5;
}

.logout-btn {
    color: #ef4444;
}

.logout-btn:hover {
    color: #dc2626;
}

/* 登录弹窗样式 */
.signin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.signin-modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    min-width: 400px;
    max-width: 90vw;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS滚动优化 */
    z-index: 10002;
}

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

.modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.signin-subtitle {
    color: #b3b3b3;
    margin-bottom: 1.5rem;
    text-align: center;
}

.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-signin-btn:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* What is Veo 3 Section */
.what-is-veo {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

.what-is-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.what-is-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.what-is-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.what-is-description {
    font-size: 1.1rem;
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.what-is-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

/* 主要内容区域 */
.main {
    margin-top: 80px;
}

/* Generate page specific main styling */
.main:has(.generate-layout) {
    margin-top: 80px;
}

/* 英雄区域 */
.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0c1220 0%, #1e293b 25%, #2563eb 50%, #1e293b 75%, #0c1220 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 30%, #10b981 60%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #06b6d4 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 45px rgba(59, 130, 246, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #059669 50%, #0891b2 100%);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 15px 30px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.4);
}

/* 功能特性区域 */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 25, 0.5) 50%, transparent 100%);
}

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

.features-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-description {
    color: #b3b3b3;
    line-height: 1.6;
}

/* 推荐区域 */
.testimonials {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: #4f46e5;
    font-weight: 600;
}

/* 如何使用区域 */
.how-to-use {
    padding: 6rem 0;
    background: #0a0a0a;
}

.how-to-use-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.how-to-use-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.how-to-use-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step-title {
    color: #fff;
    margin-bottom: 1rem;
}

.step-description {
    color: #b3b3b3;
}

/* 视频生成器 */
.video-generator {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.video-generator .page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.video-generator .page-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.video-generator .page-subtitle {
    color: #9ca3af;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.video-generator .content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-generator .mode-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.prompt-input {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 1rem;
}

.prompt-input::placeholder {
    color: #666;
}

.generator-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.model-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 14px;
    flex: 1;
}

.generate-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* 定价区域 */
.pricing {
    background: linear-gradient(135deg, #0f1829 0%, #1e3a5f 25%, #2d5aa0 50%, #1e3a5f 75%, #0f1829 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.home-pricing {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f1829 0%, #1e3a5f 25%, #2d5aa0 50%, #1e3a5f 75%, #0f1829 100%);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.pricing-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    text-align: center;
    color: #b3b3b3;
    margin-bottom: 3rem;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0.5rem;
}

.toggle-btn {
    background: transparent;
    color: #b3b3b3;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.discount {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.toggle-btn.active .discount {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Plan descriptions */
.plan-description {
    color: #b3b3b3;
    font-size: 14px;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Gems info */
.gems-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #a5b4fc;
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

/* Feature list enhancements */
.feature-check::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.feature-cross::before {
    content: "✗";
    color: #ef4444;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Coin packs styles */
.packs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.packs-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 30%, #8b5cf6 60%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.packs-subtitle {
    color: #b3b3b3;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.coins-amount {
    text-align: center;
    margin-bottom: 1rem;
}

.coins-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.coins-text {
    font-size: 1.5rem;
    color: #b3b3b3;
    margin-left: 0.5rem;
}

.pack-price {
    text-align: center;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding-bottom: 3rem;
}

.pricing-grid[style*="display: none"] {
    display: none !important;
}

.pricing-grid[style*="display: grid"] {
    display: grid !important;
}

.pricing-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.pricing-card.popular {
    border-color: #3b82f6;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.plan-name {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.period {
    color: #b3b3b3;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    color: #b3b3b3;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.plan-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #059669 100%);
}

.plan-btn:hover::before {
    left: 100%;
}

/* FAQ区域 */
.faq {
    padding: 6rem 0;
    background: rgba(15, 24, 41, 0.3);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.faq-question {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #3b82f6;
}

.faq-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: #b3b3b3;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-answer {
    color: #b3b3b3;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 0.5rem;
}

/* Video Generator Styles */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 500;
}

.mode-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.generation-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 550px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.required {
    color: #ef4444;
}

.optional {
    color: #b3b3b3;
    font-weight: 400;
    font-size: 0.875rem;
}

.prompt-container {
    position: relative;
}

.prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.prompt-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.character-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #ececec;
    background: transparent;
    padding: 0.1rem 0;
    margin-top: 0.01rem;
    border: none;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    text-shadow: none;
}

.character-count.warning {
    color: #f59e0b;
}

.character-count.danger {
    color: #ef4444;
}

.image-uploader {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.image-uploader:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.image-uploader.has-image {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    padding: 0;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #b3b3b3;
}

.upload-placeholder i {
    font-size: 2rem;
    color: #4f46e5;
}

.image-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.clear-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
    font-family: "Font Awesome 6 Free", serif;
    font-weight: 900;
}

.clear-image-btn i {
    font-size: 14px;
    line-height: 1;
}

.clear-image-btn:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.image-upload-note {
    margin-top: 0.75rem;
    text-align: center;
}

.image-upload-note small {
    color: #fbbf24;
    font-style: italic;
}

.option-text i.fa-question-circle {
    margin-left: 0.5rem;
    color: #9ca3af;
    cursor: help;
    font-size: 14px;
}

.option-text i.fa-question-circle:hover {
    color: #4f46e5;
}

.generation-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: #fff;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: background 0.3s ease;
}

.slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .slider {
    background: #4f46e5;
}

.toggle-label input[type="checkbox"]:checked + .slider::before {
    transform: translateX(26px);
}

.option-text {
    flex: 1;
}

.cost-info {
    display: block;
    color: #b3b3b3;
    font-size: 12px;
    margin-top: 0.25rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.reset-btn, .generate-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.generate-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: 1px solid #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.preview-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.placeholder-icon {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: #b3b3b3;
    font-size: 1.125rem;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.history-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

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

.history-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

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

.history-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.history-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.history-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.history-item-content {
    padding: 0.75rem;
    pointer-events: none;
}

.history-item-prompt {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.history-item:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.delete-btn:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

.empty-history-message {
    text-align: center;
    color: #b3b3b3;
    padding: 3rem;
}

.empty-history-message i {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 1rem;
    display: block;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.history-pagination button {
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 36px;
}

.history-pagination button:hover:not(:disabled) {
    background: rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
    color: #fff;
}

.history-pagination button.current-page {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

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

.history-pagination .dots {
    color: #b3b3b3;
    padding: 0.5rem;
}

/* Video Modal Styles */
.video-modal {
    max-width: 800px;
    width: 90vw;
}

.video-modal video {
    max-height: 60vh;
    object-fit: contain;
}

.video-info {
    margin: 1rem 0;
}

.video-prompt {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Insufficient Credits Modal */
.insufficient-credits-content {
    text-align: center;
    padding: 1rem 0;
}

.insufficient-credits-icon {
    font-size: 4rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.credit-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.credit-requirements ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.credit-requirements li {
    color: #b3b3b3;
    margin: 0.25rem 0;
}

/* Loading Animation */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(79, 70, 229, 0.3);
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loader-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    z-index: 10;
}

.preview-panel {
    position: relative;
}

.preview-panel .loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    z-index: 10;
    border-radius: 12px;
}

.preview-panel .loader-overlay .loader {
    margin-bottom: 1rem;
}

.preview-panel .loader-overlay p {
    color: #fff;
    margin: 0;
    font-size: 16px;
    text-align: center;
}

/* 页面内容区域 */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0f1829 0%, #1e3a5f 25%, #2d5aa0 50%, #1e3a5f 75%, #0f1829 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 30%, #8b5cf6 60%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-content {
    padding: 4rem 0;
    background: #0a0a0a;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    color: #b3b3b3;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: #b3b3b3;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    height: 24px;
    width: auto;
}

.footer-logo .logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: #b3b3b3;
    font-size: 14px;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 8px;
        transition: background-color 0.2s;
        order: 999; /* 确保按钮在最右边 */
        z-index: 1002 !important; /* 确保在最上层可点击 */
        position: relative;
        cursor: pointer;
    }

    .mobile-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        pointer-events: none; /* 确保SVG不阻挡点击事件 */
    }

    .mobile-menu {
        display: block !important;
    }

    .mobile-menu.active {
        display: block !important;
        transform: translateX(0) !important;
    }

    .modal-content {
        min-width: auto;
        width: 95%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }

    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .video-modal video {
        max-height: 50vh;
    }

    .pricing-toggle {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .toggle-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .packs-title {
        font-size: 2rem;
    }

    .coins-number {
        font-size: 2rem;
    }

    .coins-text {
        font-size: 1.25rem;
    }

    .gems-info {
        font-size: 14px;
        padding: 0.5rem;
    }

    .plan-description {
        font-size: 13px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .what-is-highlights {
        flex-direction: column;
        gap: 1rem;
    }

    .highlight-item {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .generator-controls {
        flex-direction: column;
    }

    .model-select {
        margin-bottom: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Video Models dropdown在移动端的调整 */
    .nav-dropdown:has(.dropdown-section) .dropdown-content {
        min-width: 250px;
        padding: 1rem;
        right: 0;
        left: auto;
    }

    /* Video Generator Mobile Styles */
    .content-area {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mode-switcher {
        gap: 0.5rem;
    }

    .mode-btn {
        font-size: 12px;
        padding: 0.5rem 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

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

    .history-pagination {
        gap: 0.25rem;
    }

    .history-pagination button {
        padding: 0.4rem 0.6rem;
        font-size: 12px;
        min-width: 32px;
    }

    .generation-panel,
    .history-panel {
        padding: 1.5rem;
    }

    .image-uploader {
        padding: 1rem;
    }

    .preview-panel {
        min-height: 300px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .nav-actions {
        gap: 0.25rem;
    }

    .pricing-toggle {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }

    .packs-title {
        font-size: 1.75rem;
    }

    .packs-subtitle {
        font-size: 16px;
        padding: 0 1rem;
    }

    .coins-number {
        font-size: 1.75rem;
    }

    .coins-text {
        font-size: 1rem;
    }

    .pack-price {
        font-size: 1.125rem;
    }

    .gems-info {
        font-size: 13px;
        padding: 0.4rem;
    }

    .plan-description {
        font-size: 12px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .features-title,
    .pricing-title,
    .how-to-use-title,
    .faq-title,
    .what-is-title {
        font-size: 2rem;
    }

    .what-is-description {
        font-size: 1rem;
    }

    .highlight-item {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .feature-card,
    .testimonial-card,
    .step-card,
    .pricing-card {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1rem;
        width: 98%;
        margin: 5px auto;
        max-height: calc(100vh - 10px);
    }

    .modal-overlay {
        padding: 5px;
    }

    .video-modal video {
        max-height: 40vh;
    }

    .user-dropdown {
        padding: 0.75rem;
    }

    .language-menu {
        padding: 0.25rem;
    }

    .lang-option {
        padding: 0.375rem 0.75rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .footer-content {
        padding: 0 10px;
    }
}

/* PayPal模态框样式 */
/* PayPal模态框基础样式 */
#paypal-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: center !important;
    display: none !important; /* 默认隐藏 */
}

/* 显示时的样式 */
#paypal-modal[style*="flex"],
#paypal-modal.show {
    display: flex !important;
}

#paypal-modal .modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    min-width: 400px !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: 20px !important;
}

.paypal-modal {
    min-width: 400px;
    max-width: 500px;
}

.paypal-modal #paypal-button-container-modal {
    margin: 20px 0;
}

.paypal-modal #paypal-messaging-container {
    margin: 15px 0;
    text-align: center;
}

.paypal-modal h3 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 15px;
}

/* PayPal按钮容器样式 */
#paypal-button-container-modal {
    min-height: 55px;
    width: 100%;
}

/* 移动端PayPal按钮优化 */
@media (max-width: 768px) {
    #paypal-button-container-modal {
        min-height: 55px;
        width: 100%;
        touch-action: manipulation;
        position: relative;
    }

    /* 确保PayPal按钮在移动端可点击 - 简化设置 */
    #paypal-button-container-modal iframe,
    #paypal-button-container-modal div {
        touch-action: manipulation !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* PayPal按钮容器在移动端的样式 */
    #paypal-button-container-modal > div {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 55px !important;
    }

    /* 强制PayPal iframe可触摸 */
    #paypal-button-container-modal iframe {
        min-height: 55px !important;
        border: none !important;
        background: transparent !important;
    }

    /* PayPal按钮元素强制可点击 */
    #paypal-button-container-modal [data-funding-source],
    #paypal-button-container-modal [id*="paypal"] {
        touch-action: manipulation !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
    }
}

/* 支付加载器 */
.payment-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通知系统样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    color: #ffffff;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #ffffff;
}

/* 通知类型样式 */
.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

/* 用户余额显示 */
.user-balance {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.balance-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.balance-icon {
    width: 16px;
    height: 16px;
}

.balance-value {
    font-weight: 600;
}

/* Google登录按钮样式改进 */
#googleSigninBtn {
    width: 100%;
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#googleSigninBtn > div {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 移动端汉堡菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 80px 0 0 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block !important;
    transform: translateX(0);
}

/* 确保移动端菜单在所有设备上都能正确显示 */
@media screen and (max-width: 768px) {
    .mobile-menu {
        display: block !important;
    }

    .mobile-menu.active {
        display: block !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #4f46e5;
}

.mobile-lang-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mobile-lang-option {
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.mobile-lang-option:hover,
.mobile-lang-option.active {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
}

.mobile-auth-section {
    padding: 1.5rem 2rem;
}

.mobile-signin-btn {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-signin-btn:hover {
    background: #4338ca;
}

.mobile-user-info {
    display: none;
}

.mobile-user-info.active {
    display: block;
}

.mobile-user-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mobile-user-email {
    color: #cccccc;
    font-size: 0.875rem;
}

.mobile-user-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.mobile-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
}

.mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-billing-btn {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-billing-btn:hover {
    background: rgba(79, 70, 229, 0.3);
    border-color: #4f46e5;
    color: #4f46e5;
}

.mobile-logout-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #paypal-modal .modal-content {
        min-width: 320px !important;
        max-width: 95vw !important;
        margin: 10px !important;
        padding: 1.5rem !important;
    }

    .paypal-modal {
        min-width: 300px;
        max-width: 90vw;
    }

    .user-balance {
        display: none; /* 在移动端隐藏余额显示，通过下拉菜单查看 */
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Billing页面样式 */
.billing-section {
    padding: 4rem 0;
    background: #0a0a0a;
    min-height: 50vh;
}

.billing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.billing-card {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

.billing-card h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.billing-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.billing-card.no-subscription {
    text-align: center;
    padding: 3rem 2rem;
}

.billing-card.no-subscription p {
    color: #b3b3b3;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 积分信息样式 */
.credits-info {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.credit-box {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-box .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.credit-box .type {
    font-size: 1.1rem;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 订阅卡片样式 */
.subscription-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.subscription-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.info-row .label {
    color: #b3b3b3;
    font-weight: 500;
}

.info-row .value {
    color: #fff;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.pending {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.payment-method {
    color: #4f46e5;
    font-style: italic;
    text-transform: capitalize;
}

/* 订阅操作按钮 */
.subscription-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.cancel-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.cancel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载更多按钮 */
.load-more-btn {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
}

/* 模态框样式增强 */
.modal-body {
    padding: 1.5rem 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn.primary {
    background: #4f46e5;
    color: #fff;
}

.modal-btn.primary:hover {
    background: #4338ca;
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 加载动画 */
.billing-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.billing-loader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(79, 70, 229, 0.3);
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .billing-container {
        padding: 0 15px;
    }

    .billing-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .credits-info {
        flex-direction: column;
        gap: 1rem;
    }

    .credit-box {
        padding: 1.5rem;
    }

    .credit-box .amount {
        font-size: 2rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

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

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    /* 确保PayPal模态框不被覆盖 */
    #paypal-modal .modal-content {
        margin: 10px !important;
        width: auto !important;
        max-width: 95vw !important;
    }

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

    .modal-btn {
        width: 100%;
    }
}

.image-uploader.has-image .clear-image-btn {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-link:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

/* My Creation Page */
.my-creation {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 120px 0 80px;
}

.my-creation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Generate Video Page */
.generator-section {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 120px 0 80px;
}

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

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile responsive styles for new elements */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

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

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

    .my-creation {
        padding: 100px 0 60px;
    }

    .generator-section {
        padding: 100px 0 60px;
    }
}

/* Sidebar Layout for Generate Page */
.generate-layout {
    display: flex;
    min-height: calc(100vh - 80px - 200px); /* Subtract header and estimated footer height */
    background-color: #0a0a0a;
}

/* Left Sidebar */
.sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 10;
    padding-top: 80px;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-section {
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: #4f46e5;
    color: #fff;
}

.nav-bottom {
    padding: 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2rem;
    min-height: calc(100vh - 280px); /* Subtract header and footer */
    width: calc(100% - 280px);
}

.mode-content {
    max-width: none;
    width: 100%;
}

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

.content-title {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: #9ca3af;
    font-size: 16px;
    margin: 0;
}

.mode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #666;
    background: #111111;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-placeholder i {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: #4f46e5;
}

.mode-placeholder p {
    font-size: 18px;
    margin: 0;
    color: #9ca3af;
}

/* Content Area Layout */
.content-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Content Area Layout - Override for generate page */
.generate-layout .content-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

/* Generation Panel Styles */
.generate-layout .generation-panel {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.generate-layout .generation-panel .generation-scroll-container {
    flex: 1;
    overflow-y: auto;
}

/* Preview Panel Styles */
.generate-layout .preview-panel {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.generate-layout .preview-panel .placeholder-icon {
    font-size: 48px;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.generate-layout .preview-panel .placeholder-text {
    color: #9ca3af;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .generate-layout .content-area {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 90px;
        left: 1rem;
        z-index: 1001;
        background: #4f46e5;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.75rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sidebar-toggle:hover {
        background: #4338ca;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

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

    .content-title {
        font-size: 24px;
    }

    .content-subtitle {
        font-size: 14px;
    }

    .mode-placeholder {
        padding: 3rem 1rem;
    }

    .mode-placeholder i {
        font-size: 36px;
    }

    .mode-placeholder p {
        font-size: 16px;
    }

    .generate-layout .generation-panel,
    .generate-layout .preview-panel {
        padding: 1rem;
    }
}

/* Mobile Menu Toggle Button */
.sidebar-toggle {
    display: none;
}

/* Fix footer positioning for generate page */
.main:has(.generate-layout) {
    margin-top: 0 !important;
}

.generate-layout {
    margin-top: 30px !important;
}

.generate-layout .main-content {
    padding-top: 2rem !important;
}

/* Override previous generate layout styles */
.generate-layout {
    margin-top: 30px !important;
    min-height: auto !important;
    height: auto !important;
}

/* Ensure footer is visible */
.main {
    position: relative;
}

.main:has(.generate-layout) {
    margin-top: 30px !important;
    min-height: auto !important;
}

/* Fix sidebar positioning */
.generate-layout .sidebar {
    top: 0 !important;
    padding-top: 80px;
}

/* Ensure main content doesn't overlap footer */
.generate-layout .main-content {
    padding-top: 2rem !important;
    min-height: auto !important;
    padding-bottom: 2rem;
}

/* Complete footer fix for generate page */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
}

/* Reset generate layout to not interfere with footer */
.generate-layout {
    display: flex !important;
    min-height: auto !important;
    height: auto !important;
    background-color: #0a0a0a !important;
    position: relative;
    z-index: 1;
}

.generate-layout .main-content {
    min-height: auto !important;
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
    position: relative;
    z-index: 1;
}

/* Ensure footer stays at bottom */
.footer {
    margin-top: auto;
    position: relative;
    z-index: 20;
    margin-left: 0;
}

/* Enhanced Generation Panel Styles */
.generation-scroll-container {
    max-height: none;
    height: 100%;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.generation-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.generation-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.generation-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.generation-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Model Selector */
.model-selector {
    position: relative;
}

.model-selected {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.model-selected:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.model-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.model-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.model-details {
    flex: 1;
}

.model-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.model-description {
    color: #9ca3af;
    font-size: 12px;
}

.dropdown-arrow {
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.model-selector.open .dropdown-arrow,
.model-selector.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Model Dropdown */
.model-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.model-dropdown.open,
.model-dropdown.show {
    display: block;
}

.model-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.model-option:last-child {
    border-bottom: none;
}

.model-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.model-option.selected {
    background: rgba(79, 70, 229, 0.2);
}

.model-option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.model-specs {
    display: flex;
    gap: 0.5rem;
    margin-top: 4px;
}

.spec {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.new-badge {
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.model-check {
    color: #4f46e5;
    font-size: 16px;
}

/* Prompt Container Enhanced */
.prompt-actions {
    display: flex;
    justify-content: end;
    align-items: end;
    margin-top: 8px;
}

.generate-with-ai-btn {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generate-with-ai-btn:hover {
    background: rgba(79, 70, 229, 0.3);
    border-color: rgba(79, 70, 229, 0.5);
}

/* Seed Controls */
.seed-container {
    margin-top: 8px;
}

.seed-input-group {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.seed-lock {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.seed-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.75rem;
    font-size: 14px;
    outline: none;
}

.seed-refresh {
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.seed-refresh:hover {
    color: #4f46e5;
}

/* Modern Toggle Styles */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.toggle-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.toggle-text {
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch.small {
    width: 36px;
    height: 18px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch.small .toggle-slider:before {
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #ef4444;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch.small input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* Translate Toggle */
.translate-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    color: #9ca3af;
    font-size: 12px;
}

/* Prompt Input Small */
.prompt-input.small {
    min-height: 100px;
    max-height: 120px;
}

/* Video Number Selector */
.video-number-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 8px;
}

.number-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #2a2a2a;
    color: #9ca3af;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.number-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.number-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Credits Display */
.credits-display {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.credits-display i.fa-coins {
    color: #f59e0b;
}

/* Create Button */
.create-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.create-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

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

/* Tooltip */
.tooltip {
    cursor: help;
    color: #9ca3af;
    margin-left: 4px;
}

.tooltip:hover {
    color: #4f46e5;
}

/* Required and Optional Labels Enhanced */
.input-label .required {
    color: #ef4444;
    font-weight: 600;
}

.input-label .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 12px;
}

/* Responsive Design for Enhanced Panel */
@media (max-width: 768px) {
    .generation-scroll-container {
        max-height: none;
        height: 100%;
        min-height: 500px;
    }

    .model-info {
        gap: 0.5rem;
    }

    .model-icon {
        width: 28px;
        height: 28px;
    }

    .prompt-actions {
        flex-direction: column;
        align-items: end;
        gap: 0.5rem;
    }

    .generate-with-ai-btn {
        align-self: flex-start;
    }

    .video-number-selector {
        justify-content: center;
    }

    .toggle-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .translate-toggle {
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* Collapsible Negative Prompt Styles */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.collapse-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.collapse-arrow i {
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.3s ease;
}

.collapsible-header:hover .collapse-arrow i {
    color: #4f46e5;
}

.collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

/* Model Specific Parameters Styles */
.model-params {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.model-params.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Text-to-video specific model params - use original behavior */
#model-specific-params .model-params {
    display: block; /* Default visible for text-to-video */
}

#model-specific-params .model-params[style*="display: none"] {
    display: none !important; /* Respect inline style hiding */
}

/* Image-to-video specific model params - use new behavior with active class requirement */
#model-specific-params-img2vid .model-params {
    display: none;
    visibility: hidden;
    opacity: 0;
}

#model-specific-params-img2vid .model-params.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.param-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.param-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-value {
    min-width: 30px;
    text-align: center;
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
}

.select-container {
    position: relative;
}

.param-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.param-select:focus {
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 0.15);
}

.param-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Optimize generation container height */
.generation-scroll-container {
    max-height: none !important;
    height: 100% !important;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Ensure both panels have same height - Desktop only */
@media (min-width: 769px) {
    .generate-layout .content-area {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
        align-items: stretch !important;
        min-height: 600px !important;
        height: calc(100vh - 200px) !important;
    }
}

.generate-layout .generation-panel,
.generate-layout .preview-panel {
    height: 100% !important;
    overflow: auto !important;
}

.generate-layout .generation-panel {
    display: flex !important;
    flex-direction: column !important;
}

.generate-layout .preview-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 2rem !important;
}

/* When preview panel has only placeholder content, center it */
.generate-layout .preview-panel:has(.placeholder-icon) {
    justify-content: center !important;
    padding-top: 0 !important;
}

/* When preview panel has actual video content, start from top */
.generate-layout .preview-panel:has(video),
.generate-layout .preview-panel:has(.video-content) {
    justify-content: flex-start !important;
    padding-top: 2rem !important;
}

/* Mobile responsive adjustments - HIGHEST PRIORITY */
@media screen and (max-width: 768px) {
    .collapsible-header {
        padding: 0.5rem;
    }

    .slider-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .slider-value {
        align-self: flex-end;
    }

    .generation-scroll-container {
        max-height: none !important;
        height: 100% !important;
    }

    /* FORCE MOBILE LAYOUT - MAXIMUM PRIORITY */
    body .generate-layout .content-area {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        height: auto !important;
        gap: 1rem !important;
        padding: 1rem !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    body .generate-layout .generation-panel,
    body .generate-layout .preview-panel {
        height: auto !important;
        min-height: auto !important;
        padding: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body .generate-layout .generation-panel {
        order: 1 !important;
        grid-row: 1 !important;
    }

    body .generate-layout .preview-panel {
        min-height: 250px !important;
        order: 2 !important;
        grid-row: 2 !important;
    }

    /* Mobile preview panel adjustments */
    body .generate-layout .preview-panel:has(.placeholder-icon) {
        justify-content: center !important;
        padding-top: 1rem !important;
    }

    /* Mobile specific main content padding */
    body .generate-layout .main-content {
        padding: 1rem !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Hide sidebar on mobile for generate page */
    body .generate-layout .sidebar {
        display: none !important;
    }

    /* Extra force for mobile */
    .main .generate-layout .content-area {
        flex-direction: column !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

/* New Model Parameter Styles */

/* Mode Selector for Kling 2.1 */
.mode-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mode-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.mode-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.mode-option.active {
    background: rgba(79, 70, 229, 0.08);
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3);
}

.mode-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.mode-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    visibility: visible !important;
}

.mode-preview-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保图片加载失败时有fallback显示 */
.mode-preview-img:not([src]),
.mode-preview-img[src=""],
.mode-preview-img[src="#"] {
    background-color: #333;
    position: relative;
}

.mode-preview-img:not([src])::before,
.mode-preview-img[src=""]::before,
.mode-preview-img[src="#"]::before {
    content: "IMG";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 12px;
}

.mode-preview-img svg {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.mode-details {
    flex: 1;
    min-width: 0; /* Allows text to truncate if needed */
}

.mode-title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mode-description {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.3;
}

.mode-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    top: 12px;
    right: 12px;
}

.mode-option.active .mode-check {
    background: #4f46e5;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Resolution Selector for Hailuo 02 */
.resolution-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.resolution-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
}

.resolution-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
    color: #fff;
}

.resolution-option.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-weight: 600;
}

/* Video Length Selector */
.length-selector {
    display: flex;
    gap: 1rem !important;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Force video length button spacing - highest specificity */
.model-params .length-selector,
.form-group .length-selector,
div.length-selector {
    gap: 1rem !important;
    display: flex !important;
}

/* Additional ultra-specific rules for video length spacing */
.video-generator .model-params .length-selector,
.video-generator .form-group .length-selector,
body .video-generator .length-selector,
body div.length-selector,
html body div.length-selector {
    gap: 1rem !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.length-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.length-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
    color: #fff;
}

.length-option.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-weight: 600;
}

.length-option i {
    font-size: 12px;
}

.length-option.active i {
    color: #ef4444;
}

/* Update credits display icon */
.credits-display i.fa-gem {
    color: #8b5cf6;
}





/* Mobile responsive adjustments for new controls */
@media (max-width: 768px) {
    .mode-selector {
        gap: 0.5rem;
    }

    .mode-option {
        padding: 0.75rem;
    }

    .mode-image {
        width: 48px;
        height: 48px;
    }

    .mode-check {
        width: 24px;
        height: 24px;
        top: 8px;
        right: 8px;
        font-size: 12px;
    }

    .mode-title {
        font-size: 13px;
    }

    .mode-description {
        font-size: 11px;
    }

    .resolution-selector,
    .length-selector {
        gap: 0.75rem !important;
        margin-bottom: 2rem;
    }

    /* Force mobile video length spacing */
    .model-params .length-selector,
    .form-group .length-selector,
    div.length-selector {
        gap: 0.75rem !important;
        display: flex !important;
    }

    .resolution-option,
    .length-option {
        padding: 0.6rem 0.8rem;
        font-size: 13px;
    }

    /* Video Generator Mobile Styles */
    .video-generator .page-title {
        font-size: 2rem;
    }

    .video-generator .page-subtitle {
        font-size: 16px;
    }

    .video-generator .content-area {
        padding: 0 15px;
    }

    .video-generator .mode-placeholder {
        padding: 3rem 1.5rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    /* Generate page specific mobile optimizations */
    .generate-layout .content-area {
        padding: 0.5rem !important;
        gap: 0.75rem !important;
    }

    .generate-layout .generation-panel,
    .generate-layout .preview-panel {
        padding: 0.75rem !important;
        border-radius: 8px !important;
    }

    .generate-layout .preview-panel {
        min-height: 200px !important;
    }

    /* Model selector optimizations */
    .model-selector {
        gap: 0.5rem;
    }

    .model-option {
        padding: 0.5rem;
        min-height: 60px;
    }

    .mode-image {
        width: 40px !important;
        height: 40px !important;
    }

    .mode-title {
        font-size: 12px !important;
    }

    .mode-description {
        font-size: 10px !important;
    }

    /* Parameter selectors mobile optimization */
    .resolution-selector,
    .length-selector {
        gap: 0.5rem !important;
        margin-bottom: 2rem;
    }

    /* Force small mobile video length spacing */
    .model-params .length-selector,
    .form-group .length-selector,
    div.length-selector {
        gap: 0.5rem !important;
        display: flex !important;
    }

    .resolution-option,
    .length-option {
        padding: 0.5rem 0.6rem !important;
        font-size: 12px !important;
    }

    /* Prompt input mobile */
    .prompt-input {
        min-height: 100px;
        font-size: 14px;
        padding: 0.75rem;
    }

    /* Create button mobile */
    .create-btn {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }

    /* Credits display mobile */
    .credits-display {
        font-size: 12px;
        padding: 0.5rem 0.75rem;
    }
}

/* MOBILE LAYOUT FORCE - FINAL OVERRIDE */
@media screen and (max-width: 768px) {
    /* Force single column layout on mobile */
    html body .generate-layout .content-area,
    html body .main .generate-layout .content-area,
    html body .main-content .generate-layout .content-area {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        height: auto !important;
        gap: 1rem !important;
        padding: 1rem !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    /* Force panels to stack vertically */
    html body .generate-layout .generation-panel {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    html body .generate-layout .preview-panel {
        order: 2 !important;
        width: 100% !important;
        min-height: 200px !important;
    }


}

/* Image Upload Styles for Image to Video */
.image-upload-container {
    margin-top: 0.5rem;
}

.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-upload-area:hover {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.05);
}

.image-upload-area.drag-over {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.upload-placeholder i {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #e5e7eb;
}

.upload-placeholder span {
    font-size: 14px;
    color: #9ca3af;
}

.uploaded-image {
    position: relative;
    display: none;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 200px;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.remove-image:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

/* Mobile responsiveness for image upload */
@media (max-width: 768px) {
    .image-upload-area {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }

    .upload-placeholder i {
        font-size: 1.5rem;
    }

    .upload-placeholder p {
        font-size: 14px;
    }

    .upload-placeholder span {
        font-size: 12px;
    }

    .uploaded-image {
        height: 150px;
    }
}

/* 生成布局相关样式 */
.generate-layout {
    margin-top: 2rem;
}

.content-area {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.panels-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.generation-panel {
    background-color: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 0;
}

.preview-panel {
    background-color: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 500px;
}

.preview-panel .placeholder-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.preview-panel .placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .panels-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .preview-panel {
        min-height: 300px;
    }
}

/* Key Features Section Styles */
.veo3-features-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    margin: 2rem 0;
    border-radius: 16px;
}

.features-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.key-feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: left;
}

.key-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.feature-icon-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-content .feature-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-content .feature-description {
    color: #b3b3b3;
    line-height: 1.6;
    font-size: 1rem;
}

/* Mobile responsive adjustments for Key Features */
@media (max-width: 768px) {
    .veo3-features-section {
        padding: 3rem 0;
        margin: 1rem 0;
    }
    
    .features-section-title {
        font-size: 2rem;
    }
    
    .features-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .key-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .key-feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon-container {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .feature-content .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-content .feature-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .veo3-features-section {
        padding: 2rem 0;
    }
    
    .features-section-title {
        font-size: 1.75rem;
    }
    
    .key-features-grid {
        padding: 0 0.5rem;
    }
    
    .key-feature-card {
        padding: 1rem;
    }
}

/* Homepage specific sections */

/* Home Video Types Section */
.home-video-types {
    padding: 6rem 0;
    background: #0a0a0a;
}

.home-video-types-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-video-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.home-video-type-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.home-video-type-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.home-video-type-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
}

.home-video-type-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.home-video-type-description {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.home-video-type-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.home-video-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Home AI Models Section */
.home-ai-models {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.home-ai-models-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-ai-models-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-ai-models-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 3rem;
}

.home-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.home-model-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.home-model-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.home-model-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.home-model-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.home-model-name {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.home-model-description {
    color: #b3b3b3;
    line-height: 1.6;
}

/* Home CTA Section */
.home-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

.home-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.home-cta-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-cta-subtitle {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.home-cta-btn.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

.home-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.home-cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.home-cta-btn.secondary:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    color: #fff;
}

/* Home Pricing Section */
.home-pricing {
    padding: 6rem 0;
    background: #0a0a0a;
}

/* Mobile responsive adjustments for homepage sections */
@media (max-width: 768px) {
    .home-video-type-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .home-video-type-card {
        padding: 2rem 1.5rem;
    }
    
    .home-video-type-icon {
        width: 64px;
        height: 64px;
    }
    
    .home-video-type-title {
        font-size: 1.25rem;
    }
    
    .home-ai-models-title,
    .home-cta-title {
        font-size: 2rem;
    }
    
    .home-models-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home-model-card {
        padding: 1.5rem;
    }
    
    .home-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .home-cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-video-types,
    .home-ai-models,
    .home-cta-section {
        padding: 4rem 0;
    }
    
    .home-video-type-card {
        padding: 1.5rem 1rem;
    }
    
    .home-ai-models-title,
    .home-cta-title {
        font-size: 1.75rem;
    }
    
    .home-ai-models-subtitle,
    .home-cta-subtitle {
        font-size: 1rem;
    }
}

/* 全新的FAQ样式 - 使用accordion风格 */
.faq {
    padding: 6rem 0;
    background: rgba(15, 24, 41, 0.3);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 全新的FAQ项目样式 */
.new-faq-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    user-select: none;
}

.new-faq-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.new-faq-item.active {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

/* 全新的问题标题样式 */
.new-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.new-faq-header:hover {
    background: rgba(59, 130, 246, 0.08);
}

.new-faq-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-faq-item.active .new-faq-header::before {
    opacity: 1;
}

.new-faq-question-text {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding-right: 1.5rem;
    word-wrap: break-word;
    white-space: normal;
}

.new-faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.new-faq-icon::before {
    content: '+';
    color: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.3s ease;
}

.new-faq-item.active .new-faq-icon {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

.new-faq-item.active .new-faq-icon::before {
    transform: rotate(90deg);
}

/* 全新的答案内容样式 */
.new-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
}

.new-faq-item.active .new-faq-content {
    max-height: 500px; /* 足够大的值来容纳内容 */
}

.new-faq-answer {
    padding: 0 2.5rem 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.new-faq-item.active .new-faq-answer {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2.2rem;
    }
    
    .new-faq-header {
        padding: 1.5rem 1.8rem;
        /* 移动端触摸优化 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .new-faq-question-text {
        font-size: 1.1rem;
        padding-right: 1rem;
    }
    
    .new-faq-answer {
        padding: 0 1.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 移动端FAQ图标稍微大一点 */
    .new-faq-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.8rem;
    }
    
    .new-faq-header {
        padding: 1.2rem 1.5rem;
    }
    
    .new-faq-question-text {
        font-size: 1rem;
    }
    
    .new-faq-answer {
        padding: 0 1.5rem 1.2rem;
        font-size: 0.95rem;
    }
}
