:root {
  --xy-primary: #29CB97;
  --xy-primary-dark: #1fa87a;
  --xy-primary-light: #e8faf4;
  --xy-red: #dd524d;
  --xy-coral: #e87777;
  --xy-amber: #FEBA57;
  --xy-blue: #1890ff;
  --xy-purple: #7322f5;
  --xy-bg: #f9f9fb;
  --xy-card: #ffffff;
  --xy-text: #2c3e50;
  --xy-sub: #666666;
  --xy-muted: #adb0b5;
  --xy-border: #eef0f4;
  --xy-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #eef2f6;
  color: var(--xy-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Simulation Control Bar (Mobile-First 极简顶栏) */
.sim-toolbar {
  background: #0f172a;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  z-index: 1000;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
}

.sim-toolbar-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  flex-wrap: nowrap;
}

.sim-btn-nav-back {
  background: #4f46e5;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sim-btn-nav-back:hover {
  background: #4338ca;
}

.sim-brand-title {
  font-weight: 800;
  font-size: 15px;
  color: #f8fafc;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sim-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.sim-toolbar-right-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-btn-toggle {
  background: rgba(41, 203, 151, 0.15) !important;
  border: 1px solid var(--xy-primary) !important;
  color: var(--xy-primary) !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.sim-btn-toggle:hover {
  background: var(--xy-primary) !important;
  color: #fff !important;
}

.sim-cur-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 203, 151, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
  border-radius: 9999px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 140px;
}

/* 顶部快捷入口展开面板（点击展开后全宽整齐排列） */
#simToolbarPills {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #1e293b;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 默认收起态：隐藏所有多端标签，只保留极简顶栏 */
.sim-toolbar.toolbar-tags-collapsed #simToolbarPills {
  display: none !important;
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--xy-primary);
}

.sim-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.role-switch-group {
  display: flex;
  background: #0f172a;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.role-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.role-btn.active {
  background: var(--xy-primary);
  color: #fff;
  font-weight: 600;
}

.sim-btn {
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  text-decoration: none;
}

.sim-btn:hover {
  border-color: var(--xy-primary);
  color: var(--xy-primary);
}

.sim-btn.active {
  background: var(--xy-blue);
  border-color: var(--xy-blue);
  color: #fff;
}

/* Viewport Shell */
.app-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  width: 100%;
  min-height: calc(100vh - 46px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f1f5f9;
}

.wx-shell {
  width: 100%;
  max-width: 800px;
  min-height: calc(100vh - 46px);
  max-height: none;
  background: var(--xy-bg);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  margin: 0 auto;
  transition: max-width 0.25s ease;
}

/* PC Wide Mode */
body.pc-mode .app-stage {
  padding: 0;
}

