/* 211家教网 v5.0 - 样式表 */

/* ==================== CSS变量 ==================== */
:root {
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #e6f7ff;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg: #f5f7fa;
  --white: #fff;
  --border: #e8e8e8;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 60px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ==================== 头部导航 ==================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
}
.header .logo {
  font-size: 16px; font-weight: 700; color: var(--primary);
  text-align: center;
  white-space: nowrap;
  grid-column: 2;
}
.header .city-selector {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--primary-light); cursor: pointer;
  font-size: 13px; color: var(--primary);
  font-weight: 500;
  grid-column: 1;
  justify-self: start;
}
.header .city-selector .loc-dot { font-size: 12px; }
.header .city-selector .arrow { font-size: 10px; }
.header .user-area {
  display: flex; align-items: center; gap: 8px;
  grid-column: 3;
  justify-self: end;
}
.header .user-area .btn-login {
  padding: 4px 14px; border-radius: 20px;
  background: var(--primary); color: var(--white);
  font-size: 13px; cursor: pointer;
}
.header .user-area .user-name {
  font-size: 13px; color: var(--text-light);
  max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: space-around;
  height: 56px;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 0; cursor: pointer;
  color: var(--text-lighter); font-size: 11px;
  transition: color 0.2s;
  min-width: 56px;
}
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item .nav-icon { font-size: 22px; line-height: 1; }

/* ==================== 页面容器 ==================== */
.page { display: none; padding-top: 52px; min-height: 100vh; }
.page.active { display: block; }

