/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: #fff;
}

/* ==================== 登录页面样式 ==================== */
.login-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* 背景图片轮播 */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.bg-slide.active {
    opacity: 1;
    animation: slowZoom 12s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45,80,22,0.75) 0%, rgba(74,124,35,0.75) 100%);
    z-index: -1;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 登录卡片 - 3D立体效果 */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255,255,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.8);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: cardSlideUp 0.6s ease-out;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s;
}

.login-card:hover {
    transform: perspective(1000px) rotateX(-2deg) translateY(-5px);
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-title {
    color: #333;
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form .form-group {
    margin-bottom: 22px;
    position: relative;
}

/* 输入框 - 3D立体效果 */
.login-form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.login-form input::placeholder {
    color: #999;
}

.login-form input:focus {
    outline: none;
    border-color: #4caf50;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), inset 0 1px 3px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* 登录按钮 - 3D立体效果 */
.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(45, 80, 22, 0.35),
        inset 0 -3px 10px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(45, 80, 22, 0.5),
        inset 0 -3px 10px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
}

.error-message {
    color: #ff4757;
    background: linear-gradient(135deg, #ffe6e9 0%, #ffd6da 100%);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #ff4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.15);
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ==================== 管理面板样式 ==================== */
.dashboard-page {
    background: #fff;
    min-height: 100vh;
}

/* 导航栏 - 3D立体效果 */
.navbar {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    padding: 0 30px;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3), 0 8px 40px rgba(0,0,0,0.1);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #8bc34a, #cddc39, #8bc34a, #4caf50);
}

.nav-brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.dashboard-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* 面板 - 3D立体效果 */
.panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.panel:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.panel-header {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.panel-header h2 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
}

/* 按钮样式 - 3D立体效果 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.35), inset 0 -2px 5px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.45);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-edit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3), inset 0 -2px 5px rgba(0,0,0,0.1);
}

.btn-edit:hover {
    transform: translateY(-2px) scale(1.05);
}

.btn-delete {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3), inset 0 -2px 5px rgba(0,0,0,0.1);
}

.btn-delete:hover {
    transform: translateY(-2px) scale(1.05);
}

.btn-cancel {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.user-table th {
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f2f5 100%);
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.user-table tr {
    transition: all 0.3s;
}

.user-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

.user-table tbody tr:nth-child(even) {
    background: #fff;
}

.user-table tr:hover {
    background: linear-gradient(90deg, #e8f5e9 0%, #fff 100%) !important;
    transform: scale(1.01);
}

.user-table .actions {
    display: flex;
    gap: 10px;
}

/* 模态框样式 - 3D立体效果 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px) scale(0.9) perspective(1000px) rotateX(10deg); }
    to { opacity: 1; transform: translateY(0) scale(1) perspective(1000px) rotateX(0deg); }
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modal-close:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255,71,87,0.3);
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 0 0 20px 20px;
}

/* 表单样式 */
.user-form {
    padding: 28px;
}

.user-form .form-group {
    margin-bottom: 22px;
}

.user-form label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-form input,
.user-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

.user-form input:focus,
.user-form select:focus {
    outline: none;
    border-color: #4caf50;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

/* 角色标签 - 3D效果 */
.role-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.role-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.role-user {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #666;
}

/* 系统标签 */
.system-label {
    background: linear-gradient(135deg, #2d5016, #4a7c23);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.35);
}

/* 权限弹窗 */
.permission-modal .modal-content {
    max-width: 900px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.permission-modal .modal-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 100%);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.permission-modal .modal-header h3 {
    color: #fff;
}

.permission-modal .modal-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.permission-modal .modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.form-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4caf50;
    display: inline-block;
}

.perm-table-container {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.perm-table {
    width: 100%;
    border-collapse: collapse;
}

.perm-table th {
    background: linear-gradient(180deg, #f0f2f5 0%, #e8ecf0 100%);
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-align: center;
    position: sticky;
    top: 0;
}

.perm-table th:first-child {
    text-align: left;
}

.perm-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.perm-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #333;
}

.perm-table tbody tr {
    transition: all 0.3s;
}

.perm-table tbody tr:hover {
    background: linear-gradient(90deg, #e8f5e9 0%, #fff 100%);
}

.perm-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4caf50;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.scope-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.scope-item:hover {
    border-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.15);
}

.scope-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4caf50;
}

/* 数据弹窗 */
.data-modal .modal-content {
    max-width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.data-modal .modal-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.data-modal .modal-header h3 {
    color: #fff;
}

.data-modal .modal-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.data-modal .modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-grid input:focus,
.form-grid select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* ==================== 全局响应式设计 ==================== */

/* 超大屏幕 (>1400px) */
@media (min-width: 1400px) {
    .dashboard-content { max-width: 1400px; }
    .login-container { max-width: 450px; }
}

/* 大屏幕 (1200px - 1400px) */
@media (max-width: 1400px) {
    .dashboard-content { max-width: 1200px; }
}

/* 中等屏幕 (992px - 1200px) */
@media (max-width: 1200px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .scope-grid { grid-template-columns: repeat(2, 1fr); }
    .permission-modal .modal-content { max-width: 95%; }
}

/* 平板设备 (768px - 992px) */
@media (max-width: 992px) {
    .navbar { padding: 0 20px; height: 60px; }
    .nav-brand { font-size: 1rem; }
    .dashboard-content { padding: 20px; }
    .panel-header { padding: 18px 20px; flex-wrap: wrap; gap: 15px; }
    .panel-header h2 { font-size: 1.1rem; }
    .user-table th, .user-table td { padding: 12px 15px; font-size: 0.9rem; }
    .modal-content { max-width: 90%; margin: 15px; }
    .user-form { padding: 20px; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
}

/* 小平板/大手机 (576px - 768px) */
@media (max-width: 768px) {
    /* 登录页面 */
    .login-card { padding: 35px 25px; border-radius: 16px; }
    .login-title { font-size: 1.3rem; margin-bottom: 25px; }
    .login-form input { padding: 14px 16px; font-size: 0.95rem; }
    .login-btn { padding: 14px; font-size: 1rem; }
    .login-logo img { height: 200px !important; }
    .logo-text-fallback { font-size: 2.5rem !important; }
    
    /* 导航栏 */
    .navbar { 
        flex-direction: column; 
        gap: 12px; 
        height: auto; 
        padding: 15px; 
    }
    .nav-brand { width: 100%; justify-content: center; }
    .nav-user { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .system-label { display: none; }
    .btn-back { padding: 8px 15px; font-size: 0.85rem; }
    .btn-logout { padding: 8px 15px; font-size: 0.85rem; }
    
    /* 面板 */
    .dashboard-content { padding: 15px; }
    .panel-header { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px; 
        padding: 15px;
    }
    .panel-header h2 { text-align: center; }
    .btn-primary { width: 100%; }
    
    /* 表格 */
    .user-table { font-size: 0.85rem; }
    .user-table th, .user-table td { padding: 10px 12px; }
    .user-table .actions { flex-direction: column; gap: 6px; }
    .btn-edit, .btn-delete { width: 100%; padding: 8px 12px; }
    
    /* 表单 */
    .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .scope-grid { grid-template-columns: 1fr; gap: 10px; }
    .user-form .form-group { margin-bottom: 18px; }
    .user-form input, .user-form select { padding: 12px 15px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    
    /* 模态框 */
    .modal-content { 
        max-width: 95%; 
        margin: 10px; 
        border-radius: 16px;
        max-height: 90vh;
    }
    .modal-header { padding: 18px 20px; }
    .modal-header h3 { font-size: 1.1rem; }
    .modal-footer { padding: 15px 20px; flex-direction: column; }
    .modal-footer .btn { width: 100%; }
    
    /* 权限弹窗 */
    .permission-modal .modal-body { padding: 20px; }
    .perm-table-container { max-height: 200px; }
    .perm-table th, .perm-table td { padding: 10px 8px; font-size: 0.85rem; }
}

/* 手机设备 (<576px) */
@media (max-width: 576px) {
    /* 登录页面 */
    .login-container { padding: 15px; }
    .login-card { padding: 30px 20px; }
    .login-title { font-size: 1.2rem; }
    .login-form input { padding: 12px 14px; }
    .login-logo img { height: 150px !important; }
    
    /* 导航栏 */
    .navbar { padding: 12px; }
    .nav-brand span { font-size: 0.9rem; }
    
    /* 面板 */
    .dashboard-content { padding: 10px; }
    .panel { border-radius: 12px; }
    .panel-header { padding: 12px; }
    .panel-header h2 { font-size: 1rem; }
    
    /* 表格 - 横向滚动 */
    .table-container { 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }
    .user-table { min-width: 600px; }
    .user-table th, .user-table td { 
        padding: 8px 10px; 
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* 表单 */
    .user-form { padding: 15px; }
    .user-form label { font-size: 0.9rem; margin-bottom: 8px; }
    .user-form input, .user-form select { padding: 10px 12px; font-size: 0.9rem; }
    
    /* 模态框 */
    .modal-content { margin: 8px; border-radius: 12px; }
    .modal-header { padding: 15px; }
    .modal-header h3 { font-size: 1rem; }
    .modal-close { width: 32px; height: 32px; font-size: 1.1rem; }
    
    /* 按钮 */
    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .btn-edit, .btn-delete { padding: 6px 10px; font-size: 0.8rem; }
    
    /* 角色标签 */
    .role-badge { padding: 4px 10px; font-size: 0.75rem; }
    
    /* 权限表格 */
    .perm-table th, .perm-table td { padding: 8px 6px; font-size: 0.8rem; }
    .perm-table input[type="checkbox"] { width: 16px; height: 16px; }
    .scope-item { padding: 12px 14px; font-size: 0.9rem; }
    .scope-item input[type="checkbox"] { width: 16px; height: 16px; }
}

/* 超小屏幕 (<400px) */
@media (max-width: 400px) {
    .login-logo img { height: 120px !important; }
    .login-card { padding: 25px 15px; }
    .login-title { font-size: 1.1rem; }
    .navbar { padding: 10px; }
    .nav-brand { gap: 8px; }
    .btn-back { padding: 6px 12px; font-size: 0.8rem; }
}
