/* 科技感深色主题样式 - 本地化优化版本 */

:root {
    /* 深色主题色彩 */
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-tertiary: #1e2139;

    /* 霓虹色彩 - 增强亮度提高对比度 */
    --neon-blue: #00f0ff;
    --neon-purple: #d070ff;
    --neon-pink: #ff60c8;
    --neon-green: #00ffbb;
    --neon-yellow: #ffd700;

    /* 渐变色 */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* 文字颜色 - 增强对比度 */
    --text-primary: #ffffff;
    --text-secondary: #e0eeff;
    --text-muted: #a0b5d0;

    /* 玻璃态效果 - 增加不透明度 */
    --glass-bg: rgba(20, 30, 50, 0.85);
    --glass-border: rgba(0, 240, 255, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* 动态粒子背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(181, 55, 242, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 46, 151, 0.15) 0%, transparent 50%);
    z-index: -2;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 212, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 3px
        );
    z-index: -1;
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

/* 导航栏 */
.navbar {
    background: rgba(21, 25, 50, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    letter-spacing: 2px;
}

.navbar-brand i {
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-link:hover::before {
    width: 80%;
}

/* 玻璃态卡片 */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    animation: cardFloat 6s ease-in-out infinite;
}

/* 卡片浮动动画 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 卡片扫光效果 */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 70%
    );
    animation: cardShine 8s linear infinite;
    pointer-events: none;
}

@keyframes cardShine {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 15px 60px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    animation: none; /* 悬停时停止浮动动画 */
}

