.modern-title {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}
.modern-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.accent-bar {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin-top: 5px;
}
/* 新增: 步骤进度条样式 */
.step-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
}
.step-progress-bar:before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%; 
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #94a3b8;
    font-size: 20px;
    transition: all 0.3s ease;
}
.step.active .step-icon {
    background-color: #3498db;
    color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}
.step.completed .step-icon {
    background-color: #2ecc71;
    color: white;
}
.step-text {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}
.step.active .step-text {
    color: #3498db;
    font-weight: 600;
}
.step.completed .step-text {
    color: #2ecc71;
}
/* 新增: 流程指南样式 */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.process-step {
    flex: 1;
    min-width: 200px;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    border-left: 3px solid #3498db;
}
.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.step-content h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}
.step-content p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 0.9rem;
}
/* 新增: 指南标题样式 */
.guide-title {
    font-size: 28px; /* 匹配设计理念标题大小 */
    font-weight: 600;
    background: linear-gradient(45deg, #2c3e50, #3498db); /* 匹配设计理念标题渐变 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    padding-bottom: 5px; /* 添加下边距 */
}
.guide-title i {
    -webkit-text-fill-color: #3498db; /* 确保图标颜色可见 */
    margin-right: 10px; /* 调整图标和文字间距 */
}
/* Nav Tabs 样式增强 */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 500;
    color: #64748b;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.nav-tabs .nav-link:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
}
.nav-tabs .nav-link.active {
    color: #3498db;
    background-color: transparent;
    border-bottom: 2px solid #3498db;
}
/* 队伍摘要浮动窗口 */
.team-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}
.team-summary-header {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.refresh-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.refresh-btn:hover {
    transform: rotate(180deg);
}
.team-summary-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}
.summary-team {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}
.summary-team-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}
.summary-seats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.summary-seat {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #64748b;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.summary-seat.filled {
    background-color: #e0f2fe;
    color: #0c4a6e;
    border-color: #bae6fd;
}
/* 表单样式 */
.card {
    border-radius: 16px;
    overflow: hidden;
}
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.4);
}
.form-label {
    font-weight: 500;
    color: #2c3e50;
}
/* 候车大厅样式 */
.appointment-pool {
    min-height: 300px;
}
.appointment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 10px 0;
}
/* 职业分组样式 */
.profession-group {
    margin-bottom: 20px;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 12px 15px;
}
.profession-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.profession-title:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}
.appointment-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid #3498db;
    min-width: 220px;
    position: relative; /* 为了加急标签定位 */
}
.appointment-card.priority-high {
    border-left-color: #e67e22; /* 橙色边框表示高优先级 */
    background-color: #fdf2e9; /* 浅橙色背景 */
}
.appointment-card.priority-medium {
    border-left-color: #f1c40f; /* 黄色边框表示中优先级 */
    background-color: #fef9e7; /* 浅黄色背景 */
}
.priority-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
.priority-tag.high {
    background-color: #e67e22; /* 橙色 */
}
.priority-tag.medium {
    background-color: #f1c40f; /* 黄色 */
}
.appointment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}
.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.appointment-detail {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.9rem;
}
.appointment-detail i {
    margin-right: 8px;
    color: #718096;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}
.appointment-empty {
    text-align: center;
    padding: 50px 20px;
    color: #718096;
}
.appointment-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}
.appointment-empty p {
    font-size: 1.1rem;
    margin-bottom: 0;
}
/* 车队样式 */
.team-container {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8fafc;
    border-radius: 10px;
}
.team-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.team-seats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}
.team-seat {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 90px;
    position: relative;
}
.team-seat.priority-high {
    /* border-top-color: #e67e22; */ /* 与原有 before 冲突，改用其他方式 */
    background-color: #fdf2e9; /* 浅橙色背景 */
}
.team-seat.priority-high:before {
    background: #e67e22; /* 橙色顶部条 */
}
.team-seat.priority-medium {
    /* border-top-color: #f1c40f; */
    background-color: #fef9e7; /* 浅黄色背景 */
}
.team-seat.priority-medium:before {
    background: #f1c40f; /* 黄色顶部条 */
}
.team-seat:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
    border-radius: 8px 8px 0 0;
}
.seat-number {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.7rem;
    color: #a0aec0;
    font-weight: 500;
}
.seat-content {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
/* 拖拽相关样式 */
.draggable, .has-appointment {
    transition: all 0.2s ease;
}
/* 所有用户都有悬停效果，但只有管理员有抓取手型鼠标 */
.draggable:hover, .has-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.team-seat.dragover {
    border: 2px dashed #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}
.appointment-card.dragover {
    border: 2px dashed #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}
.profession-group.dragover {
    border: 2px dashed #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}
.appointment-pool-container {
    min-height: 100px;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8fafc;
}
.appointment-pool-container.dragover {
    border: 2px dashed #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}
.seat-info {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.seat-info i {
    font-size: 0.8rem;
    width: 14px;
    color: #718096;
}
.seat-info.seat-price span {
    color: #e67e22;
    font-weight: 600;
}
.seat-price-display.editable-price {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.seat-info.seat-price.manual-price span {
    color: #c0392b;
}
.price-edit-btn {
    padding: 0;
    margin-left: 6px;
    font-size: 0.8rem;
}
.price-edit-btn:hover {
    text-decoration: underline;
}

/* 对非管理员用户禁用点击事件 和 文本选择 */
body:not(.admin-mode) .seat-content,
body:not(.admin-mode) .appointment-card,
body:not(.admin-mode) .team-seat {
    pointer-events: none;
    /* 新增：只在非管理员模式下禁用文本选择 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
/* 确保管理员模式下可以拖拽操作 */
.admin-mode .draggable,
.admin-mode .drop-zone,
.admin-mode .has-appointment,
.admin-mode #appointmentPoolContainer {
    pointer-events: auto;
    /* 管理员模式下允许文本选择 (默认行为，无需显式设置 user-select: auto) */
}
/* 固定车队区域样式 */
.team-fixed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 70vh;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: none; /* 默认隐藏 */
    transition: all 0.3s ease;
}
.team-fixed-header {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.team-fixed-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}
.team-fixed-body {
    padding: 16px;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.team-fixed-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    display: none; /* 默认隐藏，由JavaScript控制显示 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: opacity 0.3s ease;
}
/* 快捷操作按钮 */
/* ��ݲ�����ť */
.quick-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}
@media (max-width: 575.98px) {
    .quick-action-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.quick-action-btn {
    background-color: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 6px 0;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-height: 34px;
    color: #1f2937;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.quick-action-btn:hover {
    background-color: #e2e8f0;
    color: #111827;
    transform: translateY(-1px);
}
.quick-action-btn.add-btn {
    color: #16a34a;
}
.quick-action-btn.add-btn:hover {
    background-color: #dcfce7;
    color: #166534;
}
.quick-action-btn.remove-btn {
    color: #dc2626;
    background-color: #fee2e2;
}
.quick-action-btn.remove-btn:hover {
    background-color: #fecaca;
    color: #b91c1c;
}
.mini-team {
    margin-bottom: 15px; /* 增加车队间距 */
}
.mini-team-title {
    font-size: 1rem; /* 稍大字体 */
    font-weight: 600;
    margin-bottom: 12px; /* 增加下边距 */
    padding-bottom: 8px; /* 增加下边距 */
    border-bottom: 1px solid #e2e8f0; /* 添加下边框 */
    color: #2c3e50;
}
.mini-seats {
    display: grid; /* 改为Grid布局 */
    grid-template-columns: repeat(5, 1fr); /* 5列 */
    grid-template-rows: repeat(2, auto); /* 2行，高度自动 */
    gap: 8px; /* 座位间距 */
}
.mini-seat {
    /* width: auto; */ /* 宽度由Grid控制 */
    height: 35px; /* 增加高度 */
    border-radius: 6px; /* 更圆润的边角 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.75rem; /* 稍小字体 */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent; /* 添加边框以便悬停 */
    overflow: hidden; /* 防止内容溢出 */
    text-overflow: ellipsis; /* 溢出时显示省略号 */
    white-space: nowrap; /* 防止文字换行 */
    padding: 0 4px; /* 增加左右内边距 */
}
.mini-seat.empty {
    background-color: #f8fafc; /* 更浅的背景 */
    color: #94a3b8; /* 稍浅的文字颜色 */
    border: 1px dashed #e2e8f0; /* 虚线边框 */
}
.mini-seat.empty:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e0;
}
.mini-seat.has-appointment {
    background-color: #e0f2fe; /* 浅蓝色背景 */
    color: #0c4a6e; /* 深蓝色文字 */
    font-weight: 500;
    border: 1px solid #bae6fd; /* 浅蓝色边框 */
}
.mini-seat.has-appointment:hover {
    background-color: #ccebff;
    border-color: #7dd3fc;
}
.mini-remove-btn {
    position: absolute;
    right: 3px; /* 调整位置 */
    top: 3px;   /* 调整位置到右上角 */
    transform: none; /* 移除之前的transform */
    background: rgba(255, 255, 255, 0.6); /* 半透明背景 */
    border: none;
    color: #ef4444; /* 红色 */
    font-size: 0.8rem; /* 稍大图标 */
    cursor: pointer;
    padding: 1px 3px; /* 调整内边距 */
    border-radius: 50%; /* 圆形按钮 */
    display: none; 
    line-height: 1; 
    transition: all 0.2s ease;
}
.mini-seat.has-appointment:hover .mini-remove-btn {
    display: inline-flex; /* 使用inline-flex使其内容居中 */
    align-items: center;
    justify-content: center;
}
.mini-remove-btn:hover {
    background: rgba(239, 68, 68, 0.8); /* 悬停时红色背景 */
    color: white;
}
.seat-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}
.seat-remove-btn {
    background-color: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.seat-remove-btn:hover {
    background-color: #fecaca;
    transform: translateY(-1px);
}
.profession-actions {
    display: flex;
    gap: 8px;
}
.action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.outline-btn {
    background-color: #f8fafc;
    color: #3498db;
    border: 1px solid #e2e8f0;
}
.outline-btn:hover {
    background-color: #e2e8f0;
}
.delete-btn {
    background-color: #fee2e2;
    color: #dc2626;
    border: none;
}
.delete-btn:hover {
    background-color: #fecaca;
}
.appointment-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.appointment-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
/* 处理中样式 */
.processing {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}
.processing::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    z-index: 5;
}
.processing::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    z-index: 10;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 高亮目标座位 */
.highlight-target {
    animation: pulse 0.8s ease-in-out 3;
    box-shadow: 0 0 0 2px #3498db;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}
/* 替换为以下样式 */
.has-appointment {
    transition: all 0.2s ease;
}
.has-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.appointment-pool-container {
    min-height: 100px;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8fafc;
}
/* 验证模态框样式 */
.modal-content-beautified {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.modal-header-beautified {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 15px 20px;
}
.modal-body-beautified {
    padding: 20px;
}
.modal-footer-beautified {
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
}
.qrcode-image-beautified {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.appointment-info-container {
    padding: 10px;
}
.appointment-info-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
}
.appointment-info-item strong {
    min-width: 100px;
    color: #2c3e50;
}
.appointment-info-item:last-child {
    border-bottom: none;
}
/* 取消登记卡片样式 */
.cancel-card {
    transition: all 0.3s ease;
}
.cancel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    transition: all 0.3s ease;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a33025);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
}
/* 表单标签美化 */
.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
/* 必填标记样式 */
.form-label .text-danger {
    font-size: 0.9em;
    vertical-align: middle;
}
/* 验证反馈消息样式 */
.invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
/* 表单提交按钮美化 */
.btn-primary, .btn-danger {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}
/* 增加按钮悬停效果 */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}
/* 新增: 职业筛选按钮样式 */
.profession-filter-btn {
    padding: 0.3rem 0.8rem; /* 稍微增加左右内边距 */
    font-size: 0.8rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #495057;
    min-width: 90px; /* 设置最小宽度 */
    text-align: center; /* 文本居中 */
    flex-shrink: 0; /* 防止按钮在空间不足时被压缩 */
}
.profession-filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 500;
}
.profession-filter-btn:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}
.profession-title {
    font-size: 1rem;
    font-weight: 600;
}
/* 新增：打手选择框样式 */
.worker-select {
    margin-top: 8px; /* 与其他信息保持间距 */
    padding: 0.25rem 0.5rem; /* 调整内边距 */
    font-size: 0.8rem; /* 调整字体大小 */
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    cursor: pointer; /* 添加手型光标 */
    width: 100%; /* 宽度充满 */
}
/* 新增：打手选择框悬停效果 */
.worker-select:hover {
    border-color: #adb5bd;
    background-color: #e9ecef;
}
/* 新增：打手选择框聚焦效果 */
.worker-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.1rem rgba(52, 152, 219, 0.25);
    outline: none;
}
/* Style for WeChat ID info row */
.wechat-id-info {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out, padding 0.3s ease-out;
    max-height: 50px; /* 根据需要调整 */
    opacity: 1;
    overflow: hidden;
    margin-top: 6px; /* 增加与上方元素的间距 */
    margin-bottom: 6px; /* 增加与下方元素的间距 */
    padding-top: 0;  /* 初始内边距 */
    padding-bottom: 0;
}
/* Style to hide WeChat ID info */
body.admin-mode:not(.show-wechat-id) .wechat-id-info {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important; 
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* 确保切换按钮在 flex 容器中垂直居中 */
.team-header-controls .btn {
    vertical-align: middle;
}
/* 新增：移动端车队座位横向滚动 */
@media (max-width: 768px) { /* 您可以根据需要调整断点 */
    .team-seats {
        display: flex;         /* 改为 flex 布局 */
        overflow-x: auto;      /* 允许横向滚动 */
        white-space: nowrap;   /* 防止座位换行 */
        padding-bottom: 15px;  /* 为滚动条留出空间 */
        /* 移除 grid 相关的属性，如果它们干扰 flex 布局 */
        grid-template-columns: none; 
        grid-template-rows: none;
    }
    .team-seat {
        flex: 0 0 auto;       /* 防止座位自动缩放 */
        width: 160px;         /* 为每个座位设置一个合适的宽度 */
        /* 可以根据需要调整其他样式，例如 min-height */
        margin-right: 10px;   /* 替代 gap 属性 */
    }
    .team-seat:last-child {
        margin-right: 0;     /* 最后一个座位不需要右边距 */
    }
    .team-container {
        padding-left: 15px; /* 调整容器内边距以适应滚动 */
        padding-right: 15px;
    }
}
/* 新增：车队座位滚动包裹层样式 */
.team-seats-scroll-wrapper {
    overflow-x: auto;   /* 允许横向滚动 */
    width: 100%;        /* 占据父容器宽度 */
    padding-bottom: 10px; /* 为滚动条留出一点空间 */
}
/* 确保内部网格有足够的最小宽度来触发滚动 */
.team-seats {
    /* 保留原有的 grid 样式 */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto); /* 改为auto，让行高自适应 */
    gap: 10px;
    /* 移除 min-width，让其自然宽度由内容决定 */
    /* min-width: 750px; */ 
}
/* 可以稍微调整座位的最小宽度，以确保布局稳定 */
.team-seat {
    min-width: 140px; /* 示例值，确保内容不会过度压缩 */
}
/* ADD THESE STYLES for .priority-50 cards */
.appointment-card.priority-50 {
    border-left: 3px solid #FF8E53;
    background: linear-gradient(to right, rgba(255, 142, 83, 0.05), transparent);
    box-shadow: 0 4px 10px rgba(255, 142, 83, 0.1);
}
.appointment-card.priority-50:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 142, 83, 0.2);
}
/* END ADDED STYLES for .priority-50 cards */
/* ADD THESE STYLES for new user cards */
.appointment-card.new-user {
    border-left: 3px solid #28a745;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.05), transparent);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.1);
}
.appointment-card.new-user:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.2);
}
/* END ADDED STYLES for new user cards */
/* ADD THESE STYLES for .priority-50 seats */
.team-seat.priority-50 {
    border-left: 3px solid #FF8E53; /* Add this for consistency if desired, or rely on :before */
    background: linear-gradient(to right, rgba(255, 142, 83, 0.05), white);
}
.team-seat.priority-50:hover { /* Optional: Add hover for .team-seat.priority-50 if needed */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 142, 83, 0.15);
}
.team-seat.priority-50:before { /* Ensure :before style is also updated or correctly inherited */
    background: #FF8E53; /* Orange top bar for priority-50 */
}
/* END ADDED STYLES for .priority-50 seats */
/* ADD THESE STYLES for new user seats */
.team-seat.new-user {
    border-left: 3px solid #28a745;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.05), white);
}
.team-seat.new-user:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.15);
}
.team-seat.new-user:before {
    background: #28a745; /* Green top bar for new users */
}
/* END ADDED STYLES for new user seats */
/* Seat card specific badge adjustment */
.team-seat .priority-badge {
    top: 8px; 
    right: 8px;
}
.team-seat:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
    border-radius: 8px 8px 0 0;
}
.priority-badge {
    position: absolute;
    top: 5px; 
    right: 5px; 
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10; 
}
.priority-badge.priority-50 {
    background: linear-gradient(135deg, #fd7e14, #e67e22);
}
.priority-badge.new-user {
    background: linear-gradient(135deg, #28a745, #20c997);
}
.priority-icon {
    margin-right: 5px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}
/* 新增：控制手机号显隐的CSS */
.phone-masked {
    display: none; /* 默认显示完整手机号（当showPhoneNumber为true时），所以脱敏的先根据body class决定 */
}
body.show-phone-number .phone-full {
    display: inline;
}
body.show-phone-number .phone-masked {
    display: none;
}
body:not(.show-phone-number) .phone-full {
    display: none;
}
body:not(.show-phone-number) .phone-masked {
    display: inline;
}
/* 确保切换按钮在 flex 容器中垂直居中 */
.team-header-controls .btn {
    vertical-align: middle;
}
/* 新增：在登记信息模态框中始终显示完整手机号 */
#appointmentInfoBody .phone-full {
    display: inline !important; /* 使用!important确保覆盖其他规则 */
}
#appointmentInfoBody .phone-masked {
    display: none !important; /* 确保脱敏号码不显示 */
}
/* 新增：为打手提供可复制的手机号样式 */
.seat-info .copyable-phone {
    pointer-events: auto !important; /* 确保它在禁用的卡片上仍然可以点击 */
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
    font-weight: bold;
}
/* 新增：直播链接样式 */
.stream-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    border-bottom: 1px dashed #3498db;
    pointer-events: auto !important;
    cursor: pointer;
}
.stream-link:hover {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px solid #2980b9;
}
/* 新增：时间选择器弹窗样式 */
.time-picker-modal .modal-dialog {
    max-width: 320px;
}
.time-picker-container {
    display: flex;
    justify-content: space-between;
    height: 200px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    cursor: grab;
}
.time-picker-container:active {
    cursor: grabbing;
}
.time-picker-column {
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.time-picker-column::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-top: 1px solid rgba(52, 152, 219, 0.3);
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}
.picker-options {
    padding-top: 80px; /* (container_height / 2) - (option_height / 2) */
    padding-bottom: 80px;
}
.picker-option {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6c757d;
    transition: color 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
    user-select: none; /* 禁止文本选择 */
}
/* 副本多选布局 */
.dungeon-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 12px;
    align-items: center;
}
.dungeon-checkbox-grid .form-check {
    margin: 0;
    padding-left: 1.4rem;
}
.dungeon-checkbox-grid .form-check-input {
    margin-top: 0.15rem;
}
.dungeon-checkbox-grid .form-check-label {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Step1 最终价格预览（参考电商结算区的强调风格） */
.final-price-card {
    border: 1px solid #ffd9c2;
    border-radius: 10px;
    background: #fffaf7;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.final-price-header {
    padding: 10px 12px;
    border-bottom: 1px dashed #ffe2d1;
    background: linear-gradient(180deg, #fff1e8, #fffaf7);
}
.final-price-title {
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.final-price-subtitle {
    font-weight: 400;
    font-size: 0.85rem;
    color: #6c757d;
}
.final-price-body {
    background: #ffffff;
}
.final-price-empty {
    padding: 12px;
    color: #6c757d;
    font-size: 0.95rem;
}
.final-price-item {
    padding: 12px;
    border-bottom: 1px solid #f2f2f2;
}
.final-price-item:last-child {
    border-bottom: none;
}
.final-price-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.final-price-item-name {
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}
.final-price-item-price {
    font-weight: 800;
    color: #ff5000;
    font-size: 1.15rem;
    white-space: nowrap;
}
.final-price-item-price.muted {
    color: #adb5bd;
    font-weight: 700;
}
.final-price-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.final-price-tag {
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #6c757d;
    line-height: 1.4;
}
.final-price-tag.tag-surcharge,
.final-price-tag.tag-priority {
    background: #fff1e6;
    color: #ff5000;
    border: 1px solid #ffd7bf;
}
.final-price-tag.tag-discount {
    background: #e8fff0;
    color: #0f8a3b;
    border: 1px solid #b7f0c9;
}
.final-price-tag.tag-note {
    background: #f2f8ff;
    color: #1f6feb;
    border: 1px solid #cfe2ff;
}
.final-price-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid #ffe2d1;
    background: #fff7f2;
}
.final-price-footer-label {
    font-weight: 700;
    color: #212529;
}
.final-price-total {
    font-weight: 900;
    color: #ff5000;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}
.final-price-hint {
    padding-left: 2px;
}

/* 结算区风格（参考淘宝） */
.final-settle-rows {
    padding: 8px 12px 4px;
}
.final-settle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
    color: #555;
}
.final-settle-label {
    color: #666;
}
.final-settle-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.final-settle-value {
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}
.final-settle-value.add {
    color: #ff7a00;
    font-weight: 700;
}
.final-settle-value.discount {
    color: #ff5000;
    font-weight: 700;
}
.final-settle-value.muted {
    color: #adb5bd;
    font-weight: 500;
}
.final-settle-row-toggle {
    cursor: pointer;
    user-select: none;
}
.final-settle-chevron {
    color: #adb5bd;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}
.final-settle-row-toggle.expanded .final-settle-chevron {
    transform: rotate(180deg);
}
.final-settle-details {
    margin-top: 6px;
    border-top: 1px dashed #f0f0f0;
    padding-top: 6px;
}
