/*
 * 3321助学 H5 精简版 — 1:1 复刻原生 App 样式
 *
 * 设计令牌与尺寸换算严格对齐 Android 原生 Compose：
 *   - Color.kt（Brand #35C6C0, PageBackground #F8F8F8, AccentRed #FF383C, AccentBlue #0088FF, TagAmber #FFBA2F 等）
 *   - Dimens.kt（750 设计px / 2 = dp = CSS px）
 *   - Type.kt（AppText 命名样式）
 */
:root {
  --brand: #35c6c0;
  --brand-surface: rgba(53, 198, 192, 0.1);
  --page-bg: #f8f8f8;
  --surface: #ffffff;
  --orange: #ff8d28;
  --red: #ff383c;
  --blue: #0088ff;
  --wechat-green: #28c445;
  --amber: #ffba2f;
  --amber-surface: rgba(255, 186, 47, 0.1);
  --text-primary: #000000;
  --text-body: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --muted-surface: rgba(153, 153, 153, 0.1);
  --divider: rgba(153, 153, 153, 0.4);
  --line-light: #e5e6eb;
  --table-head: #f2f3f5;
  --tab-idle: #707070;
  --tab-active: #37c8c2;
  --arranged-overlay: rgba(0, 0, 0, 0.2);
  --arranged-stamp: #989595;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

body {
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

/* 通用容器：移动端全宽，桌面端居中定宽 480px 保持手机 App 比例 */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--page-bg);
}

