* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #f8fafc;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.nav-btn.active {
    background: rgba(255,255,255,0.3);
}

.nav-user {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    padding: 4px;
}

.user-name {
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 统计面板 */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 上传区域 */
.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    background: white;
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.upload-hint {
    color: #666;
    margin-bottom: 1rem;
}

/* 移动端/桌面端文本切换 */
.mobile-hint .desktop-text {
    display: inline;
}

.mobile-hint .mobile-text {
    display: none;
}

.upload-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 上传提示 */
.upload-tips {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    margin-top: 1rem;
    border-left: 4px solid #667eea;
}

.upload-tips p {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-tips ul {
    list-style: none;
    padding: 0;
}

.upload-tips li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* 视频区域 */
.video-section {
    margin-bottom: 2rem;
}

.video-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e2e8f0;
}

.video-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.video-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.video-container {
    background-color: #000;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.video-js {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

/* 编辑面板 */
.edit-panel {
    background: white;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.panel-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    outline: none;
}

.input-suffix {
    padding: 0.75rem;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

.setting-group select {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.setting-group select:focus {
    border-color: #667eea;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.checkbox-item:hover {
    background: #f3f4f6;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 控制按钮 */
.video-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 12px 12px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
    background: #f1f3f4;
    color: #667eea;
    border: 1px solid #e5e7eb;
}

.btn.secondary:hover {
    background: #e5e7eb;
}

.btn.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn.outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn.outline:hover {
    background: #667eea;
    color: white;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 进度区域 */
.progress-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.progress-status {
    color: #667eea;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* 片段区域 */
.clips-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.clips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.clips-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.clips-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.clip-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.clip-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.clip-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clip-item .clip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 0.8rem;
}

/* 历史记录页面 */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.history-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.history-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    outline: none;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
}

.history-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.history-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

/* 设置页面 */
.settings-header {
    margin-bottom: 2rem;
}

.settings-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-group {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.settings-group h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: #374151;
}

.setting-item input[type="text"],
.setting-item select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    outline: none;
}

.setting-item input[type="range"] {
    width: 100px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 徽章样式 */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.premium {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: white;
}

/* 配额信息 */
.quota-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quota-bar {
    width: 120px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.quota-fill {
    height: 100%;
    background: linear-gradient(135deg, #48bb78, #38a169);
    transition: width 0.3s ease;
}

/* 加载遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-progress {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

/* 帮助面板 */
.help-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.help-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.help-btn:hover {
    transform: scale(1.1);
}

.help-content {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

.help-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.help-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.help-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #666;
    font-size: 0.9rem;
}

.help-note {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #667eea;
}

.help-note p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.help-note p:first-child {
    color: #667eea;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        order: 1;
    }

    .nav-user {
        order: -1;
    }

    .main-content {
        padding: 1rem;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-content {
        grid-template-columns: 1fr;
    }

    .video-controls {
        flex-direction: column;
    }

    .clips-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .clips-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .clips-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .help-content {
        width: 250px;
        right: -100px;
    }

    /* 移动端显示移动端文本 */
    .mobile-hint .desktop-text {
        display: none;
    }

    .mobile-hint .mobile-text {
        display: inline;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-tips {
        text-align: center;
    }
} 