@import url('./css2.css');
@import url('./all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* 柔和的彩色光晕直接画在 body 背景里：纯 radial-gradient，零额外图层、零滤镜、
       零运行时开销。取代原先 3 个 filter:blur(80px) 的大色块（昂贵的 GPU 模糊层）。 */
    background:
        radial-gradient(600px circle at 0% 0%, rgba(108, 92, 231, 0.28), transparent 60%),
        radial-gradient(700px circle at 100% 100%, rgba(0, 206, 201, 0.22), transparent 60%),
        radial-gradient(520px circle at 45% 38%, rgba(253, 203, 110, 0.18), transparent 60%),
        #e0e5ec;
    display: flex;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden; /* Only hide horizontal scroll */
    overflow-y: auto;   /* Allow vertical scroll */
}

/* 原 .bg-shape 模糊色块整体停用：filter:blur(80px) 会生成 3 个巨大的 GPU 模糊图层，
   叠在毛玻璃面板下导致交互卡顿。改用上面 body 背景的渐变柔光，视觉接近、开销为零。 */
.bg-shape { display: none; }

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
    margin: 20px;
    border-radius: 24px;
    transition: all 0.4s ease;
    height: calc(100vh - 40px); /* Set fixed height */
    position: sticky; /* Make it sticky */
    top: 20px;
}

.brand { text-align: center; margin-bottom: 40px; }
.brand h2 { font-size: 1.2rem; color: #2d3436; font-weight: 600; background: linear-gradient(45deg, #6c5ce7, #00cec9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.5; }
.brand span { font-size: 0.85rem; color: #636e72; display: block; margin-top: 5px; }

/* Menu */
.menu { list-style: none; flex: 1; overflow-y: auto; padding-right: 5px; }
.menu::-webkit-scrollbar { width: 4px; }
.menu::-webkit-scrollbar-thumb { background: rgba(108, 92, 231, 0.3); border-radius: 10px; }
.menu-item { margin-bottom: 5px; }
.menu-item > a { display: flex; align-items: center; padding: 12px 20px; text-decoration: none; color: #636e72; border-radius: 16px; transition: all 0.3s ease; font-weight: 500; position: relative; overflow: hidden; }
.menu-item > a::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); opacity: 0; transition: opacity 0.3s ease; z-index: -1; border-radius: 16px; }
.menu-item > a i.icon { width: 24px; font-size: 1.1rem; margin-right: 15px; transition: all 0.3s ease; }
.menu-item > a .arrow { margin-left: auto; font-size: 0.8rem; transition: transform 0.3s ease; }
.menu-item > a:hover::before, .menu-item > a.active::before { opacity: 1; }
.menu-item > a:hover, .menu-item > a.active { color: white; box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3); transform: translateX(5px); }
.menu-item > a:hover i.icon, .menu-item > a.active i.icon { color: white; transform: scale(1.1); }

/* Submenu */
.submenu { list-style: none; max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding-left: 20px; opacity: 0; }
.has-submenu.open .submenu { max-height: 400px; opacity: 1; margin-top: 5px; margin-bottom: 10px; }
.submenu li { margin-bottom: 5px; transform: translateX(-10px); transition: transform 0.3s ease; }
.has-submenu.open .submenu li { transform: translateX(0); }
.submenu li a { display: block; padding: 8px 20px; color: #636e72; text-decoration: none; font-size: 0.9rem; border-radius: 12px; transition: all 0.3s; position: relative; }
.submenu li a::before { content: ''; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #b2bec3; transition: all 0.3s; }
.submenu li a:hover, .submenu li a.active { background: rgba(108, 92, 231, 0.1); color: #6c5ce7; font-weight: 600; padding-left: 25px; }
.submenu li a:hover::before, .submenu li a.active::before { background: #6c5ce7; width: 8px; height: 8px; left: 8px; }

/* Main Content */
.main-wrapper { flex: 1; margin: 20px 20px 20px 0; background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; overflow: hidden; animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); min-height: calc(100vh - 40px); }
/* 入场动画改为纯透明度渐显：原本的 scale 会在 0.6s 内不断改变带 backdrop-filter
   的主面板尺寸，导致毛玻璃反复重算，拖慢首屏出现速度。 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.topbar { padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.topbar h1 { font-size: 1.5rem; color: #2d3436; background: linear-gradient(45deg, #2d3436, #636e72); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.topbar-center-shortcuts {
    display: flex;
    gap: 15px;
    margin: 0 auto; /* Center the shortcuts */
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.8);
}

.shortcut-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #636e72;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.shortcut-btn:hover {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.1);
}
.shortcut-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.shortcut-btn:hover i {
    transform: rotate(15deg);
}


