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

:root {
    --primary: #ff4757;
    --primary-dark: #e84142;
    --primary-light: #ff6b81;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c7c;
    --border-color: #2a2a3e;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    background-attachment: fixed;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-dark);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

/* ===================== 顶部导航 ===================== */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-left .logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #ffa502);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center {
    flex: 1;
    margin: 0 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 8px 14px;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

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

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--primary);
    background: rgba(255, 71, 87, 0.1);
}

.icon-btn:active {
    transform: scale(0.92);
}

/* ===================== 视频流 ===================== */
.main-content {
    padding-top: 64px;
    padding-bottom: 72px;
    min-height: 100vh;
}

.video-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.video-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e, #2a2a3e);
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-cover img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

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

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

.video-play-overlay i {
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.video-info {
    padding: 12px 14px;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-author {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.video-author i {
    margin-right: 4px;
    color: var(--primary-light);
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tag {
    background: rgba(255, 71, 87, 0.12);
    color: var(--primary-light);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.video-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.video-stats i {
    font-size: 14px;
}

/* ===================== 底部导航 ===================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    transition: var(--transition);
    position: relative;
}

.nav-item i {
    font-size: 22px;
    transition: var(--transition);
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

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

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:active {
    transform: scale(0.92);
}

/* ===================== 上传面板 ===================== */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.upload-panel {
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.upload-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.upload-body {
    padding: 20px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.upload-area span {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.upload-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

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

.upload-tags input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
}

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

.publish-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.publish-btn:active {
    transform: scale(0.98);
}

/* ===================== 通知面板 ===================== */
.notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-card);
    z-index: 150;
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
    display: none;
}

.notification-panel.open {
    display: block;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.notification-header h3 {
    font-size: 18px;
}

.notification-list {
    padding: 12px 0;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.notification-item:hover {
    background: rgba(255,255,255,0.03);
}

.notification-item i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.notification-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===================== 管理后台 ===================== */
.admin-body {
    background: #0a0a0a;
    min-height: 100vh;
}

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--primary), #ffa502);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.input-group i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 16px;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.login-error {
    color: var(--primary);
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

/* 管理面板 */
.admin-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

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

.admin-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h2 i {
    color: var(--primary);
}

.logout-btn {
    background: rgba(255,71,87,0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.stat-card i {
    font-size: 32px;
    color: var(--primary);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

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

.admin-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

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

.table-header h3 {
    font-size: 18px;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.table-search {
    margin-bottom: 16px;
}

.table-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
}

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

.table-responsive {
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 12px 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

td {
    padding: 12px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

td img {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
    font-size: 16px;
}

.action-btn.edit:hover {
    color: #1e90ff;
}

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

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

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

.modal-header h3 {
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

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

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

.save-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

/* ===================== 响应式 ===================== */
@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }
    
    .header-left .logo {
        font-size: 18px;
    }
    
    .search-bar {
        padding: 6px 12px;
    }
    
    .search-bar input {
        font-size: 13px;
    }
    
    .icon-btn {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .video-feed {
        padding: 8px;
        gap: 12px;
    }
    
    .video-info {
        padding: 10px 12px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .notification-panel {
        width: 100%;
    }
}

@media (min-width: 768px) {
    #app {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}
/* ===================== 管理后台 ===================== */
.admin-body {
    background: #0a0a0a;
    min-height: 100vh;
}

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--primary), #ffa502);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.input-group i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 16px;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.login-error {
    color: var(--primary);
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

/* 管理面板 */
.admin-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

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

.admin-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h2 i {
    color: var(--primary);
}

.logout-btn {
    background: rgba(255,71,87,0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.stat-card i {
    font-size: 32px;
    color: var(--primary);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

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

.admin-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

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

.table-header h3 {
    font-size: 18px;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.table-search {
    margin-bottom: 16px;
}

.table-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
}

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

.table-responsive {
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 12px 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

td {
    padding: 12px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

td img {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
    font-size: 16px;
}

.action-btn.edit:hover {
    color: #1e90ff;
}

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

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

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

.modal-header h3 {
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

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

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

.save-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

/* ===================== 响应式 ===================== */
@media (max-width: 480px) {
    .app-header {
        padding: 10px 12px;
    }
    
    .header-left .logo {
        font-size: 18px;
    }
    
    .search-bar {
        padding: 6px 12px;
    }
    
    .search-bar input {
        font-size: 13px;
    }
    
    .icon-btn {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .video-feed {
        padding: 8px;
        gap: 12px;
    }
    
    .video-info {
        padding: 10px 12px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .notification-panel {
        width: 100%;
    }
}

@media (min-width: 768px) {
    #app {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}