/**
 * 管理后台自定义样式
 * 现代化扁平风格（参考 Ant Design / Element UI）
 */

:root {
    --primary-color: #1890FF;
    --primary-hover: #40A9FF;
    --primary-active: #096DD9;
    --success-color: #52C41A;
    --warning-color: #FAAD14;
    --danger-color: #FF4D4F;
    --info-color: #1890FF;
    --text-primary: #262626;
    --text-secondary: #8C8C8C;
    --text-muted: #BFBFBF;
    --bg-body: #F0F2F5;
    --bg-white: #FFFFFF;
    --bg-sidebar: #001529;
    --bg-sidebar-hover: rgba(24, 144, 255, 0.1);
    --bg-sidebar-active: #1890FF;
    --border-color: #F0F0F0;
    --border-radius: 8px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --sidebar-width: 256px;
    --sidebar-collapsed-width: 80px;
    --header-height: 64px;
    --transition-speed: 0.25s;
}

/* ===== 基础样式 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5715;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-hover);
}

/* ===== 布局框架 ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: rgba(255, 255, 255, 0.65);
    transition: width var(--transition-speed) ease;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Logo区域 */
.sidebar-logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-logo-text {
    margin-left: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.admin-sidebar.collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* 菜单区域 */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    white-space: nowrap;
    position: relative;
}

.menu-link:hover {
    color: #fff;
    background-color: var(--bg-sidebar-hover);
}

.menu-link.active {
    color: #fff;
    background-color: var(--primary-color);
}

.menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: margin var(--transition-speed);
}

.menu-title {
    margin-left: 12px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.admin-sidebar.collapsed .menu-title,
.admin-sidebar.collapsed .menu-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 12px 0;
}

.admin-sidebar.collapsed .menu-icon {
    margin: 0;
    font-size: 18px;
}

.menu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    opacity: 1;
}

.menu-item.open > .menu-link .menu-arrow {
    transform: rotate(90deg);
}

/* 子菜单 */
.submenu {
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-speed) ease;
}

.menu-item.open > .submenu {
    max-height: 500px;
}

.submenu .menu-link {
    padding-left: 56px;
    font-size: 13px;
}

.submenu .menu-link.active {
    background: transparent;
    color: var(--primary-color);
}

.submenu .menu-link.active::before {
    display: none;
}

.admin-sidebar.collapsed .submenu {
    display: none;
}