body.pc-mode .wx-shell {
  width: 100%;
  max-width: 1280px;
  min-height: calc(100vh - 46px);
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

/* WeChat Navigation Bar (已按要求彻底移除) */
.wx-navbar {
  display: none !important;
}

.wx-nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.wx-back-btn {
  border: none;
  background: none;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 6px;
}

.wx-back-btn:hover {
  background: #f5f6fa;
}

.wx-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-capsule {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  height: 30px;
  padding: 0 10px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
}

.wx-capsule span {
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

.wx-capsule .cap-divider {
  width: 1px;
  height: 14px;
  background: #e5e7eb;
}

/* Main Scrollable Page Body */
.wx-page-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 72px;
}

/* WeChat Bottom TabBar */
.wx-tabbar {
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #eceef2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.wx-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: #999999;
  font-size: 11px;
  padding: 4px 0;
}

.wx-tab-item img {
  width: 24px;
  height: 24px;
}

.wx-tab-item.active {
  color: var(--xy-primary);
  font-weight: 600;
}

/* XiYou Authentic Components */
.org-top {
  background: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f2f3f7;
}

.org-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.org-school-badge {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}

.org-vip-tag {
  background: linear-gradient(135deg, #29CB97, #16a085);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.org-switch-btn {
  border: 1px solid #e2f5ee;
  background: var(--xy-primary-light);
  color: var(--xy-primary-dark);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* Notice Bar (uni-notice-bar) */
.uni-notice-bar {
  background: #fffbe8;
  color: #de8c17;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  cursor: pointer;
  border-bottom: 1px solid #fff3cf;
}

.uni-notice-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Menus Card Component (components/Menus/index) */
.xy-card {
  background: #ffffff;
  border-radius: 12px;
  margin: 12px 12px 0;
  padding: 14px 14px;
  box-shadow: var(--xy-shadow);
}

.xy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.xy-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xy-card-title::before {
  content: "";
  width: 4px;
  height: 15px;
  background: var(--xy-primary);
  border-radius: 2px;
  display: inline-block;
}

.xy-card-extra {
  font-size: 12px;
  color: var(--xy-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.xy-card-extra:hover {
  color: var(--xy-primary);
}

/* 3-Column Statistic Grid (menuData) */
.xy-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
}

body.pc-mode .xy-stat-grid {
  grid-template-columns: repeat(6, 1fr);
}

.xy-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.xy-stat-item:hover {
  background: #f8fafc;
}

.xy-stat-count {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.xy-stat-title {
  font-size: 12px;
  color: var(--xy-muted);
}

/* 4-Column Icon Navigation Grid (teachNav / orgNav) */
.xy-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
}

body.pc-mode .xy-nav-grid {
  grid-template-columns: repeat(6, 1fr);
}

.xy-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 8px;
  transition: transform 0.15s, background 0.15s;
}

.xy-nav-item:hover {
  background: #f5f9f7;
  transform: translateY(-2px);
}

.xy-nav-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  object-fit: contain;
}

.xy-nav-item span {
  font-size: 12.5px;
  color: #333;
  text-align: center;
}

.xy-badge-dot {
  position: absolute;
  top: 2px;
  right: 14px;
  background: #f5222d;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
  font-weight: 600;
}

/* ScheduleCard Component (containers/ScheduleCard/index) */
.scheduleCard {
  background: #ffffff;
  border-radius: 10px;
  margin: 10px 12px;
  padding: 14px 14px 12px;
  border-left: 5px solid var(--xy-primary);
  box-shadow: var(--xy-shadow);
  transition: transform 0.15s;
}

.scheduleCard:hover {
  transform: translateY(-1px);
}

.scheduleCard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.scheduleCard-title-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.xy-course-tag {
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.scheduleCard-tit {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.xy-mini-badge {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.xy-mini-badge.free {
  background: #fff7e6;
  color: #fa8c16;
  border-color: #ffd591;
}

.xy-mini-badge.assist {
  background: #f9f0ff;
  color: #722ed1;
  border-color: #d3adf7;
}

.scheduleCard-status {
  font-size: 12px;
  font-weight: 600;
}

.scheduleCard-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 12.5px;
  color: #555;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.scheduleCard-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scheduleCard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.scheduleCard-students {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
}

.stu-pill {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  background: #f3f4f6;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stu-pill.status-0 { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.stu-pill.status-1 { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.stu-pill.status-2 { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }
.stu-pill.status-5 { background: #fff1f0; color: #f5222d; border: 1px solid #ffa39e; }

.scheduleCard-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Buttons */
.xy-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.15s, transform 0.1s;
}

.xy-btn:active {
  transform: scale(0.98);
}

.xy-btn-primary {
  background: var(--xy-primary);
  color: #fff;
}

.xy-btn-outline {
  background: #fff;
  color: var(--xy-primary);
  border: 1px solid var(--xy-primary);
}

.xy-btn-amber {
  background: var(--xy-amber);
  color: #fff;
}

.xy-btn-danger {
  background: #fff1f0;
  color: #f5222d;
  border: 1px solid #ffa39e;
}

.xy-btn-blue {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.xy-btn-block {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
}

/* Calendar Component (uni-calendar) */
.xy-calendar {
  background: #fff;
  margin: 10px 12px;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--xy-shadow);
}

.xy-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.xy-cal-month {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.xy-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--xy-muted);
  margin-bottom: 6px;
}

.xy-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.xy-cal-day {
  height: 44px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 13px;
  color: #333;
}

.xy-cal-day:hover {
  background: #f0fdf8;
}

.xy-cal-day.today {
  color: var(--xy-primary);
  font-weight: 700;
}

.xy-cal-day.selected {
  background: var(--xy-primary);
  color: #fff !important;
  font-weight: 600;
}

.xy-cal-day .cal-ke {
  font-size: 9px;
  color: var(--xy-primary);
  line-height: 1;
  margin-top: 2px;
}

.xy-cal-day.selected .cal-ke {
  color: #fff;
}

/* Forms (FormCreateor) */
.xy-form-card {
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  padding: 6px 14px;
  box-shadow: var(--xy-shadow);
}

.xy-form-item {
  padding: 12px 0;
  border-bottom: 1px solid #f2f3f7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xy-form-item:last-child {
  border-bottom: none;
}

.xy-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xy-form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  min-width: 95px;
}

.xy-form-label .req {
  color: #f5222d;
  margin-right: 2px;
}

.xy-form-control {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.xy-input, .xy-select, .xy-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13px;
  color: #222;
  background: #f8fafc;
  outline: none;
}

.xy-input:focus, .xy-select:focus, .xy-textarea:focus {
  border-color: var(--xy-primary);
  background: #fff;
}

.xy-tips {
  font-size: 11.5px;
  color: var(--xy-muted);
}

/* Filter Tabs (CustomTabs) */
.xy-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #f0f1f5;
  padding: 0 10px;
  overflow-x: auto;
}

.xy-tab {
  padding: 11px 14px;
  font-size: 13.5px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s;
}

.xy-tab.active {
  color: var(--xy-primary);
  border-bottom-color: var(--xy-primary);
  font-weight: 600;
}

/* Modal Dialog (components/Dialog/index) */
.xy-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.xy-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.xy-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f1f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.xy-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.xy-modal-footer {
  padding: 10px 16px;
  border-top: 1px solid #f0f1f5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast */
.xy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  z-index: 3000;
  pointer-events: none;
}

/* Student & Teacher List Cards */
.xy-list-card {
  background: #fff;
  border-radius: 10px;
  margin: 10px 12px;
  padding: 12px 14px;
  box-shadow: var(--xy-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xy-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e8faf4;
  padding: 2px;
  flex-shrink: 0;
}

/* Ranking Badge */
.rank-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* DynamicBg Mine Header */
.mine-header {
  background: linear-gradient(135deg, #29CB97 0%, #19a97b 100%);
  color: #fff;
  padding: 24px 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mine-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mine-user img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  object-fit: contain;
  padding: 3px;
}

/* FilterSelect Component (DateSelect + SchoolSelect) */
.filter-select-wrap {
  background: #ffffff;
  margin: 10px 12px 0;
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: var(--xy-shadow);
}

.filter-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f2f3f7;
  font-size: 13.5px;
}

.filter-select-row:last-child {
  border-bottom: none;
}

.filter-select-label {
  color: #333;
  font-weight: 500;
}

.filter-select-val {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
}

/* Vertical Menus Component (mode="vertical", used in dashboard otherData) */
.xy-vertical-menu {
  display: flex;
  flex-direction: column;
}

.xy-vertical-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid #f2f3f7;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
  transition: background 0.15s, padding-left 0.15s;
}

.xy-vertical-item:last-child {
  border-bottom: none;
}

.xy-vertical-item:hover {
  background: #f8fafc;
  padding-left: 8px;
  color: var(--xy-primary);
}

.xy-vertical-arrow {
  color: #c0c4cc;
  font-size: 14px;
}

/* RankItem Component (containers/RankItem/index.wxss) */
.rank-item {
  background: #ffffff;
  border-radius: 10px;
  margin: 10px 12px 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--xy-shadow);
  transition: transform 0.15s;
}

.rank-item:hover {
  transform: translateY(-1px);
}

.rank-item-main {
  flex: 1;
}

.rank-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #222;
}

