/* 二次元风格后台 - 清爽简洁版 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: #f5f7fa;
    color: #333;
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #e0f7fa 0%, #f3e5f5 50%, #fff3e0 100%);
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 45px 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-box h1 {
    text-align: center;
    color: #333;
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-box .subtitle {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 30px;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%);
    color: white;
}
.btn-primary:hover {
    opacity: 0.9;
}

.btn-success {
    background: linear-gradient(135deg, #96E6A1 0%, #D4FC79 100%);
    color: #555;
}
.btn-success:hover {
    opacity: 0.9;
}

.btn-warning {
    background: linear-gradient(135deg, #F6D365 0%, #FDA085 100%);
    color: white;
}
.btn-warning:hover {
    opacity: 0.9;
}

.btn-danger {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: white;
}
.btn-danger:hover {
    opacity: 0.9;
}

.btn-info {
    background: linear-gradient(135deg, #89F7FE 0%, #66A6FF 100%);
    color: white;
}
.btn-info:hover {
    opacity: 0.9;
}

.btn-default {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}
.btn-default:hover {
    background: #e8e8e8;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 主布局 */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 - 白色简洁 */
.sidebar {
    width: 200px;
    background: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h2 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sidebar-header p {
    color: #999;
    font-size: 11px;
}

.sidebar-menu {
    padding: 10px 0;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    gap: 10px;
    font-size: 13px;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #333;
}

.menu-item.active {
    color: #5bc0de;
    background: rgba(91, 192, 222, 0.08);
}

.menu-item .menu-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.menu-item.active .menu-icon {
    color: #5bc0de;
}

.menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 15px;
}

.menu-title {
    padding: 12px 15px 6px;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 项目菜单项 */
.project-item {
    position: relative;
    padding: 8px 15px !important;
    margin: 3px 8px;
    border-radius: 8px;
}

.project-item:hover {
    background: rgba(161, 140, 209, 0.1);
}

.project-item.active {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.2) 0%, rgba(254, 207, 239, 0.2) 100%);
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.project-icon-default {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 154, 158, 0.3);
    line-height: 1.1;
    overflow: hidden;
}

.project-icon-default small {
    font-size: 6px;
    font-weight: normal;
    opacity: 0.85;
    margin-top: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 14px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    background-color: #f5f7fa;
}