/* 用户信息（底部） */
.sidebar-user {
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-user-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info {
    margin-left: 10px;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.admin-sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
}

.user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.user-role {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

/* ===== 主内容区 ===== */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: var(--sidebar-collapsed-width);
}

/* ===== 顶部导航栏 ===== */
.admin-header {
    height: var(--header-height);
    background: var(--bg-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.sidebar-toggle:hover {
    background: var(--bg-body);
    color: var(--primary-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 8px;
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    position: relative;
}

.header-btn:hover {
    background: var(--bg-body);
    color: var(--primary-color);
}

.header-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition-speed);
    border: none;
    background: transparent;
}

.user-dropdown:hover {
    background: var(--bg-body);
}

.user-dropdown img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown span {
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== 页面内容区 ===== */
.admin-content {
    flex: 1;
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

/* ===== 卡片样式 ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: none;
    margin-bottom: 24px;
    transition: box-shadow var(--transition-speed);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
}

/* ===== 统计卡片 ===== */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
}

.stat-icon.green {
    background: rgba(82, 196, 26, 0.1);
    color: var(--success-color);
}

.stat-icon.orange {
    background: rgba(250, 173, 20, 0.1);
    color: var(--warning-color);
}

.stat-icon.red {
    background: rgba(255, 77, 79, 0.1);
    color: var(--danger-color);
}

.stat-icon.purple {
    background: rgba(114, 46, 209, 0.1);
    color: #722ED1;
}

.stat-icon.cyan {
    background: rgba(19, 194, 194, 0.1);
    color: #13C2C2;
}

.stat-content {
    margin-left: 16px;
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 4px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-trend {
    font-size: 13px;
    margin-top: 4px;
}

.stat-trend.up {
    color: var(--success-color);
}

.stat-trend.down {
    color: var(--danger-color);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5715;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background: #73D13D;
    border-color: #73D13D;
    color: #fff;
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: #fff;
}

.btn-warning:hover {
    background: #FFC53D;
    border-color: #FFC53D;
    color: #fff;
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background: #FF7875;
    border-color: #FF7875;
    color: #fff;
}

.btn-info {
    background: var(--info-color);
    border-color: var(--info-color);
    color: #fff;
}

.btn-info:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-default {
    background: #fff;
    border-color: #D9D9D9;
    color: var(--text-primary);
}

.btn-default:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 8px 24px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline-warning {
    background: transparent;
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-outline-warning:hover {
    background: var(--warning-color);
    color: #fff;
}

.btn-outline-danger {
    background: transparent;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: #fff;
}

.btn-secondary {
    background: #F5F5F5;
    border-color: #D9D9D9;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* ===== 表格样式 ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead th {
    background: #FAFAFA;
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-speed);
}

.table tbody tr:hover {
    background: #FAFAFA;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== 表单样式 ===== */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control,
.form-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5715;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-select:disabled {
    background: #F5F5F5;
    color: var(--text-muted);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-primary);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #FAFAFA;
    border: 1px solid #D9D9D9;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group .form-control {
    border-radius: 0 6px 6px 0;
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.page-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ===== 徽章样式 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1.5;
}

.badge.bg-success {
    background: rgba(82, 196, 26, 0.1) !important;
    color: #389E0D;
}

.badge.bg-warning {
    background: rgba(250, 173, 20, 0.1) !important;
    color: #D48806;
}

.badge.bg-danger {
    background: rgba(255, 77, 79, 0.1) !important;
    color: #CF1322;
}

.badge.bg-info {
    background: rgba(24, 144, 255, 0.1) !important;
    color: #096DD9;
}

.badge.bg-secondary {
    background: #F5F5F5 !important;
    color: var(--text-secondary);
}

.badge.bg-primary {
    background: rgba(24, 144, 255, 0.1) !important;
    color: #096DD9;
}

/* ===== 警告框样式 ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.alert-success {
    background: rgba(82, 196, 26, 0.08);
    color: #389E0D;
}

.alert-danger {
    background: rgba(255, 77, 79, 0.08);
    color: #CF1322;
}

.alert-warning {
    background: rgba(250, 173, 20, 0.08);
    color: #D48806;
}

.alert-info {
    background: rgba(24, 144, 255, 0.08);
    color: #096DD9;
}

/* ===== 下拉菜单 ===== */
.dropdown-menu {
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    min-width: 160px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.dropdown-item:hover {
    background: #F5F5F5;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
    border: none;
}

/* ===== 登录页面 ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 16px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.login-logo p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

/* ===== 标签页 ===== */
.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.nav-tabs .nav-link {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* ===== 图片缩略图 ===== */
.img-thumbnail {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

/* ===== 进度条 ===== */
.progress {
    height: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ===== 分割线 ===== */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

/* ===== 搜索筛选区域 ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #FAFAFA;
    border-radius: var(--border-radius);
}

.filter-bar .form-control,
.filter-bar .form-select {
    width: auto;
    min-width: 180px;
}

/* ===== 页脚 ===== */
.admin-footer {
    padding: 16px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

/* ===== Toast 提示 ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-item {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-item.success {
    background: #fff;
    border-left: 4px solid var(--success-color);
    color: #389E0D;
}

.toast-item.error {
    background: #fff;
    border-left: 4px solid var(--danger-color);
    color: #CF1322;
}

/* ===== 步骤条 ===== */
.steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.step-item:last-child::after {
    display: none;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F5;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.step-item.active .step-dot,
.step-item.completed .step-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.step-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.step-item.active .step-title,
.step-item.completed .step-title {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== 响应式调整 ===== */
@media (max-width: 1199px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-sidebar.collapsed ~ .admin-main {
        margin-left: 0;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
    }

    .sidebar-backdrop.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-control,
    .filter-bar .form-select {
        width: 100%;
    }
}

/* ===== 通用工具类 ===== */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }

.float-end { float: right !important; }
.float-start { float: left !important; }

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.col-6 { width: 50%; padding-left: 12px; padding-right: 12px; }
.col-md-4 { width: 33.333333%; padding-left: 12px; padding-right: 12px; }
.col-md-6 { width: 50%; padding-left: 12px; padding-right: 12px; }
.col-md-8 { width: 66.666667%; padding-left: 12px; padding-right: 12px; }
.col-lg-3 { width: 25%; padding-left: 12px; padding-right: 12px; }
.col-12 { width: 100%; padding-left: 12px; padding-right: 12px; }

@media (max-width: 991px) {
    .col-md-4, .col-md-6, .col-md-8 {
        width: 100%;
    }
    .col-lg-3 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .col-lg-3, .col-6 {
        width: 100%;
    }
}
