/* ==================== 学生端全局样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --stu-primary: #3b82f6;
  --stu-primary-dark: #2563eb;
  --stu-primary-light: #dbeafe;
  --stu-success: #10b981;
  --stu-success-light: #d1fae5;
  --stu-warning: #f59e0b;
  --stu-warning-light: #fef3c7;
  --stu-danger: #ef4444;
  --stu-danger-light: #fee2e2;
  --stu-purple: #8b5cf6;
  --stu-purple-light: #ede9fe;
  --stu-bg: #f0f4f8;
  --stu-card: #ffffff;
  --stu-text: #1e293b;
  --stu-text-sub: #64748b;
  --stu-text-light: #94a3b8;
  --stu-border: #e2e8f0;
  --stu-radius: 12px;
  --stu-radius-lg: 16px;
  --stu-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --stu-shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--stu-text);
  background: var(--stu-bg);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

/* ==================== 登录页 ==================== */
.stu-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.stu-login-container {
  width: 100%;
  max-width: 380px;
  background: var(--stu-card);
  border-radius: var(--stu-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 32px 28px;
}

.stu-login-brand {
  display: none;
}

.stu-desktop-title {
  display: none;
}

.stu-sidebar-header {
  display: none;
}

.stu-sidebar-footer {
  display: none;
}

.stu-desktop-header {
  display: none;
}

.stu-login-header { text-align: center; margin-bottom: 28px; }

.stu-login-logo {
  font-size: 56px;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stu-login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--stu-text);
  margin-bottom: 6px;
}

.stu-login-subtitle {
  font-size: 13px;
  color: var(--stu-text-sub);
}

.stu-login-form { margin-bottom: 20px; }

.stu-login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--stu-text-light);
}

.stu-login-hint {
  color: var(--stu-danger);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

/* ==================== 表单组件 ==================== */
.stu-form-group { margin-bottom: 16px; }

.stu-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--stu-text);
  margin-bottom: 6px;
}

.stu-form-input, .stu-form-select, .stu-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stu-border);
  border-radius: var(--stu-radius);
  font-size: 15px;
  color: var(--stu-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.stu-form-input:focus, .stu-form-select:focus, .stu-form-textarea:focus {
  border-color: var(--stu-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.stu-form-textarea { resize: vertical; min-height: 80px; }

/* ==================== 按钮组件 ==================== */
.stu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: var(--stu-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  user-select: none;
}

.stu-btn:active { transform: scale(0.97); }

.stu-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.stu-btn-primary:hover { box-shadow: 0 6px 16px rgba(59,130,246,0.4); }

.stu-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.stu-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.stu-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.stu-btn-secondary {
  background: #f1f5f9;
  color: var(--stu-text);
}

.stu-btn-lg { padding: 14px 20px; font-size: 16px; border-radius: 10px; }
.stu-btn-sm { padding: 6px 12px; font-size: 12px; }
.stu-btn-block { display: flex; width: 100%; }
.stu-w-full { width: 100%; }

.stu-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== 主应用布局 ==================== */
#student-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 顶部栏 */
.stu-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stu-topbar-title {
  font-size: 17px;
  font-weight: 600;
}

.stu-topbar-class {
  font-size: 13px;
  opacity: 0.9;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

/* 内容区 */
.stu-content {
  flex: 1;
  padding: 12px;
  padding-bottom: 72px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 底部 Tab 栏 */
.stu-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #fff;
  display: flex;
  border-top: 1px solid var(--stu-border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.stu-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--stu-text-light);
}

.stu-tab-item.active { color: var(--stu-primary); }

.stu-tab-icon {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}

.stu-tab-item.active .stu-tab-icon {
  transform: translateY(-2px) scale(1.1);
}

.stu-tab-label {
  font-size: 11px;
  font-weight: 500;
}

/* ==================== 通用卡片 ==================== */
.stu-card {
  background: var(--stu-card);
  border-radius: var(--stu-radius-lg);
  box-shadow: var(--stu-shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.stu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stu-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--stu-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stu-card-title-icon { font-size: 18px; }

/* ==================== 子标签页（tab内切换） ==================== */
.stu-subtabs {
  display: flex;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.stu-subtab-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--stu-text-sub);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.stu-subtab-item:hover {
  color: var(--stu-primary);
  background: rgba(59,130,246,0.06);
}

.stu-subtab-item.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.stu-subtab-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #3b82f6;
}

/* ==================== 网格布局 ==================== */
.stu-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stu-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stu-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* ==================== 统计卡片 ==================== */
.stu-stat-card {
  background: var(--stu-card);
  border-radius: var(--stu-radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--stu-shadow);
  cursor: pointer;
  transition: transform 0.2s;
}

.stu-stat-card:active { transform: scale(0.97); }

.stu-stat-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.stu-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--stu-text);
  line-height: 1.2;
}

.stu-stat-value.blue { color: var(--stu-primary); }
.stu-stat-value.green { color: var(--stu-success); }
.stu-stat-value.amber { color: var(--stu-warning); }
.stu-stat-value.red { color: var(--stu-danger); }
.stu-stat-value.purple { color: var(--stu-purple); }

.stu-stat-label {
  font-size: 12px;
  color: var(--stu-text-sub);
  margin-top: 4px;
}

/* ==================== 学生信息卡 ==================== */
.stu-profile-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--stu-radius-lg);
  padding: 20px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(102,126,234,0.3);
}
.stu-profile-card.stu-profile-card-vertical {
  flex-direction: column;
  align-items: flex-start;
}
.stu-profile-card-vertical .stu-profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.stu-profile-card-vertical .stu-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
  width: 100%;
}
.stu-profile-card-vertical .stu-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}
.stu-profile-links {
  margin-left: auto;
  text-align: right;
}
.stu-profile-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 20px;
  opacity: 0.9;
}
.stu-link-label {
  font-weight: 500;
}
.stu-link-url {
  color: rgba(255,255,255,0.95);
  font-family: monospace;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.5);
  padding-bottom: 1px;
  transition: all 0.3s ease;
}
.stu-link-url:hover {
  color: #fff;
  border-bottom-color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.stu-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(255,255,255,0.3);
}