.card-header {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(181, 55, 242, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header i {
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

/* 统计卡片 */
.card.bg-primary {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(118, 75, 162, 0.3) 100%);
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.bg-primary:hover {
    box-shadow:
        0 15px 60px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card.bg-success {
    background: linear-gradient(135deg,
        rgba(67, 233, 123, 0.3) 0%,
        rgba(56, 249, 215, 0.3) 100%);
    border: 1px solid rgba(67, 233, 123, 0.5);
    box-shadow:
        0 8px 32px rgba(67, 233, 123, 0.3),
        0 0 20px rgba(67, 233, 123, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.bg-success:hover {
    box-shadow:
        0 15px 60px rgba(67, 233, 123, 0.5),
        0 0 40px rgba(67, 233, 123, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card.bg-warning {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 165, 0, 0.3) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow:
        0 8px 32px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.bg-warning:hover {
    box-shadow:
        0 15px 60px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card.bg-info {
    background: linear-gradient(135deg,
        rgba(79, 172, 254, 0.3) 0%,
        rgba(0, 242, 254, 0.3) 100%);
    border: 1px solid rgba(79, 172, 254, 0.5);
    box-shadow:
        0 8px 32px rgba(79, 172, 254, 0.3),
        0 0 20px rgba(79, 172, 254, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.bg-info:hover {
    box-shadow:
        0 15px 60px rgba(79, 172, 254, 0.5),
        0 0 40px rgba(79, 172, 254, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card.bg-danger {
    background: linear-gradient(135deg,
        rgba(240, 147, 251, 0.3) 0%,
        rgba(245, 87, 108, 0.3) 100%);
    border: 1px solid rgba(240, 147, 251, 0.5);
    box-shadow:
        0 8px 32px rgba(240, 147, 251, 0.3),
        0 0 20px rgba(240, 147, 251, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.bg-danger:hover {
    box-shadow:
        0 15px 60px rgba(240, 147, 251, 0.5),
        0 0 40px rgba(240, 147, 251, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 统计数字发光效果 */
.card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow:
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor;
    animation: numberPulse 3s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* 统计图标 */
.card .display-4 {
    filter: drop-shadow(0 0 15px currentColor);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 表格样式 */
.table {
    color: var(--text-primary);
    margin: 0;
}

.table thead th {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(181, 55, 242, 0.1) 100%);
    border: none;
    border-bottom: 2px solid rgba(0, 212, 255, 0.5);
    color: var(--neon-blue);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--neon-blue) 50%,
        transparent 100%);
    animation: tableBorderFlow 3s linear infinite;
}

@keyframes tableBorderFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.table tbody tr:hover {
    background: linear-gradient(90deg,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%);
    box-shadow:
        0 4px 20px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

/* 按钮样式 */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 按钮发光脉冲效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: 0s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-3);
    box-shadow:
        0 4px 20px rgba(0, 212, 255, 0.4),
        0 0 15px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow:
        0 8px 35px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-success {
    background: var(--gradient-4);
    box-shadow:
        0 4px 20px rgba(67, 233, 123, 0.4),
        0 0 15px rgba(67, 233, 123, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
    box-shadow:
        0 8px 35px rgba(67, 233, 123, 0.6),
        0 0 30px rgba(67, 233, 123, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow:
        0 4px 20px rgba(240, 147, 251, 0.4),
        0 0 15px rgba(240, 147, 251, 0.2);
}

.btn-warning:hover {
    box-shadow:
        0 8px 35px rgba(240, 147, 251, 0.6),
        0 0 30px rgba(240, 147, 251, 0.4);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff2e97 0%, #ff6b6b 100%);
    box-shadow:
        0 4px 20px rgba(255, 46, 151, 0.4),
        0 0 15px rgba(255, 46, 151, 0.2);
}

.btn-danger:hover {
    box-shadow:
        0 8px 35px rgba(255, 46, 151, 0.6),
        0 0 30px rgba(255, 46, 151, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* 徽章样式 */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.badge.bg-success {
    background: var(--gradient-4) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff2e97 0%, #ff6b6b 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%) !important;
}

.badge.bg-primary {
    background: var(--gradient-3) !important;
}

/* 表单样式 */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* 修复下拉菜单选项的文字颜色 */
.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* 修复多选下拉框的样式 */
.form-select[multiple] option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-select[multiple] option:hover,
.form-select[multiple] option:checked {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* 下拉菜单 */
.dropdown-menu {
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 警告框 */
.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.alert-success {
    background: rgba(67, 233, 123, 0.2);
    color: var(--neon-green);
    border-left: 4px solid var(--neon-green);
}

.alert-danger {
    background: rgba(255, 46, 151, 0.2);
    color: var(--neon-pink);
    border-left: 4px solid var(--neon-pink);
}

.alert-info {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
    border-left: 4px solid var(--neon-blue);
}

.alert-info strong,
.alert-info span {
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(255, 215, 0, 0.2);
    color: var(--neon-yellow);
    border-left: 4px solid var(--neon-yellow);
}

/* 排行榜排名徽章 */
.student-row td:first-child {
    font-weight: 700;
    font-size: 1.2rem;
}

.student-row:nth-child(1) td:first-child {
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
}

.student-row:nth-child(2) td:first-child {
    color: #c0c0c0;
    text-shadow: 0 0 15px #c0c0c0;
}

.student-row:nth-child(3) td:first-child {
    color: #cd7f32;
    text-shadow: 0 0 15px #cd7f32;
}

/* 前10名特殊行样式 */
.rank-gold {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.rank-gold:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.rank-silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%) !important;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.rank-silver:hover {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.25) 0%, rgba(192, 192, 192, 0.1) 100%) !important;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.5);
}

.rank-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%) !important;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}

.rank-bronze:hover {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.25) 0%, rgba(205, 127, 50, 0.1) 100%) !important;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.5);
}

.rank-top10 {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.03) 100%) !important;
}

.rank-top10:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* 分数颜色 */
.text-success {
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px var(--neon-green);
}

.text-danger {
    color: var(--neon-pink) !important;
    text-shadow: 0 0 10px var(--neon-pink);
}

.text-primary {
    color: var(--neon-blue) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* 列表组 */
.list-group-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.list-group-item h6 {
    color: var(--text-primary);
}

.list-group-item p {
    color: var(--text-secondary);
}

.list-group-item small {
    color: var(--text-muted);
}

/* 时间线 */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: linear-gradient(180deg, var(--neon-blue) 0%, transparent 100%);
}

.timeline-item:last-child::after {
    display: none;
}

/* 模态框 */
.modal-content {
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-purple) 0%, var(--neon-blue) 100%);
}

/* 容器 */
.container, .container-fluid {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card h2 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}
