@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ylx-ink: #0b1f2a;
  --ylx-ink-soft: #243b48;
  --ylx-paper: #f3f6f8;
  --ylx-card: #ffffff;
  --ylx-accent: #d6453d;
  --ylx-accent-2: #1f6f78;
  --ylx-line: rgba(11, 31, 42, 0.12);
  --ylx-muted: #5b6b75;
  --ylx-shadow: 0 18px 50px rgba(11, 31, 42, 0.12);
  --ylx-display: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --ylx-body: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
  --ylx-max: 1120px;
  --ylx-header: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ylx-body {
  margin: 0;
  font-family: var(--ylx-body);
  color: var(--ylx-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 120, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(214, 69, 61, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3f6 0%, var(--ylx-paper) 38%, #e8eef2 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.ylx-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ylx-main { flex: 1; padding-top: var(--ylx-header); }

.ylx-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--ylx-header);
  display: flex; align-items: center;
  background: rgba(243, 246, 248, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.ylx-header.is-scrolled {
  border-bottom-color: var(--ylx-line);
  box-shadow: 0 8px 24px rgba(11, 31, 42, 0.06);
  background: rgba(255, 255, 255, 0.92);
}
.ylx-header-inner {
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.ylx-brand {
  display: flex; align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}
.ylx-brand img {
  /* ??????width:208px??????+??????+???? */
  width: 208px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: opacity .25s ease;
}
.ylx-brand:hover img { opacity: 0.9; }
.ylx-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
}
.ylx-nav a {
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ylx-ink-soft);
  border-radius: 8px;
  position: relative;
  transition: color .2s, background .2s;
}
.ylx-nav a:hover,
.ylx-nav a.is-active {
  color: var(--ylx-ink);
  background: rgba(31, 111, 120, 0.08);
}
.ylx-nav a.is-active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--ylx-accent);
  border-radius: 2px;
}
.ylx-nav-cta {
  margin-left: 8px !important;
  background: var(--ylx-ink) !important;
  color: #fff !important;
  padding: 9px 16px !important;
}
.ylx-nav-cta:hover { background: var(--ylx-accent) !important; }
.ylx-nav-cta.is-active::after { display: none; }

.ylx-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  padding: 10px;
}
.ylx-burger span {
  display: block; height: 2px; margin: 6px 0;
  background: var(--ylx-ink);
  transition: transform .25s, opacity .25s;
}
.ylx-drawer {
  display: none;
  position: fixed; inset: var(--ylx-header) 0 0 0;
  background: rgba(11, 31, 42, 0.45);
  z-index: 40;
}
.ylx-drawer.is-open { display: block; }
.ylx-drawer-panel {
  margin-left: auto;
  width: min(86vw, 320px);
  height: 100%;
  background: #fff;
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--ylx-shadow);
  animation: ylxSlide .28s ease;
}
@keyframes ylxSlide {
  from { transform: translateX(16px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.ylx-drawer-panel a {
  padding: 14px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.ylx-drawer-panel a:hover { background: rgba(31, 111, 120, 0.08); }

.ylx-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  color: #fff;
}
.ylx-hero-media {
  position: absolute; inset: 0;
  background: #0b1f2a center/cover no-repeat;
  transform: scale(1.04);
  animation: ylxKen 18s ease-in-out infinite alternate;
}
@keyframes ylxKen {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.ylx-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,31,42,.28) 0%, rgba(11,31,42,.72) 70%, rgba(11,31,42,.88) 100%);
}
.ylx-hero-inner {
  position: relative;
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto 56px;
  max-width: 720px;
}
.ylx-hero h1 {
  margin: 0 0 12px;
  font-family: var(--ylx-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  animation: ylxUp .7s ease both;
}
.ylx-hero p {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  max-width: 36em;
  animation: ylxUp .7s .1s ease both;
}
@keyframes ylxUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.ylx-cta-row { display: flex; flex-wrap: wrap; gap: 12px; animation: ylxUp .7s .18s ease both; }
.ylx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  background: var(--ylx-accent);
  color: #fff;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.ylx-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(214,69,61,.35); }
.ylx-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}
.ylx-btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.ylx-btn-dark { background: var(--ylx-ink); }

.ylx-section {
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto;
  padding: 64px 0;
}
.ylx-section h2 {
  margin: 0 0 10px;
  font-family: var(--ylx-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.ylx-section .ylx-lead {
  margin: 0 0 28px;
  color: var(--ylx-muted);
  max-width: 40em;
  line-height: 1.7;
}
.ylx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.ylx-stat {
  padding: 22px 18px;
  border-top: 3px solid var(--ylx-accent-2);
  background: rgba(255,255,255,.65);
}
.ylx-stat strong {
  display: block;
  font-family: var(--ylx-display);
  font-size: 2rem;
  line-height: 1.1;
}
.ylx-stat span { color: var(--ylx-muted); font-size: .92rem; }
.ylx-about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
.ylx-about-copy p {
  margin: 0;
  line-height: 1.85;
  color: var(--ylx-ink-soft);
  font-size: 1.02rem;
}
.ylx-about-visual {
  min-height: 280px;
  border-radius: 4px;
  background: #ced9df center/cover no-repeat;
  box-shadow: var(--ylx-shadow);
  position: relative;
  overflow: hidden;
}
.ylx-about-visual::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(11,31,42,.45));
}

.ylx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ylx-prod-group {
  margin: 8px 0 0;
  font-family: var(--ylx-display);
  font-size: 1.25rem;
}
.ylx-prod {
  display: block;
  background: var(--ylx-card);
  border: 1px solid var(--ylx-line);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: default;
  transition: transform .25s, box-shadow .25s;
}
a.ylx-prod { cursor: pointer; }
.ylx-prod:hover {
  transform: translateY(-4px);
  box-shadow: var(--ylx-shadow);
}
.ylx-prod img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  background: #d7e0e6;
}
.ylx-prod-body { padding: 16px 16px 20px; }
.ylx-prod h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-family: var(--ylx-display);
}
.ylx-prod p {
  margin: 0;
  color: var(--ylx-muted);
  font-size: .92rem;
  line-height: 1.55;
}

