:root {
  --primary: #00a854;
  --primary-dark: #007a48;
  --primary-light: #34d399;
  --bg: #f5f6f8;
  --card: #fff;
  --text: #1a1a1a;
  --sub: #888;
  --border: #eee;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --nav-foot-h: 56px;
  --nav-foot-font: 12px;
  --nav-foot-icon: 28px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.h5-with-bottom-nav {
  padding-bottom: calc(var(--nav-foot-h) + 8px + env(safe-area-inset-bottom));
}

a {
  color: var(--primary);
  text-decoration: none;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
}

.top h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.notice {
  display: flex;
  align-items: center;
  background: #fff8e6;
  padding: 8px 14px;
  font-size: 12px;
  color: #856404;
}

.notice .i {
  margin-right: 8px;
}

.hero {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #e0e0e0;
  -webkit-user-select: none;
  user-select: none;
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide .mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 120, 90, 0.55), rgba(0, 168, 84, 0.35), rgba(0, 0, 0, 0.2));
}

.hero-slide .tit {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero-slide .learn {
  margin-top: 14px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots span.on {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}

.grid-card {
  margin: 10px 12px;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 4px 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.quick {
  display: flex;
  flex-wrap: wrap;
}

.quick a {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px 10px;
  color: inherit;
}

.quick .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #00c853, var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.quick span {
  font-size: 11px;
  color: #444;
  text-align: center;
  line-height: 1.2;
}

.section {
  background: var(--card);
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
}

.sec-head .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.sec-head .diamond {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: rotate(45deg);
}

.sec-head .more {
  font-size: 13px;
  color: var(--primary);
}

.sec-head-news .head-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  flex-shrink: 0;
}

.sec-head-home-school .left {
  color: var(--primary);
}

.hs-feat {
  margin: 0 16px 12px;
  cursor: pointer;
}

.hs-feat-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 170px;
  background: #e8eef0;
}

.hs-feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-feat-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #fff3e0, #ffe082 40%, #4fc3f7 85%, #26a69a);
}

.hs-feat-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
}

.hs-feat-overlay-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hs-feat-body {
  padding: 12px 0 4px;
}

.hs-feat-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.hs-feat-sum {
  margin-top: 10px;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hs-feat-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #bbb;
}

.hs-row {
  padding: 14px 16px;
  cursor: pointer;
  border-top: 1px solid #f5f5f5;
}

.hs-row-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
}

.hs-row-sum {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hs-row-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #bbb;
}

.hs-empty {
  margin: 0 16px 16px;
  padding: 14px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
  background: #f7f8fa;
  border-radius: 10px;
}

.more-muted {
  color: var(--sub) !important;
  font-size: 12px;
}

.news-feat {
  margin: 0 16px 12px;
  cursor: pointer;
}

.news-feat-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 170px;
  background: linear-gradient(135deg, #e0f7e9, #b2dfdb);
}

.news-feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-feat-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0f7e9, #b2dfdb);
}

.news-feat-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
}

.news-feat-overlay-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.news-row {
  padding: 14px 16px;
  cursor: pointer;
}

.news-row + .news-row,
.news-feat + .news-row {
  border-top: 1px solid #f5f5f5;
}

.news-row-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
}

.news-row-sum {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-row-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #bbb;
}

.video-card {
  position: relative;
  margin: 0 16px 12px;
  height: 0;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-card > img,
.video-card > .vm,
.video-card > .vt,
.video-card > .video-card-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card img {
  object-fit: cover;
}

.video-card .vm {
  background: rgba(0, 0, 0, 0.25);
}

.video-card .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

.video-card .vt {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.video-card .video-card-layer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card .vc-inline-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.feat {
  padding: 0 16px 10px;
}

.feat .img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(120deg, #e0f7e9, #b2dfdb);
}

.feat h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.feat p {
  margin: 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
}

.row {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
}

.row h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
}

.row p {
  margin: 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
}

.teacher {
  display: flex;
  gap: 10px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid #f5f5f5;
}

.teacher img,
.teacher-av-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  flex-shrink: 0;
}

.teacher .tb strong {
  font-size: 15px;
}

.teacher .tb p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 6px 12px 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.tabs button {
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  cursor: pointer;
}

.tabs button.on {
  background: var(--primary);
  color: #fff;
}

.dist-row {
  display: flex;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
  align-items: center;
}

.dist-row .txt {
  flex: 1;
  min-width: 0;
}

.dist-row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  flex-shrink: 0;
}

.map {
  margin: 0 16px 14px;
  max-width: 100%;
  border-radius: 8px;
}

.map-ph {
  margin: 0 16px 16px;
  padding: 20px;
  background: #f0f4f3;
  border-radius: 8px;
  color: var(--sub);
  font-size: 12px;
}

.err {
  margin: 40px 16px;
  padding: 16px;
  background: #fff3f3;
  border-radius: 8px;
  color: #c00;
  font-size: 13px;
}

#h5-nav-foot.nav-foot,
nav.nav-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
  min-height: var(--nav-foot-h);
  margin: 0 auto;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--card);
  border-top: 1px solid #eee;
  box-sizing: border-box;
  transform: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#h5-nav-foot.nav-foot > a,
nav.nav-foot > a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--nav-foot-h);
  height: auto;
  padding: 6px 0 4px;
  text-align: center;
  font-size: var(--nav-foot-font);
  line-height: 1.2;
  color: #999;
  font-weight: 400;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#h5-nav-foot.nav-foot .nav-foot-ic,
nav.nav-foot .nav-foot-ic {
  width: var(--nav-foot-icon);
  height: var(--nav-foot-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#h5-nav-foot.nav-foot .nav-foot-ic svg,
nav.nav-foot .nav-foot-ic svg {
  width: var(--nav-foot-icon);
  height: var(--nav-foot-icon);
  display: block;
}

#h5-nav-foot.nav-foot .nav-foot-txt,
nav.nav-foot .nav-foot-txt {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#h5-nav-foot.nav-foot > a.on,
nav.nav-foot > a.on {
  color: var(--primary);
  font-weight: 500;
}

/* 课堂中心 */
.classroom-page {
  background: #fff;
}

.cr-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: calc(100vh - 64px - env(safe-area-inset-bottom));
  padding-bottom: 8px;
}

.cr-header {
  background: linear-gradient(180deg, #b8ebd0 0%, #dcf5e8 42%, #fff 100%);
  padding: 12px 14px 0;
}

.cr-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 0 14px;
  height: 40px;
  box-shadow: 0 3px 12px rgba(0, 168, 84, 0.1);
}

.cr-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  min-width: 0;
}

.cr-search::placeholder {
  color: #c0c0c0;
}

.cr-search-btn {
  border: none;
  background: transparent;
  color: #00b26a;
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 0 8px;
  cursor: pointer;
  line-height: 1;
}

.cr-grade-tabs,
.cr-cat-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 10px 0 0;
}

.cr-grade-tabs::-webkit-scrollbar,
.cr-cat-tabs::-webkit-scrollbar {
  display: none;
}

.cr-grade-tab {
  flex-shrink: 0;
  padding: 10px 18px 12px;
  font-size: 16px;
  color: #333;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.cr-grade-tab.on {
  color: #00b26a;
  font-weight: 600;
}

.cr-grade-tab.on::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  width: 28px;
  height: 4px;
  background: #00b26a;
  border-radius: 2px;
}

.cr-cat-tabs {
  padding: 12px 0 14px;
  gap: 0;
}

.cr-cat-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  margin-right: 10px;
  font-size: 13px;
  color: #666;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.cr-cat-pill.on {
  background: #00b26a;
  color: #fff;
  font-weight: 500;
}

.cr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 8px 12px 16px;
  gap: 0;
}