.stu-profile-info { flex: 1; }

.stu-profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stu-profile-no {
  font-size: 13px;
  opacity: 0.85;
}

.stu-profile-group {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 6px;
}

/* ==================== 快捷入口 ==================== */
.stu-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stu-quick-item {
  background: var(--stu-card);
  border-radius: var(--stu-radius);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--stu-shadow);
}

.stu-quick-item:active {
  transform: scale(0.95);
  background: var(--stu-primary-light);
}

.stu-quick-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.stu-quick-label {
  font-size: 11px;
  color: var(--stu-text);
  font-weight: 500;
}

/* ==================== 时间线（积分动态） ==================== */
.stu-timeline {
  position: relative;
  padding-left: 20px;
}

.stu-timeline-item {
  position: relative;
  padding-bottom: 14px;
  padding-left: 8px;
}

.stu-timeline-item:last-child { padding-bottom: 0; }

.stu-timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stu-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--stu-primary);
}

.stu-timeline-item::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--stu-border);
}

.stu-timeline-item:last-child::after { display: none; }

.stu-timeline-item.add::before { background: var(--stu-success); box-shadow: 0 0 0 2px var(--stu-success); }
.stu-timeline-item.sub::before { background: var(--stu-danger); box-shadow: 0 0 0 2px var(--stu-danger); }

.stu-timeline-reason {
  font-size: 13px;
  color: var(--stu-text);
  font-weight: 500;
}

.stu-timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
}

.stu-timeline-date {
  font-size: 12px;
  color: var(--stu-text-light);
}

.stu-timeline-value {
  font-size: 14px;
  font-weight: 700;
}

.stu-timeline-value.add { color: var(--stu-success); }
.stu-timeline-value.sub { color: var(--stu-danger); }

/* ==================== 列表项 ==================== */
.stu-list-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--stu-border);
  cursor: pointer;
  transition: background 0.2s;
  min-height: 56px;
}

.stu-list-item:last-child { border-bottom: none; }

.stu-list-item:active { background: var(--stu-bg); }

.stu-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--stu-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.stu-list-content { flex: 1; min-width: 0; }

.stu-list-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--stu-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-list-desc {
  font-size: 12px;
  color: var(--stu-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-list-arrow {
  color: var(--stu-text-light);
  font-size: 14px;
  margin-left: 8px;
  flex-shrink: 0;
}

.stu-list-right {
  text-align: right;
  margin-left: 8px;
  flex-shrink: 0;
  min-width: 60px;
}

.stu-list-right-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--stu-text);
}

