/**
 * 英语视频学习归档系统 - 响应式样式
 * 优先适配手机端，兼容电脑端
 */

/* CSS变量 */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4CAF50;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-gray: #fafafa;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --header-height: 56px;
    --footer-height: 60px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: calc(var(--footer-height) + var(--safe-area-bottom));
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 主内容区 */
.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

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

/* 底部导航 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.06);
    padding-bottom: var(--safe-area-bottom);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item .icon {
    font-size: 22px;
}

.nav-item .label {
    font-size: 11px;
}

/* 卡片组件 */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 16px;
}

.card-more {
    font-size: 13px;
    color: var(--text-muted);
}

/* 表单组件 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    color: var(--danger-color);
}

/* 按钮组件 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* 视频列表 */
.video-list {
    display: grid;
    gap: 16px;
}

.video-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    padding: 12px;
}

.video-thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

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

.video-thumb .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta .subject-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* 排名列表 */
.rank-list {
    display: flex;
    flex-direction: column;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 12px;
}

.rank-item:nth-child(1) .rank-number {
    background: #FFD700;
    color: white;
}

.rank-item:nth-child(2) .rank-number {
    background: #C0C0C0;
    color: white;
}

.rank-item:nth-child(3) .rank-number {
    background: #CD7F32;
    color: white;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    margin-right: 12px;
    overflow: hidden;
}

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

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.rank-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* 用户头像 */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
}

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

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 28px;
}

/* 评论组件 */
.comment-list {
    display: flex;
    flex-direction: column;
}

.comment-item {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item.reply-item {
    padding: 6px 0;
    border-bottom: none;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-pinned {
    font-size: 11px;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 3px;
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-action {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.comment-action:hover {
    color: var(--primary-color);
}

.comment-replies {
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid var(--border-color);
}

/* 点赞按钮 */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.like-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.like-btn.liked {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.like-btn .icon {
    font-size: 18px;
}

/* 视频播放器 */
.video-player {
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 个人中心 */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin: 0 auto 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
}

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

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 600;
}

.profile-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* 上传组件 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-gray);
}

.upload-area .icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-area .text {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-area .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.upload-preview {
    position: relative;
    margin-top: 12px;
}

.upload-preview video,
.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
}

.upload-preview .remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* 消息提示 */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.badge-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-rejected {
    background: #ffebee;
    color: #c62828;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state .text {
    font-size: 15px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
}

.loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--bg-secondary);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* 性别选择 */
.gender-options {
    display: flex;
    gap: 16px;
}

.gender-option {
    flex: 1;
    text-align: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.gender-option:hover {
    border-color: var(--primary-color);
}

.gender-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.gender-option input {
    display: none;
}

.gender-option .icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.gender-option .text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 登录页面特殊样式 */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding-bottom: 0;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.auth-header {
    text-align: center;
    color: white;
    padding: 40px 0 30px;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.auth-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.auth-footer a {
    color: white;
    text-decoration: underline;
}

.admin-login-link {
    display: block;
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
}

.admin-login-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* 标签切换 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.tab-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 管理后台特殊样式 */
.admin-sidebar {
    width: 240px;
    background: #263238;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 200;
}

.admin-logo {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav {
    padding: 16px 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.admin-nav-item.active {
    background: var(--primary-color);
    color: white;
}

.admin-nav-item .icon {
    font-size: 18px;
}

.admin-main {
    margin-left: 240px;
    padding: 20px;
    min-height: 100vh;
}

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

.admin-title {
    font-size: 22px;
    font-weight: 600;
}

/* 数据表格 */
.data-table {
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
}

.data-table td {
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.data-table .action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.data-table .action-btn.approve {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.data-table .action-btn.reject {
    background: #ffebee;
    color: var(--danger-color);
}

.data-table .action-btn.delete {
    background: #ffebee;
    color: var(--danger-color);
}

/* 响应式布局 - 平板 */
@media (min-width: 768px) {
    .container {
        padding: 24px;
    }
    
    .video-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-item {
        flex-direction: column;
        padding: 0;
    }
    
    .video-thumb {
        width: 100%;
        height: 140px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .profile-stats {
        gap: 60px;
    }
}

/* 响应式布局 - 桌面 */
@media (min-width: 1024px) {
    :root {
        --header-height: 64px;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .footer-nav {
        display: none;
    }
    
    .header-desktop-nav {
        display: flex;
        gap: 24px;
    }
    
    .header-desktop-nav a {
        font-size: 15px;
        color: var(--text-secondary);
        padding: 8px 0;
    }
    
    .header-desktop-nav a:hover,
    .header-desktop-nav a.active {
        color: var(--primary-color);
    }
    
    .video-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-thumb {
        height: 160px;
    }
    
    .video-player {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* 响应式布局 - 大屏幕 */
@media (min-width: 1280px) {
    .video-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 管理后台响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .data-table table {
        min-width: 600px;
    }
}

/* 头像上传 */
.avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.avatar-upload .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gray);
}

.avatar-upload .avatar img {
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    display: block;
}

.avatar-upload .upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.avatar-upload input {
    display: none;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* 筛选 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-primary);
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-card .value {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 移动端隐藏桌面导航 */
.header-desktop-nav {
    display: none;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-danger { color: var(--danger-color); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
