
/* ============================================
   新专业布局 — 顶部深色导航 + 浅色侧边栏
   ============================================ */

body { margin: 0; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif; }

/* 顶部导航 */
.top-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px; background: #001529; color: #fff;
  display: flex; align-items: center; padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.topnav-left { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.topnav-logo { font-size: 28px; }
.topnav-title { font-size: 16px; font-weight: 700; white-space: nowrap; }
.topnav-center { flex: 1; display: flex; justify-content: center; gap: 4px; }
.topnav-center .topnav-item {
  padding: 8px 16px; color: rgba(255,255,255,0.65); cursor: pointer;
  font-size: 14px; border-radius: 6px; transition: all .2s;
}
.topnav-center .topnav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.topnav-center .topnav-item.active { color: #fff; background: #c49a6c; }
.topnav-right { display: flex; align-items: center; gap: 16px; min-width: 200px; justify-content: flex-end; }
.topnav-search input {
  height: 32px; padding: 0 12px; border: none; border-radius: 6px;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 13px; width: 180px; outline: none;
}
.topnav-search input::placeholder { color: rgba(255,255,255,0.45); }
.topnav-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #c49a6c;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; font-weight: 600; color: #fff;
}

/* 主体布局 */
.app-body { display: flex; margin-top: 56px; height: calc(100vh - 56px); width: 100%; }

/* 侧边栏 */
.sidebar { width: 220px; background: #fef9f0; overflow-y: auto; flex-shrink: 0; }
.sidebar-nav { padding: 8px 0; }
.nav-section {  }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer; color: #333;
  font-size: 14px; border-left: 3px solid transparent; transition: all .15s;
}
.nav-item:hover { background: #f5f5f5; }
.nav-item.active { background: #f0d5d8; color: #c49a6c; border-left-color: #c49a6c; }
.nav-item .icon { font-size: 16px; width: 20px; text-align: center; }
.nav-header { font-weight: 600; }
.nav-sub { padding-left: 48px !important; font-size: 13px !important; }
.nav-sub.active { background: #f0d5d8; color: #c49a6c; border-left: 3px solid #c49a6c !important; padding-left: 45px !important; }

/* 主内容区 */
.main-content {
  flex: 1; background: #fff; overflow-y: auto;
}
/* Card 容器 */
.pro-card {
  background: #fff;
  padding: 0;
}

/* Tab 切换 */
.pro-tabs { display: flex; gap: 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.pro-tab {
  padding: 10px 20px; cursor: pointer; font-size: 14px; color: #666;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.pro-tab:hover { color: #c49a6c; }
.pro-tab.active { color: #c49a6c; border-bottom-color: #c49a6c; font-weight: 600; }

/* 搜索行 */
.pro-search-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.pro-search-row input {
  height: 36px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 6px;
  font-size: 13px; width: 280px; outline: none;
}
.pro-search-row input:focus { border-color: #c49a6c; }
.pro-search-row .pro-btn {
  height: 36px; padding: 0 16px; border: none; border-radius: 6px;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.pro-btn-primary { background: #c49a6c; color: #fff; }
.pro-btn-primary:hover { background: #dbb88c; }
.pro-btn-default { background: #fff; border: 1px solid #d9d9d9; color: #333; }
.pro-btn-default:hover { border-color: #c49a6c; color: #c49a6c; }
.pro-search-right { margin-left: auto; display: flex; gap: 8px; }

/* 表格 */
.pro-table { width: 100%; border-collapse: collapse; }
.pro-table th {
  padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px;
  color: #333; background: #fafafa; border-bottom: 1px solid #f0f0f0;
}
.pro-table td {
  padding: 12px 16px; font-size: 13px; color: #666; border-bottom: 1px solid #f0f0f0;
}
.pro-table tr:hover td { background: #f5f5f5; }
.pro-table .pro-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px;
}
.pro-tag-blue { background: #f0d5d8; color: #c49a6c; }
.pro-tag-green { background: #f6ffed; color: #52c41a; }
.pro-table .pro-action { color: #c49a6c; cursor: pointer; font-size: 13px; }
.pro-table .pro-action:hover { color: #dbb88c; }

/* 分页 */
.pro-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 0; font-size: 13px; color: #666;
}
.pro-pagination .pro-page-btns { display: flex; gap: 4px; }
.pro-pagination .pro-page-btn {
  min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer; background: #fff; font-size: 13px;
}
.pro-pagination .pro-page-btn:hover { border-color: #c49a6c; color: #c49a6c; }
.pro-pagination .pro-page-btn.active { border-color: #c49a6c; background: #c49a6c; color: #fff; }
.pro-pagination .pro-page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* 登录页保持原有 */
.login-page {
  display: flex; align-items: center; justify-content: center;
  height: 100vh; background: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95);
}
.login-card { background: #fff; padding: 48px 40px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 400px; }

/* 保持旧样式兼容 */
.sidebar-footer, .staff-name, .logout-btn { display: none; }
.dash-kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.dash-kpi-val{font-size:28px;font-weight:700}.dash-kpi-label{font-size:13px;color:#6b7280;margin-top:4px}.dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:16px}.dash-stat{padding:20px;border-radius:12px;color:#fff}.dash-stat-val{font-size:24px;font-weight:700}.dash-stat-lbl{font-size:13px;opacity:.85;margin-top:4px}.dash-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.dash-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:20px;margin-bottom:16px}.dash-card-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:8px}.dash-card-hdr h4{font-size:16px;font-weight:600}.dash-btn-group{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.dash-date-input{height:30px;padding:0 6px;border:1px solid #d9d9d9;border-radius:6px;font-size:12px;width:140px;cursor:pointer}.dash-select{height:30px;padding:0 6px;border:1px solid #d9d9d9;border-radius:6px;font-size:12px;max-width:100px}/* =========================================
   声乐工作室管理系统 — PC 管理后台
   ========================================= */

:root {
  --primary: #c49a6c;
  --primary-light: #dbb88c;
  --primary-bg: #fef9f0;
  --sidebar-bg: #5c4033;
  --sidebar-hover: #755545;
  --text: #4a3728;
  --text-secondary: #8b7355;
  --border: #e8d5c4;
  --bg: #fef9f0;
  --card-bg: #ffffff;
  --success: #8fbc8f;
  --warning: #e8b86d;
  --danger: #d4837a;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(92,64,51,0.06), 0 1px 4px rgba(92,64,51,0.04);
  --shadow-lg: 0 8px 30px rgba(92,64,51,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
}

/* ========== 登录页 ========== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95);
}
.login-card {
  background: #fff;
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 400px;
}
.login-card h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}
.login-card p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  font-size: 14px;
}
.login-card .form-group {
  margin-bottom: 20px;
}
.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.login-card input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.login-card input:focus { border-color: var(--primary); }
.login-card .btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.login-card .btn:hover { background: var(--primary-light); }
.login-card .error {
  color: var(--danger);
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
  min-height: 20px;
}

/* ========== 后台布局 ========== */
.app-layout { display: none; height: 100vh; }
.app-layout.active { display: flex; }

/* 侧边栏 */
/* 旧sidebar样式已搬迁至新CSS中 */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header h2 { font-size: 18px; font-weight: 700; }
.sidebar-header span { font-size: 12px; opacity: 0.6; }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  color: #333;
  transition: all 0.15s;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: #f5f5f5; color: #1890ff; }
.nav-item.active {
  background: #e6f7ff;
  color: #1890ff;
  border-left-color: #1890ff;
}
.nav-item .icon { font-size: 18px; width: 24px; text-align: center; }
.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
}
/* 子菜单 */
.nav-section { cursor: pointer; }
.nav-header { font-weight: 600; }
.nav-sub {
  padding-left: 52px !important;
  font-size: 13px !important;
  border-left: none !important;
}
.nav-sub:hover { background: var(--sidebar-hover); color: #fff; }
.nav-sub.active { color: #fff; background: var(--sidebar-hover); border-left: 3px solid var(--primary-light) !important; padding-left: 49px !important; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .staff-name { font-size: 13px; font-weight: 600; }
.sidebar-footer .logout-btn {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
}
.sidebar-footer .logout-btn:hover { color: #fff; }

/* 主内容区 */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
}
.topbar h3 { font-size: 18px; font-weight: 600; }
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* ========== 页面容器 ========== */
.page-section { display: none; }
.page-section.active { display: block; }

/* ========== 通用组件 ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h4 { font-size: 16px; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-icon { padding: 6px; min-width: 32px; justify-content: center; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

.stat-card {
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
}
.stat-card .stat-value { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 13px; opacity: 0.85; }
.stat-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.stat-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.stat-green { background: linear-gradient(135deg, #059669, #34d399); }
.stat-orange { background: linear-gradient(135deg, #d97706, #fbbf24); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  font-weight: 600;
  color: var(--text-secondary);
  background: #f9fafb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tr:hover td { background: #f9fafb; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.tag-success { background: #d1fae5; color: #065f46; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-info { background: #dbeafe; color: #1e40af; }

/* 表单 */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 540px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-sm { width: 400px; }
.modal-wide { width: 720px; }

/* QR code modal */
.diy-qr-card { text-align: center; padding: 20px 0; }
.diy-qr-img-wrap { background: #fff; padding: 16px; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); display: inline-block; margin-bottom: 20px; }
.diy-qr-img-wrap img { display: block; width: 220px; height: 220px; }
.diy-qr-page-path { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-family: "SF Mono","Fira Code",monospace; color: #1f2937; word-break: break-all; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.diy-qr-page-path code { flex: 1; font-size: 12px; }
.diy-qr-appid { font-size: 11px; color: #9ca3af; margin-bottom: 16px; }
.diy-qr-instructions { text-align: left; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 18px; font-size: 12px; color: #78350f; line-height: 1.8; }
.diy-qr-instructions strong { display: block; margin-bottom: 4px; font-size: 13px; }
/* Copy toast */
.diy-copy-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 13px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.diy-copy-toast.show { opacity: 1; }

/* 日历 */
.calendar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.calendar-header h4 { font-size: 16px; min-width: 140px; text-align: center; }
.calendar-nav {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.calendar-nav:hover { border-color: var(--primary); color: var(--primary); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  min-height: 60px;
  background: #f9fafb;
  position: relative;
}
.cal-day:hover { background: var(--primary-bg); }
.cal-day.today { font-weight: 700; color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; }
.cal-day .dot { 
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
  margin: 2px auto 0;
}
.cal-day.other-month { opacity: 0.3; }
.cal-weekday {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 加载 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.search-bar input {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  flex: 1;
  outline: none;
}
.search-bar input:focus { border-color: var(--primary); }

/* 预警卡片 */
.alert-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fef3c7;
  border-left: 4px solid var(--warning);
}
.alert-item.danger { background: #fee2e2; border-color: var(--danger); }
.alert-item .alert-icon { font-size: 20px; }
.alert-item .alert-content { flex: 1; }
.alert-item .alert-title { font-weight: 600; font-size: 14px; }
.alert-item .alert-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ========== 拉伸杆 ========== */
.resize-handle {
  text-align: center;
  cursor: ns-resize;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  padding: 4px 0;
  user-select: none;
  flex-shrink: 0;
  background: transparent;
  transition: color 0.15s;
}
.resize-handle:hover { color: var(--primary); }
.resize-handle.active { color: var(--primary); }

/* 场馆信息页面 */
.dash-kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.dash-kpi-item{padding:16px;background:#fff;border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.dash-kpi-val{font-size:24px;font-weight:700;color:#1f2937;margin-bottom:4px}.dash-kpi-label{font-size:13px;color:#6b7280;display:flex;align-items:center;gap:4px}.venue-page { padding: 20px; background: #f5f5f5; min-height: calc(100vh - 100px); }
.venue-card { background: #fff; border-radius: 12px; padding: 40px; max-width: 900px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.venue-section { border-bottom: 1px solid #f0f0f0; padding: 20px 0; }
.venue-section:last-child { border-bottom: none; }
.venue-logo-row { display: flex; align-items: center; gap: 40px; }
.venue-label { font-size: 14px; font-weight: 600; color: #333; min-width: 120px; }
.venue-logo-upload { display: flex; align-items: center; gap: 16px; }
.venue-logo-circle { width: 80px; height: 80px; border-radius: 50%; border: 2px dashed #d9d9d9; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; color: #999; }
.venue-logo-circle:hover { border-color: #6d28d9; }
.venue-logo-hint { font-size: 12px; color: #999; }
.venue-field { display: flex; align-items: center; gap: 20px; }
.venue-input { height: 40px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 8px; font-size: 14px; width: 400px; outline: none; }
.venue-input:focus { border-color: #6d28d9; }
.venue-time-row { display: flex; align-items: center; margin-bottom: 10px; }
.venue-time { height: 36px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; outline: none; }
.venue-add-time { background: none; border: 1px dashed #d9d9d9; border-radius: 6px; padding: 8px 16px; font-size: 13px; color: #6d28d9; cursor: pointer; margin-top: 8px; }
.venue-add-time:hover { border-color: #6d28d9; }
.venue-actions { padding-top: 24px; }
.venue-save { background: #fbbf24; border: none; border-radius: 8px; padding: 12px 48px; font-size: 16px; font-weight: 700; color: #333; cursor: pointer; box-shadow: 0 2px 8px rgba(251,191,36,0.3); }
.venue-save:hover { background: #f59e0b; }

/* ========== 开关切换 ========== */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 8px;
}
.toggle-label { font-size: 14px; font-weight: 500; color: var(--text); }
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 12px;
  transition: background 0.25s;
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s;
}
.toggle-switch input:checked + .toggle-track {
  background: #10b981;
}
.toggle-switch input:checked + .toggle-track .toggle-knob {
  transform: translateX(20px);
}

/* 权限分类标题 */
.permission-category {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}
.permission-category:first-of-type { margin-top: 0; }

/* 修改密码 */
.pwd-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── 会员列表页 ── */
.member-stat-card {
  cursor: pointer;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.member-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.member-stat-card:active {
  transform: translateY(0);
}
.member-stat-card .s-icon { font-size: 13px; }
.member-stat-card .s-label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-stat-card .s-count {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.member-stat-card .s-desc {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-stat-card.active {
  box-shadow: 0 0 0 2px currentColor inset;
}

/* 进度条 */
.progress-bar {
  display: inline-block;
  width: 50px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

/* 表格行悬停 */
.pro-table tbody tr:hover td {
  background: #f9fafb;
}

/* ════════════════ 学员资料编辑页面 ════════════════ */
.profile-page { padding: 24px; }

/* 顶部双栏布局 */
.profile-header-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* 左侧：头像 + 基础信息 */
.profile-left { }
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 右侧 */
.profile-right { }
.profile-right-header {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* 表单字段 */
.profile-form {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
}
.pf-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pf-field:last-child { margin-bottom: 0; }
.pf-field label {
  min-width: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}
.pf-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  max-width: 280px;
}
.pf-input:focus { border-color: #6366f1; }
.pf-select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  background: #fff;
  flex: 1;
  max-width: 280px;
}
.pf-select:focus { border-color: #6366f1; }
.pf-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  box-sizing: border-box;
}
.pf-textarea:focus { border-color: #6366f1; }
.pf-value.readonly {
  color: #6b7280;
  font-size: 13px;
  padding: 8px 0;
}

/* 按钮 */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.pf-btn-primary { background: #6366f1; color: #fff; }
.pf-btn-primary:hover { background: #818cf8; }
.pf-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.pf-btn-outline {
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #374151;
}
.pf-btn-outline:hover { border-color: #6366f1; color: #6366f1; }
.pf-btn-danger { color: #dc2626; border-color: #fca5a5; }
.pf-btn-danger:hover { border-color: #dc2626; background: #fef2f2; }

/* 标签 */
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
}
.pf-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 500;
}
.pf-tag-add {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px dashed #c7d2fe;
  background: transparent;
  color: #6366f1;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-tag-add:hover { background: #eef2ff; }

/* 备注区域 */
.pf-remark-section {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
}
.pf-remark-section .pf-field { margin-bottom: 0; }
.pf-remark-section .pf-field label { align-self: flex-start; padding-top: 10px; }

/* Tab 区域 */
.profile-tabs-section {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  overflow-x: auto;
}
.pf-tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.pf-tab:hover { color: #374151; background: #f3f4f6; }
.pf-tab.active { color: #6366f1; border-bottom-color: #6366f1; font-weight: 600; background: #fff; }
.profile-tab-content { padding: 20px; }

/* Tab 内容 */
.pf-tab-pane { }
.pf-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-tab-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* 表格 */
.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pf-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
}
.pf-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  color: #374151;
}
.pf-table tbody tr:hover td {
  background: #f9fafb;
}
.pf-action {
  color: #c49a6c;
  cursor: pointer;
  font-size: 13px;
  margin-right: 10px;
}
.pf-action:hover { color: #dbb88c; }

/* 状态标签 */
.pf-status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 500;
}
.pf-status-tag.done { background: #d1fae5; color: #065f46; }

/* 统计卡片 */
.pf-stat-card {
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-align: center;
}
.pf-stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #c49a6c;
  margin-bottom: 4px;
}
.pf-stat-lbl {
  font-size: 12px;
  color: #6b7280;
}

/* 信息卡片 */
.pf-info-card {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
}
.pf-info-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.pf-info-val {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* 跟进记录 */
.pf-followup-item {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
}

/* 学习阶段 */
.pf-stage-item { }

/* 空状态 */
.pf-empty {
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* 拖拽排序 */
.drag-item { cursor: grab; transition: opacity 0.15s, background 0.15s; }
.drag-item:active { cursor: grabbing; }
.drag-item.drag-dragging { opacity: 0.4; }
.drag-item.drag-over { background: #f0d5d8 !important; border-left: 3px solid #c49a6c !important; }
.drag-item.drag-invalid { background: #fff2f0 !important; border-left: 3px solid #d4837a !important; }
.topnav-item.drag-over { background: rgba(255,255,255,0.25) !important; border-bottom: 2px solid #fff; }
.nav-section { transition: background 0.15s; }
.nav-section.drag-over-section { background: #f0d5d8; border-radius: 8px; }