.stu-list-right-value.green { color: var(--stu-success); }
.stu-list-right-value.red { color: var(--stu-danger); }
.stu-list-right-value.amber { color: var(--stu-warning); }

.stu-list-right-sub {
  font-size: 11px;
  color: var(--stu-text-light);
  margin-top: 2px;
}

/* ==================== 徽章墙 ==================== */
.stu-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stu-badge-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.stu-badge-item:active { transform: scale(0.95); }

.stu-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #fef3c7, #fcd34d);
  box-shadow: 0 4px 8px rgba(245,158,11,0.3);
}

.stu-badge-item.locked .stu-badge-icon {
  background: #e2e8f0;
  filter: grayscale(1);
  opacity: 0.5;
}

.stu-badge-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--stu-text);
}

.stu-badge-item.locked .stu-badge-name { color: var(--stu-text-light); }

.stu-badge-date {
  font-size: 10px;
  color: var(--stu-text-light);
  margin-top: 2px;
}

/* ==================== 商品卡片（积分商城） ==================== */
.stu-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.stu-shop-card {
  background: var(--stu-card);
  border-radius: var(--stu-radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--stu-shadow);
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stu-shop-icon {
  font-size: 36px;
  margin-bottom: 6px;
}

.stu-shop-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--stu-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-shop-price {
  font-size: 13px;
  color: var(--stu-warning);
  font-weight: 700;
  margin-bottom: 6px;
}

.stu-shop-price::before { content: '🏆 '; font-size: 11px; }

.stu-shop-stock {
  font-size: 11px;
  color: var(--stu-text-light);
  margin-bottom: 8px;
}

.stu-shop-btn {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  transition: all 0.2s;
}

.stu-shop-btn:active { transform: scale(0.95); }

.stu-shop-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* ==================== 打卡日历 ==================== */
.stu-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stu-calendar-month {
  font-size: 15px;
  font-weight: 600;
}

.stu-calendar-nav {
  display: flex;
  gap: 8px;
}

.stu-calendar-nav-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--stu-bg);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stu-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--stu-text-sub);
  margin-bottom: 6px;
  font-weight: 500;
}

.stu-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.stu-calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  position: relative;
}

.stu-calendar-day.checked {
  background: var(--stu-success);
  color: #fff;
  font-weight: 600;
}

.stu-calendar-day.today {
  border: 2px solid var(--stu-primary);
  font-weight: 600;
}

.stu-calendar-day.empty { visibility: hidden; }

.stu-calendar-day.weekend { color: var(--stu-danger); }
.stu-calendar-day.checked.weekend { color: #fff; }

/* ==================== 座位图（学生端） ==================== */
.stu-seating-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.stu-seating-grid {
  display: inline-block;
  min-width: 100%;
}

.stu-seat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stu-seat-label-empty {
  width: 24px;
}

.stu-seat {
  flex: 1;
  min-width: 52px;
  height: 32px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--stu-text-sub);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 6px;
  border: 1px solid var(--stu-border);
}

.stu-seat-gutter {
  width: 30px;
}

.stu-seat.occupied {
  background: #dbeafe;
  color: var(--stu-primary-dark);
  border-color: #93c5fd;
  font-weight: 500;
}

.stu-seat.mine {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: #ef4444;
  font-weight: 700;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.3);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239,68,68,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0.1); }
}

.stu-seat.disabled {
  background: #e2e8f0;
  color: #94a3b8;
}

.stu-seat-label {
  width: 24px;
  height: 28px;
  font-size: 11px;
  font-weight: 600;
  color: var(--stu-danger);
  background: #fee2e2;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.stu-seat-col-label {
  flex: 1;
  min-width: 52px;
  height: 22px;
  font-size: 11px;
  font-weight: 600;
  color: var(--stu-danger);
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 模态框 ==================== */
.stu-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stu-modal-box {
  background: #fff;
  border-radius: var(--stu-radius-lg);
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.stu-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--stu-border);
}

.stu-modal-title {
  font-size: 16px;
  font-weight: 600;
}

.stu-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--stu-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stu-modal-body { padding: 16px; }