.cr-card {
  width: 31.3%;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}

.cr-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
  background: #f0f2f5;
}

.cr-info {
  padding: 6px 2px 0;
}

.cr-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.cr-teacher {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.cr-t-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  flex-shrink: 0;
  background: #eee;
}

.cr-t-name {
  font-size: 11px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-empty {
  text-align: center;
  color: #999;
  padding: 48px 16px;
  font-size: 14px;
}

/* 活动广场 */
.activity-page {
  background: #f5f6f8;
}

.act-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: calc(100vh - 64px - env(safe-area-inset-bottom));
  padding-bottom: 8px;
}

.act-header {
  background: #fff;
  padding: 12px 16px 14px;
}

.act-search-box {
  display: flex;
  align-items: center;
  border: 2px solid #00b26a;
  border-radius: 999px;
  padding: 0 14px 0 16px;
  height: 40px;
  background: #fff;
}

.act-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  min-width: 0;
}

.act-search::placeholder {
  color: #c0c0c0;
}

.act-search-btn {
  border: none;
  background: transparent;
  color: #00b26a;
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 0 8px;
  cursor: pointer;
  line-height: 1;
}

.act-sort-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}

.act-sort {
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 0;
}

.act-sort.on {
  color: #00b26a;
  font-weight: 600;
}

.act-chev {
  margin-left: 6px;
  font-size: 11px;
}

.act-list {
  padding: 10px 12px 0;
}

.act-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 12px 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.act-top {
  display: flex;
  align-items: flex-start;
}

.act-cover {
  width: 84px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f2f5;
}

.act-info {
  flex: 1;
  margin-left: 10px;
  min-width: 0;
}

.act-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-meta {
  font-size: 12px;
  color: #999;
  margin: 6px 0 0;
  line-height: 1.4;
}

.act-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 10px 0 8px;
}

.act-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.act-count {
  font-size: 13px;
  color: #00b26a;
  font-weight: 500;
}

.act-btn {
  min-width: 70px;
  border: none;
  background: #00b26a;
  color: #fff;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.act-btn-end {
  background: #e8e8e8;
  color: #999;
  cursor: default;
}

.act-empty {
  text-align: center;
  color: #999;
  padding: 48px 16px;
  font-size: 14px;
}

.act-detail-page {
  min-height: 100vh;
  background: #f5f6f8;
  padding-bottom: 24px;
}

.act-detail-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
}

.act-detail-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee;
  padding: 10px 12px;
  box-sizing: border-box;
}

.act-detail-back {
  font-size: 15px;
  color: #00a854;
  text-decoration: none;
  font-weight: 600;
}

.act-detail-main {
  padding: 12px;
  box-sizing: border-box;
}

.act-detail-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 0 0 14px;
}

.act-detail-cover {
  width: 100%;
  height: 180px;
  background: #eef2f0;
}

.act-detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.act-detail-title {
  margin: 14px 14px 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
}

.act-detail-meta {
  margin: 0 14px 6px;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.act-detail-count {
  margin: 8px 14px 0;
  font-size: 14px;
  color: #00b26a;
  font-weight: 600;
}

.act-detail-quota,
.act-detail-status {
  margin: 6px 14px 0;
  font-size: 13px;
  color: #666;
}

.act-detail-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act-detail-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.act-detail-btn.primary {
  background: #00b26a;
  color: #fff;
}

.act-detail-btn.primary:disabled {
  background: #e8e8e8;
  color: #999;
  cursor: default;
}

.act-detail-btn.outline {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.act-detail-empty {
  text-align: center;
  color: #999;
  padding: 48px 16px;
  font-size: 14px;
}

.act-detail-success {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.act-detail-success.show {
  opacity: 1;
  pointer-events: auto;
}

.act-detail-success-box {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px 20px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.act-detail-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #00b26a, #00d68f);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
}

.act-detail-success-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.act-detail-success-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.act-detail-success-ok {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  background: #00b26a;
  color: #fff;
  cursor: pointer;
}

/* 数据中心 */
.dc-page {
  background: #f5f6f8;
}

.dc-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: calc(100vh - 64px - env(safe-area-inset-bottom));
  padding-bottom: 8px;
}

.dc-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 4px;
}

.dc-tabs::-webkit-scrollbar {
  display: none;
}

.dc-tab {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  position: relative;
}

.dc-tab.on {
  color: #00b26a;
  font-weight: 600;
}

.dc-tab.on::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: #00b26a;
  border-radius: 3px 3px 0 0;
}

.dc-content {
  padding: 10px 12px 0;
}

.dc-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dc-card-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dc-dot {
  width: 6px;
  height: 6px;
  background: #00b26a;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

.dc-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.dc-more {
  font-size: 12px;
  color: #999;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.dc-chart-wrap {
  position: relative;
}

.dc-chart-wrap.pie {
  display: flex;
  align-items: center;
}

.dc-pie-legend {
  width: 42%;
  flex-shrink: 0;
  padding-right: 4px;
}

.dc-leg-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}

.dc-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  margin-top: 3px;
  flex-shrink: 0;
}

.dc-chart {
  width: 100%;
  height: 220px;
}

.dc-chart.pie-chart {
  width: 58%;
  height: 200px;
}

.dc-leg-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.dc-leg-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}

.dc-leg-b-item {
  font-size: 11px;
  color: #666;
}

.dc-download-tip {
  background: #fff;
  border-radius: 8px;
  padding: 24px 16px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.dc-empty {
  text-align: center;
  color: #999;
  padding: 40px 16px;
  font-size: 14px;
}

/* 课程详情 */
.course-detail-page {
  background: #f5f6f8;
}

.cd-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.cd-loading,
.cd-empty {
  text-align: center;
  padding: 80px 16px;
  color: #999;
  font-size: 14px;
}

.cd-hero {
  position: relative;
  height: 210px;
  background: #222;
}

.cd-back {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cd-poster,
.cd-poster-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.cd-video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #000;
}

.cd-poster {
  position: relative;
  cursor: pointer;
}

.cd-play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
}

.cd-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #00b26a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
}

.cd-main {
  padding-bottom: 24px;
}

.cd-info {
  background: #fff;
  padding: 14px 16px;
}

.cd-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0;
}

.cd-teacher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.cd-teacher-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cd-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
  background: #eee;
}

.cd-t-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.cd-t-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #00b26a;
  background: rgba(0, 178, 106, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.cd-views {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  margin-left: 8px;
}

.cd-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.65;
}

.cd-section {
  background: #fff;
  margin-top: 8px;
  padding: 12px 0;
}

.cd-sec-head {
  display: flex;
  align-items: center;
  padding: 0 16px 10px;
}

.cd-sec-title {
  font-size: 15px;
  font-weight: 600;
}

.cd-sec-count {
  margin-left: 6px;
  font-size: 13px;
  color: #999;
}

.cd-sec-more {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #999;
  font-size: 12px;
  cursor: pointer;
}

.cd-lessons {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  gap: 10px;
}

.cd-lesson {
  flex-shrink: 0;
  width: 120px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.cd-lesson.lesson-on {
  border-color: #00b26a;
  background: #f6fffb;
}

.cd-lesson-name {
  display: block;
  font-size: 13px;
  color: #333;
  line-height: 1.35;
}

.cd-lesson.lesson-on .cd-lesson-name {
  color: #00b26a;
  font-weight: 600;
}

.cd-lesson-foot {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #999;
}

.cd-lesson-play {
  color: #00b26a;
}

.cd-lesson-done {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background: #00b26a;
  border-radius: 50%;
}

.cd-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
}

.cd-tab {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
}

.cd-tab.on {
  color: #00b26a;
  font-weight: 600;
}

.cd-tab.on::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: #00b26a;
  border-radius: 2px;
}

