/* ============================================================
   成考查询系统 - 紫色主题 H5 v2
   taste-skill: Cinematic, breathing layout, no emoji, high contrast
   ============================================================ */

:root {
  --purple-deep: #3b0764;
  --purple-main: #6d28d9;
  --purple-mid: #7c3aed;
  --purple-light: #a78bfa;
  --purple-pale: #ede9fe;
  --purple-bg: #f5f3ff;
  --accent-gold: #f59e0b;
  --text-primary: #1e1b4b;
  --text-secondary: #4c4882;
  --text-muted: #7c7ab0;
  --white: #ffffff;
  --border: #e5e1f5;
  --card-bg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 6px rgba(109, 40, 217, .08);
  --shadow-md: 0 4px 20px rgba(109, 40, 217, .13);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--purple-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

/* ============================================================
   HEADER - Cinematic Center (taste-skill) - 丰富背景
   ============================================================ */
.header {
  position: relative;
  background: linear-gradient(155deg, #1a0540 0%, #3b0764 30%, #5b21b6 65%, #6d28d9 100%);
  padding: 52px 20px 0;
  overflow: hidden;
}

/* 多层光晕 + 几何纹理 */
.header-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    /* 顶部中央白色散射 */
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(216, 180, 254, .22) 0%, transparent 65%),
    /* 左下暖紫光斑 */
    radial-gradient(ellipse 55% 50% at -5% 100%, rgba(139, 92, 246, .35) 0%, transparent 55%),
    /* 右上冷光 */
    radial-gradient(ellipse 45% 40% at 105% 10%, rgba(167, 139, 250, .2) 0%, transparent 55%),
    /* 右下深粉晕 */
    radial-gradient(ellipse 40% 35% at 95% 95%, rgba(192, 132, 252, .18) 0%, transparent 50%);
  pointer-events: none;
}

/* 几何纹理：细密点阵 */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* 斜向光束装饰 */
.header::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -40px;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(118deg,
      transparent 0px,
      transparent 38px,
      rgba(255, 255, 255, .025) 38px,
      rgba(255, 255, 255, .025) 39px);
  pointer-events: none;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 28px;
}

.header-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.header-h1 {
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.header-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

/* stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, .1);
  border-radius: 14px 14px 0 0;
  padding: 14px 8px;
  margin-top: 4px;
  backdrop-filter: blur(8px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.stat-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, .2);
}

/* ============================================================
   MARKETING ZONE  （Banner + Shortcut 合为一块白区）
   ============================================================ */
.consult-banner-wrap {
  padding: 16px 16px 12px;
  background: var(--white);
}

.consult-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(109, 40, 217, .28);
}

.consult-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.consult-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .7);
  margin-top: 3px;
}

.consult-btn {
  background: var(--white);
  color: var(--purple-main);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}

.consult-btn:active {
  opacity: .85;
}


/* ============================================================
   SHORTCUT GRID - 功能入口 4宫格
   ============================================================ */
.shortcut-grid-wrap {
  background: var(--white);
  padding: 2px 16px 20px;
  box-shadow: 0 4px 16px rgba(109, 40, 217, .09);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 12px;
  background: var(--purple-bg);
  border-radius: var(--radius-md);
  border: 1.5px solid #c4b5fd;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(109, 40, 217, .08);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 88px;
}

.shortcut-item:hover {
  background: var(--purple-pale);
  border-color: var(--purple-main);
  box-shadow: 0 3px 12px rgba(109, 40, 217, .15);
}

.shortcut-item:active {
  transform: scale(0.93);
  background: var(--purple-pale);
  border-color: var(--purple-main);
}

.shortcut-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(109, 40, 217, .12);
}

.shortcut-icon svg {
  width: 30px;
  height: 30px;
}

.shortcut-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ============================================================
   SEARCH & FILTER
   ============================================================ */
.global-search-wrap {
  background: var(--white);
  padding: 14px 16px 14px;
  box-shadow: 0 3px 12px rgba(109, 40, 217, .12);
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid var(--purple-pale);
}

.global-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0 14px;
  transition: border-color .2s;
}

.global-search-box:focus-within {
  border-color: var(--purple-main);
}

.search-icon-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple-mid);
  background: var(--purple-pale);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.global-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.global-search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--purple-pale);
  padding: 3px 8px;
  border-radius: 4px;
}

