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

:root {
  --primary: #4f6df5;
  --primary-light: #6d83f7;
  --primary-bg: #eef1fe;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #1a1a2e;
  --text-sub: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

#app { position: relative; min-height: 100vh; }

/* ========== 科技感 SVG 图标系统 ========== */
.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-13 { width: 13px; height: 13px; }
.ic-15 { width: 15px; height: 15px; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-40 { width: 40px; height: 40px; }
.ic-48 { width: 48px; height: 48px; }
.ic-56 { width: 56px; height: 56px; }

.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 70px;
}
.page.active { display: block; }

/* ========== 首页展示（无需登录）========== */
.home-banner { background: var(--bg); }
.home-banner-img { width: 100%; display: block; }
.home-section {
  background: #fff;
  margin: 10px 0;
  padding: 18px 16px;
}
.home-section-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.home-section-title .ic { color: var(--primary); }
.club-intro-text {
  font-size: 14px; color: var(--text-sub); line-height: 1.8;
}
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.intro-tag {
  padding: 6px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}
/* 活动风采资讯列表 */
.news-list { display: flex; flex-direction: column; gap: 12px; }

/* 延时课堂：两排图片自动横向滚动轮播（上排矮图 180px、下排高图 240px） */
.gallery-waterfall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;          /* 隐藏滚动条，纯自动滚动 */
}
.gallery-row {
  height: 180px;             /* 上排：矮图 */
  overflow: hidden;
}
.gallery-row.row-bottom {
  height: 240px;             /* 下排：高图 */
}
.gallery-row .gallery-track {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  animation: gallery-scroll 20s linear infinite;   /* 时长由 JS 按内容量覆盖 */
  will-change: transform;
}
/* 无缝循环：从 0 移到 -50%（双份内容，正好一份宽度） */
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* 某排图片不足一屏时停用该排动画 */
.gallery-row.paused .gallery-track {
  animation-play-state: paused;
}
/* PC 端鼠标悬停暂停，移开继续 */
.gallery-row:hover .gallery-track {
  animation-play-state: paused;
}
.gallery-item {
  flex: 0 0 auto;
  width: 150px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.news-card {
  display: flex;
  flex-direction: column;    /* 上图下文：大图 + 主标题 */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s;
}
.news-card:active { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.news-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* 大图主展示，固定比例不撑乱布局 */
  background: #eef1ff;
}
.news-card-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.news-card-cover-none {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(135deg, #4f6df5 0%, #8b5cf6 100%);
}
.news-card-body { padding: 10px 12px 12px; }
.news-card-title {
  font-size: 15px; font-weight: 700; color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-empty { text-align: center; padding: 28px 0; color: var(--text-light); }
.news-empty-icon { color: var(--text-light); margin-bottom: 8px; }

/* 「>>> 全部活动」入口（首页活动风采底部引流） */
.news-more-btn {
  margin-top: 4px;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  cursor: pointer;
}

/* 全部活动列表页 */
#page-news-list { padding-bottom: 30px; }
.news-list-page { padding: 12px 14px 0; }

/* 资讯详情页 */
#page-news-detail { padding-bottom: 30px; }
.news-detail-head { padding: 16px 16px 0; }
.news-detail-title { font-size: 20px; font-weight: 700; color: var(--text-main); line-height: 1.4; }
.news-detail-date { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.news-detail-cover {
  width: calc(100% - 32px); margin: 14px 16px 0;
  border-radius: 12px; max-height: 220px; object-fit: cover;
}
.news-detail-body { padding: 14px 16px 0; }
.news-detail-para { margin-bottom: 16px; }
.news-detail-para-text {
  font-size: 15px; color: var(--text-main); line-height: 1.9; margin-bottom: 8px;
  word-break: break-word;
}
.news-detail-para-img {
  width: 100%; border-radius: 10px; max-height: 300px; object-fit: cover; display: block;
}
.news-detail-back {
  margin: 10px 16px 20px; padding: 12px; text-align: center;
  background: var(--bg); color: var(--primary);
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* 图片全屏预览 */
.img-preview-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
}
.img-preview-mask img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: 6px;
}
.home-cta {
  margin: 4px 16px 20px;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(79, 109, 245, 0.35);
  transition: background .2s;
}
.home-cta:active { background: var(--primary-light); }
.home-cta-arrow { font-size: 20px; line-height: 1; }

/* 个人中心未登录引导 */
#profile-login-box {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.profile-login-icon { color: var(--primary); margin-bottom: 16px; }
.profile-login-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.profile-login-desc { font-size: 14px; color: var(--text-sub); margin-bottom: 28px; }
.profile-login-btn { max-width: 240px; margin: 0 auto; }

/* ========== 登录页（简化：仅登录窗口） ========== */
#page-login {
  display: none;
  position: relative;
  background: #fff;
  min-height: 100vh;
  padding: 0;
}
#page-login.active { display: flex; flex-direction: column; align-items: center; }

.login-body {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  display: flex; flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}

/* 登录卡片 */
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.login-card-top {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.login-back {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 2px;
  padding: 5px 10px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-sub);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.login-back:active { border-color: var(--primary); color: var(--primary); background: rgba(79,109,245,0.06); }
.login-card-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
}

/* 带图标的输入框 */
.input-wrapper {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 109, 245, 0.1);
  background: #fff;
}
.input-icon { color: var(--text-light); margin-right: 10px; flex-shrink: 0; display: flex; align-items: center; }
.login-card .input-wrapper input {
  width: 100%;
  padding: 14px 0;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
}

/* ========== 表单 ========== */
.form-item {
  margin-bottom: 16px;
}
.form-item label {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
  font-weight: 500;
}
.required-mark { color: #ef4444; margin-left: 2px; }
.optional-mark { color: #9ca3af; font-weight: 400; font-size: 13px; }
.form-item input, .form-item select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.form-item input:focus, .form-item select:focus {
  border-color: var(--primary);
}
.radio-group { display: flex; gap: 24px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.radio-group input { width: auto; }

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-primary:active { background: var(--primary-light); }
.btn-primary:disabled { opacity: .5; }

.login-tip {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.5;
}

.btn-outline {
  padding: 10px 24px;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ========== 页面头部（我的报名等页面复用）========== */
.page-header {
  background: linear-gradient(135deg, #4f6df5 0%, #6d4ff5 100%);
  padding: 48px 20px 20px;
  color: #fff;
}
.header-title { font-size: 20px; font-weight: 700; }

/* ========== 首页社团信息 ========== */
.club-header {
  background: linear-gradient(135deg, #4f6df5 0%, #6d4ff5 100%);
  padding: 48px 16px 0;
}
.club-top-bar {
  display: flex; align-items: center; justify-content: flex-end;
  padding-bottom: 16px;
}
.club-top-right {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; cursor: pointer;
  opacity: .9;
}
.club-avatar-icon { display: flex; color: var(--primary); }

.club-info-card {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.club-school-row {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.club-school-left { display: flex; align-items: center; gap: 10px; }
.club-school-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.club-school-text { }
.club-school-name { font-size: 16px; font-weight: 700; color: var(--text-main); }
.club-school-tag {
  font-size: 12px; color: var(--text-sub); margin-top: 2px;
}
.club-switch-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--bg);
  font-size: 12px; color: var(--text-sub);
  flex-shrink: 0;
}
.switch-text { font-size: 12px; }

.club-stats {
  display: flex; align-items: center;
  padding-top: 16px;
}
.club-stat-item {
  flex: 1; text-align: center;
  cursor: pointer;
  transition: opacity .15s;
}
.club-stat-item:active { opacity: .7; }
.club-stat-num {
  font-size: 24px; font-weight: 800;
  color: var(--primary);
}
.club-stat-label {
  font-size: 12px; color: var(--text-sub);
  margin-top: 2px;
}
.club-stat-divider {
  width: 1px; height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* 课程列表区域标题 */
.section-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 6px;
  background: var(--bg);
}
.section-title-text { font-size: 15px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 5px; }
.section-title-text .ic { color: var(--primary); }
.section-title-count {
  font-size: 12px; color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 10px; border-radius: 10px;
}

.arrow-down {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-sub);
}

/* ========== 分类标签 ========== */
.category-tabs {
  display: flex; gap: 8px;
  padding: 10px 16px 12px;
  overflow-x: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs .tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg);
  cursor: pointer;
  transition: all .2s;
}
.category-tabs .tab.active {
  background: var(--primary);
  color: #fff;
}

/* ========== 课程列表 ========== */
.course-list { padding: 12px 16px; }
.course-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform .15s;
}
.course-card:active { transform: scale(0.98); }
.course-cover {
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}
.course-body { padding: 12px 14px; }
.course-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.course-meta span { display: flex; align-items: center; gap: 3px; }
.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.course-actions {
  display: flex; align-items: center; gap: 8px;
}
.course-remaining {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--success);
  color: #fff;
}
.course-remaining.full { background: var(--text-light); }
.course-enroll-btn {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
}
.course-enroll-btn.disabled {
  background: var(--text-light);
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.empty-icon { color: var(--text-light); margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin-bottom: 16px; }

/* ========== 课程详情 ========== */
.detail-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 48px 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.nav-back { font-size: 15px; color: var(--text-main); cursor: pointer; }
.nav-title { font-size: 17px; font-weight: 600; }

.detail-cover {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
}
.detail-info { background: #fff; padding: 16px 20px; margin-bottom: 8px; }
.detail-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.detail-tags { display: flex; gap: 6px; }
.detail-tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-bg);
  color: var(--primary);
}
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.info-cell { }
.info-cell .label { font-size: 12px; color: var(--text-light); margin-bottom: 2px; }
.info-cell .value { font-size: 14px; font-weight: 500; }

.detail-desc { background: #fff; padding: 16px 20px; margin-bottom: 8px; }
.detail-desc h3 { font-size: 15px; margin-bottom: 8px; }
.detail-desc p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

.detail-bottom-bar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex; gap: 12px;
  z-index: 101;
}
.btn-enroll {
  flex: 1;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-enroll:disabled { background: var(--text-light); }

/* ========== 报名确认 ========== */
.enroll-section {
  background: #fff;
  padding: 16px 20px;
  margin-bottom: 8px;
}
.enroll-section h3 { font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.enroll-course-card {
  display: flex; gap: 12px; align-items: center;
}
.enroll-course-cover {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.enroll-course-info { flex: 1; }
.enroll-course-info .title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.enroll-course-info .meta { font-size: 12px; color: var(--text-sub); }

.student-pick-list { }
.student-pick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s;
}
.student-pick-item.selected { border-color: var(--primary); background: var(--primary-bg); }
.student-pick-item.disabled {
  cursor: not-allowed;
  opacity: .6;
  background: var(--bg-light, #f5f5f5);
  border-style: dashed;
}
.student-pick-item.disabled .radio { background: #e2e2e2; }
.enroll-warn-note {
  background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.6;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 8px;
}
.student-pick-item .radio {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.student-pick-item.selected .radio { border-color: var(--primary); }
.student-pick-item.selected .radio::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
}
.student-pick-info { flex: 1; }
.student-pick-info .name { font-size: 15px; font-weight: 500; }
.student-pick-info .detail { font-size: 12px; color: var(--text-sub); }

/* ========== 我的报名 ========== */
.order-list { padding: 12px 16px; }
.order-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.order-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.order-course-title { font-size: 15px; font-weight: 600; }
.order-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.order-status.paid { background: #e8f5e9; color: var(--success); }
.order-status.pending { background: #fff8e1; color: var(--warning); }
.order-status.cancelled { background: #f5f5f5; color: var(--text-light); }
.order-body { font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.order-body .row { display: flex; justify-content: space-between; }
.order-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.order-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-sub);
}
.order-btn.primary { border-color: var(--primary); color: var(--primary); }
.order-btn.danger { border-color: var(--danger); color: var(--danger); }
/* 老师联系电话（点击可拨打） */
.teacher-phone { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ========== 个人中心 ========== */
.profile-header {
  background: linear-gradient(135deg, #4f6df5 0%, #6d4ff5 100%);
  padding: 48px 20px 28px;
  text-align: center;
  color: #fff;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
  margin-bottom: 10px;
}
.profile-name { font-size: 18px; font-weight: 600; }
.profile-phone { font-size: 14px; opacity: .8; margin-top: 4px; }

.profile-section { background: #fff; margin: 8px 0; padding: 16px 20px; }
.section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.student-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.student-card:last-child { border-bottom: none; }
.student-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.student-info .name { font-size: 14px; font-weight: 500; }
.student-info .detail { font-size: 12px; color: var(--text-sub); }
.btn-add-student {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1.5px dashed var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-item > .ic { color: var(--primary); }
.menu-item .arrow { margin-left: auto; color: var(--text-light); }

/* ========== 底部导航 ========== */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0;
  color: var(--text-light);
  cursor: pointer;
  transition: color .2s;
}
.tabbar-item.active { color: var(--primary); }
.tabbar-icon { width: 24px; height: 24px; display: block; margin-bottom: 2px; }
.tabbar-icon .tb {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #9ca3af;
  transition: stroke .2s;
}
.tabbar-item.active .tabbar-icon .tb {
  stroke: url(#tabGrad);
  filter: drop-shadow(0 1px 3px rgba(79,109,245,.45)) drop-shadow(0 0 8px rgba(79,109,245,.3));
}
.tabbar-text { font-size: 11px; margin-top: 2px; }

/* ========== 弹窗 ========== */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%; max-width: 430px;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.school-option {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  cursor: pointer;
}
.school-option:hover { background: var(--primary-bg); }
.school-option.selected { color: var(--primary); font-weight: 600; }

/* 支付成功弹窗 */
.success-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 80%; max-width: 320px;
  text-align: center;
  animation: popIn .3s ease;
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-text { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.success-desc { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; }
.success-box .btn-primary { width: 100%; }

/* ========== Toast ========== */
.toast {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 300;
  max-width: 280px;
  text-align: center;
}
.toast.show { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