.cd-panel {
  padding: 12px 16px;
}

.cd-material {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.cd-tab-empty {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 8px;
}

/* 我的 — 精品版 */
.mine-page {
  position: relative;
  background: #e8f2ec;
  min-height: 100vh;
  overflow-x: hidden;
}
.mine-hero-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 280px;
  overflow: hidden;
  pointer-events: none;
}
.mine-orb {
  position: absolute;
  border-radius: 50%;
}
.mine-orb-a {
  width: 200px;
  height: 200px;
  left: -50px;
  top: -60px;
  background: radial-gradient(circle, rgba(0, 200, 120, 0.45) 0%, transparent 68%);
}
.mine-orb-b {
  width: 160px;
  height: 160px;
  right: -20px;
  top: 40px;
  background: radial-gradient(circle, rgba(77, 182, 255, 0.28) 0%, transparent 70%);
}
.mine-orb-c {
  width: 120px;
  height: 120px;
  left: 45%;
  top: 120px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.22) 0%, transparent 72%);
}
.mine-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.mine-page .mine-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 28px;
}
.mine-profile-shell {
  margin-bottom: 16px;
}
.mine-profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 12px 36px rgba(0, 120, 70, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}
.mine-profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #007a48 0%, #00b85c 38%, #34d399 72%, #6ee7b7 100%);
  z-index: 0;
}
.mine-card-shine {
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  z-index: 1;
  animation: mineShine 6s ease-in-out infinite;
}
@keyframes mineShine {
  0%,
  100% {
    transform: translateX(-20%) rotate(12deg);
    opacity: 0.6;
  }
  50% {
    transform: translateX(120%) rotate(12deg);
    opacity: 1;
  }
}
.mine-profile-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding: 24px 20px 20px;
}
.mine-avatar-stack {
  position: relative;
  margin-right: 16px;
  flex-shrink: 0;
}
.mine-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
}
.mine-avatar-ring {
  position: relative;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  box-shadow: 0 4px 14px rgba(0, 60, 40, 0.2);
}
.mine-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, #f0fdf4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mine-avatar span {
  font-size: 24px;
  font-weight: 800;
  color: #00a854;
}
.mine-online-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}
.mine-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.mine-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0, 60, 40, 0.2);
}
.mine-role-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.mine-role-on {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
.mine-info p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.9;
}
.mine-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  color: #007a42;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 60, 40, 0.12);
  border: none;
  cursor: pointer;
}
.mine-login-arrow {
  width: 7px;
  height: 7px;
  border-top: 2px solid #00a854;
  border-right: 2px solid #00a854;
  transform: rotate(45deg);
}
.mine-stats-card {
  display: flex;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 16px 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(15, 50, 35, 0.08);
}
.mine-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mine-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #0d3d2a;
}
.mine-stat-label {
  font-size: 11px;
  color: #7a8a82;
}
.mine-ai-spotlight {
  position: relative;
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 3px;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-ai-border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #00c853, #4ade80, #22d3ee, #00a854);
  background-size: 300% 300%;
  animation: mineBorderFlow 4s ease infinite;
  z-index: 0;
}
@keyframes mineBorderFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.mine-ai-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 3px;
  padding: 18px 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 48%, #ecfdf5 100%);
}
.mine-ai-spotlight:active {
  opacity: 0.95;
  transform: scale(0.99);
}
.mine-ai-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, #00a854, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0, 168, 84, 0.35);
}
.mine-ai-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 2px solid rgba(0, 168, 84, 0.35);
  animation: minePulse 2s ease-out infinite;
}
@keyframes minePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}
.mine-ai-text {
  flex: 1;
  min-width: 0;
}
.mine-ai-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mine-ai-title {
  font-size: 17px;
  font-weight: 800;
  color: #064e3b;
}
.mine-ai-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.mine-ai-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}
.mine-ai-go {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mine-ai-go-txt {
  font-size: 10px;
  color: #00a854;
  font-weight: 600;
}
.mine-ai-go-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a854, #34d399);
  box-shadow: 0 4px 12px rgba(0, 168, 84, 0.3);
  position: relative;
}
.mine-ai-go-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -5px 0 0 -6px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
}
.mine-section {
  margin-bottom: 18px;
}
.mine-section-extra {
  display: none;
}
.mine-section-extra.mine-section-show {
  display: block;
}
#mine-section-main.mine-section-hide {
  display: none;
}
.mine-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.mine-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a2f;
  letter-spacing: 1px;
}
.mine-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 168, 84, 0.35), transparent);
  border-radius: 2px;
}
.mine-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mine-menu-grid:empty {
  display: none;
}
.mine-menu-tile {
  width: calc(50% - 6px);
  box-sizing: border-box;
  padding: 18px 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(15, 45, 30, 0.07);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mine-menu-tile:active {
  transform: scale(0.98);
}
.mine-tile-0 .mine-tile-icon {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
}
.mine-tile-1 .mine-tile-icon {
  background: linear-gradient(145deg, #ffedd5, #fed7aa);
}
.mine-tile-2 .mine-tile-icon {
  background: linear-gradient(145deg, #fef9c3, #fde047);
}
.mine-tile-3 .mine-tile-icon {
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
}
.mine-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 0.04);
}
.mine-tile-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a2e24;
  margin-bottom: 2px;
}
.mine-tile-hint {
  font-size: 10px;
  color: #94a3b8;
}
.mine-menu-list-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(15, 45, 30, 0.08);
}
.mine-menu-list-card:empty {
  display: none;
}
.mine-list-row {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background 0.15s ease;
}
.mine-list-row::after {
  content: '';
  position: absolute;
  left: 58px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #eef2f0, transparent);
}
.mine-list-row:last-child::after {
  display: none;
}
.mine-list-row:active {
  background: linear-gradient(90deg, rgba(0, 168, 84, 0.04), transparent);
}
.mine-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3e8ff, #e9d5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 18px;
}
.mine-list-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1a2e24;
}
.mine-list-arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid #00a854;
  border-right: 2px solid #00a854;
  transform: rotate(45deg);
  opacity: 0.5;
}
.mine-list-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.tch-logout-row {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mine-brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 12px;
  gap: 8px;
}
.mine-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00a854, #34d399);
  box-shadow: 0 4px 12px rgba(0, 168, 84, 0.25);
}
.mine-brand-name {
  font-size: 12px;
  font-weight: 700;
  color: #5a6d64;
  letter-spacing: 3px;
}
.mine-brand-sub {
  font-size: 10px;
  color: #a8b5ae;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 在线咨询 */
.consult-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, #eef1fb 0%, #f5f6f8 28%);
}
.consult-top {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #5b6fd6, #7c8ef5);
  color: #fff;
  flex-shrink: 0;
}
.consult-back {
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
  font-size: 18px;
}
.consult-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.consult-welcome {
  text-align: center;
  padding: 40px 16px 24px;
}
.consult-welcome-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #5b6fd6, #7c8ef5);
  font-size: 36px;
  line-height: 72px;
  box-shadow: 0 8px 24px rgba(91, 111, 214, 0.35);
}
.consult-welcome h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1e2a4a;
}
.consult-welcome p {
  margin: 0 0 24px;
  font-size: 13px;
  color: #6b7a99;
  line-height: 1.55;
}
.consult-chip {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(91, 111, 214, 0.12);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91, 111, 214, 0.08);
}
.consult-msgs {
  padding-bottom: 16px;
}
.consult-msg {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 10px;
}
.consult-msg.user {
  flex-direction: row-reverse;
}
.consult-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.consult-av.teacher {
  background: linear-gradient(135deg, #5b6fd6, #7c8ef5);
  color: #fff;
}
.consult-av.user {
  background: #00a854;
  color: #fff;
}
.consult-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.consult-msg.teacher .consult-bubble {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-top-left-radius: 4px;
}
.consult-msg.user .consult-bubble {
  background: linear-gradient(135deg, #00a854, #00c853);
  color: #fff;
  border-top-right-radius: 4px;
}
.consult-bubble .cn {
  display: block;
  font-size: 11px;
  color: #5b6fd6;
  font-weight: 600;
  margin-bottom: 4px;
}
.consult-bubble .tm {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 6px;
  text-align: right;
}
.consult-foot {
  flex-shrink: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.consult-foot.closed {
  justify-content: center;
}
.consult-foot.closed textarea,
.consult-foot.closed .consult-send {
  display: none;
}
.consult-foot textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: #f0f3fa;
  font-size: 14px;
  resize: none;
  font-family: inherit;
}
.consult-send {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b6fd6, #7c8ef5);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consult-send:disabled {
  background: #ccc;
}
.consult-av.parent {
  background: linear-gradient(135deg, #5b6fd6, #7c8ef5);
  color: #fff;
}
.consult-msg.teacher .consult-bubble .cn {
  color: #5b6fd6;
}
.consult-teacher-page .consult-top-teacher {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7bc49a, #9ad4b5);
}
.consult-teacher-page .consult-top-teacher .consult-back {
  grid-column: 1;
  margin-right: 0;
  font-size: 14px;
  white-space: nowrap;
}
.consult-teacher-page .consult-top-teacher > span:nth-child(2) {
  grid-column: 2;
  justify-self: center;
  font-weight: 700;
}
.consult-top-placeholder {
  grid-column: 3;
  visibility: hidden;
  pointer-events: none;
  font-size: 14px;
}
.consult-close-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 20px;
  background: #f0f0f0;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.tch-consult-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}
.tch-consult-item {
  display: block;
  position: relative;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.tch-consult-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.tch-consult-item-head b {
  font-size: 15px;
  color: #1e3a2f;
}
.tch-consult-status {
  font-size: 12px;
  color: #00a854;
}
.tch-consult-last {
  margin: 0 0 4px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}
.tch-consult-time {
  font-size: 11px;
  color: #9ca3af;
}
.tch-consult-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.consult-tip {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: #999;
}

/* AI 对话 */
.ai-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}
.ai-top {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid #eee;
  font-weight: 600;
}
.ai-back {
  margin-right: 12px;
  color: var(--primary);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}
.ai-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.ai-welcome {
  text-align: center;
  padding: 40px 16px 24px;
}
.ai-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00a854, #00c853);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 168, 84, 0.25);
}
.ai-welcome h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.ai-sub {
  color: var(--sub);
  font-size: 13px;
  margin: 0 0 24px;
}
.ai-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.ai-chip {
  background: var(--card);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  text-align: left;
}
.ai-chip:active {
  background: #f0faf4;
  border-color: var(--primary);
}
.ai-msgs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-msg {
  display: flex;
}
.ai-msg.user {
  justify-content: flex-end;
}
.ai-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-msg.assistant .ai-bubble {
  background: var(--card);
  color: #333;
}
.ai-msg.user .ai-bubble {
  background: var(--primary);
  color: #fff;
}
.ai-foot {
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.ai-foot textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  border: none;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  resize: none;
}
.ai-send {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.ai-demo-tip {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: #aaa;
}

.h5-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 2147483647;
  max-width: 86%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(33, 33, 33, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.h5-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* —— 子页面通用 —— */
.sub-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.sub-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sub-page-head h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sub-page-back {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sub-page-back::before {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.sub-page-body {
  padding: 12px 0 8px;
}

/* 资讯列表卡片 */
.h5-list-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  margin: 0 12px 12px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 168, 84, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.h5-list-card:active {
  transform: scale(0.99);
}

.h5-list-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f5e9, #f0f2f5);
}

.h5-list-body {
  flex: 1;
  margin-left: 12px;
  min-width: 0;
}

.h5-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.h5-list-sum {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.h5-load-more {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  margin: 8px 12px 24px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 168, 84, 0.25);
}

.h5-load-more:active {
  background: #f0faf4;
}

/* 文章详情 */
.article-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--card);
}

.article-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), #6ee7b7);
}

.article-inner {
  padding: 20px 16px 40px;
}

.article-inner h1 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.article-meta {
  font-size: 12px;
  color: var(--sub);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  word-break: break-word;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.article-body p {
  margin: 0 0 12px;
}

/* 空状态 / 加载 */
.h5-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.55;
}

.h5-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5e9, #f0fdf4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 168, 84, 0.1);
}