/* ???????? */
.ylx-teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ylx-teacher {
  background: #fff;
  border: 1px solid var(--ylx-line);
  padding: 0 0 14px;
  text-align: center;
}

/* ?????? www.51liuxue.com teachList ???? */
.ylx-teach-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--ylx-line);
}
.ylx-teach-row {
  display: flex;
  position: relative;
  min-height: 135px;
  padding: 20px 16px;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-top: 1px solid #eee;
  transition: background .2s;
}
.ylx-teach-row:first-child { border-top: 0; }
.ylx-teach-row:hover { background: #fafafa; }
.ylx-teach-img {
  flex: 0 0 178px;
  width: 178px;
  height: 166px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: 100% 100%;
  background-color: #e8eef5;
}
.ylx-teach-img img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: top center;
}
.ylx-teach-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--ylx-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #3c6cff 0%, #1a2a6c 70%);
}
.ylx-teach-nav {
  padding: 0 14px;
  width: 100%;
  min-width: 0;
}
.ylx-teach-nav p {
  margin: 0 0 11px;
  font-size: 15px;
  color: #525252;
  line-height: 1.4;
}
.ylx-teach-laber {
  color: #181818;
  font-weight: 500;
  font-size: 16px;
}
.ylx-teach-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ylx-teach-btn {
  width: 100px;
  height: 36px;
  border: 1px solid #3c6cff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #3c6cff;
  line-height: 36px;
  text-align: center;
  position: absolute;
  right: 30px;
  bottom: 25px;
}
.ylx-teach-row:hover .ylx-teach-btn {
  color: #fff;
  background: #3c6cff;
}
.ylx-teach-badge {
  background-color: #3c6cff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  position: absolute;
  right: 33px;
  top: 21px;
}

