/**
 * 行政管理系统 - 公共样式
 * 包含：果冻Q弹特效、动态背景、现代UI设计
 */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 动态背景 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮动粒子 */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 20s; width: 15px; height: 15px; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; width: 25px; height: 25px; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 28s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 24s; width: 18px; height: 18px; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 26s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; animation-duration: 21s; width: 22px; height: 22px; }
.particle:nth-child(8) { left: 80%; animation-delay: 2.5s; animation-duration: 23s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4.5s; animation-duration: 27s; width: 16px; height: 16px; }
.particle:nth-child(10) { left: 95%; animation-delay: 1.5s; animation-duration: 19s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== 玻璃态卡片 ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* ===== 果冻Q弹动画 ===== */

/* 基础弹跳 */
@keyframes jellyBounce {
    0%, 100% { transform: scale(1, 1); }
    15% { transform: scale(0.95, 1.05); }
    30% { transform: scale(1.05, 0.95); }
    45% { transform: scale(0.98, 1.02); }
    60% { transform: scale(1.02, 0.98); }
    75% { transform: scale(0.995, 1.005); }
    90% { transform: scale(1.005, 0.995); }
}

/* 弹性进入 */
@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹跳进入 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    20% {
        transform: scale(1.15);
    }
    40% {
        transform: scale(0.95);
    }
    60% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 摇晃效果 */
@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px) rotate(-2deg); }
    30% { transform: translateX(8px) rotate(2deg); }
    45% { transform: translateX(-6px) rotate(-1deg); }
    60% { transform: translateX(6px) rotate(1deg); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

/* 脉冲发光 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.4);
    }
}

/* 弹跳移动 */
@keyframes bounceMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 弹力缩放 */
.jelly {
    animation: jellyBounce 0.6s ease-in-out;
}

.jelly-hover:hover {
    animation: jellyBounce 0.6s ease-in-out;
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    animation: jellyBounce 0.4s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-info:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* ===== 卡片组件 ===== */
.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: elasticIn 0.6s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #667eea, #764ba2) no-repeat bottom left;
    background-size: 100px 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ===== 统计卡片 ===== */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s;
}

.stat-card:hover::before {
    transform: scale(2);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.stat-card.blue { 
    border-left: 5px solid #4facfe;
    animation: bounceIn 0.6s ease-out;
}
.stat-card.green { 
    border-left: 5px solid #38ef7d;
    animation: bounceIn 0.6s ease-out 0.1s backwards;
}
.stat-card.purple { 
    border-left: 5px solid #667eea;
    animation: bounceIn 0.6s ease-out 0.2s backwards;
}
.stat-card.orange { 
    border-left: 5px solid #f093fb;
    animation: bounceIn 0.6s ease-out 0.3s backwards;
}
.stat-card.red { 
    border-left: 5px solid #ff4b2b;
    animation: bounceIn 0.6s ease-out 0.4s backwards;
}
.stat-card.yellow { 
    border-left: 5px solid #feca57;
    animation: bounceIn 0.6s ease-out 0.5s backwards;
}

.stat-card .label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card .value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.8;
}

/* ===== 表格样式 ===== */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    font-size: 14px;
}

.table th:first-child {
    border-radius: 20px 0 0 0;
}

.table th:last-child {
    border-radius: 0 20px 0 0;
}

/* ===== 表格列宽可拖动调整 ===== */
.table-container {
    position: relative;
    overflow: visible;
}

.table th {
    position: relative;
    user-select: none;
}

.table th .resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    z-index: 10;
}

.table th .resize-handle:hover,
.table th .resize-handle.active {
    background: rgba(255, 255, 255, 0.4);
}

.table th .resize-handle::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.table th .resize-handle:hover::after,
.table th .resize-handle.active::after {
    background: #fff;
    height: 30px;
}

/* 拖动时的列高亮效果 */
.table th.resizing {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 表格容器拖动时显示提示 */
.table-container.dragging::before {
    content: '↔ 拖动调整列宽';
    position: absolute;
    top: -25px;
    right: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:last-child td:first-child {
    border-radius: 0 0 0 20px;
}

.table tr:last-child td:last-child {
    border-radius: 0 0 20px 0;
}

.table tbody tr {
    transition: all 0.3s;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.table tbody tr:hover td {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: scale(1.01);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c4b5fd;
}

/* ===== 状态标签 ===== */
.status-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.status-tag:hover {
    transform: scale(1.05);
    animation: jellyBounce 0.4s ease;
}

.status-pass, .status-approved, .status-active, .status-1 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(56, 239, 125, 0.3);
}

.status-reject, .status-rejected, .status-0, .status-expired {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 75, 43, 0.3);
}

.status-pending, .status-waiting {
    background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(254, 202, 87, 0.3);
}

.status-inside {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: elasticIn 0.4s ease-out;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.modal-header {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px;
}

.modal-footer {
    margin-top: 28px;
    text-align: right;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== 头部导航 ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 20px 20px;
}

.header h1 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-user .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

.header-user .avatar:hover {
    transform: scale(1.1) rotate(5deg);
    animation: jellyBounce 0.5s ease;
}

.header-user a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s;
    background: rgba(102, 126, 234, 0.1);
}

.header-user a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ===== 角色徽章 ===== */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.role-badge[title="admin"] { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.role-badge[title="security"] { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.role-badge[title="supervisor"] { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.role-badge[title="employee"] { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* ===== 页面切换按钮 ===== */
.page-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 12px;
}

.switch-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.switch-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    background: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.switch-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.switch-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== 导航标签 ===== */"}

.nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    animation: elasticIn 0.5s ease-out;
}

.nav-tabs a {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-3px);
}

.nav-tabs a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: jellyBounce 0.5s ease;
}

.badge {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulseGlow 2s infinite;
}

/* ===== 容器 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
    position: relative;
    z-index: 1;
}

/* ===== 消息提示 ===== */
.success-msg {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.4);
    animation: bounceIn 0.5s ease;
}

.error-msg {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 65, 108, 0.4);
    animation: wobble 0.5s ease;
}

/* ===== 网格布局 ===== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

/* ===== 登录页面特殊样式 ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 480px;
    animation: elasticIn 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .card {
        padding: 16px;
    }
    
    .header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-tabs {
        padding: 12px;
    }
    
    .nav-tabs a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .table th, .table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* ===== 加载动画 ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

/* ===== 淡入动画 ===== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: elasticIn 0.6s ease-out;
}

/* ===== 特殊效果 ===== */
.glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== 鼠标点击特效 ===== */
.cursor-effect {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: cursorPop 0.6s ease-out forwards;
}

@keyframes cursorPop {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 3px solid;
    border-color: #667eea;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: #764ba2;
    border-width: 4px;
}

/* 鼠标拖尾粒子 */
.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* 星星点击效果 */
.click-star {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    animation: starBurst 0.8s ease-out forwards;
}

@keyframes starBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg) translateY(-50px);
        opacity: 0;
    }
}

/* 涟漪点击效果 */
.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.5);
    pointer-events: none;
    z-index: 9999;
    animation: rippleExpand 0.6s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 果冻点击反馈 */
.jelly-click {
    animation: jellyClick 0.5s ease;
}

@keyframes jellyClick {
    0% { transform: scale(1); }
    20% { transform: scale(0.9); }
    40% { transform: scale(1.1); }
    60% { transform: scale(0.95); }
    80% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 鼠标悬浮光效 */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===== 消息提示音效 ===== */
.sound-ding {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    animation: soundWave 0.5s ease-out forwards;
}

@keyframes soundWave {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}