/* 行内 SVG 图标 */
.ic-10 { width: 10px; height: 10px; flex: none; display: inline-block; vertical-align: middle; }
.ic-11 { width: 11px; height: 11px; flex: none; display: inline-block; vertical-align: middle; }
.ic-12 { width: 12px; height: 12px; flex: none; display: inline-block; vertical-align: middle; }
.ic-14 { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: middle; }
.ic-16 { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.ic-17 { width: 17px; height: 17px; flex: none; display: inline-block; vertical-align: middle; }
.ic-20 { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ic-24 { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.ic-rot-180 { transform: rotate(180deg); }
.ic-rot-90 { transform: rotate(90deg); }

/* 0.5px 细分割线 */
.hairline {
  height: 1px;
  background: var(--divider);
  transform: scaleY(0.5);
  transform-origin: center;
  width: 100%;
}

/* ---------------- 1. 首页 & 快速筛选页 顶栏 (SearchTopBar) ---------------- */
.search-topbar {
  background: var(--brand);
  color: #fff;
  height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-back {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -4px;
  cursor: pointer;
}

.topbar-city {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 158px;
  flex: none;
  position: relative;
}

.topbar-province-select,
.topbar-city-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  padding: 0;
  margin: 0;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-city-select option,
.topbar-province-select option {
  color: var(--text-body);
}

.topbar-province-select {
  max-width: 54px;
  font-size: 13px;
}

.topbar-search-box {
  flex: 1;
  min-width: 0;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #fff;
}

.topbar-search-hint {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  outline: none;
  padding: 0;
}

.topbar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.topbar-search-clear {
  font-size: 14px;
  color: #fff;
  padding: 0 4px;
  cursor: pointer;
  line-height: 1;
}

.topbar-search-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.topbar-search-divider {
  width: 1px;
  height: 15px;
  background: var(--brand);
}

.topbar-help {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  font-size: 11px;
  line-height: 1.1;
  cursor: pointer;
}

.topbar-help img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------------- 2. 首页公告条 / Banner / 角色卡 / 时段 Tab ---------------- */
.announcement-bar {
  background: var(--surface);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-text {
  color: var(--orange);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.home-block-wrap {
  padding: 12px 15px 0;
}

.banner-carousel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #eaecef;
}

.banner-slide {
  display: block;
  width: 100%;
  aspect-ratio: 1464 / 600;
  object-fit: cover;
  cursor: pointer;
}

.banner-dots {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.2s, background 0.2s;
  cursor: pointer;
}

.banner-dot.active {
  width: 13px;
  background: var(--brand);
}

.role-entry-row {
  display: flex;
  gap: 24px;
  padding: 12px 15px 0;
}

.role-entry-card {
  flex: 1;
  height: 100px;
  border-radius: 8px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.role-entry-text {
  padding: 15px 0 0 15px;
  position: relative;
  z-index: 1;
}

.role-entry-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-body);
  line-height: 1.25;
}

.role-entry-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.role-entry-icon {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.sticky-tabs-wrap {
  position: sticky;
  top: 44px;
  z-index: 30;
  background: var(--page-bg);
  padding-top: 12px;
}

.time-tab-row {
  height: 50px;
  background: var(--surface);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-tab-pill {
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  line-height: 1.2;
}

.time-tab-pill.active {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

/* ---------------- 3. 教员卡片 (TeacherCard) ---------------- */
.card-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.tc-top {
  display: flex;
  gap: 12px;
}

.tc-photo {
  width: 96px;
  height: 98px;
  border-radius: 6px;
  background: var(--page-bg);
  object-fit: cover;
  flex: none;
}

.tc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.tc-vacation-tag {
  background: var(--amber-surface);
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.tc-active {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
}

.tc-active-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.tc-icon-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-body);
}

.tc-icon-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tc-price-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  color: var(--text-body);
}

.tc-price-val {
  color: var(--red);
  font-weight: 700;
}

.btn-wechat-blue {
  height: 25px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.tc-subject-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-subject-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.tc-subject-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
  flex: none;
  font-size: 13px;
  color: var(--text-body);
}

.tc-tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  flex: 1;
}

.subject-tag {
  background: var(--amber-surface);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.subject-tag.highlight {
  background: var(--amber);
  color: #fff;
}

/* ---------------- 4. 位置栏 (LocationRow) ---------------- */
.location-row {
  background: var(--brand-surface);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loc-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loc-col.right {
  align-items: flex-end;
  text-align: right;
}

.loc-title-row {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--text-body);
}

.loc-title-row.mine {
  color: var(--brand);
  font-weight: 500;
}

.loc-addr {
  font-size: 12px;
  color: var(--text-secondary);
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.loc-addr::-webkit-scrollbar {
  display: none;
}

.loc-mid {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.loc-dist-text {
  font-size: 10px;
  font-weight: 500;
  color: var(--brand);
  white-space: nowrap;
}

/* 教员卡片底部两行简介 */
.tc-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 18px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 5. 悬浮按钮 & 底部 TabBar ---------------- */
.quick-order-fab {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(66px + env(safe-area-inset-bottom));
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 35;
  box-shadow: 0 2px 8px rgba(53, 198, 192, 0.35);
}

.quick-order-fab span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--line-light);
  padding-bottom: env(safe-area-inset-bottom);
}

.app-tabbar-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 54px;
  display: flex;
}

.tabbar-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--tab-idle);
  font-size: 10px;
  cursor: pointer;
}

.tabbar-item.active {
  color: var(--tab-active);
}

.tabbar-pill {
  position: absolute;
  inset: 6px 7px;
  border-radius: 6px;
  background: var(--brand-surface);
  pointer-events: none;
}

.tabbar-icon {
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 1;
}

.tabbar-label {
  position: relative;
  z-index: 1;
  line-height: 1.1;
}

/* ---------------- 6. 快速筛选栏 & 下拉面板 & 全部筛选抽屉 ---------------- */
.filter-dropdown-bar {
  height: 48px;
  background: var(--page-bg);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-bar-item {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  padding: 0;
}

.filter-bar-item.active {
  color: var(--brand);
  font-weight: 700;
}

.teach-chip-row {
  padding: 0 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-chip {
  background: var(--muted-surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.option-chip.qf-pill {
  padding: 4px 16px;
}

.option-chip.selected {
  background: var(--brand-surface);
  border-color: var(--brand);
  color: var(--brand);
}

.filter-body-box {
  position: relative;
  min-height: calc(100vh - 92px);
}

.filter-scrim {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 92px;
  background: rgba(0, 0, 0, 0.32);
  z-index: 45;
}

.filter-panel-surface {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 0 0 8px 8px;
  padding: 12px;
  max-height: 420px;
  overflow-y: auto;
}

.option-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.option-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.option-grid-5 .option-chip {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px;
  font-size: 12px;
}

/* 全部筛选全屏弹层 */
.all-filter-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding-top: 11px;
}

.all-filter-sheet {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet-header {
  position: relative;
  padding: 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  padding: 4px;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.sheet-sec-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.sheet-sec-title .req {
  color: #ff4d4f;
}

.sheet-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
}

.price-bound-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-bound-field {
  flex: 1;
  height: 33px;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 0 9px;
  display: flex;
  align-items: center;
}

.price-bound-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--text-body);
}

.price-bound-field input::placeholder {
  color: #cccccc;
}

.price-bound-unit {
  font-size: 12px;
  color: var(--text-muted);
  flex: none;
  margin-left: 4px;
}

.sheet-footer {
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line-light);
  background: var(--surface);
}

.btn-outline-brand, .btn-fill-brand {
  flex: 1;
  height: 38px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-brand {
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
}

.btn-fill-brand {
  background: var(--brand);
  border: 0;
  color: #fff;
}

/* ---------------- 7. 教员详情页 (TeacherDetailScreen) ---------------- */
.page-topbar {
  height: 44px;
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-topbar-back {
  position: absolute;
  left: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.page-topbar-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.detail-scroll {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-row-card {
  height: 44px;
  background: var(--surface);
  border-radius: 8px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action-row-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  background: transparent;
  border: 0;
  padding: 4px 6px;
}

.action-row-vline {
  width: 1px;
  height: 16px;
  background: var(--line-light);
}

.detail-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
}

.detail-photo {
  width: 104px;
  height: 108px;
  border-radius: 8px;
  background: var(--muted-surface);
  object-fit: cover;
  flex: none;
}

.detail-tags-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 78px));
  gap: 8px;
  flex: 1;
}

.detail-tags-grid .subject-tag {
  text-align: center;
  padding: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sec-divider-wrap {
  margin: 12px 0;
}

.intro-wrap {
  position: relative;
}

.intro-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 18px;
  text-align: justify;
  white-space: pre-wrap;
}

.intro-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expand-toggle {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
}

/* 参考价点击引导动效 */
@keyframes refPricePulse {
  0% {
    background: rgba(255, 56, 60, 0.05);
    border-color: rgba(255, 56, 60, 0.25);
  }
  100% {
    background: rgba(255, 56, 60, 0.13);
    border-color: rgba(255, 56, 60, 0.6);
  }
}

@keyframes refPriceNudge {
  0% { transform: translateX(0); }
  100% { transform: translateX(4px); }
}

@keyframes refIconScale {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

@keyframes refDotRipple {
  0% { box-shadow: 0 0 0 0 rgba(255, 56, 60, 0.5); }
  100% { box-shadow: 0 0 0 6px rgba(255, 56, 60, 0); }
}

.ref-price-guide-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.ref-price-interactive-box {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 56, 60, 0.35);
  background: rgba(255, 56, 60, 0.07);
  animation: refPricePulse 0.9s ease-in-out infinite alternate;
}

.ref-price-interactive-box .tc-price-val {
  flex: 1;
  min-width: 0;
}

.ref-price-info-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  animation: refIconScale 0.9s ease-in-out infinite alternate;
}

.ref-price-guide-badge {
  align-self: flex-start;
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--amber-surface);
  border: 1px solid rgba(255, 186, 47, 0.85);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  animation: refPriceNudge 0.9s ease-in-out infinite alternate;
}

.ref-price-guide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  animation: refDotRipple 1.4s ease-out infinite;
}