/* ????????????????? */
.ylx-contact { font-size: 1.02rem; line-height: 1.7; color: #333; }
.ylx-contact > p { margin: 0 0 18px; }
.ylx-office-block { margin: 8px 0 24px; }
.ylx-office-block h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-family: var(--ylx-display);
  color: #0b1f2a;
}
.ylx-office-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ylx-line);
  background: #fff;
}
.ylx-office-item {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}
.ylx-office-item:first-child { border-top: 0; }
.ylx-teacher img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  background: #d7e0e6;
}
.ylx-avatar {
  width: 100%;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  font-family: var(--ylx-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #1f6f78 0%, #0b1f2a 70%);
}
.ylx-avatar[hidden],
.ylx-teacher .ylx-avatar.is-hidden {
  display: none !important;
}
.ylx-teacher h3 {
  margin: 12px 12px 4px;
  font-size: 1rem;
}
.ylx-teacher p {
  margin: 0 12px;
  color: var(--ylx-muted);
  font-size: .85rem;
  line-height: 1.45;
}
.ylx-teacher .ylx-bio {
  margin-top: 8px;
  font-size: .8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ylx-page-body .ylx-stats {
  margin: 12px 0 20px;
}
.ylx-page-body img[src=""],
.ylx-page-body img:not([src]) {
  display: none;
}

/* ????? */
.ylx-ow-hero {
  margin: -28px calc(50% - 50vw) 28px;
  min-height: 280px;
  background: #0b1f2a center/cover no-repeat;
  color: #fff;
  position: relative;
}
.ylx-ow-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,42,.82), rgba(11,31,42,.4));
}
.ylx-ow-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto;
  padding: 56px 0;
}
.ylx-ow-hero h2 {
  margin: 0 0 12px;
  font-family: var(--ylx-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.ylx-ow-hero p { margin: 0 0 16px; line-height: 1.7; max-width: 36em; color: rgba(255,255,255,.9); }
.ylx-ow-sec { margin: 0 0 40px; }
.ylx-ow-sec > h2 {
  margin: 0 0 8px;
  font-family: var(--ylx-display);
  font-size: 1.6rem;
}
.ylx-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.ylx-case {
  background: #fff;
  border: 1px solid var(--ylx-line);
  overflow: hidden;
}
.ylx-case img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
  background: #d7e0e6;
}
.ylx-case-body { padding: 12px 14px 16px; }
.ylx-case-body h3 { margin: 0 0 6px; font-size: 1rem; font-family: var(--ylx-display); }
.ylx-case-body p { margin: 0; color: var(--ylx-muted); font-size: .88rem; line-height: 1.5; }
.ylx-case-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin: 0 0 20px !important;
  border: 1px solid var(--ylx-line);
}
.ylx-case-meta {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: .92rem;
}
.ylx-case-meta th,
.ylx-case-meta td {
  padding: 10px 12px;
  border: 1px solid var(--ylx-line);
  text-align: left;
  vertical-align: top;
}
.ylx-case-meta th {
  width: 7em;
  color: var(--ylx-muted);
  font-weight: 600;
  background: rgba(31, 111, 120, 0.06);
}
.ylx-case-rich { line-height: 1.8; }
.ylx-case-rich img { margin: 12px auto; }
.ylx-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.ylx-feat {
  padding: 18px 16px;
  background: rgba(255,255,255,.85);
  border-top: 3px solid var(--ylx-accent-2);
}
.ylx-feat h3 { margin: 0 0 8px; font-family: var(--ylx-display); font-size: 1.1rem; }
.ylx-feat p { margin: 0; color: var(--ylx-ink-soft); line-height: 1.7; font-size: .95rem; }
@media (max-width: 960px) {
  .ylx-case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ylx-case-grid,
  .ylx-feat-grid { grid-template-columns: 1fr; }
}

/* ?????? */
.ylx-bg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}
.ylx-bg-tab {
  border: 1px solid var(--ylx-line);
  background: #fff;
  color: var(--ylx-muted);
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}
.ylx-bg-tab.is-active,
.ylx-bg-tab:hover {
  border-color: var(--ylx-ink, #123);
  color: var(--ylx-ink, #123);
}

/* ???? */
.ylx-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.ylx-bg-card {
  background: #fff;
  border: 1px solid var(--ylx-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.ylx-bg-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin: 0 !important;
  background: #d7e0e6;
}
.ylx-bg-card > div { padding: 12px 14px 16px; }
.ylx-bg-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: var(--ylx-display);
}
.ylx-bg-card p {
  margin: 0;
  color: var(--ylx-muted);
  font-size: .88rem;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .ylx-bg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ylx-bg-grid { grid-template-columns: 1fr; }
}

/* ???????????????? */
.ylx-news-stack {
  display: grid;
  gap: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ylx-line);
}
.ylx-news-row {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--ylx-line);
  transition: background .18s;
}
.ylx-news-row:last-child { border-bottom: 0; }
.ylx-news-row:hover { background: rgba(31, 111, 120, 0.06); }
.ylx-news-row h3 {
  margin: 0;
  font-family: var(--ylx-display);
  font-size: 1.12rem;
  line-height: 1.4;
}
.ylx-news-row p {
  margin: 0;
  color: var(--ylx-muted);
  font-size: .92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ylx-news-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ylx-accent-2);
}
.ylx-news-row:hover .ylx-news-more { color: var(--ylx-accent); }

