@charset "UTF-8";
/* 柔和渐变背景+模糊光斑 */
body {
    background: linear-gradient(120deg, #e0e7ff 0%, #f5f7ff 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    left: -120px;
    top: 8vh;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #b1c6ff33 0%, #e0e7ff00 80%);
    filter: blur(36px);
    z-index: 0;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    right: -100px;
    bottom: 4vh;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #e0e7ff44 0%, #f5f7ff00 80%);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

/* 登录卡片毛玻璃+半透明+大圆角+柔和阴影 */
.admin-login-box {
    max-width: 420px;
    margin: 120px auto;
    background: rgba(255,255,255,0.82);
    border-radius: 32px;
    box-shadow: 0 16px 48px 0 rgba(74,108,247,0.13), 0 2px 12px #e0e7ff;
    padding: 54px 44px 38px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1.5px solid #e0e7ff;
}
.admin-login-box h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 100;
    color: #4a6cf7;
    letter-spacing: 1px;
}
.admin-login-subtitle {
    text-align: center;
    color: #6a7bbd;
    font-size: 18px;
    margin-bottom: 36px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.admin-login-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}
.admin-login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a6cf7;
    font-size: 19px;
    opacity: 0.82;
}
.admin-login-box input {
    width: 85%;
    padding: 15px 16px 15px 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    font-size: 17px;
    background: #f8faffcc;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-shadow: 0 2px 8px #e0e7ff33;
}
.admin-login-box input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px #4a6cf733;
    background: #fff;
}
.admin-login-box button {
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(90deg, #466cf6 0%, #6a8aff 100%);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 100;
    box-shadow: 0 4px 18px rgba(74,108,247,0.13);
    cursor: pointer;
    transition: background 0.22s, transform 0.18s, box-shadow 0.18s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}
.admin-login-box button:hover {
    background: linear-gradient(90deg, #3a5ae8 0%, #4a6cf7 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(74,108,247,0.18);
}
.admin-login-msg {
    margin-top: 12px;
    text-align: center;
    min-height: 24px;
    font-size: 15px;
}
.admin-login-tips {
    margin-top: 22px;
    color: #4a6cf7;
    font-size: 15px;
    text-align: center;
    background: #f8faffcc;
    border-radius: 12px;
    padding: 12px 0;
    width: 100%;
    box-shadow: 0 2px 8px #e0e7ff33;
    border-left: 4px solid #4a6cf7;
    font-weight: 500;
    letter-spacing: 0.5px;
}
@media (max-width: 600px) {
    .admin-login-box {
        max-width: 98vw;
        padding: 18px 4vw 18px 4vw;
        border-radius: 18px;
    }
    .admin-login-box h2 { font-size: 22px; }
    .admin-login-subtitle { font-size: 15px; }
    .admin-login-box button { font-size: 16px; }
}

/* 主界面渐变背景和卡片化 */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(120deg, #e0e7ff 0%, #f5f7ff 100%);
}
.admin-sidebar {
    width: 220px;
    background: rgba(74,108,247,0.98);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(74,108,247,0.10);
    /*border-radius: 0 18px 18px 0;*/
}
.sidebar-title {
    font-size: 22px;
    font-weight: 100;
    padding: 32px 0 24px 0;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 1px solid #466cf6;
    margin-bottom: 10px;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
    border: none;
    background: none;
    margin: 0;
    padding: 0;
}
.sidebar-menu li i {
    margin-right: 10px;
    font-size: 18px;
}
.sidebar-menu li.active {
    color: #fff;
    background: none;
    border: none;
}
.sidebar-menu li.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: #fff;
    border-radius: 1px;
}
.sidebar-menu li.active, .sidebar-menu li:hover {
    background: none !important;
    color: #fff;
    border-left: none;
}
.sidebar-menu li:hover:not(.active) {
    color: #e0e7ff;
}
.admin-main-content {
    flex: 1;
    background: transparent;
    padding: 48px 40px 40px 40px;
    min-height: 100vh;
}
/* 卡片化内容区 */
.admin-main-content > div, .admin-main-content > section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #e6eaf1;
    padding: 32px 32px 24px 32px;
    margin-bottom: 32px;
}
@media (max-width: 800px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; flex-direction: row; padding: 0; border-radius: 0 0 18px 18px; }
    .sidebar-title { display: none; }
    .sidebar-menu { display: flex; flex-direction: row; }
    .sidebar-menu li { flex: 1; padding: 14px 0; font-size: 15px; justify-content: center; border-left: none; border-bottom: 4px solid transparent; border-radius: 8px 8px 0 0; }
    .sidebar-menu li.active, .sidebar-menu li:hover { background: #fff; color: #4a6cf7; border-bottom: 4px solid #4a6cf7; border-left: none; }
    .admin-main-content { padding: 24px 8px; }
} 