/* ==================== 首页 Banner 轮播 ==================== */
.home-banner {
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
  height: 150px;
  margin-bottom: 0;
}
.banner-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.banner-slide {
  width: calc(100% / 3);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.banner-slide::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.banner-slide::before {
  content: '';
  position: absolute; left: 20px; bottom: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.banner-slide-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.banner-slide-2 { background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #0f6ab4 100%); }
.banner-slide-3 { background: linear-gradient(135deg, #1a0533 0%, #2d1b69 50%, #11998e 100%); }
.banner-content {
  position: relative; z-index: 1; width: 100%;
  max-width: 340px; margin: 0 auto;
}
.banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.banner-title {
  font-size: 22px; font-weight: 800;
  color: #fff; line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.banner-sub {
  font-size: 12px; color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.banner-sub span { color: #ffd700; font-weight: 600; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 10;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.3s;
}
.banner-dot.active {
  background: #fff; width: 18px; border-radius: 3px;
}

@media (min-width: 400px) {
  .home-banner { height: 160px; }
  .banner-title { font-size: 24px; }
  .banner-content { max-width: 400px; }
}
@media (min-width: 500px) {
  .home-banner { height: 170px; }
  .banner-title { font-size: 26px; }
  .banner-content { max-width: 480px; }
}




/* ==================== 四大功能入口 ==================== */
.home-entries {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 10px 12px; background: var(--white);
  margin-bottom: 6px;
}
.entry-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.entry-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.entry-item:active .entry-icon { transform: scale(0.92); }
.entry-label { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* ==================== 数据统计条 ==================== */
.home-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-bottom: 6px;
}
.hs-item { flex: 1; text-align: center; color: #fff; }
.hs-icon { font-size: 18px; margin-bottom: 2px; }
.hs-num { font-size: 20px; font-weight: 700; }
.hs-label { font-size: 10px; opacity: 0.8; margin-top: 2px; }
.hs-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.3); }

/* ==================== 热门科目（标签流式） ==================== */
.subject-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.subj-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--white); cursor: pointer;
  font-size: 13px; color: var(--text); font-weight: 600;
  border: 1.5px solid var(--c, var(--primary));
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s;
  white-space: nowrap;
}
.subj-tag:active {
  transform: scale(0.94);
  background: color-mix(in srgb, var(--c, var(--primary)) 10%, white);
}

/* ==================== 热门学校（标签流式） ==================== */
.school-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.school-tag-flow {
  padding: 8px 14px; border-radius: 20px;
  background: #f0fdf4; color: #15803d;
  font-size: 13px; font-weight: 500;
  border: 1px solid #bbf7d0;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.school-tag-flow:active {
  background: #dcfce7; transform: scale(0.96);
}

/* ==================== 公告栏（首页滚动条） ==================== */
.announcement-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 12px; padding: 8px 12px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-radius: 10px; border: 1px solid #fde68a;
  overflow: hidden;
}
.announcement-icon { font-size: 18px; flex-shrink: 0; }
.announcement-scroll {
  flex: 1; overflow: hidden; height: 22px; position: relative;
}
.announcement-scroll-inner {
  display: flex; flex-direction: column; gap: 2px;
  transition: transform 0.5s ease;
}
.announcement-scroll-item {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; color: #92400e; line-height: 22px; cursor: pointer;
}
.announcement-scroll-item:active { color: #b45309; }
.announcement-more {
  flex-shrink: 0; font-size: 12px; color: #d97706; cursor: pointer;
  padding: 2px 8px; border-radius: 10px; background: rgba(217,119,6,0.1);
}

/* 公告列表弹窗内容 */
.ann-item {
  padding: 14px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.ann-item:last-child { border-bottom: none; }
.ann-item-title {
  font-size: 15px; font-weight: 600; color: #333; line-height: 1.4;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.ann-expand-hint {
  font-size: 11px; color: #bbb; flex-shrink: 0; margin-top: 3px;
  transition: transform 0.2s;
}
.ann-item.expanded .ann-expand-hint { transform: rotate(180deg); }
.ann-item-title.has-top {
  padding-left: 30px; position: relative;
}
.ann-item-title .top-tag {
  position: absolute; left: 0; top: 0;
  font-size: 11px; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316);
  padding: 1px 6px; border-radius: 4px; font-weight: 500;
}
.ann-item-time { font-size: 12px; color: #999; margin-top: 6px; }
.ann-item-content {
  font-size: 14px; color: #666; line-height: 1.7; margin-top: 10px;
  padding: 12px; background: #fafafa; border-radius: 8px;
  white-space: pre-wrap; word-break: break-word;
}

/* ==================== 为什么选择我们 ==================== */
.trust-section {
  padding: 24px 16px 8px;
  text-align: center;
}
.trust-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.trust-item {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px 12px 16px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.trust-item:active { transform: scale(0.97); }
.trust-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.trust-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.trust-desc { font-size: 11px; color: var(--text-lighter); line-height: 1.6; }

/* ==================== 注册引导横幅 ==================== */
.register-banner {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, #fff7e6, #fffbe6);
  border: 1px solid #ffe58f;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(250,173,20,0.1);
}
.rb-left { display: flex; align-items: center; gap: 12px; }
.rb-icon { font-size: 28px; }
.rb-title { font-size: 14px; font-weight: 700; color: #d48806; }
.rb-sub { font-size: 11px; color: #ad6800; margin-top: 2px; }
.rb-btn {
  background: linear-gradient(135deg, #faad14, #fa8c16);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(250,140,22,0.3);
}

/* ==================== 底部信息 ==================== */
.footer-info {
  text-align: center; padding: 20px 16px 24px;
  font-size: 12px; color: #ccc;
}

/* ==================== 通用区域 ==================== */
.section { padding: 10px 12px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.section-title {
  font-size: 17px; font-weight: 600; color: var(--text);
  position: relative; padding-left: 10px;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 16px;
  background: var(--primary); border-radius: 2px;
}
.section-more {
  font-size: 13px; color: var(--text-lighter); cursor: pointer;
}

/* 首页推荐/需求 大按钮切换 */
.home-toggle {
  display: flex; gap: 0; margin-bottom: 14px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.home-toggle-btn {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; font-size: 15px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  background: #f5f6fa; transition: all 0.3s;
  user-select: none;
}
.home-toggle-btn:first-child { border-radius: 10px 0 0 10px; }
.home-toggle-btn:last-child { border-radius: 0 10px 10px 0; }
.home-toggle-btn.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(0,123,255,0.35);
}
.home-toggle-btn:not(.active):hover {
  background: #ebedf3; color: var(--text-primary);
}
.home-toggle-arrow {
  font-size: 18px; font-weight: 400; opacity: 0.7;
  transition: transform 0.2s;
}
.home-toggle-btn.active .home-toggle-arrow {
  transform: translateX(3px);
}

/* ==================== 卡片通用 ==================== */
.card-list {
  display: flex; flex-direction: column; gap: 12px;
}

/* 老师卡片（精致版） */
.teacher-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer; transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.teacher-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 4px 0 0 4px;
}
.teacher-card:active { transform: scale(0.98); box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.teacher-card .t-top {
  display: flex; gap: 12px; align-items: flex-start;
}
.teacher-card .t-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #e8eaf6, #ede7f6);
  overflow: hidden;
}
.teacher-card .t-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.teacher-card .t-avatar.male { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.teacher-card .t-avatar.female { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.teacher-card .t-main { flex: 1; min-width: 0; }
.teacher-card .t-name {
  font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.teacher-card .t-name .gender-icon {
  font-size: 12px; color: var(--text-lighter);
}
.teacher-card .t-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px; flex-wrap: wrap;
}
.teacher-card .t-meta .meta-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 3px;
  font-weight: 500;
}
.teacher-card .t-meta .meta-tag.school {
  color: #667eea; background: #f0f0ff;
}
.teacher-card .t-meta .meta-tag.edu {
  color: #f5222d; background: #fff1f0;
}
.teacher-card .t-meta .meta-tag.exp {
  color: #52c41a; background: #f6ffed;
}
.teacher-card .t-subjects {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
}
.teacher-card .t-subjects .sub-tag {
  font-size: 12px; padding: 3px 10px; border-radius: 14px;
  background: #f5f7fa; color: var(--text);
  border: 1px solid #eef0f3;
}
.teacher-card .t-intro {
  font-size: 12px; color: var(--text-lighter); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.6;
}
.teacher-card .t-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #f5f5f5;
}
/* 我的发布 - 编辑删除按钮 */
.my-card-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
.my-card-actions .btn-edit,
.my-card-actions .btn-delete {
  border: none; border-radius: 6px; padding: 4px 12px;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.my-card-actions .btn-edit {
  background: #e6f7ff; color: #1890ff;
}
.my-card-actions .btn-edit:hover { background: #bae7ff; }
.my-card-actions .btn-delete {
  background: #fff1f0; color: #f5222d;
}
.my-card-actions .btn-delete:hover { background: #ffa39e; color: #fff; }
.my-card.demand-card .my-card-actions {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid #f5f5f5;
}
.teacher-card .t-price {
  font-size: 18px; font-weight: 700; color: #f5222d;
}
.teacher-card .t-price span { font-size: 12px; font-weight: 400; color: #f5222d; opacity: 0.8; }
.teacher-card .t-dist { font-size: 12px; color: var(--text-lighter); }
.teacher-card .t-area { font-size: 11px; color: var(--text-lighter); margin-top: 2px; }
/* 认证角标 */
.t-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  font-weight: 600; flex-shrink: 0;
}
.t-badge.verified { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.t-badge.hot { background: #fff2e8; color: #fa541c; border: 1px solid #ffbb96; }
/* 距离标签增强 */
.t-dist-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f;
  font-size: 11px; padding: 2px 8px; border-radius: 12px;
  font-weight: 500;
}

/* 需求卡片（精致版） */
.demand-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer; transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.demand-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f5222d, #ff7a45);
  border-radius: 4px 0 0 4px;
  z-index: 2;
}
.demand-card:active { transform: scale(0.98); box-shadow: 0 1px 6px rgba(0,0,0,0.08); }

/* 顶部渐变条 */
.demand-card .d-header-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px 8px 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
  border-bottom: 1px solid rgba(255,77,79,0.08);
}
.demand-card .d-header-left {
  display: flex; align-items: center; gap: 8px;
}

/* 类型标签 */
.demand-card .d-type-badge {
  font-size: 12px; font-weight: 600;
  color: #f5222d;
  background: linear-gradient(135deg, #fff1f0, #ffccc7);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245,34,45,0.15);
}

/* 紧急程度标签 */
.demand-card .d-urgency {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}
.demand-card .d-urgency.urgent {
  color: #cf1322;
  background: linear-gradient(135deg, #fff1f0, #ffa39e);
  animation: urgentPulse 2s ease-in-out infinite;
}
.demand-card .d-urgency.new {
  color: #d48806;
  background: linear-gradient(135deg, #fffbe6, #ffe58f);
}
@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 时间标签 */
.demand-card .d-time {
  font-size: 11px; color: #999; font-weight: 400;
}
.demand-card .d-time.fresh {
  color: #52c41a; font-weight: 600;
}

.demand-card .d-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 0 20px;
}
.demand-card .d-student {
  display: flex; align-items: center; gap: 10px;
}
.demand-card .d-student-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(255,107,107,0.3);
}
.demand-card .d-student-info .d-name {
  font-size: 15px; font-weight: 600; color: #1a1a1a;
}
.demand-card .d-student-info .d-grade {
  font-size: 11px; color: #1890ff; font-weight: 500; margin-top: 2px;
  background: #e6f7ff; padding: 1px 6px; border-radius: 4px;
  display: inline-block;
}
.demand-card .d-right-top {
  text-align: right; flex-shrink: 0;
}
.demand-card .d-price { font-size: 18px; font-weight: 700; color: #f5222d; }
.demand-card .d-price span { font-size: 12px; font-weight: 400; color: #f5222d; opacity: 0.8; }
.demand-card .d-subjects {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
  padding: 0 16px 0 20px;
}
.demand-card .d-subjects .tag {
  background: #f0f5ff; color: #2f54eb; padding: 3px 10px;
  border-radius: 14px; font-size: 12px; border: 1px solid #d6e4ff;
  font-weight: 500;
}
.demand-card .d-subjects .sub-tag.demand {
  background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
  color: #2f54eb; padding: 3px 10px;
  border-radius: 14px; font-size: 12px; border: 1px solid #b8d4ff;
  font-weight: 600;
  transition: all 0.2s;
}
.demand-card:active .d-subjects .sub-tag.demand {
  background: linear-gradient(135deg, #d6e4ff, #adc6ff);
}
.demand-card .d-intro {
  font-size: 12px; color: #666; margin-top: 8px;
  padding: 0 16px 0 20px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.7;
}
.demand-card .d-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding: 10px 16px 12px 20px;
  border-top: 1px solid #f5f5f5;
  font-size: 12px; color: var(--text-lighter);
}
.demand-card .d-dist { font-size: 12px; color: var(--text-lighter); }
.demand-card .d-pref {
  font-size: 11px; color: var(--text-lighter);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-lighter);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .text { font-size: 14px; }

/* ==================== 发布页面 ==================== */
.publish-page { padding: 16px; padding-top: 64px; }
.publish-tabs {
  display: flex; gap: 0; background: var(--white); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
.publish-tabs .tab {
  flex: 1; text-align: center; padding: 12px; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: all 0.2s;
  color: var(--text-light);
}
.publish-tabs .tab.active {
  background: var(--primary); color: var(--white);
}

.form-section {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 12px;
}
.form-section .form-title {
  font-size: 15px; font-weight: 600; margin-bottom: 12px;
  color: var(--text);
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block; font-size: 13px; color: var(--text-light);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; outline: none; background: #fafafa;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); background: var(--white);
}
.form-group textarea {
  height: 80px; padding: 10px 12px; resize: vertical;
}

/* 科目标签选择 */
.subject-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.subject-tag {
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.subject-tag.selected {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
}

/* 提交按钮 */
/* 老师头像上传区域 */
.t-avatar-upload {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; cursor: pointer;
  background: linear-gradient(135deg, #f0f2f5, #e8eaf6);
  border: 2px dashed #d9d9d9;
  transition: all 0.2s;
  overflow: hidden;
}
.t-avatar-upload:hover { border-color: var(--primary); }
.t-avatar-upload:active { transform: scale(0.95); }
.t-avatar-upload img {
  width: 100%; height: 100%; object-fit: cover;
}

.btn-submit {
  width: 100%; height: 44px; border-radius: 22px;
  background: var(--primary); color: var(--white);
  border: none; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  transition: opacity 0.2s;
}
.btn-submit:active { opacity: 0.8; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* 定位按钮 */
.btn-location {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  border: 1px dashed var(--primary); font-size: 13px;
  cursor: pointer; width: fit-content;
}

/* ==================== 个人中心 ==================== */
.profile-header {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: var(--white); padding: 24px 16px; text-align: center;
  cursor: pointer; transition: opacity 0.2s;
}
.profile-header:active { opacity: 0.9; }
.profile-header .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.25); margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 600; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
  overflow: hidden;
}
.profile-header .avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-header .name { font-size: 18px; font-weight: 600; }
.profile-edit-hint {
  font-size: 12px; opacity: 0.7; margin-top: 2px; margin-bottom: 6px;
}
.profile-header .role-switch {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 4px 12px;
  background: rgba(255,255,255,0.2); border-radius: 16px;
  font-size: 13px; cursor: pointer;
}

/* 编辑资料弹窗 */
.edit-profile-body { padding: 20px; }
.edit-avatar-area { text-align: center; margin-bottom: 20px; }
.edit-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 600; color: #fff;
  margin-bottom: 8px; border: 3px solid rgba(24,144,255,0.15);
  transition: all 0.3s;
}
.edit-avatar-hint { font-size: 12px; color: #999; }
.edit-avatar-upload {
  display: inline-block; margin-top: 8px; padding: 6px 16px;
  background: #f5f6fa; border: 1px solid #e0e0e0; border-radius: 20px;
  font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s;
}
.edit-avatar-upload:hover { background: #e8eaf6; color: var(--primary); border-color: var(--primary); }
.edit-avatar {
  overflow: hidden;
}
.edit-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.profile-menu {
  padding: 12px 16px;
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; background: var(--white);
  border-radius: var(--radius); margin-bottom: 8px;
  cursor: pointer;
}
.menu-item:active { background: #f5f5f5; }
.menu-item .menu-left {
  display: flex; align-items: center; gap: 10px;
}
.menu-item .menu-icon { font-size: 20px; }
.menu-item .menu-label { font-size: 14px; }
.menu-item .menu-arrow { color: var(--text-lighter); font-size: 14px; }

/* ==================== 消息页面 ==================== */
.message-list { padding: 0 16px; }
.message-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.message-item .msg-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary); flex-shrink: 0;
}
.message-item .msg-content { flex: 1; min-width: 0; }
.message-item .msg-name { font-size: 14px; font-weight: 500; }
.message-item .msg-text {
  font-size: 13px; color: var(--text-lighter);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 2px;
}
.message-item .msg-time {
  font-size: 11px; color: var(--text-lighter); flex-shrink: 0;
}
.message-item .msg-badge {
  background: var(--danger); color: var(--white);
  font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}

/* 聊天窗口 */
.chat-box {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--white); border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  display: none; flex-direction: column;
  height: 70vh; max-height: 600px;
}
.chat-box.show { display: flex; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
}
.chat-header .chat-name { font-size: 15px; font-weight: 600; }
.chat-header .chat-close {
  font-size: 20px; cursor: pointer; color: var(--text-lighter);
  background: none; border: none;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.5;
}
.chat-bubble.mine {
  background: var(--primary); color: var(--white);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-bubble.other {
  background: #f0f0f0; color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.chat-input-bar {
  display: flex; gap: 8px; padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
}
.chat-input-bar input {
  flex: 1; height: 38px; border-radius: 19px;
  border: 1px solid var(--border); padding: 0 14px;
  font-size: 14px; outline: none;
}
.chat-input-bar button {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; font-size: 18px; cursor: pointer;
}

/* ==================== 弹窗通用 ==================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 300;
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: var(--white); border-radius: 16px 16px 0 0;
  width: 100%; max-width: 500px; max-height: 85vh;
  overflow-y: auto; padding-bottom: env(safe-area-inset-bottom);
  display: flex; flex-direction: column;
}
.modal-content .detail-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-content .dtl-fixed-bar {
  flex-shrink: 0;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
  position: sticky; top: 0; background: var(--white);
  z-index: 1;
}
.modal-header .modal-title { font-size: 16px; font-weight: 600; }
.modal-header .modal-close {
  font-size: 22px; cursor: pointer; color: var(--text-lighter);
  background: none; border: none;
}

/* 城市选择弹窗 */
.city-modal-body { padding: 16px; }
.city-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: #f5f5f5;
  border-radius: 20px; margin-bottom: 16px;
}
.city-search input {
  flex: 1; border: none; background: none;
  font-size: 14px; outline: none;
}
.city-search .search-icon { color: var(--text-lighter); }
.city-section { margin-bottom: 16px; }
.city-section h4 {
  font-size: 13px; color: var(--text-lighter);
  margin-bottom: 8px; font-weight: 500;
}
.city-section .city-btns {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.city-section .city-btn {
  padding: 6px 14px; border-radius: 6px;
  background: #f5f5f5; font-size: 13px;
  cursor: pointer; border: none; transition: all 0.2s;
}
.city-section .city-btn.active {
  background: var(--primary); color: var(--white);
}

/* 详情弹窗 */
.detail-body { padding: 0; }
.detail-hero {
  display: flex; gap: 14px; margin-bottom: 16px;
}
.detail-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--primary);
}
.detail-main { flex: 1; }
.detail-main h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.detail-main .school-tag {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  padding: 2px 8px; border-radius: 4px; display: inline-block;
}
.detail-main .price-line {
  margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--danger);
}
.detail-main .price-line span { font-size: 13px; font-weight: 400; }

.detail-section { margin-bottom: 14px; }
.detail-section h3 {
  font-size: 14px; font-weight: 600; margin-bottom: 6px;
  color: var(--text);
}
.detail-section p {
  font-size: 13px; color: var(--text-light); line-height: 1.8;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tags .tag {
  padding: 4px 10px; border-radius: 4px;
  background: #f0f0f0; font-size: 12px;
}

.detail-actions {
  display: flex; gap: 10px; margin-top: 20px;
  padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.btn-action {
  flex: 1; height: 42px; border-radius: 21px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: none; transition: opacity 0.2s;
}
.btn-action:active { opacity: 0.8; }
.btn-action.primary { background: var(--primary); color: var(--white); }
.btn-action.outline {
  background: var(--white); color: var(--primary);
  border: 1px solid var(--primary);
}

/* ========== 全新详情页样式 ========== */

/* Hero 顶部区域 */
.dtl-hero {
  position: relative;
  padding: 28px 20px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.dtl-hero.demand {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #fa8c16 100%);
}
.dtl-hero-bg {
  position: absolute; top: -30px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.dtl-hero-bg::after {
  content: ''; position: absolute; top: 20px; left: 30px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.dtl-hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
}
.dtl-avatar-large {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
}
.dtl-avatar-large img {
  width: 100%; height: 100%; object-fit: cover;
}
.dtl-avatar-large.male { background: rgba(100,180,255,0.25); }
.dtl-avatar-large.female { background: rgba(255,150,180,0.25); }
.dtl-avatar-large.demand { background: rgba(255,255,255,0.2); }
.dtl-hero-info { flex: 1; }
.dtl-hero-name {
  font-size: 22px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.dtl-gender {
  font-size: 14px; font-weight: 500; opacity: 0.85;
}
.dtl-hero-badges {
  display: flex; gap: 6px; margin-top: 6px;
}
.dtl-hero-sub {
  font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px;
  font-weight: 500;
}

/* 认证/热门角标 */
.dtl-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; padding: 3px 8px; border-radius: 10px;
  font-weight: 600;
}
.dtl-badge.verified {
  background: rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}
.dtl-badge.hot {
  background: rgba(255,200,0,0.3);
  color: #fff;
}

/* 价格卡片 */
.dtl-price-card {
  margin: 0 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(245,34,77,0.08);
  margin-top: -14px;
  position: relative; z-index: 2;
  border: 1px solid rgba(245,34,77,0.1);
}
.dtl-price-card.demand {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
  border-color: rgba(250,140,22,0.15);
  box-shadow: 0 2px 12px rgba(250,140,22,0.08);
}
.dtl-price-label {
  font-size: 13px; color: #999; font-weight: 500;
}
.dtl-price-amount {
  font-size: 28px; font-weight: 800; color: #f5222d;
}
.dtl-price-card.demand .dtl-price-amount { color: #fa8c16; }
.dtl-price-amount span {
  font-size: 13px; font-weight: 500; opacity: 0.7;
}
.dtl-dist-tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f;
  font-size: 11px; padding: 2px 8px; border-radius: 12px;
  font-weight: 500;
}

/* 信息卡片区域 */
.dtl-section {
  padding: 16px;
}
.dtl-section-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
  padding-left: 10px;
  position: relative;
}
.dtl-section-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}

/* 信息 grid */
.dtl-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dtl-info-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px;
  background: #f8f9fc;
  border-radius: 10px;
  border: 1px solid #f0f1f5;
}
.dtl-info-icon {
  font-size: 20px; flex-shrink: 0;
}
.dtl-info-text {
  display: flex; flex-direction: column; min-width: 0;
}
.dtl-info-label {
  font-size: 11px; color: #bbb; font-weight: 500;
}
.dtl-info-value {
  font-size: 13px; color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 科目标签 */
.dtl-tags-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.dtl-subj-tag {
  padding: 6px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #e8eaf6, #f3f0ff);
  color: #5c6bc0; font-size: 13px; font-weight: 600;
  border: 1px solid #d1d5f0;
}
.dtl-subj-tag.demand {
  background: linear-gradient(135deg, #fff7e6, #ffe7ba);
  color: #d48806; border-color: #ffe0a0;
}

/* 描述文本 */
.dtl-desc {
  font-size: 14px; color: var(--text-light); line-height: 1.8;
  padding: 12px 14px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #f0f1f5;
  white-space: pre-wrap;
}

/* 联系方式提示卡片 */
.dtl-contact-tip {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e6f7ff, #bae7ff);
  border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #91d5ff;
}
.dtl-contact-icon {
  font-size: 28px; flex-shrink: 0;
}
.dtl-contact-text {
  flex: 1;
}
.dtl-contact-title {
  font-size: 14px; font-weight: 700; color: #0050b3;
}
.dtl-contact-desc {
  font-size: 12px; color: #1890ff; margin-top: 2px;
  line-height: 1.5;
}

/* 底部固定操作栏 */
.dtl-fixed-bar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 5;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.dtl-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; border-radius: 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.dtl-btn:active { transform: scale(0.96); opacity: 0.85; }
.dtl-btn-phone {
  flex: 1;
  background: linear-gradient(135deg, #52c41a, #389e0d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(82,196,26,0.3);
}
.dtl-btn-msg {
  flex: 1;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}
.dtl-btn-fav {
  width: 44px; flex: none;
  background: #fff7e6; color: #fa8c16;
  border: 1px solid #ffe7ba;
  font-size: 20px;
  transition: all 0.3s ease;
}
.dtl-btn-fav.favorited {
  background: #fa8c16; color: #fff;
  border-color: #fa8c16;
  box-shadow: 0 2px 8px rgba(250,140,22,0.4);
}

/* ========== 收藏列表卡片 ========== */
.fav-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 16px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #f0f1f5;
}
.fav-card:active { transform: scale(0.98); opacity: 0.9; }
.fav-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fav-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f5ff, #e6f7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.fav-info { flex: 1; min-width: 0; }
.fav-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.fav-type-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; flex-shrink: 0;
}
.fav-type-tag.teacher { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.fav-type-tag.demand { background: #fff7e6; color: #fa8c16; border: 1px solid #ffe7ba; }
.fav-subjects {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px;
}
.fav-subjects .sub-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #f5f7fa; color: #666; border: 1px solid #eef0f3;
}
.fav-price {
  font-size: 18px; font-weight: 700; color: #f5222d;
  flex-shrink: 0;
}
.fav-time {
  font-size: 11px; color: #ccc; margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f5f5f5;
  text-align: right;
}

/* ==================== 登录弹窗 ==================== */
.login-modal .modal-content {
  border-radius: 16px;
  align-self: center;
  margin: 0 16px;
  max-height: none;
}
.login-form { padding: 20px 24px; }
.login-form h2 {
  text-align: center; font-size: 20px;
  margin-bottom: 24px; color: var(--text);
}
.login-form .form-group { margin-bottom: 16px; }

/* ==================== 筛选栏 ==================== */
.search-bar {
  display: flex; gap: 8px; padding: 10px 16px;
  background: var(--white);
}
.search-bar input {
  flex: 1; padding: 8px 12px; border: 1px solid #e0e0e0;
  border-radius: 20px; font-size: 14px; outline: none;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar .search-btn {
  padding: 8px 16px; border-radius: 20px;
  background: var(--primary); color: #fff; border: none;
  font-size: 14px; cursor: pointer;
}
.filter-bar {
  display: flex; gap: 8px; padding: 10px 16px;
  overflow-x: auto; background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 16px;
  background: #f5f5f5; font-size: 13px; cursor: pointer;
  border: none; color: var(--text-light); transition: all 0.2s;
}
.filter-btn.active {
  background: var(--primary); color: var(--white);
}

/* 列表页 */
.list-page { padding-top: 52px; }
.list-page .card-list { padding: 0 16px 16px; }

/* 页面内标题栏（我的老师名片/我的需求 用） */
.page-header-bar {
  display: flex; align-items: center; padding: 12px 16px; gap: 8px;
  background: #fff; border-bottom: 1px solid #f0f0f0;
  position: sticky; top: 0; z-index: 10;
}
.page-header-title {
  font-size: 17px; font-weight: 600; color: #1a1a1a;
}
.page-back-btn {
  background: none; border: none; font-size: 16px; color: #1890ff;
  cursor: pointer; padding: 4px 8px; white-space: nowrap;
}
.page-back-btn:active { opacity: 0.6; }

/* 实名认证上传卡片 */
.verify-upload-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 120px; border: 2px dashed #d9d9d9; border-radius: 12px;
  cursor: pointer; position: relative; transition: border-color 0.3s;
  background: #fafafa;
}
.verify-upload-card:active { border-color: #1890ff; background: #e6f7ff; }
.verify-upload-icon { font-size: 32px; margin-bottom: 6px; }
.verify-upload-card span { color: #999; font-size: 13px; }

/* ==================== 加载提示 ==================== */
.loading {
  text-align: center; padding: 20px; color: var(--text-lighter);
  font-size: 14px;
}

/* ==================== Toast 提示 ==================== */
.toast {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%); z-index: 999;
  background: rgba(0,0,0,0.75); color: var(--white);
  padding: 10px 20px; border-radius: 20px;
  font-size: 14px; opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ==================== 响应式 ==================== */
@media (min-width: 768px) {
  .header { padding: 0 24px; }
  .section { padding: 20px 24px; }
  .banner { padding: 40px 24px; }
  .banner h1 { font-size: 28px; }
  .school-grid { grid-template-columns: repeat(5, 1fr); }
  .publish-page { max-width: 600px; margin: 0 auto; }
  .list-page .card-list { max-width: 700px; margin: 0 auto; padding-bottom: 20px; }
}