.stu-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--stu-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ==================== Toast ==================== */
.stu-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  animation: toastFade 0.2s ease;
  max-width: 80%;
  text-align: center;
}

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ==================== 状态标签 ==================== */
.stu-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.stu-tag-green { background: var(--stu-success-light); color: var(--stu-success); }
.stu-tag-blue { background: var(--stu-primary-light); color: var(--stu-primary-dark); }
.stu-tag-amber { background: var(--stu-warning-light); color: #b45309; }
.stu-tag-red { background: var(--stu-danger-light); color: var(--stu-danger); }
.stu-tag-gray { background: #f1f5f9; color: var(--stu-text-sub); }
.stu-tag-purple { background: var(--stu-purple-light); color: var(--stu-purple); }

/* ==================== 进度条 ==================== */
.stu-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.stu-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transition: width 0.3s;
}

.stu-progress-bar.green { background: linear-gradient(90deg, #10b981, #059669); }
.stu-progress-bar.amber { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* ==================== 资源卡片 ==================== */
#stu-res-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.stu-resource-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border-radius: var(--stu-radius);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.stu-resource-item:hover { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1); }

.stu-resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

.stu-resource-icon.pdf { background: #fee2e2; }
.stu-resource-icon.doc { background: #dbeafe; }
.stu-resource-icon.video { background: #ede9fe; }
.stu-resource-icon.image { background: #d1fae5; }
.stu-resource-icon.zip { background: #fef3c7; }
.stu-resource-icon.other { background: #e2e8f0; }

.stu-resource-info { flex: 1; min-width: 0; }

.stu-resource-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.stu-resource-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--stu-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.stu-res-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.stu-res-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.stu-resource-actions {
  display: flex;
  gap: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}

.stu-res-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.stu-res-btn:active { opacity: 0.7; }

.stu-res-btn-view {
  background: #dbeafe;
  color: #3b82f6;
}

.stu-res-btn-download {
  background: #d1fae5;
  color: #10b981;
}

.stu-resource-meta {
  font-size: 11px;
  color: var(--stu-text-light);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==================== 分类标签（横向滚动） ==================== */
.stu-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stu-chips::-webkit-scrollbar { display: none; }

.stu-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f1f5f9;
  font-size: 13px;
  color: var(--stu-text-sub);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  border: 1px solid transparent;
}

.stu-chip.active {
  background: var(--stu-primary);
  color: #fff;
  border-color: var(--stu-primary);
}

/* ==================== 图表容器 ==================== */
.stu-chart-container {
  width: 100%;
  height: 220px;
  min-height: 180px;
}

.stu-chart-container.tall { height: 280px; }

/* ==================== 横向溢出处理 ==================== */
.stu-horizontal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stu-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* ==================== 弹性宽度容器 ==================== */
.stu-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==================== 安全区域适配 ==================== */
.stu-safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.stu-safe-top {
  padding-top: env(safe-area-inset-top);
}

/* ==================== 打卡大按钮 ==================== */
.stu-checkin-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.stu-checkin-btn:active { transform: scale(0.95); }
.stu-checkin-btn:disabled {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 4px 12px rgba(100,116,139,0.3);
  cursor: not-allowed;
}

.stu-checkin-btn-icon { font-size: 36px; margin-bottom: 6px; }

.stu-checkin-center { text-align: center; padding: 20px 0; }

/* ==================== 空状态 ==================== */
.stu-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--stu-text-light);
}

.stu-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

.stu-empty-text { font-size: 14px; }

/* ==================== 折叠面板 ==================== */
.stu-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--stu-text);
}

.stu-collapse-arrow {
  transition: transform 0.2s;
  color: var(--stu-text-light);
}

.stu-collapse.open .stu-collapse-arrow {
  transform: rotate(180deg);
}

.stu-collapse-content {
  display: none;
  padding: 0 0 12px;
}

.stu-collapse.open .stu-collapse-content {
  display: block;
}

/* ==================== 分段控件（筛选） ==================== */
.stu-segment {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.stu-segment-item {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--stu-text-sub);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.stu-segment-item.active {
  background: #fff;
  color: var(--stu-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ==================== 响应式（小屏手机 < 375px） ==================== */
@media (max-width: 374px) {
  html, body { font-size: 13px; }
  
  .stu-login-container { padding: 24px 20px; }
  
  .stu-topbar { height: 44px; padding: 0 12px; }
  .stu-topbar-title { font-size: 16px; }
  
  .stu-content { padding: 8px; padding-bottom: 68px; }
  
  .stu-tabbar { height: 54px; }
  .stu-tab-icon { font-size: 20px; }
  .stu-tab-label { font-size: 10px; }
  
  .stu-card { padding: 12px; }
  
  .stu-profile-card { padding: 16px; gap: 12px; }
  
  .stu-profile-avatar { width: 48px; height: 48px; font-size: 24px; }
  .stu-profile-name { font-size: 18px; }
  
  .stu-stat-card { padding: 10px; }
}

/* ==================== 加载页面 ==================== */
.stu-loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--stu-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.stu-loading-content {
  text-align: center;
}

.stu-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--stu-primary-light);
  border-top-color: var(--stu-primary);
  border-radius: 50%;
  animation: stu-spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes stu-spin {
  to { transform: rotate(360deg); }
}

/* ==================== 学生端课程表 ==================== */
.stu-schedule-stats {
  display: flex; gap: 12px; justify-content: space-around; margin-bottom: 16px;
  flex-wrap: wrap;
}
.stu-schedule-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; min-width: 60px;
}
.stu-schedule-stat-value {
  font-size: 22px; font-weight: 700; color: var(--stu-primary);
}
.stu-schedule-stat-label {
  font-size: 11px; color: var(--stu-text-sub);
}
.stu-schedule-hint { display: none; text-align: center; font-size: 13px; color: var(--stu-text-sub); margin-top: 12px; margin-bottom: 12px; }
.stu-schedule-wrap {
  overflow-x: auto; background: #f8fafc;
  border-radius: var(--stu-radius); border: 1px solid var(--stu-border);
  touch-action: pan-x; overscroll-behavior-x: contain;
}
.stu-schedule-table {
  width: 100%; border-collapse: collapse;
  min-width: 600px; table-layout: fixed;
}
.stu-schedule-table thead th {
  background: var(--stu-bg); font-size: 13px; font-weight: 600;
  color: var(--stu-text-sub); padding: 10px 8px; text-align: center;
  border-bottom: 1px solid var(--stu-border); position: sticky; top: 0;
}
.stu-schedule-corner {
  background: var(--stu-primary) !important; color: #fff !important;
  font-size: 12px; width: 80px; min-width: 80px;
}
.stu-schedule-day { width: 14%; }
.stu-schedule-table tbody td {
  border: 1px solid var(--stu-border); padding: 6px;
  vertical-align: top; width: 14%; height: 70px;
}
.stu-schedule-period {
  background: #f1f5f9; text-align: center; padding: 6px 4px !important;
  width: 80px; min-width: 80px;
}
.stu-schedule-period-name {
  font-size: 12px; font-weight: 600; color: var(--stu-text);
}
.stu-schedule-period-time {
  font-size: 10px; color: var(--stu-text-light); margin-top: 2px;
}
.stu-schedule-cell { position: relative; }
.stu-schedule-course {
  padding: 6px 8px; border-radius: 6px; margin-bottom: 4px;
  min-height: 50px; display: flex; flex-direction: column;
  justify-content: center;
}
.stu-schedule-theory {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
}
.stu-schedule-practice {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
}
.stu-schedule-subj {
  font-size: 12px; font-weight: 600; color: var(--stu-text);
  white-space: normal; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.stu-schedule-teacher {
  font-size: 10px; color: var(--stu-text-sub); margin-top: 2px;
}
.stu-schedule-room {
  font-size: 10px; color: var(--stu-text-light); margin-top: 1px;
}
.stu-schedule-type-badge {
  font-size: 9px; font-weight: 600; padding: 1px 5px;
  border-radius: 4px; margin-left: 4px;
}
.stu-schedule-theory .stu-schedule-type-badge {
  background: rgba(59, 130, 246, 0.2); color: #2563eb;
}
.stu-schedule-practice .stu-schedule-type-badge {
  background: rgba(16, 185, 129, 0.2); color: #059669;
}

/* 手机端响应式 */
@media (max-width: 768px) {
  .stu-schedule-hint { display: block; text-align: center; }
  .stu-schedule-table { min-width: 800px; }
  .stu-schedule-day { width: 115px !important; min-width: 115px !important; }
  .stu-schedule-table tbody td {
    width: 115px !important; min-width: 115px !important;
    height: auto !important;
  }
  .stu-schedule-course {
    height: auto !important; min-height: 60px; padding: 8px 10px;
  }
  .stu-schedule-subj { font-size: 11px; white-space: normal; }
  .stu-schedule-period-name { font-size: 11px; }
  .stu-schedule-period-time { font-size: 9px; }
}

/* 平板端 */
@media (min-width: 769px) and (max-width: 1024px) {
  .stu-schedule-table { min-width: 700px; }
  .stu-schedule-course { min-height: 60px; }
}

.stu-loading-text {
  font-size: 14px;
  color: var(--stu-text-sub);
}

@media (max-width: 374px) {
  .stu-stat-value { font-size: 18px; }
  
  .stu-quick-grid { gap: 6px; }
  .stu-quick-item { padding: 10px 4px; }
  .stu-quick-icon { font-size: 20px; }
  
  .stu-grid-2 { gap: 8px; }
  .stu-grid-3 { gap: 8px; }
  .stu-grid-4 { gap: 6px; }
  
  .stu-calendar-day { font-size: 12px; }
  
  .stu-seat { min-width: 40px; height: 28px; font-size: 9px; }
}

/* ==================== 响应式（平板 768px - 1024px） ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
  html, body { font-size: 15px; }
  
  #student-app {
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    min-height: 100vh;
    position: relative;
  }
  
  .stu-login-container {
    max-width: 420px;
    padding: 40px 36px;
  }
  
  .stu-topbar { height: 52px; padding: 0 20px; }
  .stu-topbar-title { font-size: 18px; }
  
  .stu-content { padding: 16px; padding-bottom: 80px; }
  
  .stu-tabbar {
    max-width: 560px;
    left: 50%;
    transform: translateX(-50%);
    height: 64px;
  }
  
  .stu-tab-icon { font-size: 26px; }
  .stu-tab-label { font-size: 13px; }
  
  .stu-card { padding: 20px; }
  
  .stu-profile-card { padding: 24px; gap: 16px; }
  .stu-profile-avatar { width: 64px; height: 64px; font-size: 32px; }
  .stu-profile-name { font-size: 22px; }
  
  .stu-stat-card { padding: 16px; }
  .stu-stat-value { font-size: 26px; }
  
  .stu-quick-grid { gap: 12px; }
  .stu-quick-item { padding: 16px 8px; }
  .stu-quick-icon { font-size: 28px; }
  
  .stu-grid-2 { gap: 12px; }
  .stu-grid-3 { gap: 12px; }
  .stu-grid-4 { gap: 10px; }
  
  .stu-chart-container { height: 280px; }
  .stu-chart-container.tall { height: 340px; }
  
  .stu-calendar-day { font-size: 14px; }
  
  .stu-seat { min-width: 56px; height: 38px; font-size: 12px; }
  
  .stu-checkin-btn { width: 180px; height: 180px; font-size: 22px; }
  .stu-checkin-btn-icon { font-size: 42px; }
  
  .stu-modal-box { max-width: 420px; }
}

/* ==================== 响应式（桌面 >= 1025px） ==================== */
@media (min-width: 1025px) {
  html, body { font-size: 16px; }
  
  #student-app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--stu-bg);
  }
  
  .stu-topbar {
    display: none;
  }
  
  .stu-desktop-header {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    background: #fff;
    border-bottom: 1px solid var(--stu-border);
    margin-left: 260px;
  }
  
  .stu-desktop-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--stu-text);
  }
  
  .stu-content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    min-height: calc(100vh - 80px);
    
  }
  
  .stu-tabbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
    border-right: none;
    padding: 0;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  
  .stu-sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .stu-sidebar-logo {
    font-size: 36px;
    margin-bottom: 8px;
  }
  
  .stu-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
  }
  
  .stu-sidebar-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
  }
  
  .stu-tab-item {
    flex: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 24px;
    margin: 0;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    position: relative;
    border-left: 3px solid transparent;
  }
  
  .stu-tab-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
  }
  
  .stu-tab-item.active {
    color: #fff;
    background: rgba(59,130,246,0.2);
    border-left-color: var(--stu-primary);
  }
  
  .stu-tab-icon {
    font-size: 22px;
    margin-bottom: 0;
    margin-right: 14px;
    transition: none;
  }
  
  .stu-tab-item.active .stu-tab-icon {
    transform: none;
  }
  
  .stu-tab-label {
    font-size: 15px;
    font-weight: 500;
  }
  
  .stu-sidebar-footer {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
  }
  
  .stu-sidebar-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .stu-sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  
  .stu-sidebar-user-info {
    flex: 1;
    min-width: 0;
  }
  
  .stu-sidebar-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .stu-sidebar-user-no {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
  }
  
  .stu-sidebar-user-class {
    font-size: 12px;
    color: rgba(59,130,246,0.9);
    background: rgba(59,130,246,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 4px;
  }
  
  .stu-sidebar-user-date {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
  }
  
  .stu-card {
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
  }
  
  .stu-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
  
  .stu-card-header {
    margin-bottom: 20px;
  }
  
  .stu-card-title {
    font-size: 18px;
    font-weight: 600;
  }
  
  .stu-profile-card {
    padding: 32px;
    gap: 20px;
    border-radius: 20px;
  }
  
  .stu-profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 44px;
  }
  
  .stu-profile-name {
    font-size: 26px;
  }
  
  .stu-stat-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .stu-stat-value {
    font-size: 32px;
  }
  
  .stu-stat-label {
    font-size: 14px;
    margin-top: 6px;
  }
  
  .stu-grid-2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .stu-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .stu-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  
  .stu-quick-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }
  
  .stu-quick-item {
    padding: 16px 10px;
    border-radius: 12px;
  }
  
  .stu-quick-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .stu-quick-label {
    font-size: 13px;
  }
  
  .stu-shop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .stu-shop-card {
    min-height: 180px;
    padding: 20px 16px;
    border-radius: 16px;
  }
  
  .stu-badge-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  
  .stu-chart-container {
    height: 320px;
  }
  
  .stu-chart-container.tall {
    height: 400px;
  }
  
  .stu-checkin-btn {
    width: 200px;
    height: 200px;
    font-size: 24px;
  }
  
  .stu-modal-box {
    max-width: 600px;
  }
  
  .stu-list-item {
    padding: 16px 0;
  }
  
  .stu-list-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  .stu-timeline {
    padding-left: 28px;
  }
  
  .stu-calendar-day {
    font-size: 15px;
    aspect-ratio: 1;
  }
  
  .stu-seat {
    min-width: 64px;
    height: 44px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .stu-seating-wrap {
    overflow-x: visible;
  }
  
  .stu-seating-grid {
    min-width: 100%;
  }
  
  .stu-dashboard-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .stu-dashboard-row-2 {
    grid-template-columns: 2fr 1fr;
  }
  
  .stu-dashboard-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .stu-dashboard-row-main-side {
    grid-template-columns: 3fr 1fr;
  }
  
  .stu-dashboard-full {
    grid-column: 1 / -1;
  }
  
  .stu-login-page {
    padding: 0;
  }
  
  .stu-login-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
  }
  
  .stu-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    padding: 40px;
    text-align: center;
  }
  
  .stu-login-brand-logo {
    font-size: 80px;
    margin-bottom: 20px;
  }
  
  .stu-login-brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  
  .stu-login-brand-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
  }
  
  .stu-login-brand-features {
    margin-top: 30px;
    text-align: left;
  }
  
  .stu-login-brand-features div {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
  }
  
  .stu-login-brand-features span {
    margin-right: 10px;
  }
  
  .stu-login-box {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .stu-login-header {
    text-align: center;
    margin-bottom: 24px;
  }
  
  .stu-login-logo {
    font-size: 40px;
    margin-bottom: 8px;
    animation: none;
    display: inline-block;
  }
  
  .stu-login-title {
    font-size: 24px;
    margin-bottom: 4px;
  }
  
  .stu-login-subtitle {
    font-size: 13px;
  }
  
  .stu-login-footer {
    margin-top: 16px;
  }
}

/* ==================== 工具类 ==================== */
.stu-text-center { text-align: center; }
.stu-text-right { text-align: right; }
.stu-mb-8 { margin-bottom: 8px; }
.stu-mb-12 { margin-bottom: 12px; }
.stu-mb-16 { margin-bottom: 16px; }
.stu-mt-8 { margin-top: 8px; }
.stu-mt-12 { margin-top: 12px; }
.stu-mt-16 { margin-top: 16px; }
.stu-flex { display: flex; }
.stu-flex-between { display: flex; justify-content: space-between; align-items: center; }
.stu-gap-8 { gap: 8px; }
.stu-gap-12 { gap: 12px; }
.stu-w-full { width: 100%; }
.stu-hidden { display: none !important; }
