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

:root {
    --primary-blue: #3B82F6;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-dark: #111827;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-blue: #3B82F6;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-dark: #F3F4F6;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --bg-white: #1F2937;
    --bg-gray: #111827;
    --border-color: #374151;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    background-color: #000;
    color: var(--text-white);
    min-height: 100vh;
}

/* 视频背景容器 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.video-container {
    position: absolute;
    width: 50%;
    height: 50%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-top-left {
    top: 0;
    left: 0;
}

.video-top-right {
    top: 0;
    right: 0;
}

.video-bottom-left {
    bottom: 0;
    left: 0;
}

.video-bottom-right {
    bottom: 0;
    right: 0;
}

/* 遮罩层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.nav-left {
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.language-selector:hover {
    color: var(--text-white);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-white);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

.free-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #FBBF24;
    font-weight: 500;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: var(--text-gray);
}

/* 按钮样式 */
.btn-primary {
    padding: 10px 24px;
    background: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-create {
    padding: 10px 20px;
}

.btn-try {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* 中心内容区 */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 20px 40px;
    text-align: center;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-white {
    color: var(--text-white);
}

.title-blue {
    color: var(--primary-blue);
}

.hero-description {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* 视频创建区域样式 */
.video-creation-section {
    background: var(--bg-white);
    padding: 60px 80px;
    min-height: 100vh;
    position: relative;
    z-index: 20;
}

.creation-header {
    text-align: center;
    margin-bottom: 50px;
}

.creation-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.creation-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.creation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* 创建面板 */
.creation-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    min-height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 13px;
    color: var(--text-gray);
}

.free-trial-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #DBEAFE;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
}

/* 表单元素 */
.panel-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group.half {
    flex: 1;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: flex;
    gap: 16px;
}

/* 转换类型切换 */
.conversion-type {
    display: flex;
    gap: 12px;
}

.type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #F9FAFB;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-btn:hover {
    background: #F3F4F6;
}

.type-btn.active {
    border-color: var(--primary-blue);
    background: #ffffff;
    color: var(--primary-blue);
}

/* 音频开关 */
.audio-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-blue);
}

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

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* 生成视频按钮 */
.btn-generate {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* 示例推荐区 */
.examples-section {
    margin-top: 10px;
}

.examples-title {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.example-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.example-card:hover {
    background: #F3F4F6;
}

.example-card span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.example-tag {
    font-size: 12px;
    color: var(--text-gray);
}

/* 预览面板 */
.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 100%;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    flex-grow: 1;
}

.preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 20px;
}

.preview-button:hover {
    transform: scale(1.1);
}

.preview-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.preview-description {
    font-size: 14px;
    color: var(--text-gray);
    max-width: 280px;
}

/* 服务信息 */
.service-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.info-card svg {
    flex-shrink: 0;
}

.info-card div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-subtitle {
    font-size: 12px;
    color: var(--text-gray);
}