.h5-skeleton {
  margin: 0 12px 12px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  animation: h5SkeletonPulse 1.2s ease-in-out infinite;
}

.h5-skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.h5-skeleton-line.short {
  width: 60%;
}

@keyframes h5SkeletonPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

/* ========== 首页 / 课堂 / 活动 — 重度视觉（格局不变） ========== */

/* 图片占位：裂图时显示渐变底 */
.img-ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f8ef 0%, #c8ebd4 50%, #a8dcc0 100%);
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.img-ph img {
  position: relative;
  z-index: 1;
}
.img-ph img.is-fallback {
  opacity: 0;
}
.img-ph--fallback::after {
  content: '家校社';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 120, 70, 0.45);
  letter-spacing: 4px;
  z-index: 2;
  pointer-events: none;
}

/* —— 首页 —— */
body.h5-home-page {
  background: linear-gradient(180deg, #eef9f3 0%, var(--bg) 120px);
}
body.h5-home-page .top {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 168, 84, 0.08);
}
body.h5-home-page .top h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  box-shadow: 0 4px 14px rgba(0, 168, 84, 0.35);
  flex-shrink: 0;
}
body.h5-home-page .notice {
  margin: 0 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.12);
}
body.h5-home-page .hero {
  height: 172px;
  margin: 0 12px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b8ebd0, #7dd3a8);
  box-shadow: 0 8px 28px rgba(0, 120, 70, 0.18);
}
.hero-slide-inner {
  width: 100%;
  height: 100%;
}
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.h5-home-page .hero-dots span.on {
  width: 18px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
body.h5-home-page .grid-card {
  margin: 0 12px 14px;
  border-radius: 16px;
  padding: 14px 6px 10px;
  box-shadow: 0 8px 32px rgba(0, 60, 35, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.quick .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quick a:active .ic {
  transform: scale(0.92);
}
.quick .ic-tone-0 { background: linear-gradient(145deg, #00c853, #00a854); }
.quick .ic-tone-1 { background: linear-gradient(145deg, #42a5f5, #1e88e5); }
.quick .ic-tone-2 { background: linear-gradient(145deg, #ab47bc, #8e24aa); }
.quick .ic-tone-3 { background: linear-gradient(145deg, #ff7043, #f4511e); }
.quick .ic-tone-4 { background: linear-gradient(145deg, #ffa726, #fb8c00); }
.quick .ic-tone-5 { background: linear-gradient(145deg, #26c6da, #00acc1); }
.quick .ic-tone-6 { background: linear-gradient(145deg, #5c6bc0, #3949ab); }
.quick .ic-tone-7 { background: linear-gradient(145deg, #ec407a, #d81b60); }
.quick .ic-tone-8 { background: linear-gradient(145deg, #66bb6a, #43a047); }
.quick .ic-tone-9 { background: linear-gradient(145deg, #ef5350, #e53935); }
.quick span {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  margin-top: 2px;
}
body.h5-home-page .section {
  margin: 0 12px 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
body.h5-home-page .sec-head .left {
  font-size: 16px;
  font-weight: 700;
}
body.h5-home-page .video-card {
  margin: 0 14px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
body.h5-home-page .video-card .play {
  width: 52px;
  height: 52px;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.video-ph,
.video-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teacher {
  padding: 14px 16px 18px;
}
.teacher-av {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.teacher-av-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher .tb strong {
  font-size: 16px;
  color: var(--text);
}
.dist-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}
.dist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— 课堂中心 —— */
.classroom-page {
  background: linear-gradient(180deg, #dff5ea 0%, #f5f6f8 200px);
}
.classroom-page .cr-header {
  background: linear-gradient(180deg, #9de0bc 0%, #c8f0da 35%, #fff 100%);
  padding: 14px 14px 0;
  box-shadow: 0 4px 16px rgba(0, 168, 84, 0.08);
}
.classroom-page .cr-search-wrap {
  height: 44px;
  border: 1px solid rgba(0, 168, 84, 0.12);
  box-shadow: 0 4px 16px rgba(0, 168, 84, 0.14);
}
.classroom-page .cr-search-btn {
  color: var(--primary);
  font-size: 22px;
}
.classroom-page .cr-grade-tab {
  font-size: 15px;
  transition: color 0.2s ease;
}
.classroom-page .cr-grade-tab.on {
  color: var(--primary);
  font-size: 16px;
}
.classroom-page .cr-grade-tab.on::after {
  width: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 168, 84, 0.35);
}
.classroom-page .cr-cat-pill {
  border: 1px solid #e8e8e8;
  background: #f7f8fa;
  margin-right: 8px;
  transition: all 0.2s ease;
}
.classroom-page .cr-cat-pill.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 168, 84, 0.35);
}
.classroom-page .cr-card {
  width: 31.3%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 40, 25, 0.1);
  border: 1px solid rgba(0, 168, 84, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.classroom-page .cr-card:active {
  transform: scale(0.98);
}
.classroom-page .cr-cover-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.classroom-page .cr-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.classroom-page .cr-info {
  padding: 8px 8px 10px;
}
.classroom-page .cr-title {
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  color: var(--text);
}
.classroom-page .cr-t-av-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
  border: 1.5px solid rgba(0, 168, 84, 0.25);
  overflow: hidden;
}
.classroom-page .cr-t-av {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
}
.classroom-page .cr-t-name {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

/* —— 活动广场 —— */
.activity-page {
  background: linear-gradient(180deg, #e8f5ec 0%, var(--bg) 180px);
}
.activity-page .act-header {
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 16px 16px;
}
.activity-page .act-search-box {
  height: 44px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 14px rgba(0, 168, 84, 0.12);
}
.activity-page .act-search-btn {
  color: var(--primary);
}
.activity-page .act-sort.on {
  color: var(--primary);
}
.activity-page .act-sort.on .act-chev {
  color: var(--primary);
}
.activity-page .act-card {
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(0, 50, 30, 0.08);
  border: 1px solid rgba(0, 168, 84, 0.06);
  border-left: 4px solid var(--primary);
}
.activity-page .act-cover-box {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}
.activity-page .act-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.activity-page .act-title {
  font-size: 16px;
  font-weight: 700;
}
.activity-page .act-meta {
  color: #777;
}
.activity-page .act-count {
  font-weight: 600;
  font-size: 13px;
}
.activity-page .act-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(0, 168, 84, 0.35);
  font-weight: 600;
  padding: 8px 20px;
}
.activity-page .act-btn-end {
  background: #ececec;
  box-shadow: none;
}

/* 我的页 · 教师服务入口 */
.mine-teacher-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mine-teacher-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 168, 84, 0.12);
  box-shadow: 0 6px 18px rgba(15, 45, 30, 0.06);
  text-decoration: none;
  color: inherit;
}
.mine-teacher-tile:active {
  transform: scale(0.99);
}
.mine-teacher-icon {
  font-size: 22px;
  width: 40px;
  text-align: center;
}
.mine-teacher-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mine-teacher-label {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a2f;
}
.mine-teacher-sub {
  font-size: 12px;
  color: #6b7c72;
}
.mine-teacher-hint {
  margin: 10px 4px 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7c72;
}
.mine-teacher-hint strong {
  color: #00a854;
  font-weight: 600;
}

/* 教师端 H5 页面 */
.tch-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #f6faf8 0%, #fafcfb 50%, #fff 100%);
  color: #1e3a2f;
}
.tch-topbar {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(20px, calc(12px + env(safe-area-inset-left, 0px)));
  padding-right: max(20px, calc(12px + env(safe-area-inset-right, 0px)));
}
.tch-topbar-title {
  grid-column: 2;
  justify-self: center;
  font-size: 17px;
  font-weight: 700;
  color: #1e3a2f;
  white-space: nowrap;
}
.tch-back,
.tch-top-link {
  font-size: 14px;
  font-weight: 500;
  color: #52a87a;
  text-decoration: none;
  padding: 6px 4px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.tch-back {
  grid-column: 1;
  justify-self: start;
}
.tch-top-link {
  grid-column: 3;
  justify-self: end;
}
.tch-topbar-placeholder {
  grid-column: 3;
  justify-self: end;
  visibility: hidden;
  pointer-events: none;
  font-size: 14px;
  padding: 6px 4px;
}
.tch-wrap {
  padding: 8px 16px 32px;
  max-width: 480px;
  margin: 0 auto;
}
.tch-lead,
.tch-note {
  font-size: 13px;
  line-height: 1.6;
  color: #6b7c72;
  margin: 0 0 16px;
}
.tch-preview-tip {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.35);
  font-size: 12px;
  line-height: 1.5;
  color: #5c4a00;
}
.tch-preview-tip a {
  color: #00a854;
}
.tch-profile-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f4faf7 50%, #ecf6f0 100%);
  color: #1e3a2f;
  border: 1px solid rgba(61, 155, 110, 0.14);
  box-shadow: 0 6px 18px rgba(30, 58, 47, 0.06);
  margin-bottom: 14px;
}
.tch-profile-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tch-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e2f3ea, #cce8d8);
  color: #3d7a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.tch-profile-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #1e3a2f;
}
.tch-profile-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7c72;
  opacity: 1;
}
.tch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tch-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(61, 155, 110, 0.1);
  color: #4a7d62;
}
.tch-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 58, 47, 0.08);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  color: #6b7c72;
}
.tch-meta strong {
  color: #1e3a2f;
}
.tch-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.tch-stat {
  flex: 1;
  padding: 14px 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6b7c72;
}
.tch-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #1e3a2f;
}
.tch-stat-warn .tch-stat-num {
  color: #e67e22;
}
.tch-stat-accent .tch-stat-num {
  color: #52a87a;
}
.tch-section-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
}
.tch-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tch-menu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
}
.tch-menu-icon {
  font-size: 22px;
}
.tch-menu-item b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.tch-profile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tch-menu-primary {
  border: 1px solid rgba(61, 155, 110, 0.12);
  background: #fafcfb;
}
.tch-menu-badge {
  margin-left: auto;
  align-self: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tch-tip-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 168, 84, 0.08);
}
.tch-tip-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a2f;
}
.tch-tip-line {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7c72;
}
.tch-tip-line:last-child {
  margin-bottom: 0;
}
.tch-profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tch-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
}
.tch-profile-row .tch-profile-label {
  flex: 0 0 72px;
  font-size: 14px;
  color: #6b7c72;
}
.tch-profile-row .tch-profile-val {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1e3a2f;
  word-break: break-all;
}
.tch-menu-item small {
  font-size: 12px;
  color: #6b7c72;
  line-height: 1.4;
}
.tch-loading {
  text-align: center;
  padding: 40px;
  color: #6b7c72;
}
.tch-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tch-field span {
  font-size: 13px;
  font-weight: 600;
  color: #1e3a2f;
}
.tch-field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d0e8d8;
  font-size: 15px;
  background: #fff;
}
.tch-sms-row {
  display: flex;
  gap: 10px;
}
.tch-sms-row input {
  flex: 1;
}
.tch-sms-btn {
  flex-shrink: 0;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: #e8f8ef;
  color: #00a854;
  font-size: 13px;
  font-weight: 600;
}
.tch-sms-btn:disabled {
  opacity: 0.6;
}
.tch-submit {
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00a854, #2dd484);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.tch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.tch-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: #00a854;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0, 168, 84, 0.25);
}
.tch-btn-primary {
  background: linear-gradient(135deg, #00a854, #2dd484);
  color: #fff;
  border: none;
}
.role-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.role-card {
  text-align: left;
  padding: 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 45, 30, 0.06);
  cursor: pointer;
}
.role-card-on {
  border-color: #00a854;
  background: #f0fdf4;
}
.role-card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.role-card-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}
.role-card-desc {
  font-size: 13px;
  color: #6b7c72;
}

.login-wrap .login-steps {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #1e3a2f;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
}

.login-page .tch-btn {
  margin-bottom: 10px;
}

.role-select-head {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #1e3a2f;
}

.role-select-sub {
  font-size: 13px;
  color: #6b7c72;
  margin: 0 0 18px;
}

.role-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15, 45, 30, 0.06);
  border: 2px solid transparent;
}

.role-pick-parent {
  border-color: rgba(0, 168, 84, 0.2);
}

.role-pick-teacher {
  border-color: rgba(77, 182, 255, 0.25);
}

.role-pick-activate {
  border-color: rgba(255, 193, 7, 0.35);
}

.role-pick-icon {
  font-size: 32px;
  width: 48px;
  text-align: center;
}

.role-pick-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-pick-body b {
  font-size: 16px;
}

.role-pick-body small {
  font-size: 12px;
  color: #6b7c72;
  line-height: 1.4;
}

/* 登录 / 选身份 — 与小程序 role-select 一致 */
.role-auth-page {
  position: relative;
  min-height: 100vh;
  background: #e8f2ec;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #1a1a1a;
}

.role-auth-page .hero-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 240px;
  pointer-events: none;
  overflow: hidden;
}

.role-auth-page .orb {
  position: absolute;
  border-radius: 50%;
}

.role-auth-page .orb-a {
  width: 160px;
  height: 160px;
  left: -30px;
  top: -40px;
  background: radial-gradient(circle, rgba(0, 168, 84, 0.38) 0%, transparent 70%);
}

.role-auth-page .orb-b {
  width: 130px;
  height: 130px;
  right: -20px;
  top: 20px;
  background: radial-gradient(circle, rgba(77, 182, 255, 0.25) 0%, transparent 72%);
}

.role-auth-page .mesh {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

.auth-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 20px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(20px, calc(12px + env(safe-area-inset-left, 0px)));
  padding-right: max(20px, calc(12px + env(safe-area-inset-right, 0px)));
  box-sizing: border-box;
  max-width: 480px;
  margin: 0 auto;
}

.auth-nav-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 8px 6px 4px;
  font-size: 15px;
  font-weight: 500;
  color: #00a854;
  text-decoration: none;
}

.auth-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 20px calc(32px + env(safe-area-inset-bottom));
  padding-left: max(20px, calc(12px + env(safe-area-inset-left, 0px)));
  padding-right: max(20px, calc(12px + env(safe-area-inset-right, 0px)));
  box-sizing: border-box;
}

.auth-head {
  margin-bottom: 20px;
}

.auth-head .head-tag {
  display: inline-block;
  font-size: 12px;
  color: #00a854;
  background: rgba(0, 168, 84, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

.login-page .auth-title,
.role-select-page .auth-title {
  text-align: center;
}

.auth-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
}

.auth-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 80, 40, 0.06);
  border: 1px solid rgba(0, 168, 84, 0.08);
}

.auth-info-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.auth-info-line {
  margin: 0 0 6px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.auth-info-line:last-child {
  margin-bottom: 0;
}

.role-auth-page .role-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 80, 40, 0.08);
  border: 1px solid rgba(0, 168, 84, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.role-auth-page .role-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 14px rgba(0, 80, 40, 0.12);
}

.role-auth-page .role-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.role-auth-page .role-parent::before {
  background: linear-gradient(180deg, #00c96a, #00a854);
}

.role-auth-page .role-teacher::before,
.role-auth-page .role-activate::before {
  background: linear-gradient(180deg, #4db6ff, #2196f3);
}

.role-auth-page .role-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-auth-page .parent-bg {
  background: linear-gradient(145deg, #e8f8ef, #d4f0e0);
}

.role-auth-page .teacher-bg {
  background: linear-gradient(145deg, #e8f4fc, #d6ebfa);
}

.role-auth-page .role-icon {
  font-size: 26px;
  line-height: 1;
}

.role-auth-page .role-body {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  margin-right: 8px;
}

.role-auth-page .role-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.role-auth-page .role-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.role-auth-page .role-badge {
  font-size: 11px;
  color: #00a854;
  background: rgba(0, 168, 84, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.role-auth-page .role-badge-blue {
  color: #1976d2;
  background: rgba(33, 150, 243, 0.12);
}

.role-auth-page .role-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.role-auth-page .role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.role-auth-page .tag {
  font-size: 11px;
  color: #00a854;
  background: #f0faf4;
  padding: 3px 10px;
  border-radius: 6px;
}

.role-auth-page .tag-blue {
  color: #1976d2;
  background: #eef6fc;
}

.role-auth-page .role-arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid #c5cdc8;
  border-right: 2px solid #c5cdc8;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 4px;
}

.role-auth-page .foot-note {
  margin-top: 8px;
  padding: 16px 4px 0;
  text-align: center;
}

.role-auth-page .foot-line {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.55;
}

.role-auth-page .auth-foot-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #00a854;
  text-decoration: none;
  font-weight: 500;
}

/* 教师工作台 */
.tch-workbench-page .auth-nav {
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  display: grid;
  align-items: center;
}

.tch-workbench-page .tch-nav-simple {
  display: block;
}

.tch-workbench-page .auth-nav-back {
  grid-column: 1;
  justify-self: start;
  white-space: nowrap;
  font-size: 14px;
}

.tch-nav-title {
  grid-column: 2;
  justify-self: center;
  font-size: 17px;
  font-weight: 700;
  color: #1e3a2f;
}

.auth-nav-action {
  grid-column: 3;
  justify-self: end;
  font-size: 14px;
  font-weight: 500;
  color: #00a854;
  text-decoration: none;
  padding: 6px 4px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.auth-nav-placeholder {
  grid-column: 3;
  justify-self: end;
  visibility: hidden;
  pointer-events: none;
  font-size: 14px;
  padding: 6px 4px;
}

.tch-workbench-wrap {
  padding-top: 4px;
}

.tch-workbench-page .tch-preview-tip {
  display: block;
  margin-bottom: 14px;
}

.tch-workbench-page .tch-profile-card {
  margin-bottom: 14px;
}

.tch-workbench-page .tch-section-title {
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 10px;
  color: #1e3a2f;
}

/* 教师「我的 / 首页」浅色主题 */
.tch-workbench-page.role-auth-page,
.tch-home-page.role-auth-page {
  background: #f7faf8;
}

.tch-workbench-page .orb-a,
.tch-home-page .orb-a {
  background: radial-gradient(circle, rgba(82, 168, 122, 0.14) 0%, transparent 70%);
}

.tch-workbench-page .orb-b,
.tch-home-page .orb-b {
  background: radial-gradient(circle, rgba(120, 180, 210, 0.12) 0%, transparent 72%);
}

.tch-workbench-page .auth-nav-back,
.tch-home-page .auth-nav-back {
  color: #52a87a;
}

.tch-workbench-page .tch-preview-tip,
.tch-home-page .tch-preview-tip {
  background: rgba(255, 248, 230, 0.9);
  border-color: rgba(230, 210, 150, 0.35);
}

/* 教师端底部导航 */
.tch-with-bottom-nav.tch-workbench-page .auth-content,
.tch-with-bottom-nav.tch-profile-page .tch-wrap {
  padding-bottom: calc(24px + var(--nav-foot-h) + env(safe-area-inset-bottom));
}

.consult-teacher-page.tch-consult-has-nav .consult-scroll {
  padding-bottom: calc(16px + var(--nav-foot-h) + env(safe-area-inset-bottom));
}

#h5-nav-foot.nav-foot-teacher > a.on {
  color: #52a87a;
}

/* 教师首页 */
.tch-home-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #f6faf8 0%, #fafcfb 50%, #fff 100%);
}

.tch-home-wrap {
  padding-top: 12px;
}

.tch-home-greet {
  margin-bottom: 14px;
}

.tch-home-greet h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #1e3a2f;
}

.tch-home-greet p {
  margin: 0;
  font-size: 13px;
  color: #6b7c72;
  line-height: 1.5;
}

.tch-home-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tch-home-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
  position: relative;
}

.tch-home-quick-ic {
  font-size: 22px;
  line-height: 1;
}

.tch-home-quick-item span:last-child {
  font-size: 11px;
  color: #1e3a2f;
  font-weight: 600;
}

.tch-home-quick-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e67e22;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.tch-home-block {
  margin-bottom: 16px;
}

.tch-home-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tch-home-block-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a2f;
}

.tch-home-block-head a {
  font-size: 12px;
  color: #00a854;
  text-decoration: none;
}

.tch-home-todo-list,
.tch-home-notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tch-home-todo-item,
.tch-home-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
}

.tch-home-todo-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #7bc49a;
}

.tch-home-todo-dot.warn {
  background: #e67e22;
}

.tch-home-todo-body,
.tch-home-notice-body {
  flex: 1;
  min-width: 0;
}

.tch-home-todo-body b,
.tch-home-notice-body b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1e3a2f;
}