/* 背景图层 */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    bottom: 0;
    background: url('/static/images/beijing.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* 内容层确保在背景之上 */
.main-content > * {
    position: relative;
    z-index: 1;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title::after {
    content: '(OwO)';
    font-size: 12px;
    color: #ccc;
    font-weight: normal;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 表格头像 */
.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.table-avatar-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
}

/* 头像预览 */
.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.avatar-preview-default {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.user-name {
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.user-role {
    font-size: 11px;
    color: #999;
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.card-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.card-body {
    padding: 18px;
}


/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon.pink { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); color: white; }
.stat-icon.purple { background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%); color: white; }
.stat-icon.green { background: linear-gradient(135deg, #96E6A1 0%, #D4FC79 100%); color: #555; }
.stat-icon.orange { background: linear-gradient(135deg, #F6D365 0%, #FDA085 100%); color: white; }
.stat-icon.blue { background: linear-gradient(135deg, #89F7FE 0%, #66A6FF 100%); color: white; }

.stat-info h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 600;
}

.stat-info p {
    color: #999;
    font-size: 12px;
}

/* 操作按钮栏 */
.action-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

/* 表格 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #fafafa;
    color: #666;
    font-weight: 500;
    font-size: 12px;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table td {
    color: #555;
    font-size: 13px;
}

/* 状态标签 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: #e8f5e9; color: #4caf50; }
.badge-danger { background: #ffebee; color: #f44336; }
.badge-warning { background: #fff3e0; color: #ff9800; }
.badge-info { background: #e3f2fd; color: #2196f3; }
.badge-pink { background: #fce4ec; color: #e91e63; }

/* 搜索和筛选 */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-item label {
    color: #666;
    font-size: 12px;
}

.filter-item select,
.filter-item input {
    padding: 7px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.filter-item input {
    width: 180px;
}

/* 卡密显示 */
.key-display {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    padding: 2px 8px;
    background: #e3f2fd;
    border: none;
    border-radius: 3px;
    color: #2196f3;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #2196f3;
    color: white;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
    background: #5bc0de;
    border-color: #5bc0de;
    color: white;
}

/* 消息提示 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.alert-success {
    background: #e8f5e9;
    color: #4caf50;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #f44336;
    border: 1px solid #ffcdd2;
}

.alert-warning {
    background: #fff3e0;
    color: #ff9800;
    border: 1px solid #ffe0b2;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: all 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #eee;
    color: #666;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 项目卡片网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(200, 200, 200, 0.3);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(161, 140, 209, 0.5);
}

.project-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-card-icon-default {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 154, 158, 0.3);
    line-height: 1.1;
    overflow: hidden;
}

.project-card-icon-default small {
    font-size: 7px;
    font-weight: normal;
    opacity: 0.85;
    margin-top: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-info h4 {
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 500;
}

.project-card-info p {
    color: #999;
    font-size: 12px;
}

/* 操作图标按钮 */
.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    background: #f5f5f5;
}

.icon-btn.edit { color: #5bc0de; }
.icon-btn.edit:hover { background: #e3f2fd; }

.icon-btn.delete { color: #ff6b6b; }
.icon-btn.delete:hover { background: #ffebee; }

.icon-btn.lock { color: #f0ad4e; }
.icon-btn.lock:hover { background: #fff3e0; }

.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Tooltip图标 */
.tooltip-icon {
    display: inline-block;
    margin-left: 6px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: help;
    vertical-align: middle;
}
.tooltip-icon:hover {
    background: #e0e0e0;
    color: #666;
}

/* 项目分配样式 */
.project-assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.project-assign-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.8);
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.project-assign-item:hover {
    border-color: #b8d4ff;
    background: rgba(184,212,255,0.1);
}
.project-assign-item.checked {
    border-color: #52c41a;
    background: rgba(82,196,26,0.08);
}
.project-assign-item input[type="checkbox"] {
    display: none;
}
.project-assign-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.project-assign-icon-default {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
}
.project-assign-info {
    flex: 1;
    min-width: 0;
}
.project-assign-title {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}
.project-assign-name {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.project-assign-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8e8e8;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.project-assign-item.checked .project-assign-check {
    background: #52c41a;
    color: white;
}

/* 响应式 - 平板 */
@media (max-width: 992px) {
    .sidebar {
        width: 180px;
    }
    
    .main-content {
        margin-left: 180px;
    }
    
    .main-content::before {
        left: 180px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 12px;
    }
    
    .main-content::before {
        left: 0;
    }
    
    /* 顶部栏 */
    .top-bar {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-title {
        font-size: 16px;
        order: 2;
        width: 100%;
    }
    
    .page-title::after {
        display: none;
    }
    
    .user-info {
        order: 1;
        margin-left: auto;
    }
    
    /* 菜单按钮 */
    .menu-toggle {
        display: flex !important;
        order: 0;
    }
    
    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .stat-info h3 {
        font-size: 18px;
    }
    
    .stat-info p {
        font-size: 11px;
    }
    
    /* 卡片 */
    .card {
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .card-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .card-body {
        padding: 14px;
    }
    
    /* 表单 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 按钮 */
    .btn {
        padding: 10px 16px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* 筛选栏 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-item input,
    .filter-item select {
        width: 100%;
        flex: 1;
    }
    
    .filter-bar .btn {
        width: 100%;
    }
    
    /* 表格 */
    .table-container {
        margin: 0 -14px;
        padding: 0 14px;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* 卡密显示 */
    .key-display {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 11px;
    }
    
    /* 项目卡片 */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .project-card {
        padding: 12px;
    }
    
    /* 模态框 */
    .modal {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 分页 */
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
    }
    
    /* 项目分配 */
    .project-assign-grid {
        grid-template-columns: 1fr;
    }
    
    /* 操作按钮 */
    .action-bar {
        flex-direction: column;
    }
    
    .action-bar .btn {
        width: 100%;
    }
    
    /* 登录页 */
    .login-box {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .login-box h1 {
        font-size: 22px;
    }
}

/* 响应式 - 小手机 */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .top-bar {
        padding: 10px 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-role {
        display: none;
    }
}

/* 遮罩层 - 手机端侧边栏打开时 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.menu-toggle:hover {
    background: #eee;
}

/* 颜文字提示 */
.kaomoji {
    color: #ccc;
    font-size: 12px;
    margin-left: 8px;
}

/* 成功提示动画 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 3px solid #4caf50; }
.toast.error { border-left: 3px solid #f44336; }
.toast.warning { border-left: 3px solid #ff9800; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
