/* 强制隐藏桌面端mobile退出按钮 */ .navbar-logout-mobile { display: none !important; }
/* AMS - 艺术人才遴选管理系统 主样式 */
:root {
    --primary: #6B3FA0;
    --primary-dark: #2D1B69;
    --primary-light: #9B59B6;
    --accent: #D4AF37;
    --bg-dark: #1A1A2E;
    --bg-darker: #16213E;
    --bg-card: rgba(255,255,255,0.05);
    --bg-card-hover: rgba(255,255,255,0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C0;
    --text-muted: #8888A0;
    --border: rgba(255,255,255,0.1);
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(155,89,182,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* 导航栏 */
.navbar {
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 36px; width: auto; }
.navbar-brand span { font-size: 16px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.navbar-menu { display: flex; gap: 8px; align-items: center; }
.navbar-menu a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}
.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}
.navbar-user { display: flex; align-items: center; gap: 10px; }
.navbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-user .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.navbar-avatar, .navbar .navbar-user .navbar-avatar, .navbar .navbar-right .navbar-user img.navbar-avatar { width: 36px; height: 36px; max-width: 36px; max-height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.navbar-user-info { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.navbar-user-name { font-weight: 500; }
.navbar-user-position { color: var(--primary-light); }
.navbar-logout { color: var(--text-secondary); font-size: 13px; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; text-decoration: none; }
.navbar-logout:hover { color: var(--text-primary); background: var(--bg-card); }
.navbar-logout-mobile { display: none !important; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px 10px; z-index: 200; position: relative; pointer-events: auto; -webkit-appearance: none; appearance: none; min-width: 40px; min-height: 40px; line-height: 1; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.container-fluid { padding: 24px; }

/* 卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s;
}
.card:hover { background: var(--bg-card-hover); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 600; }
.card-body { color: var(--text-secondary); }

/* 网格 */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; border: none;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: #1a1a2e; }
.btn-accent:hover { opacity: 0.9; color: #1a1a2e; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.form-control {
    width: 100%; padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-primary);
    font-size: 14px; transition: all 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary-light); background: rgba(255,255,255,0.08); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.table td { font-size: 14px; color: var(--text-secondary); }
.table tr:hover { background: var(--bg-card); }

/* 状态标签 */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
}
.badge-success { background: rgba(46,204,113,0.2); color: var(--success); }
.badge-warning { background: rgba(243,156,18,0.2); color: var(--warning); }
.badge-danger { background: rgba(231,76,60,0.2); color: var(--danger); }
.badge-info { background: rgba(52,152,219,0.2); color: var(--info); }
.badge-primary { background: rgba(155,89,182,0.2); color: var(--primary-light); }
.badge-muted { background: rgba(255,255,255,0.1); color: var(--text-muted); }

/* 进度卡片（申请者视图） */
.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.progress-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.progress-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.progress-card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.progress-card-subtitle { font-size: 13px; color: var(--text-muted); }
.progress-steps { display: flex; align-items: center; gap: 0; margin: 16px 0; overflow-x: auto; padding-bottom: 8px; }
.progress-step {
    display: flex; flex-direction: column; align-items: center; min-width: 80px; flex: 1;
    position: relative;
}
.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; margin-bottom: 8px;
    background: var(--bg-card); border: 2px solid var(--border); color: var(--text-muted);
}
.step-circle.completed { background: var(--success); border-color: var(--success); color: #fff; }
.step-circle.active { background: var(--primary); border-color: var(--primary-light); color: #fff; animation: pulse 2s infinite; }
.step-circle.failed { background: var(--danger); border-color: var(--danger); color: #fff; }
.step-label { font-size: 12px; color: var(--text-muted); text-align: center; }
.step-label.active { color: var(--primary-light); font-weight: 500; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 24px; min-width: 20px; }
.step-line.completed { background: var(--success); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(155,89,182,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(155,89,182,0); }
}

/* 统计卡片 */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-value { font-size: 32px; font-weight: 700; color: var(--primary-light); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Hero区域 */
.hero {
    text-align: center; padding: 60px 24px;
    background: linear-gradient(135deg, rgba(107,63,160,0.2) 0%, rgba(45,27,105,0.3) 100%);
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; background: linear-gradient(90deg, #fff, var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* 项目卡片 */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: visible;
    transition: all 0.3s;
    cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--primary-light); box-shadow: var(--shadow); }
.project-card-cover { height: 160px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.project-card-body { padding: 20px; }
.project-card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.project-card-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; margin-bottom: 12px; }
.project-card-footer { display: flex; justify-content: space-between; align-items: center; }

/* 管理端布局 */
.admin-layout { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
    width: 240px; background: rgba(0,0,0,0.2); border-right: 1px solid var(--border);
    padding: 16px 0; flex-shrink: 0;
}
.admin-sidebar a {
    display: block; padding: 12px 24px; color: var(--text-secondary);
    font-size: 14px; transition: all 0.2s; border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--text-primary); background: var(--bg-card); border-left-color: var(--primary-light);
}
.admin-sidebar-section { padding: 16px 24px 8px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.admin-content { flex: 1; padding: 24px; overflow-x: auto; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-page-title { font-size: 22px; font-weight: 600; }

/* 上传区域 */
.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--primary-light); background: var(--bg-card); }
.upload-zone-icon { font-size: 48px; margin-bottom: 12px; color: var(--text-muted); }

/* 评分区域 */
.score-input { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.score-input label { min-width: 100px; font-size: 14px; color: var(--text-secondary); }
.score-input input[type="range"] { flex: 1; }
.score-input .score-value { min-width: 40px; text-align: center; font-weight: 600; color: var(--accent); }

/* 时间轴 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg-dark); }
.timeline-item.completed::before { background: var(--success); }
.timeline-time { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary-light); color: var(--text-primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 提示消息 */
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(46,204,113,0.1); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(231,76,60,0.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(243,156,18,0.1); border: 1px solid var(--warning); color: var(--warning); }
.alert-info { background: rgba(52,152,219,0.1); border: 1px solid var(--info); color: var(--info); }

/* 模态框 */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-darker); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }

/* 响应式 */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .navbar { padding: 0 10px; height: 56px; }
    .navbar-brand { gap: 6px; flex-shrink: 1; min-width: 0; }
    .navbar-brand img { height: 26px; flex-shrink: 0; }
    .navbar-brand span { font-size: 12px; max-width: 120px; overflow: visible; text-overflow: ellipsis; white-space: nowrap; }
    .navbar-menu { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--border); z-index: 999; gap: 4px; }
    .navbar-menu.open { display: flex; }
    .navbar-menu a { padding: 10px 8px; color: var(--text-secondary); text-decoration: none; font-size: 15px; border-radius: 6px; }
    .navbar-menu a:hover { background: var(--bg-card); color: var(--text-primary); }
    .navbar-logout-mobile { display: block !important; color: var(--danger) !important; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px !important; }
    .navbar-right { gap: 8px; flex-shrink: 0; }
    .mobile-toggle { display: block !important; font-size: 22px; padding: 8px 10px; cursor: pointer; z-index: 200; position: relative; pointer-events: auto; min-width: 40px; min-height: 40px; -webkit-tap-highlight-color: transparent; }
    .navbar-user { gap: 6px; }
    .navbar-avatar, .navbar .navbar-user .navbar-avatar, .navbar .navbar-right .navbar-user img.navbar-avatar, #navbar-avatar-img { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; min-width: 28px !important; min-height: 28px !important; }
    .navbar-user-info { display: flex !important; flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.2; max-width: 100px; overflow: visible; }
    .navbar-user-name { font-size: 12px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: visible; text-overflow: ellipsis; max-width: 100px; }
    .navbar-user-position { font-size: 10px; color: var(--primary-light); white-space: nowrap; overflow: visible; text-overflow: ellipsis; max-width: 100px; }
    .navbar-logout { display: none !important; }
    .container { padding: 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 8px; }
    .admin-sidebar a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 8px 16px; }
    .admin-sidebar a:hover, .admin-sidebar a.active { border-left: none; border-bottom-color: var(--primary-light); }
    .admin-sidebar-section { display: none; }
    .admin-content { padding: 16px; }
    .hero h1 { font-size: 24px; }
    .hero { padding: 40px 16px; }
    .progress-steps { flex-wrap: nowrap; }
    .table { font-size: 12px; }
    .table th, .table td { padding: 8px; }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.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; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }
.w-full { width: 100%; }


/* ============================================
   UI 美化优化 - 2026-09-22
   ============================================ */

/* 导航栏优化 - 毛玻璃效果增强 */
.navbar {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

/* 导航栏菜单项优化 */
.navbar-menu a {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}
.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 60%;
}

/* 卡片美化 */
.card {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.card:hover {
    box-shadow: 0 8px 30px rgba(107, 63, 160, 0.2);
    transform: translateY(-2px);
}

/* 项目卡片美化 */
.project-card {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.project-card-cover {
    position: relative;
    overflow: hidden;
}
.project-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
}

/* 按钮美化 */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #e8c547 100%);
}

/* 表单美化 */
.form-control {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.15);
}