.tch-home-todo-body small,
.tch-home-notice-body small {
  display: block;
  font-size: 12px;
  color: #6b7c72;
  line-height: 1.45;
}

.tch-home-notice-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #a8b5ae;
}

.tch-with-bottom-nav.tch-home-page .auth-content {
  padding-bottom: calc(24px + var(--nav-foot-h) + env(safe-area-inset-bottom));
}

/* 智通云教师端 — 首页顶栏 / 轮播 / 动态 */
.tch-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tch-home-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #1e3a2f;
}

.tch-home-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #b8e6cc, #8fd4ad);
}

.tch-home-top-actions {
  display: flex;
  gap: 8px;
}

.tch-home-top-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 47, 0.06);
  font-size: 16px;
  color: #52a87a;
  cursor: pointer;
}

.tch-home-search-wrap {
  margin-bottom: 14px;
}

.tch-home-search {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid rgba(61, 155, 110, 0.15);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #1e3a2f;
}

.tch-home-banner-wrap {
  margin-bottom: 12px;
}

.tch-home-banner {
  position: relative;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #d4efe0, #ecf6f0);
  box-shadow: 0 8px 24px rgba(15, 45, 30, 0.08);
}

.tch-home-banner-slide {
  position: absolute;
  inset: 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tch-home-banner-slide.on {
  opacity: 1;
  pointer-events: auto;
}

.tch-home-banner-slide-light b,
.tch-home-banner-slide-light small {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 60, 40, 0.25);
}