/* search result panel */
.search-result-panel {
  background: var(--white);
  position: sticky;
  top: 68px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 0 0 16px;
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.search-close-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-main);
  background: var(--purple-pale);
  padding: 4px 12px;
  border-radius: 20px;
}

/* tab nav */
.tab-nav {
  display: flex;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(109, 40, 217, .07);
}

.tab-btn {
  flex: 1;
  padding: 13px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

.tab-btn.active {
  color: var(--purple-main);
  border-bottom-color: var(--purple-main);
}

/* filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(109, 40, 217, .05);
}

.filter-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--purple-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 26px 7px 10px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  max-width: 120px;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--purple-main);
}

.select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--purple-mid);
  pointer-events: none;
}

.filter-input-wrap {
  flex: 1;
  min-width: 0;
}

.filter-major-wrap {
  width: 100%;
}

.filter-major-select {
  max-width: none;
  width: 100%;
}

.filter-reset-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-main);
  background: var(--purple-pale);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* result meta */
.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  border-left: 3px solid var(--purple-main);
  margin: 10px 16px 2px;
  background: var(--purple-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.result-count {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

.result-hint {
  font-size: 11.5px;
  color: var(--purple-mid);
  font-weight: 600;
}

/* main */
.main-content {
  padding: 0 0 96px;
  background: var(--purple-bg);
}

/* 内容区 Tab 切换淡入 */
.main-content.fade-in {
  animation: contentFadeIn 0.22s ease-out both;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分组列表入场 stagger */
.school-group {
  animation: groupIn 0.3s cubic-bezier(0.2, 0, 0, 1) both;
}

.school-group:nth-child(1) {
  animation-delay: 0ms;
}

.school-group:nth-child(2) {
  animation-delay: 40ms;
}

.school-group:nth-child(3) {
  animation-delay: 80ms;
}

.school-group:nth-child(4) {
  animation-delay: 110ms;
}

.school-group:nth-child(n+5) {
  animation-delay: 130ms;
}

@keyframes groupIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* major-row 点击涟漪感 */
.major-row {
  position: relative;
  overflow: hidden;
}

/* 学校 count badge 微悬浮 */
.school-group-header:hover .school-group-count {
  background: var(--purple-main);
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}


/* ============================================================
   SCHOOL GROUP LIST
   ============================================================ */
.school-group-list {
  padding: 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 学校分组块 */
.school-group {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 学校标题行 */
.school-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background .15s;
}

.school-group-header:hover {
  background: var(--purple-bg);
}

.school-group-header:active {
  background: var(--purple-pale);
  transform: scale(0.99);
}

.school-group-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
}

.school-group-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--purple-mid);
  background: var(--purple-pale);
  padding: 3px 9px;
  border-radius: 20px;
  margin-right: 10px;
}

.school-group-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform .25s;
  display: inline-block;
}

.school-group.open .school-group-arrow {
  transform: rotate(180deg);
}

/* 专业行列表 - max-height 平滑展开 */
.school-group-body {
  max-height: 0;
  overflow: hidden;
  border-top: 0px solid var(--border);
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    border-top-width 0.1s ease;
}

.school-group.open .school-group-body {
  max-height: 3000px;
  border-top-width: 1px;
  transition:
    max-height 0.48s cubic-bezier(0.2, 0, 0, 1),
    border-top-width 0.1s ease;
}

.major-row {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}

.major-row:last-child {
  border-bottom: none;
}

.major-row:active {
  background: var(--purple-bg);
}

.major-row-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.major-row-level {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
  background: var(--purple-pale);
  color: var(--purple-main);
}

.major-row-tuition {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  flex-shrink: 0;
}

.major-row-arrow {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.major-row-policy {
  font-size: 10.5px;
  font-weight: 700;
  color: #be185d;
  background: #fdf2f8;
  padding: 2px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* skeleton */
.skeleton-group {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.skel-line {
  background: linear-gradient(90deg, #ede9fe 25%, #f5f3ff 50%, #ede9fe 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.4s infinite;
}

.skel-h {
  height: 18px;
  width: 50%;
  margin-bottom: 10px;
}

.skel-r {
  height: 13px;
  width: 80%;
  margin-bottom: 7px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* empty */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--border);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
}


/* ============================================================
   MODAL - 详情弹窗
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, .52);
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.36s cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
  padding-right: 10px;
}

.modal-close {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--purple-pale);
  padding: 5px 14px;
  border-radius: 6px;
}

.modal-body {
  overflow-y: auto;
  padding: 16px 20px 32px;
  -webkit-overflow-scrolling: touch;
}

.modal-section {
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-main);
  letter-spacing: .8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-section-title::before {
  content: '';
  width: 3px;
  height: 13px;
  background: var(--purple-main);
  border-radius: 2px;
  display: inline-block;
}

.modal-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  background: var(--purple-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.modal-value.policy-text {
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 3px solid var(--purple-light);
}

.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-chip {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.tag-tuition {
  background: #ecfdf5;
  color: #059669;
}

.tag-material {
  background: #fff7ed;
  color: #d97706;
}

/* ============================================================
   QR CODE MODAL
   ============================================================ */
.qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, .6);
  z-index: 300;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-overlay.open {
  display: flex;
}

.qr-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  animation: fadeScale 0.3s cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes fadeScale {
  from {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.qr-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 18px;
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
}

.qr-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
}

.qr-close {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-main);
  background: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
}

.qr-body {
  padding: 20px;
  text-align: center;
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid var(--border);
  margin-bottom: 14px;
}

.qr-tip {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.qr-tip2 {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SHORTCUT MODAL CONTENT
   ============================================================ */

/* 通用提示文字 */
.sc-tip {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
  padding: 8px 12px;
  background: var(--purple-bg);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ---- 证书相册 ---- */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: block;
  background: var(--purple-bg);
}

/* ---- 在读福利卡片 ---- */
.welfare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.wf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--purple-bg);
  flex-wrap: wrap;
}

.wf-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.wf-badge.tax {
  background: #059669;
}

.wf-badge.alipay {
  background: #2563eb;
}

.wf-badge.hdl {
  background: #dc2626;
}

.wf-badge.jd {
  background: #d97706;
}

.wf-badge.apple {
  background: #374151;
}

.wf-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.wf-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-mid);
  background: var(--purple-pale);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.wf-body {
  padding: 10px 14px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.wf-body b {
  color: var(--purple-main);
  font-weight: 700;
}

/* ---- 报考流程时间轴 ---- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pt-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pt-row:last-child {
  border-bottom: none;
}

.pt-no {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-main);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pt-row:nth-child(n+11) .pt-no {
  background: var(--purple-light);
}

.pt-info {
  flex: 1;
  min-width: 0;
}

.pt-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pt-time {
  font-size: 11.5px;
  color: var(--purple-mid);
  font-weight: 600;
  margin-bottom: 3px;
}

.pt-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- 服务流程竖轴 ---- */
.service-flow {
  display: flex;
  flex-direction: column;
}

.sf-row {
  display: flex;
  gap: 0;
}

.sf-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  flex-shrink: 0;
  padding-top: 4px;
}

.sf-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple-main);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--purple-main);
  flex-shrink: 0;
}