/* RTL 布局支持（阿拉伯语） */
html[dir="rtl"] {
    /* 翻转导航栏布局 */
    .nav-left {
        order: 2;
    }
    
    .nav-right {
        order: 1;
    }
    
    /* 翻转Logo文本 */
    .logo-text {
        direction: rtl;
    }
    
    /* 翻转导航链接 */
    .nav-links {
        flex-direction: row-reverse;
    }
    
    /* 翻转导航操作区 */
    .nav-actions {
        flex-direction: row-reverse;
    }
    
    /* 翻转语言选择器图标 */
    .language-selector svg {
        transform: rotate(180deg);
    }
    
    /* 翻转登录链接图标 */
    .login-link svg {
        transform: rotate(180deg);
    }
    
    /* 翻转免费试用按钮图标 */
    .btn-try svg {
        transform: rotate(180deg);
    }
    
    /* 翻转免费徽章图标 */
    .free-badge {
        flex-direction: row-reverse;
    }
    
    /* 翻转技术徽章图标 */
    .tech-badge {
        flex-direction: row-reverse;
    }
    
    /* 确保文本正确显示 */
    .hero-title,
    .hero-description,
    .hero-title span {
        direction: rtl;
        text-align: right;
    }
    
    /* 导航链接文本 */
    .nav-links a {
        direction: rtl;
    }
    
    /* 语言选择菜单RTL支持 */
    #languageDropdownMenu {
        right: auto !important;
        left: 0;
    }
    
    /* 翻转语言选择菜单中的图标 */
    #languageDropdownMenu svg {
        transform: rotate(180deg);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .creation-container {
        grid-template-columns: 1fr;
    }
    
    .video-creation-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    .free-badge {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .creation-title {
        font-size: 32px;
    }
    
    .creation-subtitle {
        font-size: 14px;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .service-info {
        grid-template-columns: 1fr;
    }
    
    .preview-content {
        padding: 60px 30px;
    }
}

@media (max-width: 480px) {
    .video-container {
        width: 100%;
        height: 25%;
    }
    
    .video-top-left {
        top: 0;
        left: 0;
    }
    
    .video-top-right {
        top: 25%;
        left: 0;
        right: 0;
    }
    
    .video-bottom-left {
        top: 50%;
        left: 0;
    }
    
    .video-bottom-right {
        top: 75%;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .tech-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* 视频展示区域样式 */
.showcase-section {
    background: #ffffff;
    padding: 80px 60px;
    position: relative;
    z-index: 20;
}

.showcase-header {
    text-align: center;
    margin-bottom: 50px;
}

.showcase-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.showcase-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000;
    overflow: hidden;
}

.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.video-thumbnail:hover video {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.play-button {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.video-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.video-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.video-duration::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M5 3V13L13 8L5 3Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.video-card-title {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

/* 视频展示区域响应式设计 */
@media (max-width: 1200px) {
    .showcase-section {
        padding: 60px 40px;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .showcase-section {
        padding: 40px 20px;
    }
    
    .showcase-title {
        font-size: 32px;
    }
    
    .showcase-subtitle {
        font-size: 14px;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-card-title {
        font-size: 14px;
    }
}

/* 用户证言区域样式 */
.testimonials-section {
    background: #f9fafb;
    padding: 80px 60px;
    position: relative;
    z-index: 20;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.testimonials-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    opacity: 0.3;
    display: flex;
    align-items: flex-start;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.testimonial-rating svg {
    flex-shrink: 0;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-position {
    font-size: 13px;
    color: var(--text-gray);
}

/* 证言区域响应式设计 */
@media (max-width: 1024px) {
    .testimonials-section {
        padding: 60px 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonials-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 20px;
    }
    
    .testimonials-header {
        margin-bottom: 40px;
    }
    
    .testimonials-title {
        font-size: 32px;
    }
    
    .testimonials-subtitle {
        font-size: 14px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
}

/* RTL 布局支持（证言区域） */
html[dir="rtl"] .testimonials-grid {
    direction: rtl;
}

html[dir="rtl"] .user-avatar {
    order: 2;
}

html[dir="rtl"] .user-details {
    order: 1;
}

/* 定价区域样式 */
.pricing-section {
    background: white;
    padding: 80px 60px;
    position: relative;
    z-index: 20;
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.pricing-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
}

.billing-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-gray);
}

.billing-btn.active {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.save-badge {
    margin-left: 8px;
    padding: 4px 12px;
    background: #10B981;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.pricing-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

.pricing-card.popular {
    border-color: var(--primary-blue);
    background: linear-gradient(to bottom, #F0F9FF, white);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--primary-blue);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.plan-description {
    font-size: 14px;
    color: var(--text-gray);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.price-period {
    font-size: 16px;
    color: var(--text-gray);
}

.plan-billed-yearly {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.yearly-price {
    font-weight: 600;
    color: var(--text-dark);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.feature-item svg {
    flex-shrink: 0;
}

.plan-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.plan-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.plan-btn.primary:hover {
    background: #2563EB;
}

.plan-btn.secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #E5E7EB;
}

.plan-btn.secondary:hover {
    border-color: var(--text-dark);
}

/* 积分购买区域 */
.credits-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.credits-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.credits-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.credits-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.credits-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.credits-card:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.credits-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.credits-amount span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
}

.credits-videos {
    font-size: 14px;
    color: var(--text-gray);
}

.credits-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.credits-btn {
    margin-top: 8px;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.credits-btn:hover {
    background: #2563EB;
}

/* 定价区域响应式设计 */
@media (max-width: 1024px) {
    .pricing-section {
        padding: 60px 40px;
    }
    
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pricing-card:nth-child(2) {
        grid-column: span 2;
    }
    
    .pricing-title {
        font-size: 36px;
    }
    
    .credits-cards {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 20px;
    }
    
    .pricing-header {
        margin-bottom: 40px;
    }
    
    .pricing-title {
        font-size: 32px;
    }
    
    .pricing-subtitle {
        font-size: 14px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .pricing-card:nth-child(2) {
        grid-column: span 1;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .credits-section {
        margin-top: 40px;
    }
    
    .credits-cards {
        grid-template-columns: 1fr;
    }
    
    .credits-title {
        font-size: 24px;
    }
}

/* RTL 布局支持（定价区域） */
html[dir="rtl"] .pricing-card:nth-child(2) {
    grid-column: span 2;
}

html[dir="rtl"] .pricing-cards {
    direction: rtl;
}

html[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .save-badge {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 1024px) {
    html[dir="rtl"] .pricing-cards {
        direction: rtl;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .pricing-card:nth-child(2) {
        grid-column: span 1;
    }
}

/* 创作者工作流程区域样式 */
.workflow-section {
    background: #F9FAFB;
    padding: 100px 60px;
    position: relative;
    z-index: 20;
}

.workflow-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.workflow-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.workflow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #E5E7EB;
}

.workflow-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.workflow-icon svg {
    width: 40px;
    height: 40px;
}

.workflow-icon-blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.workflow-icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.workflow-icon-orange {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.workflow-icon-pink {
    background: linear-gradient(135deg, #EC4899, #DB2777);
}

.workflow-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.workflow-card-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    flex-grow: 1;
}

/* 工作流程区域响应式设计 */
@media (max-width: 1024px) {
    .workflow-section {
        padding: 80px 40px;
    }
    
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .workflow-title {
        font-size: 36px;
    }
    
    .workflow-subtitle {
        font-size: 16px;
    }
    
    .workflow-card {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .workflow-section {
        padding: 60px 20px;
    }
    
    .workflow-header {
        margin-bottom: 40px;
    }
    
    .workflow-title {
        font-size: 32px;
    }
    
    .workflow-subtitle {
        font-size: 15px;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .workflow-card {
        padding: 24px 20px;
    }
    
    .workflow-icon {
        width: 56px;
        height: 56px;
    }
    
    .workflow-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .workflow-card-title {
        font-size: 18px;
    }
    
    .workflow-card-desc {
        font-size: 14px;
    }
}

/* RTL 布局支持（工作流程区域） */
html[dir="rtl"] .workflow-grid {
    direction: rtl;
}

html[dir="rtl"] .workflow-icon {
    transform: scaleX(-1);
}

/* CTA区域样式 */
.cta-section {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    padding: 100px 60px;
    position: relative;
    z-index: 20;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.cta-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.cta-btn-primary {
    background: white;
    color: #3B82F6;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

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

.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* CTA区域响应式设计 */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-value {
        font-size: 32px;
    }
}

/* 页脚样式 */
.footer {
    background: white;
    padding: 60px 60px 30px;
    border-top: 1px solid #E5E7EB;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo svg {
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-link {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #F9FAFB;
    color: var(--text-gray);
    transition: all 0.2s ease;
}

.footer-contact-link:hover {
    background: var(--primary-blue);
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--primary-blue);
}

/* 页脚响应式设计 */
@media (max-width: 1024px) {
    .footer {
        padding: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 20px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-contact-links {
        flex-direction: row;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* RTL 布局支持（CTA和页脚） */
html[dir="rtl"] .cta-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cta-section {
    direction: rtl;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    html[dir="rtl"] .cta-buttons {
        flex-direction: column;
    }
}

/* 深色主题样式 */
[data-theme="dark"] body {
    background-color: #0F172A;
}

[data-theme="dark"] .navbar {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
}

[data-theme="dark"] .creation-panel,
[data-theme="dark"] .workflow-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .credits-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .example-card,
[data-theme="dark"] .type-btn {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .panel-header {
    border-color: var(--border-color);
}

[data-theme="dark"] .panel-title,
[data-theme="dark"] .creation-title,
[data-theme="dark"] .showcase-title,
[data-theme="dark"] .testimonials-title,
[data-theme="dark"] .pricing-title,
[data-theme="dark"] .workflow-title,
[data-theme="dark"] .cta-title,
[data-theme="dark"] .footer-logo-text,
[data-theme="dark"] .footer-nav-title,
[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .video-card-title,
[data-theme="dark"] .plan-name,
[data-theme="dark"] .credits-amount,
[data-theme="dark"] .credits-price,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .user-name {
    color: var(--text-dark);
}

[data-theme="dark"] .panel-subtitle,
[data-theme="dark"] .creation-subtitle,
[data-theme="dark"] .showcase-subtitle,
[data-theme="dark"] .testimonials-subtitle,
[data-theme="dark"] .pricing-subtitle,
[data-theme="dark"] .workflow-subtitle,
[data-theme="dark"] .cta-description,
[data-theme="dark"] .footer-brand-desc,
[data-theme="dark"] .footer-nav-link,
[data-theme="dark"] .footer-legal-link,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .plan-description,
[data-theme="dark"] .workflow-card-desc,
[data-theme="dark"] .credits-videos,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .user-position,
[data-theme="dark"] .preview-description {
    color: var(--text-gray);
}

[data-theme="dark"] .form-label,
[data-theme="dark"] .toggle-label {
    color: var(--text-dark);
}

[data-theme="dark"] .preview-content,
[data-theme="dark"] .footer {
    background: var(--bg-gray);
}

[data-theme="dark"] .video-creation-section {
    background: var(--bg-gray);
}

[data-theme="dark"] .testimonials-section,
[data-theme="dark"] .workflow-section {
    background: var(--bg-gray);
}

[data-theme="dark"] .video-card {
    background: var(--bg-white);
}
[data-theme="dark"] .showcase-section,
[data-theme="dark"] .pricing-section,
[data-theme="dark"] .footer {
    background: var(--bg-white);
}

[data-theme="dark"] .pricing-card.popular {
    background: linear-gradient(to bottom, #1E3A5F, var(--bg-white));
    border-color: #3B82F6;
}

[data-theme="dark"] .billing-toggle {
    background: var(--bg-white);
}

[data-theme="dark"] .billing-btn.active {
    background: var(--bg-gray);
}

[data-theme="dark"] .service-info {
    background: var(--bg-white);
}

/* 移动端导航样式优化 */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
        backdrop-filter: blur(10px);
    }
    
    [data-theme="dark"] .navbar {
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    .free-badge {
        display: none;
    }
    
    .language-selector span {
        display: none;
    }
    
    .language-selector svg {
        margin: 0;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .login-link span {
        display: none;
    }
    
    .login-link svg {
        margin: 0;
    }
    
    .btn-create {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .login-link svg {
        width: 16px;
        height: 16px;
    }
    
    .btn-create {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* 页脚样式优化 */
    .footer {
        padding: 24px 16px;
    }
    
    .footer-nav {
        gap: 24px;
    }
    
    .footer-logo-text {
        font-size: 20px;
    }
    
    .footer-brand-desc {
        font-size: 13px;
    }
    
    .footer-nav-title {
        font-size: 14px;
    }
    
    .footer-nav-link {
        font-size: 12px;
    }
    
    .footer-contact-link {
        font-size: 12px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    
    .footer-legal-link {
        font-size: 11px;
    }
    
    .footer-contact-links {
        gap: 16px;
    }
    
    .footer-contact-link svg {
        width: 18px;
        height: 18px;
    }
}

/* 确保夜间模式下视频创建区域使用深色背景 */
[data-theme="dark"] .video-creation-section {
    background: #111827 !important;
}

/* ==================== RTL布局支持（阿拉伯语） ==================== */

/* 基础RTL设置 */
html[dir="rtl"] {
    text-align: right;
}

/* 导航栏RTL */
html[dir="rtl"] .navbar {
    direction: rtl;
}

html[dir="rtl"] .nav-left,
html[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links li {
    text-align: right;
}

html[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

/* 语言选择器 */
html[dir="rtl"] .language-selector svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .language-selector {
    flex-direction: row-reverse;
}

/* 登录链接 */
html[dir="rtl"] .login-link {
    flex-direction: row-reverse;
    gap: 6px;
}

/* Hero区域RTL */
html[dir="rtl"] .hero-title {
    text-align: right;
}

html[dir="rtl"] .hero-description {
    text-align: right;
}

html[dir="rtl"] .tech-badge {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .cta-buttons {
    flex-direction: row;
}

/* 视频创建区域RTL */
html[dir="rtl"] .creation-header {
    text-align: right;
}

html[dir="rtl"] .creation-title {
    text-align: right;
}

html[dir="rtl"] .creation-subtitle {
    text-align: right;
}

html[dir="rtl"] .panel-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .panel-title {
    text-align: right;
}

html[dir="rtl"] .panel-subtitle {
    text-align: right;
}

html[dir="rtl"] .form-label {
    text-align: right;
}

html[dir="rtl"] .form-textarea {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .type-btn {
    text-align: right;
}

html[dir="rtl"] .example-card {
    text-align: right;
}

html[dir="rtl"] .preview-content {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .preview-title {
    text-align: right;
}

html[dir="rtl"] .preview-description {
    text-align: right;
}

html[dir="rtl"] .service-info {
    text-align: right;
}

/* 展示区域RTL */
html[dir="rtl"] .showcase-section {
    direction: rtl;
}

html[dir="rtl"] .showcase-header {
    text-align: right;
}

html[dir="rtl"] .showcase-title {
    text-align: right;
}

html[dir="rtl"] .showcase-subtitle {
    text-align: right;
}

html[dir="rtl"] .showcase-categories {
    direction: rtl;
}

html[dir="rtl"] .category-btn {
    text-align: right;
}

html[dir="rtl"] .video-card {
    direction: rtl;
}

html[dir="rtl"] .video-card-title {
    text-align: right;
}

/* 证言区域RTL */
html[dir="rtl"] .testimonials-section {
    direction: rtl;
}

html[dir="rtl"] .testimonials-header {
    text-align: right;
}

html[dir="rtl"] .testimonials-title {
    text-align: right;
}

html[dir="rtl"] .testimonials-subtitle {
    text-align: right;
}

html[dir="rtl"] .testimonial-card {
    direction: rtl;
}

html[dir="rtl"] .testimonial-text {
    text-align: right;
}

html[dir="rtl"] .user-info {
    text-align: right;
}

html[dir="rtl"] .user-name {
    text-align: right;
}

html[dir="rtl"] .user-position {
    text-align: right;
}

/* 定价区域RTL */
html[dir="rtl"] .pricing-section {
    direction: rtl;
}

html[dir="rtl"] .pricing-header {
    text-align: right;
}

html[dir="rtl"] .pricing-title {
    text-align: right;
}

html[dir="rtl"] .pricing-subtitle {
    text-align: right;
}

html[dir="rtl"] .billing-toggle {
    flex-direction: row;
}

html[dir="rtl"] .billing-btn {
    text-align: right;
}

html[dir="rtl"] .pricing-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .plan-name {
    text-align: right;
}

html[dir="rtl"] .plan-description {
    text-align: right;
}

html[dir="rtl"] .plan-features {
    text-align: right;
}

html[dir="rtl"] .plan-features li {
    text-align: right;
}

html[dir="rtl"] .credits-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .credits-amount {
    text-align: right;
}

html[dir="rtl"] .credits-price {
    text-align: right;
}

html[dir="rtl"] .credits-videos {
    text-align: right;
}

/* 工作流程区域RTL */
html[dir="rtl"] .workflow-section {
    direction: rtl;
}

html[dir="rtl"] .workflow-header {
    text-align: right;
}

html[dir="rtl"] .workflow-title {
    text-align: right;
}

html[dir="rtl"] .workflow-subtitle {
    text-align: right;
}

html[dir="rtl"] .workflow-card {
    direction: rtl;
}

html[dir="rtl"] .workflow-card-title {
    text-align: right;
}

html[dir="rtl"] .workflow-card-desc {
    text-align: right;
}

/* CTA区域RTL */
html[dir="rtl"] .cta-section {
    direction: rtl;
}

html[dir="rtl"] .cta-title {
    text-align: right;
}

html[dir="rtl"] .cta-description {
    text-align: right;
}

html[dir="rtl"] .cta-buttons {
    flex-direction: row;
}

html[dir="rtl"] .cta-stats {
    flex-direction: row;
}

html[dir="rtl"] .stat-item {
    text-align: right;
}

/* 页脚RTL */
html[dir="rtl"] .footer {
    direction: rtl;
}

html[dir="rtl"] .footer-brand {
    text-align: right;
}

html[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-brand-desc {
    text-align: right;
}

html[dir="rtl"] .footer-nav {
    direction: rtl;
}

html[dir="rtl"] .footer-nav-title {
    text-align: right;
}

html[dir="rtl"] .footer-nav-links {
    text-align: right;
}

html[dir="rtl"] .footer-nav-link {
    text-align: right;
}

html[dir="rtl"] .footer-contact-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-copyright {
    text-align: right;
}

html[dir="rtl"] .footer-legal {
    text-align: right;
}

html[dir="rtl"] .footer-legal-link {
    text-align: right;
}

/* 按钮RTL调整 */
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-secondary {
    text-align: center;
}

/* 移动端RTL适配 */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        display: none;
    }
    
    html[dir="rtl"] .nav-actions {
        flex-direction: row-reverse;
    }
    
    html[dir="rtl"] .cta-buttons {
        flex-direction: column;
    }
    
    html[dir="rtl"] .billing-toggle {
        flex-direction: row;
    }
    
    html[dir="rtl"] .form-row {
        flex-direction: column;
    }
    
    html[dir="rtl"] .panel-header {
        flex-direction: column;
    }
    
    html[dir="rtl"] .examples-grid {
        grid-template-columns: 1fr;
    }
    
    html[dir="rtl"] .service-info {
        grid-template-columns: 1fr;
    }
    
    html[dir="rtl"] .footer-nav {
        grid-template-columns: 1fr;
    }
    
    html[dir="rtl"] .footer-contact-links {
        flex-direction: row;
    }
    
    html[dir="rtl"] .footer-bottom {
        flex-direction: column;
    }
    
    html[dir="rtl"] .footer-legal {
        flex-direction: column;
    }
}

/* 特殊元素RTL调整 */
html[dir="rtl"] svg {
    display: inline-block;
}

/* 确保图标方向正确 */
html[dir="rtl"] .theme-toggle svg {
    transform: scaleX(-1);
}

/* 箭头和图标翻转 */
html[dir="rtl"] .login-link svg,
html[dir="rtl"] .footer-contact-link svg {
    transform: scaleX(-1);
}

/* 语言选择框RTL适配 */
html[dir="rtl"] #languageDropdownMenu {
    right: auto !important;
    left: 0 !important;
}

/* 语言选择器RTL */
html[dir="rtl"] .language-selector {
    flex-direction: row-reverse;
}

/* 语言选择框内的语言项 */
html[dir="rtl"] #languageDropdownMenu .language-item {
    text-align: right;
    direction: rtl;
}





/* ===================================
   注册页面样式（所有样式仅在 register.html 生效）
   =================================== */

/* 只在注册页面生效的样式 */
body.register-page {
    overflow-x: hidden;
    overflow-y: auto;
}

body.register-page .register-container {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

body.register-page .register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* 左侧：欢迎信息 */
body.register-page .register-welcome {
    padding: 60px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.register-page .welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    align-self: flex-start;
}

body.register-page .register-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

body.register-page .register-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

body.register-page .register-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.register-page .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

body.register-page .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.register-page .feature-icon svg {
    color: white;
}

body.register-page .feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

body.register-page .feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* 右侧：注册表单 */
body.register-page .register-form-wrapper {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.register-page .register-form-container {
    max-width: 480px;
    margin: 0 auto;
}

body.register-page .form-header {
    margin-bottom: 32px;
}

body.register-page .form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

body.register-page .form-header p {
    font-size: 14px;
    color: var(--text-gray);
}

body.register-page .register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.register-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.register-page .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

body.register-page .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

body.register-page .input-wrapper input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

body.register-page .input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.register-page .input-wrapper input::placeholder {
    color: var(--text-gray);
}

body.register-page .input-icon {
    position: absolute;
    right: 16px;
    color: var(--text-gray);
    pointer-events: none;
}

/* 当密码框有切换按钮时，隐藏输入图标 */
body.register-page .input-wrapper:has(.password-toggle) .input-icon {
    display: none;
}

body.register-page .password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: color 0.3s ease;
    z-index: 10;
}

body.register-page .password-toggle:hover {
    color: var(--primary-blue);
}

body.register-page .password-toggle svg {
    width: 20px;
    height: 20px;
}

/* 复选框样式 */
body.register-page .checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

body.register-page .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

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

body.register-page .checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    transition: all 0.3s ease;
    position: relative;
    margin-top: 2px;
}

body.register-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

body.register-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.register-page .checkbox-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

body.register-page .checkbox-text a:hover {
    text-decoration: underline;
}

/* 注册按钮 */
body.register-page .btn-register {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

body.register-page .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* 分割线 */
body.register-page .form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

body.register-page .form-divider::before,
body.register-page .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

body.register-page .form-divider span {
    font-size: 14px;
    color: var(--text-gray);
}

/* 社交登录 */
body.register-page .social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.register-page .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.register-page .social-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

body.register-page .social-btn svg {
    width: 24px;
    height: 24px;
}

/* 表单底部 */
body.register-page .form-footer {
    text-align: center;
    margin-top: 24px;
}

body.register-page .form-footer p {
    font-size: 14px;
    color: var(--text-gray);
}

body.register-page .form-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

body.register-page .form-footer a:hover {
    text-decoration: underline;
}

/* 夜间模式适配 */
[data-theme="dark"] body.register-page .register-wrapper {
    background: var(--bg-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body.register-page .register-form-wrapper {
    background: var(--bg-white);
}

[data-theme="dark"] body.register-page .form-header h2,
[data-theme="dark"] body.register-page .form-group label,
[data-theme="dark"] body.register-page .checkbox-label,
[data-theme="dark"] body.register-page .social-btn {
    color: var(--text-dark);
}

[data-theme="dark"] body.register-page .form-header p,
[data-theme="dark"] body.register-page .input-wrapper input::placeholder,
[data-theme="dark"] body.register-page .form-divider span,
[data-theme="dark"] body.register-page .form-footer p {
    color: var(--text-gray);
}

[data-theme="dark"] body.register-page .input-wrapper input {
    background: var(--bg-gray);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] body.register-page .social-btn {
    background: var(--bg-gray);
    border-color: var(--border-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    body.register-page .register-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 600px;
    }

    body.register-page .register-welcome {
        padding: 40px;
    }

    body.register-page .register-title {
        font-size: 32px;
    }

    body.register-page .register-subtitle {
        font-size: 16px;
    }

    body.register-page .register-form-wrapper {
        padding: 40px;
    }

    body.register-page .form-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    body.register-page .register-container {
        padding: 80px 16px 40px;
    }

    body.register-page .register-wrapper {
        border-radius: 16px;
    }

    body.register-page .register-welcome,
    body.register-page .register-form-wrapper {
        padding: 32px 24px;
    }

    body.register-page .register-title {
        font-size: 28px;
    }

    body.register-page .welcome-badge {
        font-size: 13px;
    }

    body.register-page .register-subtitle {
        font-size: 15px;
    }

    body.register-page .feature-item {
        gap: 12px;
    }

    body.register-page .feature-icon {
        width: 40px;
        height: 40px;
    }

    body.register-page .feature-text h3 {
        font-size: 15px;
    }

    body.register-page .feature-text p {
        font-size: 13px;
    }

    body.register-page .form-header h2 {
        font-size: 22px;
    }

    body.register-page .form-header p {
        font-size: 13px;
    }

    body.register-page .input-wrapper input {
        padding: 12px 44px 12px 14px;
        font-size: 14px;
    }

    body.register-page .btn-register {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* 注册页面RTL支持 */
html[dir="rtl"] body.register-page .register-wrapper {
    direction: rtl;
}

html[dir="rtl"] body.register-page .welcome-badge {
    align-self: flex-end;
}

html[dir="rtl"] body.register-page .register-title,
html[dir="rtl"] body.register-page .register-subtitle {
    text-align: right;
}

html[dir="rtl"] body.register-page .feature-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] body.register-page .input-wrapper input {
    padding: 12px 16px 12px 48px;
}

html[dir="rtl"] body.register-page .input-icon {
    right: auto;
    left: 16px;
}

html[dir="rtl"] body.register-page .password-toggle {
    right: auto;
    left: 16px;
}

html[dir="rtl"] body.register-page .checkbox-label {
    flex-direction: row-reverse;
}

html[dir="rtl"] body.register-page .checkbox-custom {
    margin-top: 2px;
    margin-left: 10px;
}

html[dir="rtl"] body.register-page .btn-register svg {
    transform: scaleX(-1);
}

html[dir="rtl"] body.register-page .form-divider {
    flex-direction: row;
}

html[dir="rtl"] body.register-page .social-btn {
    flex-direction: row-reverse;
}

/* ===================================
   登录页面样式（所有样式仅在 login.html 生效）
   =================================== */

/* 只在登录页面生效的样式 */
body.login-page {
    overflow-x: hidden;
    overflow-y: auto;
}

body.login-page .login-container {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

body.login-page .login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* 左侧：欢迎信息 */
body.login-page .login-welcome {
    padding: 60px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.login-page .welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    align-self: flex-start;
}

body.login-page .login-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

body.login-page .login-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

body.login-page .login-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.login-page .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

body.login-page .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.login-page .feature-icon svg {
    color: white;
}

body.login-page .feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

body.login-page .feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* 右侧：登录表单 */
body.login-page .login-form-wrapper {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.login-page .login-form-container {
    max-width: 480px;
    margin: 0 auto;
}

body.login-page .form-header {
    margin-bottom: 32px;
}

body.login-page .form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

body.login-page .form-header p {
    font-size: 14px;
    color: var(--text-gray);
}

body.login-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.login-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.login-page .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

body.login-page .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

body.login-page .input-wrapper input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

body.login-page .input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.login-page .input-wrapper input::placeholder {
    color: var(--text-gray);
}

body.login-page .input-icon {
    position: absolute;
    right: 16px;
    color: var(--text-gray);
    pointer-events: none;
}

/* 当密码框有切换按钮时，隐藏输入图标 */
body.login-page .input-wrapper:has(.password-toggle) .input-icon {
    display: none;
}

body.login-page .password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: color 0.3s ease;
    z-index: 10;
}

body.login-page .password-toggle:hover {
    color: var(--primary-blue);
}

body.login-page .password-toggle svg {
    width: 20px;
    height: 20px;
}

/* 表单操作区域 */
body.login-page .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.login-page .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-dark);
}

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

body.login-page .checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    transition: all 0.3s ease;
    position: relative;
}

body.login-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

body.login-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.login-page .checkbox-text {
    line-height: 1.5;
}

body.login-page .forgot-password {
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.login-page .forgot-password:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* 登录按钮 */
body.login-page .btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

body.login-page .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* 分割线 */
body.login-page .form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

body.login-page .form-divider::before,
body.login-page .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

body.login-page .form-divider span {
    font-size: 14px;
    color: var(--text-gray);
}

/* 社交登录 */
body.login-page .social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.login-page .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.login-page .social-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

body.login-page .social-btn svg {
    width: 24px;
    height: 24px;
}

/* 表单底部 */
body.login-page .form-footer {
    text-align: center;
    margin-top: 24px;
}

body.login-page .form-footer p {
    font-size: 14px;
    color: var(--text-gray);
}

body.login-page .form-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

body.login-page .form-footer a:hover {
    text-decoration: underline;
}

/* 夜间模式适配 */
[data-theme="dark"] body.login-page .login-wrapper {
    background: var(--bg-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body.login-page .login-form-wrapper {
    background: var(--bg-white);
}

[data-theme="dark"] body.login-page .form-header h2,
[data-theme="dark"] body.login-page .form-group label,
[data-theme="dark"] body.login-page .checkbox-label,
[data-theme="dark"] body.login-page .social-btn {
    color: var(--text-dark);
}

[data-theme="dark"] body.login-page .form-header p,
[data-theme="dark"] body.login-page .input-wrapper input::placeholder,
[data-theme="dark"] body.login-page .form-divider span,
[data-theme="dark"] body.login-page .form-footer p {
    color: var(--text-gray);
}

[data-theme="dark"] body.login-page .input-wrapper input {
    background: var(--bg-gray);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] body.login-page .social-btn {
    background: var(--bg-gray);
    border-color: var(--border-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    body.login-page .login-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 600px;
    }

    body.login-page .login-welcome {
        padding: 40px;
    }

    body.login-page .login-title {
        font-size: 32px;
    }

    body.login-page .login-subtitle {
        font-size: 16px;
    }

    body.login-page .login-form-wrapper {
        padding: 40px;
    }

    body.login-page .form-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    body.login-page .login-container {
        padding: 80px 16px 40px;
    }

    body.login-page .login-wrapper {
        border-radius: 16px;
    }

    body.login-page .login-welcome,
    body.login-page .login-form-wrapper {
        padding: 32px 24px;
    }

    body.login-page .login-title {
        font-size: 28px;
    }

    body.login-page .welcome-badge {
        font-size: 13px;
    }

    body.login-page .login-subtitle {
        font-size: 15px;
    }

    body.login-page .feature-item {
        gap: 12px;
    }

    body.login-page .feature-icon {
        width: 40px;
        height: 40px;
    }

    body.login-page .feature-text h3 {
        font-size: 15px;
    }

    body.login-page .feature-text p {
        font-size: 13px;
    }

    body.login-page .form-header h2 {
        font-size: 22px;
    }

    body.login-page .form-header p {
        font-size: 13px;
    }

    body.login-page .input-wrapper input {
        padding: 12px 44px 12px 14px;
        font-size: 14px;
    }

    body.login-page .btn-login {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* 登录页面RTL支持 */
html[dir="rtl"] body.login-page .login-wrapper {
    direction: rtl;
}

html[dir="rtl"] body.login-page .welcome-badge {
    align-self: flex-end;
}

html[dir="rtl"] body.login-page .login-title,
html[dir="rtl"] body.login-page .login-subtitle {
    text-align: right;
}

html[dir="rtl"] body.login-page .feature-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] body.login-page .input-wrapper input {
    padding: 12px 16px 12px 48px;
}

html[dir="rtl"] body.login-page .input-icon {
    right: auto;
    left: 16px;
}

html[dir="rtl"] body.login-page .password-toggle {
    right: auto;
    left: 16px;
}

html[dir="rtl"] body.login-page .btn-login svg {
    transform: scaleX(-1);
}

html[dir="rtl"] body.login-page .form-divider {
    flex-direction: row;
}

html[dir="rtl"] body.login-page .social-btn {
    flex-direction: row-reverse;
}
