/* AI视频平台 - 主样式文件 */
/* 合并了 common.css, bundle.css, button-styles.css, video-error-styles.css 的内容 */

/* ==========================================================================
   CSS自定义属性 - 设计令牌
   ========================================================================== */

:root {
    /* 颜色系统 */
    --color-primary: #4285f4;
    --color-primary-gradient-start: #667eea;
    --color-primary-gradient-end: #764ba2;
    --color-secondary: #666;
    --color-danger: #ef4444;
    --color-danger-dark: #dc2626;
    --color-danger-darker: #b91c1c;
    
    /* 背景颜色 */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-input: #333;
    --bg-modal: rgba(0, 0, 0, 0.8);
    
    /* 文本颜色 */
    --text-primary: #ffffff;
    --text-secondary: #ccc;
    --text-muted: #666;
    
    /* 边框颜色 */
    --border-primary: #333;
    --border-secondary: #555;
    --border-focus: var(--color-primary);
    
    /* 间距系统 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 30px;
    --spacing-4xl: 40px;
    --spacing-5xl: 60px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 20px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.3);
    --shadow-md: 0 4px 12px rgba(102, 126, 234, 0.4);
    --shadow-lg: 0 10px 20px rgba(102, 126, 234, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* 响应式断点 */
    --breakpoint-sm: 480px;
    --breakpoint-md: 600px;
    --breakpoint-lg: 768px;
    --breakpoint-xl: 900px;
    --breakpoint-2xl: 1200px;
    --breakpoint-3xl: 1400px;
    
    /* 字体大小 */
    --font-xs: 0.75rem;
    --font-sm: 0.85rem;
    --font-base: 0.9rem;
    --font-md: 1rem;
    --font-lg: 1.1rem;
    --font-xl: 1.2rem;
    --font-2xl: 1.3rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3.5rem;
    
    /* 过渡动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 布局 */
    --topbar-height: 60px;
    --container-max-width: 1200px;
    --container-wide-max-width: 1400px;
}

/* ==========================================================================
   基础重置和全局样式
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Container Styles */
.main-container {
    display: flex;
    flex: 1;
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
}

/* ==========================================================================
   表单样式
   ========================================================================== */

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input Group Styles */
.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid var(--border-secondary);
}

.btn-outline-secondary {
    background: none;
    border: 1px solid var(--color-secondary);
    color: var(--text-primary);
    padding: var(--spacing-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: none;
}

.btn-outline-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    transform: translateY(-1px);
    border-color: transparent;
}

.btn-outline-secondary:active:not(:disabled) {
    transform: translateY(0);
}

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

/* ==========================================================================
   按钮样式
   ========================================================================== */

/* Button Styles - 统一按钮样式 */
.btn {
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    background: transparent;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
    background: var(--bg-input);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: #777;
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-dark));
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-danger-dark), var(--color-danger-darker));
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 11px;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 16px;
}

/* 认证按钮样式 */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-btn.login,
#login-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 1px solid transparent;
}

.auth-btn.login:hover,
#login-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-1px);
}

.auth-btn.register,
#register-btn {
    background: transparent;
    color: #4285f4;
    border: 1px solid #4285f4;
}

.auth-btn.register:hover,
#register-btn:hover {
    background: rgba(66, 133, 244, 0.1);
    transform: translateY(-1px);
}

#logout-btn {
    background: #e53e3e;
    color: white;
    border: 1px solid #e53e3e;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background: #c53030;
}

#user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

/* ==========================================================================
   模态框样式
   ========================================================================== */

/* Auth Modals */
.modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 30px;
    border: 1px solid #333;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
}

.modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4285f4;
}

.modal input[type="text"],
.modal input[type="password"],
.modal input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #222;
    color: #fff;
    transition: border-color 0.3s ease;
}

.modal input[type="text"]:focus,
.modal input[type="password"]:focus,
.modal input[type="email"]:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* 密码验证提示样式 */
.password-validation {
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
}

.password-validation.show {
    display: block;
}

