/* ============================================================
   211家教网 - 响应式网站样式 v2.0
   教育主题：温暖蓝橙 + 知识感设计语言
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #DBEAFE;
  --primary-bg:    #EFF6FF;
  --accent:        #F59E0B;
  --accent-light:  #FEF3C7;
  --green:         #10B981;
  --green-light:   #D1FAE5;
  --red:           #EF4444;
  --red-light:     #FEE2E2;
  --purple:        #7C3AED;
  --purple-light:  #EDE9FE;
  --orange:        #EA580C;
  --orange-light:  #FFEDD5;
  --teal:          #0D9488;
  --teal-light:    #CCFBF1;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-150:      #EAECF0;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-400:      #9CA3AF;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --gray-800:      #1F2937;
  --gray-900:      #111827;
  --white:         #FFFFFF;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 6px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.16);
  --radius-xs:  6px;
  --radius-sm:  8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-h:  64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  background: #F0F4FF;
  color: var(--gray-800);
  line-height: 1.6;
  padding-top: var(--header-h);
}
a { cursor: pointer; text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
img { max-width: 100%; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(37,99,235,.10);
  z-index: 1000;
  border-bottom: 2px solid var(--primary-light);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #60A5FA);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(37,99,235,.3);
}
.logo-text { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-tag {
  font-size: 11px; color: var(--gray-400);
  background: var(--gray-100); border-radius: 4px; padding: 2px 6px;
  display: none;
}
@media (min-width: 900px) { .logo-tag { display: inline; } }

/* Nav */
.main-nav { display: none; gap: 4px; margin-left: 8px; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--gray-600);
  transition: all .18s; position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-bg); }
.nav-link.active { color: var(--primary); font-weight: 700; background: var(--primary-bg); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--primary); border-radius: 2px;
}

/* Header tools */
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.city-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--primary);
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--primary-light);
  transition: all .18s;
}
.city-btn:hover { background: var(--primary-light); }
.btn-outline {
  padding: 8px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary); color: var(--primary);
  background: transparent; font-size: 14px; font-weight: 600;
  transition: all .18s;
}
.btn-outline:hover { background: var(--primary-bg); }
.btn-primary {
  padding: 8px 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
  transition: all .18s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }

/* 汉堡 */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; padding: 8px; border-radius: var(--radius-sm);
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .2s; }
.menu-toggle:hover span { background: var(--primary); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* 移动端菜单 */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-150);
  padding: 8px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 16px; font-size: 15px; font-weight: 500;
  color: var(--gray-700); border-radius: var(--radius-sm);
  transition: all .15s;
}
.mobile-menu a:hover { background: var(--primary-bg); color: var(--primary); }

/* ============================================================
   PAGE SYSTEM
   ============================================================ */