/* 课程表 */
.sched-days-head {
  display: flex;
  padding-left: 44px;
  margin-bottom: 8px;
}

.sched-days-head span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
}

.sched-table {
  border: 1px solid var(--line-light);
  border-radius: 4px;
  overflow: hidden;
}

.sched-row {
  display: flex;
  height: 33px;
}

.sched-row + .sched-row {
  border-top: 1px solid var(--line-light);
}

.sched-period {
  width: 44px;
  flex: none;
  background: var(--table-head);
  border-right: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
}

.sched-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sched-cell + .sched-cell {
  border-left: 1px solid var(--line-light);
}

.sched-empty-box {
  height: 99px;
  border-radius: 4px;
  background: var(--table-head);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.sched-tip-bar {
  margin-top: 12px;
  background: var(--brand-surface);
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
}

/* 历史接单记录 */
.history-head {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.history-head-title {
  font-size: 13px;
  color: var(--text-body);
  flex: 1;
}

.history-list {
  margin-top: 12px;
}

.history-item {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.history-item-sep {
  margin: 8px 0;
}

.history-date {
  flex: 1;
  color: var(--text-secondary);
}

.history-subject {
  flex: 1;
  color: var(--text-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-ok {
  color: var(--brand);
  flex: none;
}

/* 教员详情底栏 */
.detail-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--line-light);
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.detail-bottom-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.detail-btn-order {
  flex: 1;
  height: 38px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 0;
}

.detail-btn-wechat {
  width: 83px;
  flex: none;
  height: 38px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

/* ---------------- 8. 教员入口页 (TeacherEntryScreen) & 家教单卡片 (DemandCard) ---------------- */
.entry-topbar {
  background: var(--brand);
  padding-bottom: 16px;
}

.entry-topbar-title {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  position: relative;
}

.entry-city-Absolute {
  position: absolute;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 165px;
}

.entry-search-bar {
  margin: 10px 39px 0;
  height: 29px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding-left: 12px;
  display: flex;
  align-items: center;
}

.entry-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.entry-search-input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.entry-search-vline {
  width: 1px;
  height: 10px;
  background: #39c0b9;
  margin-left: 8px;
}

.entry-search-btn {
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.entry-notice-bar {
  height: 41px;
  background: var(--surface);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-enter-now {
  height: 25px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  flex: none;
}

.entry-tab-row {
  height: 50px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

/* 家教单卡片 */
.demand-card {
  position: relative;
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  cursor: pointer;
}

.demand-status-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 25px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 0 8px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.demand-header {
  display: flex;
  gap: 12px;
}

.demand-avatar {
  width: 100px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.demand-head-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demand-name-row {
  display: flex;
  align-items: center;
  padding-right: 52px;
}

.demand-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demand-browse {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
  flex: none;
}

.demand-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.demand-tag {
  background: var(--amber-surface);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
}

.demand-tag.special {
  background: rgba(53, 198, 192, 0.12);
  border-color: var(--brand);
  color: var(--brand);
}

.demand-info-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demand-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.demand-info-label {
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.demand-info-val {
  color: var(--text-secondary);
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.vacation-hl {
  color: var(--amber);
  font-weight: 500;
}

.demand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 18px;
  text-align: justify;
  white-space: pre-wrap;
}

.demand-desc.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.demand-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demand-pub-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-body);
}

.wechat-green-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--wechat-green);
  font-size: 12px;
  background: transparent;
  border: 0;
  padding: 0;
}

/* 已安排灰罩与斜印章 */
.demand-arranged-cover {
  position: absolute;
  inset: 0;
  background: var(--arranged-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.demand-stamp {
  width: 135px;
  height: 54px;
  border: 2.5px solid var(--arranged-stamp);
  border-radius: 8px;
  transform: rotate(-20deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arranged-stamp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
}

/* ---------------- 9. 列表提示 & 设计稿提示弹窗 (DetailTipDialog) ---------------- */
.state, .list-area-hint {
  padding: 28px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-mask.show {
  display: flex;
}

.tip-dialog {
  width: 233px;
  background: var(--surface);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tip-dialog-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.tip-dialog-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tip-dialog-msg {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

.tip-dialog-extra {
  width: 100%;
  background: var(--brand-surface);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.tip-dialog-extra-row {
  display: flex;
  justify-content: space-between;
}

.tip-dialog-extra-row b {
  color: var(--red);
}

.tip-dialog-actions {
  width: 100%;
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

/* Toast 轻提示 */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.app-toast.show {
  opacity: 1;
}

/* Banner 全屏预览弹层 (BannerPreviewOverlay 1:1 复刻) */
.banner-preview-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #000;
  overflow-y: auto;
  cursor: zoom-out;
}

.banner-preview-mask.show {
  display: block;
}

.banner-preview-img {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
}
.topbar-locate, .entry-locate {
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  padding: 3px 6px;
  margin-right: 4px;
  line-height: 1.3;
}
.entry-locate { margin-right: 6px; }
.topbar-locate:active, .entry-locate:active { background: rgba(255,255,255,.3); }
/* 手动修改我的位置 */
.location-mask { align-items: flex-end; padding: 0; }
.location-dialog { width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
.location-dialog-title { font-size: 18px; font-weight: 700; text-align: center; }
.location-current { color: var(--text-muted); font-size: 12px; text-align: center; margin-top: 6px; word-break: break-all; }
.location-use-current { width: 100%; border: 1px solid var(--brand); background: var(--brand-surface); color: var(--brand); border-radius: 9px; padding: 10px; margin-top: 14px; font-weight: 600; }
.location-region-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.location-region-row select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; font-size: 14px; color: #333; background: #fff; outline: none; }
.location-input-row { display: flex; gap: 8px; margin-top: 12px; }
.location-input-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 14px; outline: none; }
.location-input-row button { border: 0; border-radius: 8px; padding: 0 14px; background: var(--brand); color: #fff; font-weight: 600; }
.location-results { margin-top: 10px; }
.location-hint { color: var(--text-muted); font-size: 12px; text-align: center; padding: 10px 0; }
.location-result { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; padding: 11px 2px; }
.location-result b { display: block; font-size: 14px; color: #333; }
.location-result small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.location-close { width: 100%; border: 0; border-radius: 9px; padding: 11px; margin-top: 12px; background: #f2f3f5; color: var(--text-muted); font-weight: 600; }
/* H5 品牌 Logo */
.topbar-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  display: block;
}
.top-logo { width: 28px; height: 28px; border-radius: 7px; vertical-align: -7px; margin-right: 8px; }
.topbar-locate {
  width: 26px;
  height: 26px;
  padding: 0;
  line-height: 26px;
  text-align: center;
  font-size: 16px;
  white-space: nowrap;
}
.page-topbar-logo, .entry-topbar-logo {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}
/* 下拉刷新 */
html, body { overscroll-behavior-y: contain; }
.pull-refresh-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  z-index: 120;
  transform: translateY(-44px);
  transition: transform .18s ease;
  pointer-events: none;
}
.pull-refresh-indicator.show { transition: none; }
/* 分页加载更多 */
.load-more {
  padding: 18px 0;
  text-align: center;
  color: var(--brand);
  font-size: 13px;
  cursor: pointer;
}
.load-more:active { opacity: .6; }