.tch-home-banner-slide-light .tch-home-banner-dot,
.tch-home-banner:has(.tch-home-banner-slide-light.on) .tch-home-banner-dot {
  background: rgba(255, 255, 255, 0.45);
}

.tch-home-banner:has(.tch-home-banner-slide-light.on) .tch-home-banner-dot.on {
  background: #fff;
}

.tch-home-banner-slide b {
  display: block;
  width: 100%;
  font-size: 17px;
  color: #1e3a2f;
  margin-bottom: 6px;
  text-align: center;
}

.tch-home-banner-slide small {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #6b7c72;
  text-align: center;
}

.tch-home-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.tch-home-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(30, 58, 47, 0.2);
}

.tch-home-banner-dot.on {
  background: #52a87a;
}

.tch-home-section {
  margin-bottom: 16px;
}

.tch-home-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a2f;
}

.tch-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tch-home-section-head a {
  font-size: 12px;
  color: #52a87a;
  text-decoration: none;
}

.tch-home-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tch-home-news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
}

.tch-home-news-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f0f7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.tch-home-news-body {
  flex: 1;
  min-width: 0;
}

.tch-home-news-body b {
  display: block;
  font-size: 14px;
  color: #1e3a2f;
  margin-bottom: 4px;
  line-height: 1.4;
}