.rank-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rank-item-val {
  font-size: 12.5px;
  color: #666;
  font-weight: 500;
}

.rank-progress {
  background: #eeeeee;
  border-radius: 6px;
  height: 5px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.rank-progress-bar {
  background: #29cb97;
  border-radius: 6px;
  height: 100%;
  transition: width 0.3s ease;
}

/* 4-Column Stat Grid (used in presentRanking / assistTeacherClass / studentResidueClass) */
.xy-stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 4px;
}

.xy-stat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 4px;
}

/* ========================================================
   西柚排课 原版周课表格子视图 (ScheduleTable & list)
   ======================================================== */
.scheduleTable {
  background-color: #f5f7fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 12px 20px;
  border: 1px solid #eef0f4;
}

.scheduleTable .calendar__header {
  background: #ffffff;
  display: flex;
  flex-direction: row;
  height: 48px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #edf0f5;
  padding: 0 12px;
}

.scheduleTable .calendar__header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduleTable .calendar__header-text {
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.scheduleTable .calendar__header-btn-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  cursor: pointer;
  border-radius: 50%;
  background: #f1f5f9;
  user-select: none;
  transition: all 0.2s;
}

.scheduleTable .calendar__header-btn-box:hover,
.scheduleTable .calendar__header-btn-box:active {
  background: #e2e8f0;
}