.topbar-right { display: flex; align-items: center; gap: 20px; }
.search-bar { position: relative; }
.search-bar input { background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.8); border-radius: 20px; padding: 8px 15px 8px 40px; width: 220px; outline: none; color: #2d3436; transition: all 0.3s ease; }
.search-bar input:focus { background: white; width: 250px; box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1); }
.search-bar i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #636e72; }
.icon-btn { background: transparent; border: none; font-size: 1.2rem; color: #636e72; cursor: pointer; transition: all 0.3s ease; position: relative; }
.icon-btn:hover { color: #6c5ce7; transform: scale(1.1); }
.notification-dot { width: 8px; height: 8px; background: #ff7675; border-radius: 50%; position: absolute; top: 0; right: 0; border: 2px solid rgba(255,255,255,0.8); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.7; } }
.icon-btn.notification-btn:hover i { animation: ringBell 0.5s ease-in-out; }
@keyframes ringBell { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(15deg); } 75% { transform: rotate(-15deg); } }
.user-info { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.8); padding: 8px 15px; border-radius: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.user-info:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.05); }
.user-info img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.logout-btn { border: none; background: transparent; color: #ff7675; cursor: pointer; font-weight: 500; margin-left: 10px; transition: color 0.3s ease; }
.logout-btn:hover { color: #d63031; }

.content-area { flex: 1; padding: 30px; overflow-y: auto; /* Changed to auto */ position: relative; }
/*
.content-area > * { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.content-area > *:nth-child(1) { animation-delay: 0.1s; }
.content-area > *:nth-child(2) { animation-delay: 0.2s; }
.content-area > *:nth-child(3) { animation-delay: 0.3s; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
*/

/* Functional Blocks & Tables */
.action-bar { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.action-bar input, .action-bar select { padding: 12px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.6); outline: none; font-size: 0.95rem; color: #2d3436; transition: all 0.3s; }
.action-bar input:focus, .action-bar select:focus { background: white; border-color: #6c5ce7; box-shadow: 0 0 10px rgba(108, 92, 231, 0.1); transform: translateY(-1px); }
.btn-primary { padding: 12px 25px; background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); color: white; border: none; border-radius: 12px; cursor: pointer; font-weight: 500; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 8px; }
.btn-primary:hover { box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4); transform: translateY(-3px) scale(1.02); }
.btn-secondary { padding: 12px 25px; background: white; color: #6c5ce7; border: 1px solid #6c5ce7; border-radius: 12px; cursor: pointer; font-weight: 500; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 8px; }
.btn-secondary:hover { background: #f8f7ff; transform: translateY(-3px) scale(1.02); box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1); }

.table-container { background: rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 25px; box-shadow: 0 8px 20px rgba(0,0,0,0.03); border: 1px solid rgba(255,255,255,0.8); transition: transform 0.3s ease; margin-bottom: 20px; }
.table-container:hover { box-shadow: 0 12px 25px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px dashed rgba(0,0,0,0.05); vertical-align: middle; }
th { color: #636e72; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
tbody tr { transition: all 0.3s ease; }
tbody tr:hover { background-color: rgba(255, 255, 255, 0.9); transform: scale(1.005) translateX(2px); border-radius: 10px; }
.empty-row { text-align: center; color: #a4b0be; padding: 60px !important; font-size: 0.95rem; }
.empty-row i { font-size: 3rem; margin-bottom: 15px; display: block; color: #dfe6e9; animation: floatIcon 3s ease-in-out infinite; }

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

/* Cards & Badges */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.data-card { background: rgba(255, 255, 255, 0.7); padding: 25px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.03); display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, 0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; }
.data-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%); opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 0; }
.data-card:hover::after { opacity: 1; }
.data-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15); background: white; z-index: 1; }
.data-card h3 { font-size: 1.8rem; color: #2d3436; margin-bottom: 5px; position: relative; z-index: 1; }
.data-card p { color: #636e72; font-size: 0.9rem; position: relative; z-index: 1; }
.data-card > i { position: relative; z-index: 1; transition: transform 0.4s ease; }
.data-card:hover > i { transform: scale(1.2) rotate(-15deg); }

.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef08a; color: #ca8a04; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: #e0e7ff; color: #4f46e5; }
.badge-purple { background: #f3e8ff; color: #6c5ce7; }

/* Progress Bar */
.progress-wrap { width: 100%; display: flex; align-items: center; gap: 10px; }
.progress-bg { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #6c5ce7, #00cec9); border-radius: 4px; position: relative; overflow: hidden; }
.progress-bar::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); animation: shimmer 2s infinite; transform: translateX(-100%); }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: rgba(255, 255, 255, 0.6); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.8); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: #2d3436; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.8); outline: none; transition: all 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background: white; border-color: #6c5ce7; box-shadow: 0 0 10px rgba(108, 92, 231, 0.1); }
.form-group.full-width { grid-column: 1 / -1; }

/* Illustrations & Banners */
.banner { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(108,92,231,0.8) 0%, rgba(0,206,201,0.8) 100%); border-radius: 20px; padding: 30px 40px; color: white; margin-bottom: 30px; box-shadow: 0 10px 20px rgba(108,92,231,0.2); position: relative; overflow: hidden; }
.banner-text h2 { font-size: 1.8rem; margin-bottom: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.banner-text p { font-size: 1rem; opacity: 0.9; }
.banner-icon { font-size: 5rem; opacity: 0.2; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); animation: rocketFly 4s ease-in-out infinite alternate; }
@keyframes rocketFly {
    0% { transform: translateY(-50%) translateX(0) rotate(0deg); }
    50% { transform: translateY(-60%) translateX(10px) rotate(5deg); }
    100% { transform: translateY(-50%) translateX(0) rotate(0deg); }
}

.animated-illustration { width: 100%; max-width: 400px; height: auto; display: block; margin: 0 auto; animation: floatIcon 4s ease-in-out infinite; }

/* Pulse dot */
.pulse-dot { width: 10px; height: 10px; background: #00cec9; border-radius: 50%; display: inline-block; position: relative; }
.pulse-dot::after { content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: #00cec9; border-radius: 50%; animation: pulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

/* Avatar */
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Login */
.login-body { justify-content: center; align-items: center; background: url('./images/login-bg.jpg') center/cover no-repeat; overflow: hidden; }
.login-body::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(224, 229, 236, 0.82); }
.login-glass { background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 24px; padding: 50px; width: 450px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); text-align: center; position: relative; z-index: 10; animation: popIn 0.5s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.login-glass h2 { margin-bottom: 10px; background: linear-gradient(45deg, #6c5ce7, #00cec9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.error-msg { color: #ff7675; font-size: 0.85rem; margin-top: -10px; margin-bottom: 15px; display: none; }

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    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: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-10deg);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #2d3436, #636e72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-content p {
    font-size: 0.85rem;
    color: #636e72;
    font-weight: 500;
}

/* 统计卡片颜色变体 */
.stat-card-blue .stat-icon {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.stat-card-green .stat-icon {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

.stat-card-orange .stat-icon {
    background: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%);
    box-shadow: 0 8px 20px rgba(253, 203, 110, 0.3);
}

.stat-card-purple .stat-icon {
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    box-shadow: 0 8px 20px rgba(232, 67, 147, 0.3);
}

/* 筛选组 */
.filter-group {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
}

.filter-group .search-input {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    outline: none;
    font-size: 0.95rem;
    color: #2d3436;
    transition: all 0.3s;
    min-width: 250px;
}

.filter-group .search-input:focus {
    background: white;
    border-color: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.15);
    transform: translateY(-1px);
}

/* 重点优化：输入框视觉层级增强 */
.filter-group input[type="text"], .filter-group select {
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid rgba(108, 92, 231, 0.4); /* 加深边框，带微弱主题色 */
    background: #ffffff; /* 实体白底，不透明 */
    color: #2d3436;
    outline: none;
    transition: all 0.3s;
    font-size: 0.85rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* 增加内凹立体感 */
}

.filter-group input::placeholder {
    color: #a4b0be; /* 让提示文字更加清晰 */
}

.filter-group input:focus, .filter-group select:focus {
    background: #ffffff;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15); /* 强化聚焦时的光环边界 */
}

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.table-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #2d3436;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.table-action-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.table-action-btn.view-btn {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
}

.table-action-btn.view-btn:hover {
    background: #6c5ce7;
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.table-action-btn.edit-btn {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}

.table-action-btn.edit-btn:hover {
    background: #00b894;
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.table-action-btn.call-btn {
    background: rgba(0, 206, 201, 0.1);
    color: #00cec9;
}

.table-action-btn.call-btn:hover {
    background: #00cec9;
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.table-action-btn.delete-btn {
    background: rgba(255, 118, 117, 0.1);
    color: #ff7675;
}

.table-action-btn.delete-btn:hover {
    background: #ff7675;
    color: white;
    transform: translateY(-3px) scale(1.1);
}

/* 客户等级徽章 */
.level-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.level-badge.level-a {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #6c5ce7;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
}

.level-badge.level-b {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.level-badge.level-c {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.level-badge.level-d {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #ca8a04;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.2);
}

/* 客户状态徽章 */
.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.status-active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.status-badge.status-inactive {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.status-badge.status-lost {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #636e72;
    font-size: 0.9rem;
}

.pagination-info .page-size {
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    outline: none;
    font-size: 0.85rem;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-info .page-size:focus {
    background: white;
    border-color: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.15);
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    color: #636e72;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-btn:hover:not(:disabled) {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.page-btn.active {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border-color: #6c5ce7;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 复选框样式 */
.select-all {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6c5ce7;
}

tbody tr td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6c5ce7;
}

/* 尊重系统“减少动态效果”设置：彻底关闭一切动画/过渡，进一步降低开销 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