/* 表格美化 */
.table thead th {
    background: rgba(107, 63, 160, 0.1);
    border-bottom: 2px solid var(--primary-light);
}
.table tr {
    transition: background 0.2s ease;
}

/* 徽章美化 */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Hero区域美化 */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* 统计卡片美化 */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

/* 管理端侧边栏美化 */
.admin-sidebar {
    backdrop-filter: blur(10px);
}
.admin-sidebar a {
    position: relative;
    font-weight: 500;
    transition: all 0.25s ease;
}
.admin-sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
    border-radius: 0 4px 4px 0;
    transition: width 0.25s ease;
}
.admin-sidebar a:hover::before,
.admin-sidebar a.active::before {
    width: 3px;
}

/* 进度卡片美化 */
.progress-card {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   平板竖屏模式优化 (768px - 1024px)
   重点：导航栏使用汉堡菜单，避免菜单竖排
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 导航栏 - 使用汉堡菜单 */
    .navbar {
        padding: 0 16px;
        height: 60px;
    }
    .navbar-brand {
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
    }
    .navbar-brand img {
        height: 30px;
        flex-shrink: 0;
    }
    .navbar-brand span {
        font-size: 14px;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 菜单改为汉堡下拉 */
    .navbar-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
        gap: 4px;
    }
    .navbar-menu.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .navbar-menu a {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
        width: 100%;
    }
    .navbar-menu a::after {
        display: none;
    }
    .navbar-menu a:hover,
    .navbar-menu a.active {
        background: var(--bg-card);
        color: var(--text-primary);
    }
    
    /* 显示汉堡按钮 */
    .mobile-toggle {
        display: block !important;
        font-size: 22px;
        padding: 8px 12px;
        cursor: pointer;
        z-index: 200;
        position: relative;
        pointer-events: auto;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s;
    }
    .mobile-toggle:active {
        transform: scale(0.95);
    }
    
    /* 用户区域优化 */
    .navbar-right {
        gap: 10px;
        flex-shrink: 0;
    }
    .navbar-user {
        gap: 8px;
    }
    .navbar-user-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        line-height: 1.3;
        max-width: 120px;
    }
    .navbar-user-name {
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    .navbar-user-position {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    .navbar-logout {
        display: none;
    }
    .navbar-logout-mobile {
        display: block !important;
        color: var(--danger) !important;
        border-top: 1px solid var(--border);
        margin-top: 8px;
        padding-top: 12px !important;
    }
    
    /* 网格调整 */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 容器调整 */
    .container {
        padding: 20px;
    }
    
    /* 管理端布局 */
    .admin-sidebar {
        width: 200px;
    }
    .admin-content {
        padding: 20px;
    }
    
    /* Hero调整 */
    .hero h1 {
        font-size: 30px;
    }
    .hero {
        padding: 48px 20px;
    }
}

/* ============================================
   小平板/大手机优化 (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar-brand span {
        font-size: 13px;
        max-width: 140px;
    }
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 26px;
    }
}

/* ============================================
   超小屏幕优化 (<= 480px)
   ============================================ */
@media (max-width: 480px) {
    .navbar-brand span {
        display: none;
    }
    .navbar-brand::after {
        content: 'AMS';
        font-size: 16px;
        font-weight: 700;
        background: linear-gradient(90deg, #fff, var(--primary-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero h1 {
        font-size: 22px;
    }
    .hero p {
        font-size: 14px;
    }
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
    .stat-value {
        font-size: 26px;
    }
}

/* ============================================
   打印样式优化
   ============================================ */
@media print {
    .navbar, .admin-sidebar, .mobile-toggle, .btn {
        display: none !important;
    }
    .admin-layout {
        display: block;
    }
    .admin-content {
        padding: 0;
    }
    body {
        background: #fff;
        color: #000;
    }
    .card, .table {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(155, 89, 182, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 89, 182, 0.6);
}

/* 选中文本颜色 */
::selection {
    background: rgba(155, 89, 182, 0.4);
    color: #fff;
}