.password-validation.success {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.password-validation.error {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.modal .btn {
    width: 100%;
    margin-top: 10px;
}

.modal p {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.modal p a {
    color: #4285f4;
    text-decoration: none;
}

.modal p a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   卡片样式
   ========================================================================== */

/* Card Styles */
.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

.card-body {
    color: #ccc;
}

/* ==========================================================================
   视频相关样式
   ========================================================================== */

/* 视频项样式 */
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.video-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.video-actions {
    margin-top: 10px;
}

.video-actions .btn {
    margin-right: 8px;
}

/* 状态徽章样式 */
.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
    color: white;
}

.status-completed {
    background: #34a853;
}

.status-failed {
    background: #dc3545;
}

.status-generating {
    background: #ffa500;
}

.status-pending {
    background: #666;
}

/* 视频错误处理样式 */
.video-error {
    background: #2a1f1f;
    border: 1px solid #ff6b6b;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.video-error:hover {
    background: #3a2525;
    border-color: #ff8a8a;
}

.video-error p {
    color: #ff6b6b;
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.video-error .error-details {
    color: #ccc;
    font-size: 11px;
    margin: 5px 0;
    word-break: break-all;
    opacity: 0.8;
}

.video-error button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.video-error button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff8a8a 0%, #ff6b6b 100%);
}

.video-error button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

/* 视频加载状态指示器 */
.video-loading {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #ccc;
}

.video-loading::before {
    content: "🔄";
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 2s linear infinite;
}

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

/* 视频状态标签优化 */
.video-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-status.completed {
    background: #34a853;
    color: white;
}

.video-status.failed {
    background: #dc3545;
    color: white;
}

.video-status.processing {
    background: #ffa500;
    color: white;
}

.video-status.pending {
    background: #666;
    color: white;
}

/* 视频容器优化 */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.video-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ==========================================================================
   加载和提示样式
   ========================================================================== */

/* Loading Styles - 使用新的加载动效系统 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #4285f4;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* 现代加载容器 */
.modern-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
}

.modern-loading .loading-text {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.modern-loading .loading-subtitle {
    color: #888;
    font-size: 12px;
    margin: 0;
    animation: pulse-opacity 2s ease-in-out infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 提示消息样式 */
.toast-message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.toast-message.success {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* ==========================================================================
   工具类样式
   ========================================================================== */

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ==========================================================================
   滚动条样式
   ========================================================================== */

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==========================================================================
   首页布局样式
   ========================================================================== */

/* 内容包装器 */
.content-wrapper {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-4xl) var(--spacing-xl);
    min-height: calc(100vh - var(--topbar-height));
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: main;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    padding: var(--spacing-5xl) 0;
}

/* Logo容器 */
.logo-container {
    margin-bottom: var(--spacing-2xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 英雄Logo */
.hero-logo {
    max-width: 160px;
    height: auto;
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(102, 126, 234, 0.4));
}

/* 响应式Logo尺寸 */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 100px;
    }
}

@media (min-width: 1200px) {
    .hero-logo {
        max-width: 200px;
    }
}

.hero-section h1 {
    font-size: var(--font-5xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
}

.hero-section .subtitle {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 300;
}

/* 功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-5xl);
    flex: 1;
}

/* 使用容器查询进行响应式布局 */
@container main (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@container main (min-width: 900px) and (max-width: 1199.98px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@container main (min-width: 768px) and (max-width: 899.98px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container main (max-width: 767.98px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 功能卡片 */
.feature-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-2xl);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.feature-card:hover::before {
    opacity: 1;
}

/* 禁用状态的功能卡片 */
.feature-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.feature-card-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-primary);
}

.feature-card-disabled::before {
    opacity: 0 !important;
}

/* 开发中标签 */
.dev-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
    100% {
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
}

.feature-card > * {
    position: relative;
    z-index: 2;
}

/* 功能图标 */
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

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

.feature-icon svg path,
.feature-icon svg polyline,
.feature-icon svg line,
.feature-icon svg polygon,
.feature-icon svg rect,
.feature-icon svg circle {
    stroke: white;
}

/* 功能标题 */
.feature-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

/* 功能描述 */
.feature-desc {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

.footer p {
    color: var(--text-muted);
    font-size: var(--font-base);
    margin: 0;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

/* 保留针对小屏幕的媒体查询，以处理整体页面布局调整 */

@media (max-width: var(--breakpoint-lg)) {
    .content-wrapper {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .hero-section {
        padding: var(--spacing-4xl) 0;
        margin-bottom: var(--spacing-4xl);
    }
    
    .hero-section h1 {
        font-size: var(--font-3xl);
    }
    
    .hero-section .subtitle {
        font-size: var(--font-md);
    }
    
    .feature-card {
        padding: var(--spacing-xl);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .feature-title {
        font-size: var(--font-lg);
    }
    
    .feature-desc {
        font-size: var(--font-sm);
    }
    
    .video-error {
        padding: var(--spacing-md);
    }
    
    .video-error button {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-xs);
    }
    
    .video-error p {
        font-size: var(--font-xs);
    }
    
    .video-error .error-details {
        font-size: var(--font-xs);
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .modal-content {
        width: 95%;
        padding: var(--spacing-xl);
    }
}

@media (max-width: var(--breakpoint-sm)) {
    .content-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-section {
        padding: var(--spacing-3xl) 0;
        margin-bottom: var(--spacing-3xl);
    }
    
    .hero-section h1 {
        font-size: var(--font-2xl);
    }
    
    .hero-section .subtitle {
        font-size: var(--font-base);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-3xl);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-lg);
    }
    
    .feature-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .feature-title {
        font-size: var(--font-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .feature-desc {
        font-size: var(--font-sm);
    }
    
    .main-container {
        margin-top: 50px;
        height: calc(100vh - 50px);
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-xs);
    }
    
    .card {
        padding: var(--spacing-lg);
    }
}

/* ==========================================================================
   禁用卡片和开发中标签样式
   ========================================================================== */

/* 禁用的功能卡片 */
.feature-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.feature-card-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-primary);
}

.feature-card-disabled::before {
    opacity: 0 !important;
}

.feature-card-disabled .feature-icon {
    background: linear-gradient(135deg, #666, #888);
}

.feature-card-disabled:hover .feature-icon {
    transform: none;
    box-shadow: none;
}

/* 开发中标签 */
.dev-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
    100% {
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
}