.scheduleTable .calendar__header-btn {
  border-left: 2px solid #475569;
  border-top: 2px solid #475569;
  height: 8px;
  width: 8px;
  display: inline-block;
}

.scheduleTable .calendar--left {
  transform: rotate(-45deg);
  margin-left: 3px;
}

.scheduleTable .calendar--right {
  transform: rotate(135deg);
  margin-right: 3px;
}

.scheduleTable .table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 175px);
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.scheduleTable .table {
  font-size: 12px;
  position: relative;
  text-align: center;
  width: 1056px;
  min-width: 1056px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #ffffff;
}

.scheduleTable .table thead {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #ffffff;
}

.scheduleTable .table thead th {
  border-bottom: 1px solid #e9e9e9;
  border-right: 1px solid #e9e9e9;
  width: 144px;
  min-width: 144px;
  padding: 8px 4px;
  background: #fafbfc;
  color: #475569;
}

.scheduleTable .table thead th:first-child {
  left: 0;
  min-width: 48px;
  width: 48px;
  position: sticky;
  vertical-align: middle;
  z-index: 15;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.scheduleTable .table tbody td:first-child {
  left: 0;
  min-width: 48px;
  width: 48px;
  position: sticky;
  vertical-align: middle;
  z-index: 8;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e9e9e9;
  padding: 4px 2px;
  text-align: center;
}

.scheduleTable .table td {
  border-bottom: 1px solid #e9e9e9;
  border-right: 1px solid #e9e9e9;
  width: 144px;
  min-width: 144px;
  padding: 4px;
  vertical-align: top;
  background: #ffffff;
  height: 82px;
  position: relative;
}

.scheduleTable .th-day {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.scheduleTable .th-date {
  font-size: 12px;
  margin-top: 2px;
  display: inline-block;
  padding: 1px 7px;
  border-radius: 12px;
  color: #64748b;
}

.scheduleTable .th-day.on {
  color: #29cb97;
}

.scheduleTable .th-date.on {
  background: #29cb97;
  color: #ffffff;
  font-weight: 700;
}

/* 格子课表卡片 (Grid Card) */
.grid-schedule-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #edf2f7;
  border-left: 4px solid #29cb97;
  padding: 6px 7px;
  text-align: left;
  margin-bottom: 4px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.grid-schedule-card:hover, .grid-schedule-card:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.grid-empty-slot {
  width: 100%;
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 18px;
  transition: all 0.15s ease;
}

.grid-empty-slot:hover, .grid-empty-slot:active {
  background: #f0fdf4;
  color: #29cb97;
  font-weight: bold;
}

/* 状态图例 */
.schedule-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
  flex-wrap: wrap;
}

.schedule-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* 视图分段选择器 */
.view-segmented-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.view-segmented-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.view-segmented-btn.active {
  background: #ffffff;
  color: #29cb97;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}



/* 横版排课模式 (Landscape Widescreen Mode) */
body.landscape-mode .app-stage {
  padding: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

body.landscape-mode .wx-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.landscape-mode .wx-page-body {
  padding: 10px 16px 80px !important;
  max-width: 100vw !important;
}

body.landscape-mode .scheduleTable {
  width: 100% !important;
}

body.landscape-mode .scheduleTable .table-wrapper {
  overflow-x: auto;
  width: 100%;
}

body.landscape-mode .scheduleTable .table {
  width: 100% !important;
  min-width: 1000px;
}

body.landscape-mode .scheduleTable .table thead th {
  min-width: 135px;
  font-size: 13.5px;
}

body.landscape-mode .scheduleTable .table td {
  min-height: 120px;
  padding: 6px;
}

/* 学员详情专属 5-Tab 按钮栏 */
.xy-student-tab-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 12px 0;
  padding: 5px;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.xy-student-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.xy-student-tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.xy-student-tab-btn.active {
  background: #e8faf4;
  border-color: #29CB97;
  color: #29CB97;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(41, 203, 151, 0.15);
}

/* ========================================================
   西柚排课 4列功能菜单网格 (对齐原版移动端与PC端4列排版)
   ======================================================== */
.xy-menu-grid,
.xy-nav-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px 6px !important;
}

body.pc-mode .xy-menu-grid,
body.pc-mode .xy-nav-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

.xy-menu-item,
.xy-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 6px 2px !important;
  border-radius: 8px !important;
}

.xy-menu-item img,
.xy-nav-item img,
.xy-menu-icon {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 6px !important;
  object-fit: contain !important;
}

.xy-menu-item span,
.xy-nav-item span,
.xy-menu-title {
  font-size: 12.5px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  text-align: center !important;
  white-space: nowrap !important;
}


/* Mobile-First Layout Calibration (取消手机外框，自适应全屏体验) */
@media (max-width: 768px) {
  .app-stage {
    padding: 0 !important;
    min-height: calc(100vh - 44px) !important;
  }
  .wx-shell {
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: calc(100vh - 44px) !important;
  }
  .sim-toolbar {
    padding: 6px 8px !important;
  }
  .sim-brand-title {
    font-size: 13px !important;
  }
  .sim-cur-role-badge {
    max-width: 110px !important;
    font-size: 10.5px !important;
    padding: 1px 6px !important;
  }
}

/* 课程表顶部控制区标签可收起/展开 */
.schedule-controls-collapsed .schedule-extra-controls {
  display: none !important;
}


/* 西柚排课实机印章徽章 (ScheduleCard 右上角已点名/未点名圆圈) */
.scheduleCard {
  position: relative;
  overflow: hidden;
}

.schedule-stamp {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 3;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

.schedule-stamp .stamp-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.schedule-stamp span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* 已点名样式 (100% 对齐西柚微信小程序实机翠绿印章) */
.schedule-stamp.stamp-called {
  border: 2px solid #29cb97;
  color: #29cb97;
  background: rgba(41, 203, 151, 0.05);
  box-shadow: 0 0 0 1px rgba(41, 203, 151, 0.1);
}

.schedule-stamp.stamp-called .stamp-inner {
  border: 1px dashed rgba(41, 203, 151, 0.5);
}

/* 未点名样式 (100% 对齐西柚微信小程序实机珊瑚红印章) */
.schedule-stamp.stamp-uncalled {
  border: 2px solid #e87777;
  color: #e87777;
  background: rgba(232, 119, 119, 0.05);
  box-shadow: 0 0 0 1px rgba(232, 119, 119, 0.1);
}

.schedule-stamp.stamp-uncalled .stamp-inner {
  border: 1px dashed rgba(232, 119, 119, 0.5);
}

/* 周课表格子紧凑小卡片中的迷你圆圈徽章 (small) */
.grid-schedule-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.grid-schedule-stamp.stamp-called {
  border: 1px solid #29cb97;
  color: #29cb97;
  background: rgba(41, 203, 151, 0.08);
}

.grid-schedule-stamp.stamp-uncalled {
  border: 1px solid #e87777;
  color: #e87777;
  background: rgba(232, 119, 119, 0.08);
}