.tch-home-news-body small {
  font-size: 12px;
  color: #a8b5ae;
}

.tch-home-consult-tip {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8f0;
  border: 1px solid rgba(230, 126, 34, 0.2);
  color: #8a5a20;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}

.tch-home-consult-tip strong {
  color: #e67e22;
}

/* 应用中心 */
.tch-page-head {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 20px 8px;
  box-sizing: border-box;
}

.tch-page-head-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e3a2f;
}

.tch-apps-page,
.tch-messages-page {
  min-height: 100vh;
  background: #f7faf8;
}

.tch-apps-wrap,
.tch-messages-wrap {
  padding-top: 4px;
}

.tch-with-bottom-nav.tch-apps-page .auth-content,
.tch-with-bottom-nav.tch-messages-page .auth-content {
  padding-bottom: calc(24px + var(--nav-foot-h) + env(safe-area-inset-bottom));
}

.tch-apps-section {
  margin-bottom: 18px;
}

.tch-apps-section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7c72;
}

.tch-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tch-apps-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
}

.tch-apps-cell-ic {
  font-size: 26px;
  line-height: 1;
}

.tch-apps-cell b {
  font-size: 13px;
  color: #1e3a2f;
}

.tch-apps-cell small {
  font-size: 10px;
  color: #a8b5ae;
  line-height: 1.3;
}

/* 消息中心 */
.tch-msg-section {
  margin-bottom: 18px;
}

.tch-msg-section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7c72;
}

.tch-msg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tch-msg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 45, 30, 0.05);
  border: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
}

.tch-msg-ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tch-msg-ic.sys {
  background: #eef5f0;
}

.tch-msg-ic.app {
  background: #f0f4ff;
}

.tch-msg-body {
  flex: 1;
  min-width: 0;
}

.tch-msg-body b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #1e3a2f;
}

.tch-msg-body small {
  display: block;
  font-size: 12px;
  color: #6b7c72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tch-msg-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #a8b5ae;
}

.tch-msg-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.tch-logout-btn {
  width: 100%;
  cursor: pointer;
}

/* ========== 教师端 Tab 页 v16 统一优化 ========== */
.tch-tab-page {
  --tch-accent: #6aab82;
  --tch-accent-soft: #e8f2ec;
  --tch-bg: #f3f5f4;
  --tch-card: #fff;
  --tch-border: #e8ecea;
  --tch-text: #2c3e36;
  --tch-sub: #8a9690;
  background: var(--tch-bg) !important;
}

.tch-tab-page .hero-layer {
  display: none;
}

.tch-tab-page .auth-content {
  padding-top: 10px;
}

.tch-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff9eb;
  border: 1px solid #f0e6c8;
  font-size: 12px;
  line-height: 1.45;
  color: #8a7340;
}

.tch-preview-bar-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff3d6;
  color: #b8860b;
  font-size: 11px;
  font-weight: 600;
}