/* 查询码弹窗美化 */
.driver-code-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px #4a6cf733;
    padding: 36px 32px 24px 32px;
    min-width: 340px;
    max-width: 96vw;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#driver-code-list {
    margin-top: 8px;
    font-size: 15px;
}
.driver-code-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}
.driver-code-table th, .driver-code-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f1f5;
    text-align: center;
}
.driver-code-table th {
    background: #f5f7ff;
    color: #4a6cf7;
    font-weight: 100;
}
.driver-code-table td {
    background: #fff;
}
.code-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}
.code-status-unused { background: #4caf50; }
.code-status-used { background: #f75a4a; }
.code-status-expired { background: #888; }
.code-copy-btn {
    background: #e2e8f0;
    color: #4a6cf7;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 4px;
    transition: background 0.18s, color 0.18s;
}
.code-copy-btn:hover {
    background: #4a6cf7;
    color: #fff;
}
.code-delete-btn {
    background: #f75a4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 4px;
    transition: background 0.18s;
}
.code-delete-btn:hover {
    background: #c62828;
} 

/* 查询码弹窗背景和结构美化 */
.driver-code-modal-bg {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.driver-code-modal-bg[style*="display: flex"] {
    display: flex !important;
}
.driver-code-modal-title {
    margin: 0 0 18px 0;
    font-size: 20px;
    color: #4a6cf7;
    font-weight: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}
.driver-code-modal-tools {
    margin-bottom: 14px;
}
.driver-code-generate-btn {
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.driver-code-generate-btn:hover {
    background: #3a5ae8;
}
.driver-code-modal-footer {
    text-align: right;
    margin-top: 18px;
}
.driver-code-modal-close-btn {
    background: #e2e8f0;
    color: #333;
    border: none;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.driver-code-modal-close-btn:hover {
    background: #4a6cf7;
    color: #fff;
} 

/* 只让后台表格内容和表头居中，前台不受影响 */
.admin-main-content table th,
.admin-main-content table td {
    text-align: center !important;
    vertical-align: middle !important;
	font-weight: 100;
} 

/* 前台页面极致美化（参考高端UI） */
body, #app {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-width: 0;
    box-sizing: border-box;
}
#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.front-container {
    width: 100%;
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(240,242,247,0.8);
    position: relative;
    z-index: 10;
    margin-top: 20px;
}
.front-header {
    background: linear-gradient(135deg, #3a5ae8 0%, #6a8aff 100%);
    color: #fff;
    padding: 28px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.front-header .icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.front-header-title {
    font-size: 32px;
    font-weight: 100;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.front-header-subtitle {
    font-size: 17px;
    opacity: 0.92;
    font-weight: 400;
}
.front-tabs {
    display: flex;
    justify-content: center;
    background: #f8faff;
    border-bottom: 1px solid #e4e9ff;
    position: relative;
}
.front-tab-btn {
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: #5a6c93;
    transition: color 0.2s, background 0.2s, border-bottom 0.2s;
}
.front-tab-btn.active {
    color: #4a6cf7;
    border-bottom: 3px solid #4a6cf7;
    background: #fff;
}
.front-tab-btn:hover {
    color: #4a6cf7;
    background: #fff;
    border-bottom: 3px solid #4a6cf7;
}
.front-tab-content {
    padding: 35px;
    min-height: 500px;
}
.front-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(74,108,247,0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(234,237,255,0.8);
    transition: transform 0.3s, box-shadow 0.3s;
}
.front-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74,108,247,0.15);
}
.front-card-title {
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f3ff;
    font-size: 24px;
    font-weight: 100;
    display: flex;
    align-items: center;
    gap: 15px;
}
.front-card-title .icon {
    background: #eef2ff;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6cf7;
    font-size: 20px;
}
.front-input-group {
    margin-bottom: 25px;
}
.front-input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #718096;
    font-size: 16px;
}
.front-input, .front-select {
    width: 90%;
    padding: 16px 20px;
    border: 1px solid #d1d9ff;
    border-radius: 16px;
    font-size: 17px;
    transition: all 0.3s;
    background: #fafbff;
}
.front-input:focus, .front-select:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 4px rgba(74,108,247,0.18);
    background: #fff;
}
.front-btn {
    background: linear-gradient(90deg, #466cf6 0%, #6a8aff 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(74,108,247,0.13);
}
.front-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(74,108,247,0.18);
    background: linear-gradient(90deg, #3a5ae8 0%, #6a8aff 100%);
}
.front-instructions {
    background: #f9fafb;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    border-left: 4px solid #4a6cf7;
}
.front-instructions h3 {
    margin-bottom: 15px;
    color: #4a6cf7;
    display: flex;
    align-items: center;
    gap: 10px;
}
.front-instructions ol {
    padding-left: 25px;
}
.front-instructions li {
    margin-bottom: 15px;
}
@media (max-width: 900px) {
    #app { padding: 10px; }
    .front-container { border-radius: 14px; }
    .front-header { padding: 18px 10px; }
    .front-header-title { font-size: 22px; }
    .front-header-subtitle { font-size: 14px; }
    .front-tab-btn { padding: 12px 18px; font-size: 15px; }
    .front-card { padding: 18px 8px; border-radius: 10px; }
    .front-card-title { font-size: 18px; gap: 8px; }
    .front-card-title .icon { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
    .front-input-group label { font-size: 14px; }
    .front-input { font-size: 15px; padding: 10px 12px; border-radius: 10px; }
    .front-btn { font-size: 15px; padding: 12px 18px; border-radius: 10px; }
    .front-instructions { padding: 12px; border-radius: 10px; font-size: 14px; }
    .front-instructions h3 { font-size: 15px; gap: 6px; }
    .salary-table th, .salary-table td { font-size: 14px; padding: 10px 6px; }
}
@media (max-width: 600px) {
    #app { padding: 2vw; }
    .front-container { border-radius: 6px; }
    .front-header { padding: 10px 2vw; }
    .front-header-title { font-size: 16px; }
    .front-header-subtitle { font-size: 12px; }
    .front-tabs { flex-direction: column; }
    .front-tab-btn { width: 100%; padding: 10px 0; font-size: 14px; border-radius: 0; }
    .front-tab-content { padding: 6px 1vw; min-height: unset; }
    .front-card { padding: 8px 2vw; border-radius: 4px; }
    .front-card-title { font-size: 15px; gap: 5px; padding-bottom: 10px; }
    .front-card-title .icon { width: 24px; height: 24px; font-size: 12px; border-radius: 5px; }
    .front-input-group label { font-size: 12px; margin-bottom: 4px; }
    .front-input { font-size: 13px; padding: 8px 8px; border-radius: 6px; }
    .front-btn { font-size: 13px; padding: 10px 0; border-radius: 6px; }
    .front-instructions { padding: 7px; border-radius: 6px; font-size: 12px; }
    .front-instructions h3 { font-size: 13px; gap: 4px; }
    .front-instructions ol { padding-left: 16px; }
    .salary-table th, .salary-table td { font-size: 12px; padding: 7px 3px; }
    .salary-table { font-size: 12px; }
} 

/* 薪资表格美化 */
.salary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px #e0e7ff33;
    background: #fff;
}
.salary-table th, .salary-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e6eaf1;
    text-align: center;
    font-size: 16px;
}
.salary-table th {
    background: #f5f7ff;
    color: #4a6cf7;
    font-weight: 100;
}
.salary-table td {
    background: #fff;
} 

@media (max-width: 900px) {
    .front-container {
        max-width: 100vw;
        padding: 18px 2vw;
    }
}
@media (max-width: 600px) {
    .front-container {
        max-width: 100vw !important;
        width: 100vw !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .front-header,
    .front-tabs,
    .front-tab-content,
    .front-card,
    .front-instructions {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .front-card,
    .front-instructions {
        box-shadow: none !important;
        padding: 10px 8px !important;
    }
    .front-header {
        padding: 18px 0 10px 0 !important;
    }
    .front-tab-content {
        padding: 0 !important;
    }
    .salary-table {
        font-size: 12px !important;
    }
    .salary-table th, .salary-table td {
        padding: 7px 2px !important;
    }
} 