/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #f5f0eb;
  color: #333;
}
a {
  text-decoration: none;
  color: inherit;
}

:root {
  --primary: #d4a574;
  --primary-dark: #b8885a;
  --primary-light: #f5e6d8;
  --sidebar-width: 220px;
  --header-height: 60px;
}

/* ===== 布局 ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background: #3d2c1f;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h1 {
  font-size: 18px;
  color: #d4a574;
}

.sidebar-brand p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.sidebar-nav {
  padding: 12px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav-item.active {
  background: rgba(212, 165, 116, 0.2);
  color: #d4a574;
  border-right: 3px solid #d4a574;
}
.nav-item .icon {
  margin-right: 12px;
  font-size: 18px;
}

/* 主内容区 */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* 顶部栏 */
.topbar {
  height: var(--header-height);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid #e8e0d8;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-user .name {
  font-size: 14px;
  color: #666;
}
.logout-btn {
  font-size: 13px;
  color: #d4a574;
  cursor: pointer;
  background: none;
  border: none;
}
.logout-btn:hover {
  text-decoration: underline;
}

/* 移动端菜单按钮（桌面隐藏） */
.menu-toggle {
  display: none;
}
/* 侧边栏遮罩（桌面隐藏） */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}
.sidebar-overlay.show {
  display: block;
}

/* 内容区 */
.content {
  padding: 24px 32px;
}

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8e0;
}

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.stat-card .num {
  font-size: 40px;
  font-weight: 700;
  color: #d4a574;
  display: block;
}
.stat-card .label {
  font-size: 14px;
  color: #999;
  margin-top: 8px;
  display: block;
}