.ylx-page-hero {
  padding: 48px 0 20px;
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto;
}
.ylx-page-hero h1 {
  margin: 0;
  font-family: var(--ylx-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.ylx-page-body {
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto 56px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--ylx-line);
  padding: 28px clamp(16px, 3vw, 36px);
  line-height: 1.8;
}
.ylx-page-body img { margin: 12px auto; }
.ylx-page-body h2, .ylx-page-body h3 {
  font-family: var(--ylx-display);
}

/* ???????????? / ?? 55% ??? */
.ylx-page-body.ylx-article {
  width: min(100% - 32px, 760px);
  overflow-wrap: anywhere;
}
.ylx-page-body.ylx-article .ylx-article-inner,
.ylx-page-body.ylx-article [style*="min-height: 300px"],
.ylx-page-body.ylx-article [style*="min-height:300px"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.ylx-page-body.ylx-article img {
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}
.ylx-page-body.ylx-article p {
  margin: 0 0 1em;
  color: var(--ylx-ink-soft);
}
.ylx-page-body.ylx-article h2:first-child {
  display: none; /* ???? hero */
}

.ylx-footer {
  margin-top: auto;
  background: var(--ylx-ink);
  color: rgba(255,255,255,.82);
  padding: 40px 0 24px;
}
.ylx-footer-inner {
  width: min(100% - 32px, var(--ylx-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.ylx-footer-inner-solo {
  grid-template-columns: 1fr;
}
.ylx-footer strong {
  display: block;
  font-family: var(--ylx-display);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.ylx-footer p { margin: 0 0 8px; line-height: 1.65; font-size: .92rem; }
.ylx-footer-addr { max-width: 28em; }
.ylx-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ylx-copy {
  width: min(100% - 32px, var(--ylx-max));
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.ylx-copy a { color: inherit; }

.ylx-dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--ylx-line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.ylx-dock a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px;
  font-size: .68rem;
  color: var(--ylx-muted);
  font-weight: 600;
}
.ylx-dock a.is-active { color: var(--ylx-accent); }
.ylx-dock svg { width: 22px; height: 22px; }

.mh-ssr { display: none; }
.ylx-loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--ylx-muted);
}

@media (max-width: 960px) {
  .ylx-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ylx-teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .ylx-about-grid { grid-template-columns: 1fr; }
  .ylx-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --ylx-header: 72px; }
  .ylx-nav { display: none; }
  .ylx-brand img { width: 160px; }
  .ylx-burger { display: block; }
  .ylx-stats { grid-template-columns: 1fr; }
  .ylx-grid-3 { grid-template-columns: 1fr; }
  .ylx-news-item { grid-template-columns: 1fr; }
  .ylx-news-item img { height: 160px; }
  .ylx-hero { min-height: 70vh; }
  .ylx-main { padding-bottom: 64px; }
  .ylx-dock { display: grid; }
  .ylx-teach-row {
    flex-direction: column;
    padding-bottom: 64px;
  }
  .ylx-teach-img {
    width: 100%;
    flex-basis: auto;
    height: 200px;
  }
  .ylx-teach-img img { width: 100%; height: 100%; object-fit: cover; }
  .ylx-teach-nav { padding: 14px 0 0; }
  .ylx-teach-btn { right: 16px; bottom: 16px; }
  .ylx-teach-badge { right: 16px; }
}

/* ?????? */
.ylx-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 28px 0 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.ylx-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ylx-page-btn:hover:not(:disabled) { border-color: #98a2b3; }
.ylx-page-btn.is-active {
  border-color: #175cd3;
  background: #eff8ff;
  color: #175cd3;
  font-weight: 600;
}
.ylx-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.ylx-pager-meta { margin-left: 8px; color: #667085; font-size: 13px; }
