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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #667eea;
}

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

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

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-fans {
    font-size: 12px;
    color: #666;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.logout-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

/* 主要内容区域 */
.main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 授权管理样式 */
.auth-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.auth-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.auth-method {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-method:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.auth-method h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.auth-method p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: #667eea;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 二维码容器 */
.qr-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.qr-header {
    background: #667eea;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qr-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.qr-content {
    padding: 30px;
    text-align: center;
}

.qr-content iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.qr-tips {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 上传表单样式 */
.upload-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.upload-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.upload-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

/* 文件上传样式 */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-upload-area i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.file-upload-area span {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.file-upload-area small {
    color: #999;
    font-size: 12px;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 上传进度 */
.upload-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #667eea;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-size: 14px;
}

/* 视频列表样式 */
.videos-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.videos-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.videos-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* 统计页面样式 */
.stats-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.stats-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.stat-content h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 14px;
}

.stats-details {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-details h3 {
    margin-bottom: 20px;
    color: #333;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

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

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

/* 授权状态显示样式 */
.auth-status-display {
    margin-bottom: 30px;
}

.auth-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.auth-status-header i {
    font-size: 20px;
}

.auth-status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

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

.auth-user-details span:first-child {
    font-weight: 600;
    font-size: 16px;
}

.auth-user-details span:last-child {
    font-size: 14px;
    opacity: 0.9;
}

.auth-token-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.auth-token-info span:first-child {
    font-weight: 600;
    font-size: 14px;
}

.auth-token-info span:last-child {
    font-size: 12px;
    opacity: 0.8;
}

.auth-status-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.auth-status-actions .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .auth-methods {
        grid-template-columns: 1fr;
    }
    
    .videos-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-status-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .auth-token-info {
        text-align: left;
    }
    
    .auth-status-actions {
        justify-content: center;
    }
}

/* 授权提示界面样式 */
.auth-required {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.auth-required i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}

.auth-required h3 {
    font-size: 24px;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.auth-required p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-required .btn {
    margin: 10px;
}

/* 错误状态样式 */
.error {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    margin: 20px 0;
}

.error i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.error span {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
}

.error .btn {
    margin: 5px;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loading i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
    color: #007bff;
}

/* 空状态样式 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: #dee2e6;
}

.empty span {
    font-size: 16px;
}

/* 按钮样式增强 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
} 