/* ==========================================================================
 * 畅学村 找外教 v4（2026-11-16，按找外教版式图）
 * Banner 沿用原样式；以下为：筛选栏、4 列竖卡、深蓝平台带、两张引导卡、底部滚动条标题。
 * 加载顺序：main → hero-orbit → v3 → v7 → polish → teachers-v4（本文件最后，覆盖前面同名属性）
 * ========================================================================== */

.t4-wrap { max-width: 1004px; } /* 940 内容 + 两侧 32 内边距 */

/* ---------- 筛选 ---------- */
.v3-sheet.t4-sheet { background: #F7F8FA; border-radius: 0; margin-top: 0; box-shadow: none; }
.t4-list { padding: 56px 0 72px; }
.t4-filters { display: block; margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
.t4-tabs, .t4-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.t4-chip.cxc-chip {
  min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none;
  font-size: 13px; font-weight: 600; color: #3D4A5C; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.t4-chip.cxc-chip:hover { background: #EEF0F5; }
.t4-chip.cxc-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #FFC27A 0%, #F59B3D 100%);
  color: #3A1D04; font-weight: 700;
  box-shadow: 0 4px 10px rgba(245, 155, 61, 0.28);
}
.t4-chip.cxc-chip:focus-visible { outline: 2px solid #F59B3D; outline-offset: 2px; }

.t4-search {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 12px; padding: 0 16px; height: 44px;
  border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px #EBEDF2, 0 2px 6px rgba(16, 24, 40, 0.03);
}
.t4-search:focus-within { box-shadow: 0 0 0 2px #F7B26A; }
.t4-search svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: #3D4A5C; stroke-width: 2; stroke-linecap: round; }
.t4-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #0E1A2B; }
.t4-search input::placeholder { color: #9AA3B2; }

.t4-listbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 40px; }
.t4-listbar__t { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; color: #0E1A2B; }
.t4-listbar__tools { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #5A6372; }
.t4-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.t4-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t4-switch i { position: relative; width: 30px; height: 16px; border-radius: 999px; background: #E2E5EC; transition: background-color 0.2s ease; }
.t4-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #1EC87A; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); transition: transform 0.2s ease, background-color 0.2s ease; }
.t4-switch input:checked + i { background: #1EC87A; }
.t4-switch input:checked + i::after { transform: translateX(14px); background: #fff; }
.t4-switch input:focus-visible + i { outline: 2px solid #F59B3D; outline-offset: 2px; }
.t4-reset { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #5A6372; cursor: pointer; }
.t4-reset:hover { color: #0E1A2B; text-decoration: underline; }

/* ---------- 4 列竖卡 ---------- */
.t4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t4-grid .cxc-tcard--grid {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 0;
  border: 0; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cxc-tcard--grid[hidden] { display: none; }
.cxc-tcard--grid:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 14px 30px rgba(16, 24, 40, 0.1); }
.cxc-tcard--grid .cxc-tcard__photo { aspect-ratio: 1.29; overflow: hidden; background: #EEF0F4; }
.cxc-tcard--grid .cxc-tcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.cxc-tcard--grid .cxc-tcard__info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.cxc-tcard--grid .cxc-tcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.cxc-tcard--grid .cxc-tcard__name { font-size: 18px; font-weight: 800; line-height: 1.25; color: #0E1A2B; }
.cxc-tcard--grid .cxc-tcard__on { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; font-weight: 600; color: #12A863; white-space: nowrap; }
.cxc-tcard--grid .cxc-tcard__on i { width: 6px; height: 6px; border-radius: 50%; background: #1EC87A; }
.cxc-tcard--grid .cxc-tcard__off { margin-top: 3px; font-size: 11px; color: #9AA3B2; }
.cxc-tcard--grid .cxc-tcard__meta { margin: 0 0 8px; font-size: 12px; color: #7A8494; }
.t4-grid .cxc-tcard--grid .cxc-tcard__nums { display: block; gap: 0; margin: 0 0 18px; font-size: 12px; font-weight: 700; color: #0E1A2B; white-space: nowrap; }
.cxc-tcard--grid .cxc-star { color: #0E1A2B; margin-right: 2px; }
.cxc-tcard--grid .cxc-tcard__sep { display: inline-block; width: 10px; }
.t4-grid .cxc-tcard--grid .cxc-tcard__foot { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; margin: auto 0 0; padding: 0; border: 0; }
.cxc-tcard--grid .cxc-tcard__price { font-size: 11px; color: #7A8494; white-space: nowrap; }
.cxc-tcard--grid .cxc-tcard__price b { font-size: 14px; font-weight: 800; color: #F2711C; margin: 0 1px; }
.cxc-tcard--grid .cxc-tcard__go {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: 999px; background: linear-gradient(180deg, #FFC27A 0%, #F59B3D 100%);
  box-shadow: 0 4px 10px rgba(245, 155, 61, 0.3);
  font-size: 12px; font-weight: 800; color: #3A1D04; text-decoration: none; white-space: nowrap;
}
.cxc-tcard--grid .cxc-tcard__go:hover { filter: brightness(1.04); }
.cxc-tcard--grid .cxc-tcard__go--muted { background: #EEF0F5; box-shadow: none; color: #3D4A5C; }
.cxc-tcard--grid .cxc-demo-tag { display: none; }
.t4-list .cxc-empty { margin: 24px 0 0; text-align: center; color: #5A6372; }

/* ---------- 深蓝平台带 ---------- */
.t4-platform {
  position: relative; overflow: hidden; padding: 64px 0 72px; text-align: center;
  background: radial-gradient(110% 120% at 50% 0%, #13284A 0%, #0B1A33 55%, #08142A 100%);
}
.t4-platform__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.t4-platform__kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; color: #F7A44C; letter-spacing: 0.04em; }
.t4-platform__t { margin: 0 0 12px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; line-height: 1.25; color: #fff; }
.t4-platform__text { margin: 0 0 26px; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.t4-btn.v3-btn { min-height: 44px; padding: 0 44px; font-size: 14px; }
.t4-platform__arc { position: absolute; bottom: -1px; width: 34%; aspect-ratio: 3 / 1; pointer-events: none; }
.t4-platform__arc--l {
  left: -6%;
  background: radial-gradient(70% 140% at 30% 120%, rgba(13, 26, 48, 0) 62%, rgba(255, 178, 92, 0.5) 66%, rgba(242, 134, 46, 0.12) 72%, rgba(13, 26, 48, 0) 80%);
}
.t4-platform__arc--r {
  right: -6%;
  background:
    radial-gradient(70% 140% at 70% 120%, rgba(13, 26, 48, 0) 62%, rgba(255, 196, 120, 0.85) 64.5%, rgba(242, 134, 46, 0.18) 70%, rgba(13, 26, 48, 0) 78%),
    radial-gradient(rgba(150, 180, 220, 0.25) 1px, transparent 1.4px) 0 0 / 8px 8px;
  -webkit-mask: radial-gradient(70% 140% at 70% 120%, #000 64%, transparent 66%);
  mask: radial-gradient(70% 140% at 70% 120%, #000 64%, transparent 66%);
}
.t4-platform__arc--r::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 140% at 70% 120%, rgba(13, 26, 48, 0) 62.5%, rgba(255, 200, 130, 0.95) 64%, rgba(13, 26, 48, 0) 66%);
}

/* ---------- 两张引导卡 ---------- */
.t4-guides { padding: 56px 0; background: #FFF9F2; }
.t4-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t4-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 172px; padding: 28px 28px 28px 36px; border-radius: 10px;
  background: #FFF3E6; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.t4-card--dark { background: #0B1424; color: #fff; padding-left: 22px; }
.t4-card__body { min-width: 0; }
.t4-card__t { margin: 0 0 10px; font-size: 16px; font-weight: 900; line-height: 1.4; color: #0E1A2B; }
.t4-card--dark .t4-card__t { color: #fff; }
.t4-card__p { margin: 0 0 20px; font-size: 12px; line-height: 1.6; color: #7A8494; }
.t4-card--dark .t4-card__p { color: rgba(255, 255, 255, 0.82); }
.t4-card__btn {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 24px; border-radius: 999px;
  background: linear-gradient(180deg, #FFC27A 0%, #F59B3D 100%);
  box-shadow: 0 4px 12px rgba(245, 155, 61, 0.3);
  font-size: 12px; font-weight: 800; color: #3A1D04; text-decoration: none;
}
.t4-card__btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px #0E1A2B; color: #0E1A2B; }
.t4-card__btn:hover { filter: brightness(1.04); }
.t4-card__btn--line:hover { background: #0E1A2B; color: #fff; filter: none; }
.t4-card__art { flex: 0 0 auto; width: 84px; height: 84px; filter: drop-shadow(0 10px 14px rgba(242, 134, 46, 0.22)); }

/* ---------- 底部滚动条 ---------- */
.t4-marquee { padding: 56px 0 48px; }
.t4-marquee__t { margin: 0 auto 32px; padding: 0 16px; text-align: center; font-size: clamp(24px, 2.2vw, 32px); font-weight: 900; color: #0E1A2B; }
.t4-marquee .v3-note { margin-top: 20px; }

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 1023px) {
  .t4-grid { grid-template-columns: repeat(3, 1fr); }
  .t4-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .t4-list { padding: 36px 0 56px; }
  .t4-tabs, .t4-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .t4-tabs::-webkit-scrollbar, .t4-pills::-webkit-scrollbar { display: none; }
  .t4-chip.cxc-chip { flex: 0 0 auto; min-height: 34px; }
  .t4-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cxc-tcard--grid .cxc-tcard__info { padding: 12px; }
  .cxc-tcard--grid .cxc-tcard__name { font-size: 16px; }
  .t4-grid .cxc-tcard--grid .cxc-tcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .t4-grid .cxc-tcard--grid .cxc-tcard__nums { white-space: normal; }
  .cxc-tcard--grid .cxc-tcard__go { justify-content: center; min-height: 34px; }
  .t4-listbar { margin: 22px 0 22px; }
  .t4-listbar__t { font-size: 19px; }
  .t4-platform__arc { width: 60%; }
  .t4-card { padding: 22px 18px 22px 22px; min-height: 0; }
  .t4-card__art { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .cxc-tcard--grid, .t4-chip.cxc-chip, .t4-switch i, .t4-switch i::after { transition: none; }
  .cxc-tcard--grid:hover { transform: none; }
}