.tch-preview-bar-txt {
  flex: 1;
  min-width: 0;
}

.tch-sec-title {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--tch-accent);
  font-size: 15px;
  font-weight: 700;
  color: var(--tch-text);
  line-height: 1.3;
}

.tch-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tch-sec-head .tch-sec-title {
  margin-bottom: 0;
}

.tch-sec-more {
  font-size: 12px;
  color: var(--tch-accent);
  text-decoration: none;
}

.tch-surface-card {
  padding: 12px;
  border-radius: 12px;
  background: var(--tch-card);
  border: 1px solid var(--tch-border);
  box-shadow: 0 1px 4px rgba(30, 50, 40, 0.04);
}

.tch-surface-flush {
  padding: 4px 0;
}

.tch-surface-flush .tch-home-news-item {
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--tch-border);
}

.tch-surface-flush .tch-home-news-item:last-child {
  border-bottom: none;
}

/* 首页 */
.tch-tab-page.tch-home-page {
  background: var(--tch-bg) !important;
}

.tch-home-top {
  margin-bottom: 10px;
}

.tch-home-brand {
  font-size: 17px;
  color: var(--tch-text);
}

.tch-home-brand-mark {
  background: linear-gradient(145deg, #dceee4, #c5e2d0);
}

.tch-home-top-btn {
  border: 1px solid var(--tch-border);
  box-shadow: none;
  color: var(--tch-accent);
}

.tch-home-search {
  border-color: var(--tch-border);
  background: var(--tch-card);
}

.tch-home-search::placeholder {
  color: #b0bab4;
}

.tch-tab-page .tch-home-banner {
  height: 132px;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 45, 30, 0.08);
}

.tch-home-banner-slide b {
  color: var(--tch-text);
}

.tch-home-banner-dot.on {
  background: var(--tch-accent);
}

.tch-tab-page .tch-home-quick {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.tch-tab-page .tch-home-quick-item {
  padding: 14px 6px;
  box-shadow: none;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s;
}

.tch-tab-page .tch-home-quick-item:active {
  background: var(--tch-accent-soft);
}

.tch-home-quick-ic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tch-accent-soft);
  font-size: 20px;
}

.tch-quick-more {
  background: #f0f2f1;
  color: var(--tch-sub);
}

.tch-home-news-item {
  border: none;
  box-shadow: none;
}

.tch-home-news-thumb {
  background: var(--tch-accent-soft);
}

.tch-home-consult-tip {
  background: #fffaf5;
  border-color: #f5e8d8;
  color: #9a7048;
}

/* 应用中心 */
.tch-tab-page.tch-apps-page,
.tch-tab-page.tch-messages-page {
  background: var(--tch-bg) !important;
}

.tch-page-head {
  padding-bottom: 4px;
  background: var(--tch-bg);
}

.tch-page-head-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--tch-text);
}

.tch-page-head-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tch-sub);
}

.tch-apps-section-title,
.tch-msg-section-title {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--tch-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--tch-sub);
}

.tch-apps-cell {
  border: 1px solid var(--tch-border);
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s;
}

.tch-apps-cell:active {
  background: var(--tch-accent-soft);
  border-color: #d0e4d8;
}

.tch-apps-cell-ic {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tch-accent-soft);
}

/* 消息 */
.tch-msg-item {
  border: 1px solid var(--tch-border);
  box-shadow: none;
}

.tch-msg-item:active {
  background: #fafcfb;
}

.tch-msg-ic.sys {
  background: #f3f5f4;
}

.tch-msg-ic.app {
  background: #eef3f8;
}

.tch-msg-badge {
  background: #e8915c;
}

/* 我的 */
.tch-tab-page.tch-workbench-page {
  background: var(--tch-bg) !important;
}

.tch-tab-page .tch-profile-card {
  background: var(--tch-card);
  border: 1px solid var(--tch-border);
  box-shadow: 0 2px 8px rgba(30, 50, 40, 0.04);
}

.tch-tab-page .tch-avatar {
  background: var(--tch-accent-soft);
  color: var(--tch-accent);
}

.tch-tab-page .tch-tag {
  background: #f0f4f2;
  color: #5d7a6a;
}

.tch-tab-page .tch-meta {
  border-top-color: var(--tch-border);
  color: var(--tch-sub);
}

.tch-tab-page .tch-menu-item {
  border: 1px solid var(--tch-border);
  box-shadow: none;
  position: relative;
  padding-right: 28px;
}

.tch-tab-page .tch-menu-item::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid #c5ccc8;
  border-right: 2px solid #c5ccc8;
  transform: rotate(45deg);
}

.tch-tab-page .tch-menu-item:active {
  background: #fafcfb;
}

.tch-tab-page .tch-menu-primary {
  background: var(--tch-card);
  border-color: var(--tch-border);
}

.tch-tab-page .tch-tip-card {
  background: var(--tch-card);
  border: 1px solid var(--tch-border);
}

.tch-logout-btn {
  border: 1px solid #f5d8d8 !important;
  background: #fffafa !important;
}

.tch-logout-btn b {
  color: #d45c5c;
}

.tch-logout-btn::after {
  display: none;
}

#h5-nav-foot.nav-foot-teacher {
  border-top-color: var(--tch-border) !important;
  box-shadow: 0 -2px 12px rgba(30, 50, 40, 0.04);
}

#h5-nav-foot.nav-foot-teacher > a.on {
  color: #00a854 !important;
}

/* 教师端 — 对齐家长端「我的」配色布局 */
.tch-mine-page .mine-wrap,
.tch-tab-page.mine-page .mine-wrap {
  padding-top: 8px;
}

.tch-sub-hero {
  height: 160px;
}

.tch-home-hero {
  height: 200px;
}

.tch-page-title-center {
  display: block;
  margin: 0 0 14px;
  padding: 8px 0 4px;
  text-align: center;
}

.tch-page-title-center h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e3a2f;
  letter-spacing: 2px;
  text-align: center;
}

.tch-page-head-inline {
  justify-content: center;
  margin-bottom: 14px;
  padding: 4px 0 0;
}

.tch-page-head-inline .mine-section-line {
  display: none;
}

.tch-page-head-inline .mine-section-title {
  width: 100%;
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
}

.tch-home-wrap {
  padding: 0;
}

.tch-home-wrap .mine-menu-grid,
.tch-apps-wrap .mine-menu-grid {
  gap: 10px;
}

.tch-home-wrap .mine-menu-tile,
.tch-apps-wrap .mine-menu-tile {
  width: calc((100% - 20px) / 3);
  padding: 14px 6px 12px;
  align-items: center;
  text-align: center;
}

.tch-home-wrap .mine-tile-icon,
.tch-apps-wrap .mine-tile-icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
  margin-bottom: 8px;
}

.tch-home-wrap .mine-tile-label,
.tch-apps-wrap .mine-tile-label {
  font-size: 12px;
}

.tch-home-wrap .mine-tile-hint,
.tch-apps-wrap .mine-tile-hint {
  font-size: 9px;
}

.tch-home-banner-card {
  margin-bottom: 12px;
}

.tch-home-search-card {
  margin-bottom: 16px;
  padding: 4px 14px;
}

.tch-home-search-in {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1a2e24;
  padding: 10px 0;
  outline: none;
}

.tch-home-search-in::placeholder {
  color: #94a3b8;
}

.tch-home-consult-bar {
  margin-bottom: 8px;
}

.tch-preview-bar {
  margin-bottom: 12px;
}

.tch-tab-page.mine-page .tch-apps-wrap,
.tch-tab-page.mine-page .tch-messages-wrap {
  padding: 0 0 8px;
}

.tch-mine-page #tch-consult-spot {
  margin-bottom: 18px;
}

#h5-nav-foot.nav-foot-teacher {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}