.sf-dot-last {
  background: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.sf-line {
  width: 2px;
  flex: 1;
  background: var(--purple-pale);
  margin: 4px 0;
  min-height: 16px;
}

.sf-content {
  flex: 1;
  padding: 0 0 16px 12px;
}

.sf-step {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sf-time {
  font-size: 11.5px;
  color: var(--purple-mid);
  font-weight: 600;
  margin-bottom: 4px;
}

.sf-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   BOTTOM FLOAT CONSULT BAR
   ============================================================ */
.float-consult-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.float-consult-bar.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.float-consult-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #3b0764 0%, #6d28d9 100%);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(109, 40, 217, .3);
}

.float-consult-text {
  flex: 1;
  min-width: 0;
}

.float-consult-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.float-consult-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .65);
  margin-top: 2px;
}

.float-consult-btn {
  background: var(--white);
  color: var(--purple-main);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}

.float-consult-btn:active {
  opacity: .85;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .school-group-list {
    padding: 12px 20px 20px;
  }

  .header {
    padding: 60px 24px 0;
  }

  .modal-box {
    max-width: 520px;
    border-radius: 20px;
  }

  .modal-overlay {
    align-items: center;
  }
}

@media (min-width: 768px) {

  .main-content,
  .filter-bar,
  .result-meta,
  .global-search-wrap,
  .consult-banner-wrap,
  .shortcut-grid-wrap,
  .tab-nav {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .main-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}