/* Main CSS file for Sora 2 AI Video website - Clean version */

/* 导入移动端菜单样式 */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f172a;
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 20px 20px;
}

a {
    text-decoration: none;
    color: #60a5fa;
    transition: all 0.3s ease;
}

a:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* 统一容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Header styles */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    min-height: 70px;
}

/* Logo区域 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 700;
    color: #60a5fa;
}

.logo-icon {
    color: #3b82f6;
}

/* 导航区域 */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

nav ul li {
    margin: 0 2px;
}

nav ul li a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.1);
}

/* 右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
    color: #8B5CF6;
}

/* PC端用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.user-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}

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

.stat-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

/* 头部右侧按钮区域 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons > * {
    flex-shrink: 0;
}

.auth-buttons.logged-in .btn.btn-outline {
    display: none !important;
}

/* 登出按钮样式 */
.logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 语言选择器 */
.language-selector {
    min-width: 80px;
    max-width: 120px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-selector:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.language-selector option {
    background: #1a1a1a;
    color: white;
    padding: 8px;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .container,
    .content-wrapper {
        padding: 0 10px !important;
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .content-wrapper[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    header {
        position: relative;
        z-index: 1000;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .header-container {
        padding: 0 10px !important;
        position: relative;
        justify-content: center;
        height: 60px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo {
        justify-content: center;
    }
    
    nav {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    /* 确保所有section都占满宽度 */
    section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Hero section 移动端优化 */
    .hero-section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 40px 0 !important;
    }
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
}

.btn-outline:hover {
    background: #60a5fa;
    color: #0f172a;
}

/* Hero section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Content sections */
.content-section {
    padding: 40px 0;
}

/* 移动端内容区域样式 */
@media (max-width: 768px) {
    .content-section {
        padding: 20px 0 !important;
    }
    
    /* 移除所有section的内联padding对移动端的影响 */
    section[style*="padding"] {
        padding: 20px 0 !important;
    }
}

/* Footer - 参考 sora2-website-master 样式 */
.custom-footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 30px 0;
    font-size: 1em;
    border-top: 1px solid #222;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 0 30px;
}

.footer-section.footer-brand {
    flex: 1 1 320px;
    min-width: 260px;
    margin-bottom: 30px;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.footer-desc {
    color: #aaa;
    margin-bottom: 18px;
    font-size: 1em;
    line-height: 1.6;
    max-width: 350px;
}

.footer-copyright {
    color: #666;
    font-size: 0.95em;
    margin-top: 18px;
}

.footer-section.footer-links {
    display: flex;
    flex: 2 1 500px;
    gap: 60px;
    justify-content: flex-end;
    min-width: 320px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.footer-col-title {
    color: #00BFFF;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-size: 1em;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
    font-size: 1em;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .footer-section.footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container,
    .content-wrapper {
        padding: 0 8px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 强制所有内容区域占满宽度 */
    section,
    .hero-section,
    .content-section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 确保网格布局在小屏幕上正确显示 */
    div[style*="display:grid"],
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
}

/* 法律页面样式 - 参考 sora2-website-master */
.terms-section,
.privacy-section {
    min-height: 100vh;
    background: #0f172a;
    padding: 100px 0 80px 0;
}

.terms-section h1,
.privacy-section h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-content,
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #181818;
    color: #ffffff;
    padding: 40px 32px 48px 32px;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    font-size: 1.08rem;
    line-height: 1.8;
}

.terms-content h2,
.privacy-content h2 {
    color: #60a5fa;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #60a5fa;
}

.terms-content h3,
.privacy-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 1.2rem;
    color: #e2e8f0;
}

.terms-content ul,
.privacy-content ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.terms-content strong,
.privacy-content strong {
    color: #ffffff;
    font-weight: 600;
}

.terms-content a,
.privacy-content a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-content a:hover,
.privacy-content a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* 移动端法律页面优化 */
@media (max-width: 768px) {
    .terms-section,
    .privacy-section {
        padding: 80px 0 60px 0;
    }
    
    .terms-section h1,
    .privacy-section h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .terms-content,
    .privacy-content {
        margin: 0 20px;
        padding: 30px 24px 36px 24px;
        font-size: 1rem;
    }
    
    .terms-content h2,
    .privacy-content h2 {
        font-size: 1.3rem;
    }
    
    .terms-content h3,
    .privacy-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .terms-section h1,
    .privacy-section h1 {
        font-size: 2rem;
    }
    
    .terms-content,
    .privacy-content {
        margin: 0 10px;
        padding: 25px 20px 30px 20px;
        font-size: 0.95rem;
    }
}

/* 用户下拉菜单样式 */
.user-dropdown a:hover {
    background: rgba(96, 165, 250, 0.1) !important;
    color: #60a5fa !important;
}

.user-dropdown .user-email {
    border-bottom: 1px solid #333;
    color: #aaa;
    font-size: 12px;
}

/* 移动端菜单样式 - 参考图片中的左侧滑出菜单设计 */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    border-right: 1px solid #333;
}

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

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

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



/* 移动端菜单容器 */
.mobile-menu-container {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 1. 菜单标题 */
.mobile-menu-title {
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.mobile-menu-title h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* 2. 用户统计信息区域 */
.mobile-stats-section {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mobile-stat-item .stat-icon {
    font-size: 18px;
}

.mobile-stat-item .stat-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    margin-left: 12px;
}

.mobile-stat-item .stat-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

/* 3. 导航链接区域 */
.mobile-nav-section {
    flex: 1;
    padding: 0;
}

.mobile-nav-item {
    display: block;
    padding: 18px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #8B5CF6;
}

.mobile-nav-item:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
}

/* 4. 用户区域 */
.mobile-user-section {
    padding: 20px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* 登录按钮样式 */
.mobile-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-1px);
}

/* 用户信息样式（已登录状态） */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.mobile-user-info i {
    color: #888;
    font-size: 12px;
}

/* 用户下拉菜单 */
.mobile-user-dropdown {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 5. 语言选择器区域 */
.mobile-lang-section {
    padding: 20px;
    border-top: 1px solid #333;
}

.mobile-language-selector {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
}

.mobile-language-selector option {
    background: #1a1a1a;
    color: white;
}



/* 移动端响应式 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    header nav,
    header .header-right {
        display: none;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
    }
    
    .mobile-nav-item {
        padding: 15px 18px;
        font-size: 15px;
    }
    
    .mobile-menu-title {
        padding: 15px;
    }
    
    .mobile-stats-section {
        padding: 15px;
    }
    
    .mobile-user-section {
        padding: 15px;
    }
    
    .mobile-lang-section {
        padding: 15px;
    }
}

/* 平滑滚动 */
.mobile-menu {
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #888;
}