.page-main { min-height: calc(100vh - var(--header-h)); }
.page { display: none; }
.page.active { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 40%, #3B82F6 70%, #06B6D4 100%);
  padding: 64px 0 80px;
  overflow: hidden;
}
/* 装饰背景元素 */
.hero-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900; color: var(--white);
  letter-spacing: -1px; line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,.85);
  margin-bottom: 36px;
}
.hero-subtitle strong { color: #FCD34D; font-weight: 800; }

/* 搜索框 */
.hero-search {
  display: flex; align-items: center;
  max-width: 680px; margin: 0 auto 20px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.3);
}
.search-city {
  display: flex; align-items: center; gap: 4px;
  padding: 0 16px; min-width: 100px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  border-right: 1.5px solid var(--gray-200);
  cursor: pointer; white-space: nowrap;
  flex-shrink: 0; background: var(--primary-bg);
  transition: background .15s;
}
.search-city:hover { background: var(--primary-light); }
.search-input {
  flex: 1; padding: 16px 16px;
  font-size: 15px; border: none; background: transparent;
  color: var(--gray-800);
}
.search-input::placeholder { color: var(--gray-400); }
.search-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 28px; background: var(--accent);
  color: var(--white); font-size: 15px; font-weight: 700;
  flex-shrink: 0; transition: all .18s;
}
.search-btn:hover { background: #D97706; }

/* 热搜标签 */
.hero-tags {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.hero-tags a {
  padding: 5px 14px; border-radius: 20px;
  background: rgba(255,255,255,.18);
  color: var(--white); font-weight: 500;
  border: 1px solid rgba(255,255,255,.3);
  transition: all .15s;
}
.hero-tags a:hover { background: rgba(255,255,255,.35); transform: translateY(-2px); }

/* 教育图标装饰 */
.hero-deco {
  position: absolute;
  font-size: 48px; opacity: 0.12; pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.hero-deco:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
.hero-deco:nth-child(2) { top: 60%; left: 8%; animation-delay: 1s; }
.hero-deco:nth-child(3) { top: 20%; right: 6%; animation-delay: 2s; }
.hero-deco:nth-child(4) { top: 65%; right: 10%; animation-delay: 0.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   BANNER / SWIPER
   ============================================================ */
.banner-section { padding: 32px 0 0; background: #F0F4FF; }
.swiper-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.swiper-track {
  display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.swiper-slide {
  min-width: 100%; height: 220px;
  display: flex; align-items: center; padding: 0 70px;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .swiper-slide { height: 280px; } }

/* 各张轮播的渐变主题 */
.grad-blue {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #38BDF8 100%);
}
.grad-warm {
  background: linear-gradient(135deg, #92400E 0%, #D97706 40%, #F59E0B 80%, #FCD34D 100%);
}
.grad-green {
  background: linear-gradient(135deg, #064E3B 0%, #059669 50%, #34D399 100%);
}
.grad-purple {
  background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 50%, #A78BFA 100%);
}

/* 轮播内容 */
.slide-text { position: relative; z-index: 2; color: var(--white); flex: 1; }
.slide-text h2 { font-size: clamp(18px, 3vw, 30px); font-weight: 900; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.slide-text p { font-size: clamp(12px, 1.5vw, 16px); opacity: .9; margin-bottom: 20px; max-width: 400px; }
.slide-text button {
  padding: 10px 26px; border-radius: 50px;
  background: rgba(255,255,255,.95); color: var(--gray-800);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: all .2s;
}
.slide-text button:hover { background: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* 装饰图形 */
.slide-deco {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  font-size: clamp(60px, 10vw, 110px);
  opacity: .25; user-select: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.15));
}
/* 轮播底部图案 */
.swiper-slide::after {
  content: '';
  position: absolute; bottom: -30px; right: -30px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}

.swiper-prev, .swiper-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--gray-700);
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: all .18s; z-index: 10;
  line-height: 1;
}
.swiper-prev { left: 14px; }
.swiper-next { right: 14px; }
.swiper-prev:hover, .swiper-next:hover { background: white; transform: translateY(-50%) scale(1.08); }
.swiper-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s;
}
.dot.active { background: white; width: 24px; border-radius: 4px; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: 0 0 0;
  background: #F0F4FF;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1.5px solid var(--primary-light);
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--gray-150);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  border-radius: 0 0 3px 3px;
}
.stat-num {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; color: var(--primary);
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800; color: var(--gray-900);
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px;
  background: linear-gradient(to bottom, var(--primary), #60A5FA);
  border-radius: 2px;
}
.section-more {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--primary); font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  transition: all .15s;
}
.section-more:hover { background: var(--primary-light); }

/* ============================================================
   QUICK GRID
   ============================================================ */
.quick-section { padding: 36px 0 12px; background: #F0F4FF; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 500px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: all .2s;
  border: 1.5px solid transparent;
}
.quick-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.quick-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.quick-label { font-size: 12px; font-weight: 600; color: var(--gray-700); text-align: center; line-height: 1.3; }

/* ============================================================
   SCHOOLS GRID
   ============================================================ */
.schools-section { padding: 36px 0 12px; background: #F0F4FF; }
.schools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .schools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .schools-grid { grid-template-columns: repeat(2, 1fr); } }
.school-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  border: 1.5px solid var(--gray-150);
  position: relative; overflow: hidden;
}
.school-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
}
.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.school-card-icon { font-size: 28px; margin-bottom: 10px; }
.school-card-name { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; line-height: 1.3; }
.school-card-count {
  font-size: 12px; color: var(--primary); font-weight: 600;
  background: var(--primary-bg); padding: 2px 8px; border-radius: 10px;
  display: inline-block;
}

/* ============================================================
   TUTOR SECTION / CARDS
   ============================================================ */
.tutor-section { padding: 36px 0 48px; background: #F0F4FF; }

/* 类型筛选标签（家长/老师） */
.type-filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.type-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.type-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.type-tab.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.type-tab span {
  font-size: 16px;
}
@media (max-width: 480px) {
  .type-filter-tabs {
    gap: 8px;
  }
  .type-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
}

.subject-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.stab {
  padding: 8px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  background: var(--white); color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  transition: all .18s;
}
.stab:hover { border-color: var(--primary); color: var(--primary); }
.stab.active {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(37,99,235,.25);
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

/* 卡片 */
.tutor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .22s;
  border: 1.5px solid var(--gray-150);
  position: relative; overflow: hidden;
}
.tutor-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.tutor-card.type-teacher::after { background: linear-gradient(90deg, var(--primary), #60A5FA); }
.tutor-card.type-demand::after { background: linear-gradient(90deg, var(--green), #34D399); }
.tutor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.card-header { display: flex; gap: 14px; margin-bottom: 14px; }
.card-avatar {
  width: 60px; height: 60px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0; position: relative;
  overflow: hidden; border: 2px solid var(--gray-150);
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.card-meta { flex: 1; min-width: 0; }
.card-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.card-name { font-size: 17px; font-weight: 800; color: var(--gray-900); }
.cbadge {
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.cbadge-t { background: var(--primary-bg); color: var(--primary); }
.cbadge-d { background: var(--green-light); color: #065F46; }
.cbadge-v { background: var(--green-light); color: var(--green); }
.card-school { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.card-subjects { display: flex; gap: 5px; flex-wrap: wrap; }
.spill {
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: var(--primary-bg); color: var(--primary);
}
.spill.alt { background: var(--purple-light); color: var(--purple); }
.spill.grn { background: var(--green-light); color: var(--green); }
.spill.org { background: var(--orange-light); color: var(--orange); }

.card-footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.card-price { font-size: 20px; font-weight: 900; color: var(--red); line-height: 1; }
.card-price small { font-size: 12px; font-weight: 500; color: var(--gray-400); }
.card-dist { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card-rating { font-size: 13px; font-weight: 700; color: var(--gray-700); }
.ctag {
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.ctag-hot { background: #FEF3C7; color: #92400E; }
.ctag-new { background: #ECFDF5; color: #065F46; }
.ctag-exp { background: #EDE9FE; color: var(--purple); }

/* 头像背景颜色集合 - 更鲜艳美观的颜色 */
.ava-blue   { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.ava-green  { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.ava-orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.ava-purple { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.ava-pink   { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.ava-teal   { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.ava-yellow { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

/* 空状态 */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--gray-400);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; font-weight: 500; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 56px 0; background: #F0F4FF; }
.cta-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(37,99,235,.3);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '🎓';
  position: absolute; right: 200px; top: 50%; transform: translateY(-50%);
  font-size: 120px; opacity: .07;
}
.cta-left h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 900; color: white; margin-bottom: 8px; }
.cta-left p { font-size: 15px; color: rgba(255,255,255,.8); }
.cta-right { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 10; }
.cta-btn-white { position: relative; z-index: 10;
  padding: 14px 32px; border-radius: 50px;
  background: white; color: var(--primary);
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: all .2s;
  cursor: pointer;
}
.cta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.cta-btn-outline { position: relative; z-index: 10;
  padding: 14px 32px; border-radius: 50px;
  background: transparent; color: white;
  font-size: 15px; font-weight: 800;
  border: 2px solid rgba(255,255,255,.7);
  transition: all .2s;
  cursor: pointer;
}
.cta-btn-outline:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

/* ============================================================
   LIST PAGE
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1.5px solid var(--gray-150);
}
.filter-left { display: flex; align-items: baseline; gap: 12px; }
.filter-title { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.filter-count { font-size: 13px; color: var(--gray-400); font-weight: 500; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.chip.dropdown { background: white; position: relative; }
.chip.dropdown:hover { background: var(--primary-bg); }

/* 下拉菜单 */
.dropdown-wrap { position: relative; display: inline-block; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 160px; background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 100; overflow: hidden;
}
.dropdown-menu.open { display: block; }
.dropdown-option {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: var(--gray-700); cursor: pointer;
  transition: background .12s;
}
.dropdown-option:hover { background: var(--primary-bg); color: var(--primary); }
.dropdown-option.sel { background: var(--primary-bg); color: var(--primary); font-weight: 700; }

/* ============================================================
   PUBLISH PAGE
   ============================================================ */
.page-heading {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900; color: var(--gray-900);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.pub-tabs {
  display: flex; gap: 0; margin-bottom: 28px;
  background: var(--gray-100); border-radius: var(--radius);
  padding: 4px;
}
.pub-tab {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  color: var(--gray-500); background: transparent;
  transition: all .2s;
}
.pub-tab.active {
  background: var(--white); color: var(--primary);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
}
.form-card-title {
  font-size: 16px; font-weight: 800; color: var(--gray-800);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { margin-top: 4px; margin-bottom: 16px; }
.form-item label { font-size: 13px; font-weight: 700; color: var(--gray-700); }
.form-item input, .form-item select, .form-item textarea {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-size: 14px; color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color .15s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--primary); background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-item textarea { min-height: 100px; resize: vertical; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input { width: 100px; }
.price-row span { color: var(--gray-400); font-weight: 600; }
.tag-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-opt {
  padding: 7px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  cursor: pointer; transition: all .15s;
  user-select: none;
}
.tag-opt:hover { border-color: var(--primary); color: var(--primary); }
.tag-opt.sel {
  background: var(--primary); color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,.2);
}
.submit-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(90deg, var(--primary), #3B82F6);
  color: white; font-size: 16px; font-weight: 800;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  transition: all .2s;
  margin-top: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,.4); }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-hero {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
}
.detail-ava {
  width: 100px; height: 100px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; flex-shrink: 0;
  border: 3px solid var(--gray-150);
  overflow: hidden;
}
.detail-ava img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { font-size: 26px; font-weight: 900; color: var(--gray-900); margin-bottom: 6px; }
.detail-school { font-size: 15px; color: var(--gray-500); margin-bottom: 12px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-tag {
  padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700;
  background: var(--primary-bg); color: var(--primary);
  border: 1px solid var(--primary-light);
}
.detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
  text-align: center;
}
.dstat { padding: 8px; border-right: 1px solid var(--gray-150); }
.dstat:last-child { border-right: none; }
.dstat-val { font-size: 22px; font-weight: 900; color: var(--gray-900); }
.dstat-label { font-size: 12px; color: var(--gray-400); font-weight: 500; margin-top: 4px; }
.detail-section {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
}
.detail-section-title {
  font-size: 16px; font-weight: 800; color: var(--gray-800);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
  display: flex; align-items: center; gap: 8px;
}
.info-table {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 0; border: 1px solid var(--gray-150); border-radius: var(--radius-sm); overflow: hidden;
}
.info-key {
  padding: 10px 14px; background: var(--gray-50);
  font-size: 13px; font-weight: 700; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-150);
}
.info-val {
  padding: 10px 14px; background: var(--white);
  font-size: 14px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-150);
}
.info-key:last-of-type, .info-val:last-of-type { border-bottom: none; }

/* 联系栏 */
.contact-bar {
  display: flex; gap: 12px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
  position: sticky; bottom: 16px; z-index: 50;
}
.btn-msg {
  flex: 1; padding: 14px;
  border: 2px solid var(--primary); color: var(--primary);
  background: var(--white); border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  transition: all .18s;
}
.btn-msg:hover { background: var(--primary-bg); }
.btn-call {
  flex: 1; padding: 14px;
  background: linear-gradient(90deg, var(--primary), #3B82F6);
  color: white; border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
  transition: all .18s;
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }

/* 评价卡片 */
.review-card {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.review-card:last-child { border-bottom: none; padding-bottom: 0; }
.review-ava {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.review-body { flex: 1; }
.review-name { font-weight: 700; font-size: 14px; }
.review-stars { color: #F59E0B; font-size: 13px; margin: 3px 0; }
.review-text { font-size: 13px; color: var(--gray-600); line-height: 1.7; }
.review-date { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ============================================================
   MESSAGES PAGE
   ============================================================ */
.msg-list { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-150); }
.msg-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background .12s;
  position: relative;
}
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: var(--gray-50); }
.msg-ava {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  border: 2px solid var(--gray-150);
}
.msg-body { flex: 1; min-width: 0; }
.msg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.msg-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.msg-time { font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.msg-preview { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-badge {
  min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--red); color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* 聊天窗口 */
.chat-window {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-150);
  height: 520px; margin-top: 20px; overflow: hidden;
}
.chat-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-150);
  background: var(--gray-50);
}
.chat-hd-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-hd-name { font-size: 15px; font-weight: 700; }
.chat-hd-sub { font-size: 12px; color: var(--gray-400); }
.chat-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .15s; }
.chat-close:hover { background: var(--gray-200); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; background: #F7F9FF; }
.chat-bubble-wrap { display: flex; gap: 10px; align-items: flex-end; }
.chat-bubble-wrap.mine { flex-direction: row-reverse; }
.bubble-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.chat-bubble {
  max-width: 65%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.6;
}
.chat-bubble-wrap:not(.mine) .chat-bubble { background: white; color: var(--gray-800); border-radius: 2px 14px 14px 14px; box-shadow: var(--shadow-xs); }
.chat-bubble-wrap.mine .chat-bubble { background: var(--primary); color: white; border-radius: 14px 2px 14px 14px; }
.bubble-time { font-size: 11px; color: var(--gray-400); white-space: nowrap; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--gray-150); background: var(--white); }
.chat-input-row input { flex: 1; padding: 10px 16px; border-radius: 50px; border: 1.5px solid var(--gray-200); font-size: 14px; background: var(--gray-50); transition: border-color .15s; }
.chat-input-row input:focus { border-color: var(--primary); background: white; }
.chat-send-btn { padding: 10px 20px; border-radius: 50px; background: var(--primary); color: white; font-size: 14px; font-weight: 700; transition: all .15s; }
.chat-send-btn:hover { background: var(--primary-dark); }

/* ============================================================
   PROFILE / MINE PAGE
   ============================================================ */
.profile-banner {
  background: linear-gradient(135deg, #1E3A8A, #2563EB, #3B82F6);
  padding: 40px 32px 32px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.profile-name { font-size: 20px; font-weight: 800; color: white; }
.profile-desc { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }
.profile-banner .btn-primary { margin-left: auto; background: rgba(255,255,255,.9); color: var(--primary); border-radius: 50px; padding: 10px 24px; }
.profile-stats-bar {
  display: flex; background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
  border: 1.5px solid var(--gray-150); border-top: none;
}
.ps-item { flex: 1; padding: 16px; text-align: center; }
.ps-num { font-size: 20px; font-weight: 900; color: var(--primary); }
.ps-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.ps-div { width: 1px; background: var(--gray-150); margin: 12px 0; }
.profile-menu-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 500px) { .profile-menu-grid { grid-template-columns: repeat(4,1fr); } }
.pm-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 12px; text-align: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  transition: all .18s;
}
.pm-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.pm-icon { font-size: 26px; margin-bottom: 8px; }
.profile-menus { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-150); overflow: hidden; }
.pm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  transition: background .12s;
}
.pm-row:last-child { border-bottom: none; }
.pm-row:hover { background: var(--gray-50); color: var(--primary); }
.pm-arrow { font-size: 18px; color: var(--gray-300); }
.pm-tag { font-size: 12px; color: var(--red); background: var(--red-light); padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0F172A; color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  display: none;
}
@media (min-width: 768px) { .site-footer { display: block; } }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 13px; margin-top: 12px; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer-col h4 { font-size: 14px; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.5); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: rgba(255,255,255,.3); text-align: center;
}

/* ============================================================
   MOBILE TABBAR
   ============================================================ */
.mobile-tabbar {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
@media (max-width: 767px) {
  .mobile-tabbar { display: flex; }
  body { padding-bottom: 60px; }
}
.mtab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; transition: color .15s;
  color: var(--gray-400); font-size: 11px; font-weight: 600;
}
.mtab.active { color: var(--primary); }
.mtab-pub { position: relative; }
.mtab-pub-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  color: white; font-size: 28px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  margin-top: -20px;
  line-height: 1;
}

/* ============================================================
   CITY MODAL
   ============================================================ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 2000;
  backdrop-filter: blur(2px);
}
.overlay.show { display: block; }
.city-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(680px, 94vw); max-height: 80vh;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 2001; flex-direction: column; overflow: hidden;
}
.city-modal.show { display: flex; }
.city-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1.5px solid var(--gray-150);
}
.city-modal-hd h3 { font-size: 18px; font-weight: 800; color: var(--gray-900); }
.city-modal-hd button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-500);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.city-modal-hd button:hover { background: var(--gray-200); }
.city-modal-body {
  overflow-y: auto;
  padding: 16px 24px 24px;
  max-height: calc(80vh - 80px);
  -webkit-overflow-scrolling: touch;
}
.city-locate {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--primary-bg);
  border-radius: var(--radius); cursor: pointer;
  margin-bottom: 20px;
  color: var(--primary); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--primary-light);
  transition: background .15s;
}
.city-locate:hover { background: var(--primary-light); }
.city-group-label {
  font-size: 12px; font-weight: 800; color: var(--gray-400);
  letter-spacing: 2px; margin-bottom: 10px; margin-top: 20px;
  text-transform: uppercase;
}
.city-group-label:first-of-type { margin-top: 0; }
.hot-cities, .city-province-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.city-btn-opt {
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  transition: all .15s;
}
.city-btn-opt:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.city-btn-opt.cur { background: var(--primary); color: white; border-color: var(--primary); }
.city-province-block { margin-bottom: 16px; }
.city-province-name {
  font-size: 12px; font-weight: 700; color: var(--gray-500);
  margin-bottom: 8px; letter-spacing: 1px;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.success-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(400px, 92vw);
  background: var(--white); border-radius: var(--radius-xl);
  padding: 40px 32px; text-align: center;
  box-shadow: var(--shadow-xl);
  z-index: 2001;
}
.success-modal.show { display: block; }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-modal h2 { font-size: 22px; font-weight: 900; color: var(--gray-900); margin-bottom: 10px; }
.success-modal p { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; line-height: 1.7; }
.success-btns { display: flex; gap: 12px; }
.success-btns .btn-outline, .success-btns .btn-primary { flex: 1; padding: 12px; font-size: 14px; font-weight: 700; border-radius: var(--radius); }
.success-btns .btn-outline { border: 2px solid var(--primary); color: var(--primary); background: white; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(17,24,39,.88); color: white;
  padding: 12px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: all .25s; white-space: nowrap;
  max-width: 90vw; text-align: center;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   AUTH MODAL (登录/注册)
   ============================================================ */
.auth-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(420px, 90vw);
  background: var(--white); border-radius: var(--radius-xl);
  padding: 0; box-shadow: var(--shadow-xl);
  z-index: 2001; overflow: hidden;
}
.auth-modal.show { display: block; }
.auth-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-150);
  background: linear-gradient(135deg, #F0F9FF, #EFF6FF);
}
.auth-tabs { display: flex; gap: 24px; }
.auth-tab {
  font-size: 16px; font-weight: 700; color: var(--gray-400);
  padding: 6px 0; border: none; background: none; cursor: pointer;
  position: relative; transition: color .15s;
}
.auth-tab.active { color: var(--primary); }
.auth-tab.active::after {
  content: ''; position: absolute; bottom: -20px; left: 0; right: 0;
  height: 3px; background: var(--primary); border-radius: 3px 3px 0 0;
}
.auth-close {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gray-500); border: none; cursor: pointer;
  transition: background .15s;
}
.auth-close:hover { background: rgba(0,0,0,.1); }

.auth-body { padding: 32px 28px 28px; }
.auth-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); margin-bottom: 14px;
  transition: border-color .15s;
}
.auth-input-wrap:focus-within { border-color: var(--primary); }
.auth-input-wrap svg { color: var(--gray-400); flex-shrink: 0; }
.auth-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 15px;
  color: var(--gray-900); background: transparent;
}
.auth-input-wrap input::placeholder { color: var(--gray-400); }

.auth-tips {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; font-size: 13px;
}
.auth-tips input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }

.auth-submit {
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: var(--primary); color: white;
  font-size: 16px; font-weight: 800; border: none;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.auth-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }

.auth-divider {
  display: flex; align-items: center; margin: 20px 0;
  font-size: 13px; color: var(--gray-400);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }



/* ============================================================
   MISC
   ============================================================ */
.distance-tip {
  font-size: 12px; font-weight: 500; color: var(--gray-400);
  background: var(--gray-100); padding: 3px 10px; border-radius: 50px;
  margin-left: 8px;
}

/* 页面标题 */
.page-heading {
  font-size: clamp(22px,4vw,32px); font-weight: 900;
  color: var(--gray-900); margin-bottom: 28px;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* 图片占位符（SVG头像） */
.ava-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6em; font-weight: 900;
  text-transform: uppercase;
}

/* ============================================================
   STATIC PAGES (关于我们、联系我们、帮助中心、隐私政策)
   ============================================================ */
.static-page-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--primary-bg), var(--primary-light));
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.static-page-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.static-page-header p {
  font-size: 16px;
  color: var(--gray-600);
}
.static-page-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

/* 关于我们页面 */
.about-section {
  margin-bottom: 48px;
}
.about-section:last-child {
  margin-bottom: 0;
}
.about-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-section p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.about-stat-item {
  text-align: center;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.about-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}
.about-stat-label {
  font-size: 14px;
  color: var(--gray-500);
}
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}
.about-feature {
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.about-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.about-feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.about-feature p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.about-timeline {
  margin-top: 24px;
}
.about-timeline-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.about-timeline-item:last-child {
  border-bottom: none;
}
.about-timeline-year {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  min-width: 60px;
}
.about-timeline-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* 联系我们页面 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: all .15s;
}
.contact-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.contact-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.contact-info {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-time {
  font-size: 13px;
  color: var(--gray-500);
}
.contact-faq h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* 帮助中心页面 */
.help-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.help-tab {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.help-tab:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}
.help-tab.active {
  background: var(--primary);
  color: white;
}
.help-content {
  display: none;
}
.help-content.active {
  display: block;
}
.help-section {
  margin-bottom: 32px;
}
.help-section:last-child {
  margin-bottom: 0;
}
.help-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.help-section ol,
.help-section ul {
  padding-left: 24px;
  color: var(--gray-600);
  line-height: 2;
}
.help-section li {
  font-size: 15px;
}

/* 隐私政策页面 */
.privacy-section {
  margin-bottom: 32px;
}
.privacy-section:last-child {
  margin-bottom: 0;
}
.privacy-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.privacy-section p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}
.privacy-section ul {
  padding-left: 24px;
  color: var(--gray-600);
  line-height: 2;
}
.privacy-section li {
  font-size: 15px;
}
.privacy-section strong {
  color: var(--gray-800);
}

/* 移动端基础适配修复 */
@media (max-width: 767px) {
  /* 容器适配 */
  .container {
    padding: 0 16px;
  }
  
  /* Hero区域适配 */
  .hero-section {
    padding: 40px 0 60px;
  }
  .hero-title {
    font-size: 26px;
    padding: 0 16px;
  }
  .hero-subtitle {
    font-size: 14px;
    padding: 0 16px;
  }
  
  /* 搜索框适配 */
  .hero-search {
    flex-direction: column;
    border-radius: var(--radius);
    margin: 0 16px 16px;
    max-width: none;
  }
  .search-city {
    width: 100%;
    justify-content: center;
    border-right: none;
    border-bottom: 1.5px solid var(--gray-200);
    padding: 12px 16px;
  }
  .search-input {
    width: 100%;
    padding: 14px 16px;
    text-align: center;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
  
  /* 热搜标签适配 */
  .hero-tags {
    padding: 0 16px;
    font-size: 12px;
  }
  .hero-tags a {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  /* 轮播适配 */
  .swiper-slide {
    padding: 0 55px;
    height: 180px;
  }
  .slide-text h2 {
    font-size: 18px;
  }
  .slide-text p {
    font-size: 13px;
  }
  
  /* 快捷入口适配 */
  .quick-item {
    padding: 12px 4px;
  }
  .quick-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .quick-item span {
    font-size: 12px;
  }
  
  /* 统计区域适配 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-item {
    padding: 16px 12px;
  }
  .stat-num {
    font-size: 24px;
  }
  
  /* 学校卡片适配 */
  .school-card {
    padding: 16px 12px;
  }
  .school-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .school-name {
    font-size: 13px;
  }
  
  /* CTA区域适配 */
  .cta-box {
    padding: 32px 24px;
    text-align: center;
  }
  .cta-left h2 {
    font-size: 20px;
  }
  .cta-right {
    width: 100%;
    justify-content: center;
  }
  
  /* 筛选栏适配 */
  .filter-bar {
    padding: 16px;
  }
  .filter-title {
    font-size: 18px;
  }
  .filter-chips {
    width: 100%;
  }
  .chip {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  /* 详情页适配 */
  .detail-hero {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
  .detail-ava {
    margin: 0 auto;
  }
  .detail-actions {
    flex-direction: column;
  }
  .btn-call, .btn-chat {
    width: 100%;
    justify-content: center;
  }
  
  /* 聊天窗口适配 */
  .chat-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    margin: 0;
    border-radius: 0;
    z-index: 1500;
  }
  
  /* 个人中心适配 */
  .profile-banner {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
  .profile-avatar {
    margin: 0 auto;
  }
  .profile-stats-bar {
    padding: 16px;
  }
  .ps-num {
    font-size: 18px;
  }
  .ps-label {
    font-size: 12px;
  }
  .profile-menu-grid {
    gap: 8px;
  }
  .pm-card {
    padding: 16px 8px;
    font-size: 12px;
  }
  .pm-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .pm-row {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  /* 发布页面适配 */
  .pub-tabs {
    padding: 0 16px;
  }
  .pub-tab {
    padding: 12px 20px;
    font-size: 14px;
  }
  .pub-form {
    padding: 20px 16px;
  }
  
  /* 底部适配 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand .logo {
    justify-content: center;
  }
  
  /* 表单适配 */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-item label {
    font-size: 13px;
  }
  .form-item input,
  .form-item select,
  .form-item textarea {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  /* 消息列表适配 */
  .msg-item {
    padding: 14px 16px;
  }
  .msg-avatar {
    width: 44px;
    height: 44px;
  }
  .msg-name {
    font-size: 14px;
  }
  .msg-preview {
    font-size: 12px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 380px) {
  .hero-title {
    font-size: 22px;
  }
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .quick-item {
    padding: 8px 2px;
  }
  .quick-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .quick-item span {
    font-size: 11px;
  }
  .stat-num {
    font-size: 20px;
  }
  .card-avatar {
    width: 52px;
    height: 52px;
  }
  .card-name {
    font-size: 15px;
  }
}

/* 移动端头部适配 - 字体缩小 */
@media (max-width: 767px) {
  .logo-text { font-size: 16px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .city-btn { padding: 5px 8px; font-size: 12px; }
  .btn-outline { padding: 6px 12px; font-size: 12px; }
  .btn-primary { padding: 6px 12px; font-size: 12px; }
  .header-tools { gap: 6px; }
  .header-inner { padding: 0 12px; gap: 8px; }
}

/* 超小屏幕进一步缩小 */
@media (max-width: 380px) {
  .logo-text { font-size: 14px; }
  .logo-icon { width: 28px; height: 28px; font-size: 12px; }
  .city-btn { padding: 4px 6px; font-size: 11px; }
  .btn-outline { padding: 5px 10px; font-size: 11px; }
  .btn-primary { padding: 5px 10px; font-size: 11px; }
}

/* 移动端静态页面适配 */
@media (max-width: 767px) {
  .static-page-header {
    padding: 24px 16px;
    margin-bottom: 24px;
  }
  .static-page-header h1 {
    font-size: 24px;
  }
  .static-page-content {
    padding: 24px 16px;
  }
  .about-section h2 {
    font-size: 18px;
  }
  .about-stat-num {
    font-size: 24px;
  }
  .contact-card {
    padding: 24px 16px;
  }
  .contact-info {
    font-size: 16px;
  }
  .help-tabs {
    gap: 8px;
  }
  .help-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ============================================================
   PAGE HEADER (页面通用头部)
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.page-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .15s;
}
.back-btn:hover {
  background: var(--gray-200);
  color: var(--primary);
}

/* ============================================================
   实名认证页面
   ============================================================ */
.verify-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.verify-status {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.verify-status.verified {
  background: linear-gradient(135deg, var(--green-light), #D1FAE5);
}
.verify-status.pending {
  background: linear-gradient(135deg, var(--accent-light), #FEF3C7);
}
.verify-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.verify-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.verify-status.verified .verify-title {
  color: var(--green);
}
.verify-status.pending .verify-title {
  color: var(--accent);
}
.verify-desc {
  font-size: 14px;
  color: var(--gray-500);
}
.verify-form .form-group {
  margin-bottom: 20px;
}
.verify-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.verify-form .required {
  color: var(--red);
}
.verify-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color .15s;
}
.verify-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}
.upload-box {
  border: 3px dashed var(--primary);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--gray-50) 100%);
  position: relative;
  overflow: hidden;
}
.upload-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity .2s;
}
.upload-box:hover {
  border-color: var(--primary-dark);
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.15);
}
.upload-box:hover::before {
  opacity: 0.02;
}
.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.upload-placeholder div:nth-child(2) {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.upload-placeholder div:nth-child(3) {
  font-size: 13px;
  color: var(--gray-500);
}
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.upload-tip {
  font-size: 12px;
  color: var(--gray-400);
}
.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
}
.verify-notice {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.notice-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.verify-notice ul {
  padding-left: 18px;
  margin: 0;
}
.verify-notice li {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}
.verify-submit {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}
.verify-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
}
.verify-submit:active {
  transform: translateY(0);
}

/* ============================================================
   我的发布页面
   ============================================================ */
.my-posts-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 12px;
}
.my-posts-tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.my-posts-tab:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}
.my-posts-tab.active {
  background: var(--primary);
  color: white;
}
.my-posts-content {
  display: none;
}
.my-posts-content.active {
  display: block;
}
.my-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.my-post-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
}
.my-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.my-post-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-bg);
  color: var(--primary);
}
.my-post-type.teacher {
  background: var(--green-light);
  color: var(--green);
}
.my-post-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.my-post-status.active {
  background: var(--green-light);
  color: var(--green);
}
.my-post-status.closed {
  background: var(--gray-100);
  color: var(--gray-500);
}
.my-post-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.my-post-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.my-post-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}
.my-post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.my-post-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-700);
  transition: all .15s;
}
.my-post-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.my-post-btn.edit {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
}
.my-post-btn.close {
  background: var(--accent-light);
  border-color: #FDE68A;
  color: #92400E;
}
.my-post-btn.delete {
  background: var(--red-light);
  border-color: #FECACA;
  color: var(--red);
}
.my-posts-empty {
  text-align: center;
  padding: 60px 24px;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.empty-text {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.my-posts-create {
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   我的评价页面
   ============================================================ */
.my-reviews-summary {
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.review-score {
  text-align: center;
  min-width: 120px;
}
.score-num {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.score-stars {
  font-size: 20px;
  margin-bottom: 4px;
}
.score-text {
  font-size: 13px;
  opacity: 0.9;
}
.review-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  gap: 16px;
  min-width: 200px;
}
.review-stat {
  text-align: center;
}
.review-stat-num {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}
.review-stat-label {
  font-size: 13px;
  opacity: 0.9;
}
.my-reviews-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 12px;
}
.my-reviews-tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.my-reviews-tab:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}
.my-reviews-tab.active {
  background: var(--primary);
  color: white;
}
.my-reviews-content {
  display: none;
}
.my-reviews-content.active {
  display: block;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.reviewer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.review-meta {
  text-align: right;
}
.review-stars {
  font-size: 14px;
  margin-bottom: 4px;
}
.review-date {
  font-size: 12px;
  color: var(--gray-400);
}
.review-content {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-bg);
  color: var(--primary);
}

/* 移动端适配 */
@media (max-width: 767px) {
  .page-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .page-header h1 {
    font-size: 18px;
  }
  .back-btn {
    width: 32px;
    height: 32px;
  }
  
  /* 实名认证 */
  .verify-container {
    padding: 16px;
  }
  .verify-status {
    padding: 24px 16px;
  }
  .verify-icon {
    font-size: 40px;
  }
  .verify-title {
    font-size: 18px;
  }
  .upload-box {
    padding: 32px 16px;
    border-width: 2px;
  }
  .upload-icon {
    font-size: 40px;
  }
  .upload-placeholder div:nth-child(2) {
    font-size: 15px;
  }
  .verify-submit {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  /* 我的发布 */
  .my-posts-tabs {
    gap: 8px;
  }
  .my-posts-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
  .my-post-item {
    padding: 16px;
  }
  .my-post-title {
    font-size: 15px;
  }
  .my-post-actions {
    width: 100%;
  }
  .my-post-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
  }
  
  /* 我的评价 */
  .my-reviews-summary {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .review-score {
    min-width: auto;
  }
  .score-num {
    font-size: 36px;
  }
  .review-stats {
    width: 100%;
    min-width: auto;
  }
  .my-reviews-tabs {
    gap: 8px;
  }
  .my-reviews-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
  .review-header {
    flex-direction: column;
    gap: 8px;
  }
  .review-meta {
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
  }
}

/* ============================================================
   我的收藏页面
   ============================================================ */
.my-favorites-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 12px;
}
.my-favorites-tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.my-favorites-tab:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}
.my-favorites-tab.active {
  background: var(--primary);
  color: white;
}
.my-favorites-content {
  display: none;
}
.my-favorites-content.active {
  display: block;
}
.my-favorites-empty {
  text-align: center;
  padding: 60px 20px;
}
.my-favorites-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.my-favorites-empty .empty-text {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.my-favorites-create {
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.my-favorites-create:hover {
  background: var(--primary-dark);
}
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
  z-index: 10;
}
.fav-btn:hover {
  transform: scale(1.1);
}
.fav-btn.active {
  color: var(--red);
}

/* ============================================================
   我的订单页面
   ============================================================ */
.my-orders-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 12px;
}
.my-orders-tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.my-orders-tab:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}
.my-orders-tab.active {
  background: var(--primary);
  color: white;
}
.my-orders-content {
  display: none;
}
.my-orders-content.active {
  display: block;
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-150);
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.order-id {
  font-size: 13px;
  color: var(--gray-400);
}
.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.order-status.ongoing {
  background: var(--primary-bg);
  color: var(--primary);
}
.order-status.completed {
  background: var(--green-light);
  color: var(--green);
}
.order-status.cancelled {
  background: var(--gray-100);
  color: var(--gray-500);
}
.order-body {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.order-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.order-info {
  flex: 1;
}
.order-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.order-detail {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}
.order-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
}
.order-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.order-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
.order-btn.primary {
  background: var(--primary);
  color: white;
}
.order-btn.primary:hover {
  background: var(--primary-dark);
}
.order-btn.secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.order-btn.secondary:hover {
  background: var(--gray-200);
}
.my-orders-empty {
  text-align: center;
  padding: 60px 20px;
}
.my-orders-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.my-orders-empty .empty-text {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.my-orders-create {
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.my-orders-create:hover {
  background: var(--primary-dark);
}

/* 关注老师按钮 */
.follow-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  background: white;
  color: var(--primary);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.follow-btn:hover {
  background: var(--primary-bg);
}
.follow-btn.active {
  background: var(--primary);
  color: white;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .my-favorites-tabs,
  .my-orders-tabs {
    gap: 8px;
  }
  .my-favorites-tab,
  .my-orders-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
  .order-body {
    flex-direction: column;
    gap: 12px;
  }
  .order-actions {
    width: 100%;
  }
  .order-btn {
    flex: 1;
    text-align: center;
  }
}