/* ===== 表格 ===== */
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0e8e0;
}
th {
  background: #faf8f6;
  color: #666;
  font-weight: 600;
  font-size: 13px;
}
tr:hover td {
  background: #faf8f6;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border-radius: 50%;
}
.preset-badge {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.edit-nickname {
  cursor: pointer;
  border-bottom: 1px dashed #ccc;
  transition: border-color 0.15s;
}
.edit-nickname:hover {
  border-bottom-color: #D4A574;
}
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.status-badge.active {
  background: #e8f5e9;
  color: #4caf50;
}
.status-badge.disabled {
  background: #fce4ec;
  color: #e91e63;
}
.status-badge.pending {
  background: #e3f2fd;
  color: #1976d2;
}
.status-badge.done {
  background: #e8f5e9;
  color: #388e3c;
}
.status-badge.cancelled {
  background: #f5f5f5;
  color: #999;
}

.type-badge {
  display: inline-block;
  padding: 2rpx 10rpx;
  border-radius: 6rpx;
  font-size: 12rpx;
  font-weight: 600;
}
.type-badge.tag-group {
  background: #fef5ec;
  color: #d4a574;
}
.type-badge.tag-private {
  background: #e8f4f8;
  color: #6a9fb5;
}

/* 私教日历视图 */
.private-calendar {
  padding: 8px 0;
}
.cal-day {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.cal-day-header {
  font-size: 15px;
  font-weight: 600;
  color: #6a9fb5;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef5f8;
}
.cal-window {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.cal-window:last-child {
  border-bottom: none;
}
.cal-time {
  font-weight: 600;
  color: #333;
  min-width: 100px;
}
.cal-coach {
  color: #666;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.85;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-danger {
  background: #e74c3c;
  color: #fff;
}
.btn-success {
  background: #4caf50;
  color: #fff;
}
.btn-default {
  background: #f0e8e0;
  color: #666;
}
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}
.btn-info {
  background: #5a7fa0;
  color: #fff;
}

/* ===== 预约待上课大卡片 ===== */
.booking-pending-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}
.booking-pending-card {
  width: calc(18% - 14px);
  min-width: 220px;
  background: linear-gradient(145deg, #fffdf9, #fff);
  border: 1px solid #efe2d7;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking-pending-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.bpc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bpc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0e4d9;
}
.bpc-user {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bpc-name {
  font-size: 16px;
  font-weight: 600;
  color: #3d2c1f;
}
.bpc-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 6px;
  background: #fef5ec;
  color: #D4A574;
  align-self: flex-start;
}
.bpc-type.tag-private {
  background: #e8f4f8;
  color: #6a9fb5;
}
.bpc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #f0e8e0;
}
.bpc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bpc-label {
  font-size: 13px;
  color: #999;
}
.bpc-val {
  font-size: 14px;
  font-weight: 500;
  color: #3d2c1f;
}
.bpc-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.bpc-actions .btn {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  height: 38px;
  border: 1px solid #e0d8d0;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: var(--primary);
}
.search-bar input[type="text"] {
  width: 240px;
}
.search-bar select {
  width: 140px;
}

/* ===== 表单 ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 38px;
  border: 1px solid #e0d8d0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.form-group textarea {
  height: 80px;
  padding: 10px 12px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-box h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

/* ===== 提示 ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 300;
  display: none;
}
.toast.show {
  display: block;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 14px;
}

/* ===== 操作列 ===== */
.action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== 过渡动画 ===== */
/* 页面切换 - 淡入上滑 */
.page-enter-active {
  animation: pageIn 0.3s ease-out;
}
.page-leave-active {
  animation: pageOut 0.2s ease-in;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* 弹窗 - 淡入+缩放 */
.modal-enter-active {
  animation: modalIn 0.25s ease-out;
}
.modal-leave-active {
  animation: modalOut 0.2s ease-in;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* 弹窗遮罩 - 淡入淡出 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 列表项 - 逐条滑入 */
.list-enter-active {
  animation: slideIn 0.25s ease-out;
  animation-fill-mode: both;
}
.list-enter-active:nth-child(1) {
  animation-delay: 0s;
}
.list-enter-active:nth-child(2) {
  animation-delay: 0.04s;
}
.list-enter-active:nth-child(3) {
  animation-delay: 0.08s;
}
.list-enter-active:nth-child(4) {
  animation-delay: 0.12s;
}
.list-enter-active:nth-child(5) {
  animation-delay: 0.16s;
}
.list-enter-active:nth-child(6) {
  animation-delay: 0.2s;
}
.list-leave-active {
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.list-enter-from {
  opacity: 0;
  transform: translateX(-20px);
}
.list-leave-to {
  opacity: 0;
  transform: translateX(20px);
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 统计卡片 - 计数上浮 */
.stat-card {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===== 月课表 ===== */
.schedule-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.schedule-card {
  padding: 28px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}
.schedule-card.is-exporting {
  box-shadow: none;
}
.schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.schedule-card-title {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 22px;
}
.schedule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #8a7a69;
  font-size: 13px;
}
.schedule-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.schedule-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.month-nav,
.export-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.month-nav select {
  height: 38px;
  border: 1px solid #e0d8d0;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}
.export-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7d6d5d;
  font-size: 13px;
}
.schedule-board {
  overflow-x: auto;
  border: 1px solid #efe2d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.schedule-grid {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.schedule-grid thead th {
  background: #f7efe6;
  color: #6d5b49;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #ead9cb;
}
.schedule-grid th,
.schedule-grid td {
  padding: 0;
  border-bottom: 1px solid #f0e4d9;
}
.time-head,
.time-slot {
  width: 118px;
  text-align: center;
  background: #fcf6ef;
  color: #7c6b59;
  font-weight: 700;
}
.schedule-cell {
  height: 92px;
  vertical-align: top;
  border-left: 1px solid #f5e9dd;
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  position: relative;
}
.schedule-cell:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.2);
}
.schedule-cell.is-empty {
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}
.schedule-cell.has-cell {
  color: #47382e;
}
.schedule-cell.color-green {
  background: #edf8e9;
}
.schedule-cell.color-pink {
  background: #fde8ef;
}
.schedule-cell.color-yellow {
  background: #fff5cf;
}
.cell-main {
  padding: 12px 12px 8px;
}

/* ===== 私教排课 - 灵活周视图 ===== */
.private-week-view {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
}
.pv-day {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border: 1px solid #efe2d7;
  border-radius: 14px;
  overflow: hidden;
}
.pv-day-header {
  background: linear-gradient(135deg, #6a9fb5, #5a8fa5);
  color: #fff;
  text-align: center;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
}
.pv-day-body {
  padding: 8px;
  min-height: 80px;
}
.pv-empty {
  text-align: center;
  padding: 20px 0;
}
.pv-add-btn {
  color: #6a9fb5;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.pv-add-btn:hover { opacity: 1; }
.pv-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf8e9;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12px;
}
.pv-window-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pv-coach { font-weight: 600; color: #2e7d32; }
.pv-venue { color: #6a9fb5; font-size: 11px; }
.pv-time { color: #666; font-size: 11px; }
.pv-remark { color: #8a6d3b; font-size: 11px; margin-top: 2px; }
.pv-window-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
}
.cell-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
.cell-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(71, 56, 46, 0.7);
  line-height: 1.35;
}
.cell-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(71, 56, 46, 0.58);
}
.schedule-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 20px;
  color: #7d6c5c;
  font-size: 13px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.schedule-note textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #e0d8d0;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  background: #fffdfb;
}
.schedule-modal {
  width: 720px;
  max-width: 92vw;
}
.schedule-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.schedule-modal .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.schedule-modal .form-group select,
.schedule-modal .form-group input,
.schedule-modal .form-group textarea {
  width: 100%;
}

/* 场地快速选择按钮 */
.venue-picker {
  display: flex;
  gap: 8px;
}
.vp-btn {
  flex: 1;
  height: 38px;
  border: 2px solid #e0d8d0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
  color: #3d2c1f;
}
.vp-btn:hover {
  border-color: #D4A574;
  background: #fef5ec;
}
.vp-btn.active {
  border-color: #D4A574;
  background: #D4A574;
  color: #fff;
}
.vp-btn .vp-icon {
  font-size: 18px;
}

.schedule-card.is-exporting .schedule-toolbar,
.schedule-card.is-exporting .schedule-actions,
.schedule-card.is-exporting .schedule-editor-actions,
.schedule-card.is-exporting .export-tools,
.schedule-card.is-exporting .cell-tag {
  display: none !important;
}

.schedule-card.is-exporting .schedule-cell {
  cursor: default;
}

@media (max-width: 960px) {
  .schedule-header {
    flex-direction: column;
  }
  .schedule-toolbar {
    align-items: flex-start;
  }
  .schedule-modal {
    width: 92vw;
  }
}

/* ===== 移动端竖屏适配 ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }
  /* 侧边栏改为顶部菜单按钮 */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: 200px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .content {
    padding: 12px;
  }
  .topbar {
    padding: 0 12px;
    height: 50px;
  }
  .topbar-title {
    font-size: 15px;
  }
  /* 移动端菜单切换按钮 */
  .menu-toggle {
    display: block !important;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 0;
    line-height: 1;
  }
  /* 侧边栏遮罩 */
  .sidebar-overlay {
    display: none !important;
  }
  .sidebar-overlay.show {
    display: block !important;
  }
  /* 卡片 */
  .card {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .card-title {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  /* 统计卡片 */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .stat-card .num {
    font-size: 28px;
  }
  .stat-card .label {
    font-size: 12px;
  }
  /* 表格 */
  table {
    font-size: 12px;
  }
  th, td {
    padding: 8px 8px;
  }
  .table-wrapper {
    margin: 0 -4px;
  }
  /* 搜索栏 */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar input[type="text"] {
    width: 100%;
  }
  .search-bar input,
  .search-bar select {
    width: 100%;
    height: 42px;
    font-size: 15px;
  }
  /* 按钮在移动端更大触摸区域 */
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
  }
  /* 预约待上课卡片 */
  .booking-pending-card {
    width: 100%;
    min-width: 0;
    padding: 14px;
  }
  .booking-pending-grid {
    padding: 8px 0;
    gap: 10px;
  }
  .bpc-name {
    font-size: 14px;
  }
  .bpc-avatar {
    width: 36px;
    height: 36px;
  }
  /* 排课表 */
  .schedule-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .schedule-grid {
    min-width: 600px;
  }
  .schedule-grid th,
  .schedule-grid td {
    padding: 6px 8px;
    font-size: 11px;
  }
  .cell-name {
    font-size: 11px;
  }
  .cell-sub {
    font-size: 10px;
  }
  .schedule-toolbar {
    flex-direction: column;
    gap: 8px;
  }
  .month-nav {
    flex-wrap: wrap;
  }
  .month-nav select {
    width: auto;
    flex: 1;
  }
  /* 弹窗 */
  .modal-box {
    width: 92vw !important;
    max-width: 92vw !important;
    padding: 20px 16px !important;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  /* 私教周视图 */
  .private-week-view {
    overflow-x: auto;
  }
  .pv-day {
    min-width: 120px;
  }
  /* 场地选择器 */
  .venue-picker {
    flex-wrap: wrap;
  }
  .vp-btn {
    height: 44px;
    font-size: 13px;
  }
  /* 表单 */
  .form-group label {
    font-size: 13px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    height: 42px;
    font-size: 15px;
  }
  .form-group textarea {
    height: 70px;
  }
  /* 编辑弹窗按钮行 */
  .schedule-editor-actions {
    flex-wrap: wrap;
  }
  .schedule-editor-actions .btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }
  /* Toast */
  .toast {
    bottom: 20px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
  }
}

/* ===== 过渡动画 ===== */
/* 弹窗遮罩 - CSS过渡 */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
  display: flex;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-overlay .modal-box {
  transform: scale(0.92);
  transition: transform 0.25s ease-out;
}
.modal-overlay.show .modal-box {
  transform: scale(1);
}

/* 统计卡片 - 悬停上浮 */
.stat-card {
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

/* 侧边栏导航 */
.nav-item {
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #d4a574;
  border-radius: 0 3px 3px 0;
}
.nav-item.active {
  background: rgba(212, 165, 116, 0.15);
  padding-left: 28px;
}
.nav-item.active::after {
  left: 0;
}

/* 按钮微交互 */
.btn {
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(135deg, #d4a574, #c49464);
  background-size: 200% 100%;
  transition:
    background-position 0.3s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 4px 14px rgba(212, 165, 116, 0.35);
}

/* 表格行 */
tr {
  transition: background 0.15s;
}
tr:hover td {
  background: #faf6f2 !important;
}

/* 卡片阴影 */
.card {
  transition:
    box-shadow 0.25s,
    transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 顶部栏微阴影 */
.topbar {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* 列表项逐条进入 */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
tr {
  animation: fadeSlideIn 0.3s ease-out both;
}
tr:nth-child(1) {
  animation-delay: 0s;
}
tr:nth-child(2) {
  animation-delay: 0.04s;
}
tr:nth-child(3) {
  animation-delay: 0.08s;
}
tr:nth-child(4) {
  animation-delay: 0.12s;
}
tr:nth-child(5) {
  animation-delay: 0.16s;
}
tr:nth-child(6) {
  animation-delay: 0.2s;
}
tr:nth-child(7) {
  animation-delay: 0.24s;
}
tr:nth-child(8) {
  animation-delay: 0.28s;
}
tr:nth-child(9) {
  animation-delay: 0.32s;
}
tr:nth-child(10) {
  animation-delay: 0.36s;
}

/* 页面内容进入 */
@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content {
  animation: contentIn 0.35s ease-out;
}

/* 签到状态呼吸 */
@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(212, 165, 116, 0);
  }
}
.status-badge.pending {
  animation: breathe 2s ease-in-out infinite;
}

/* Toast 滑入 */
.toast {
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 快速入口按钮动画 */
.card-title + div .btn {
  transition: all 0.25s;
}
.card-title + div .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* 侧边栏品牌 */
.sidebar-brand h1 {
  background: linear-gradient(135deg, #d4a574, #e8c9a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 页面切换动画（Vue Transition） */
.page-enter-active {
  animation: pageIn 0.3s ease-out;
}
.page-leave-active {
  animation: pageOut 0.2s ease-in;
  position: absolute;
  width: 100%;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
.content {
  position: relative;
}

/* 加载状态动效 */
.empty-state.loading {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}
