/* 英语外教一对一 · mxyen.cn */

:root {
  --ink: #162028;
  --ink-soft: #4a5864;
  --paper: #eef1ef;
  --paper-deep: #e3e8e5;
  --surface: #f7f9f7;
  --line: #c8d0cb;
  --teal: #1a5c4e;
  --teal-deep: #134438;
  --wechat: #07c160;
  --wechat-hover: #06ad56;
  --price: #b5452a;
  --mist: #8a9690;
  --white: #ffffff;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--price);
}

.site-wrap {
  overflow-x: hidden;
}

.container-mx {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .container-mx {
    width: min(100% - 1.5rem, var(--max));
  }
}

/* ——— Nav ——— */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1.15rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand-mark:hover {
  color: var(--white);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.12rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(0.29rem) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.29rem) rotate(-45deg);
}

@media (max-width: 767.98px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 10.5rem;
    padding: 0.45rem 0;
    background: rgba(22, 32, 40, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }
}

.page-inner .site-nav {
  position: relative;
  background: var(--ink);
  padding: 1rem 0;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-color: #0f1c1a;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      165deg,
      rgba(15, 28, 26, 0.2) 0%,
      rgba(15, 28, 26, 0.55) 48%,
      rgba(15, 28, 26, 0.9) 100%
    ),
    radial-gradient(ellipse 65% 50% at 75% 30%, rgba(26, 92, 78, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 15% 70%, rgba(7, 193, 96, 0.12) 0%, transparent 50%),
    linear-gradient(130deg, #0f1c1a 0%, #163530 45%, #1a4a40 100%);
  animation: heroShift 18s ease-in-out infinite alternate;
}

@keyframes heroShift {
  from {
    background-position: center, 75% 30%, 15% 70%, center;
  }
  to {
    background-position: center, 78% 32%, 12% 68%, center;
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}

@media (max-width: 575.98px) {
  .hero-content {
    width: min(100% - 1.5rem, var(--max));
    padding: 6rem 0 3rem;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.85s var(--ease) 0.1s forwards;
}

.hero-price {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  color: #f0d9a8;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.85s var(--ease) 0.28s forwards;
}

.hero-lead {
  margin: 0 0 1.85rem;
  max-width: 22em;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.85s var(--ease) 0.42s forwards;
}

.hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.85s var(--ease) 0.56s forwards;
}

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

.btn-mx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-wechat {
  background: var(--wechat);
  color: var(--white);
}

.btn-wechat:hover {
  background: var(--wechat-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 0.65rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.wechat-id {
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn-ghost {
    margin-left: 0;
  }
}

/* ——— Sticky WeChat bar (mobile) ——— */
.wechat-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wechat-bar-text {
  font-size: 0.88rem;
  line-height: 1.35;
}

.wechat-bar-text strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.wechat-bar .btn-mx {
  flex-shrink: 0;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}

@media (min-width: 768px) {
  .wechat-bar {
    display: none;
  }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.55rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin: 0 0 0.65rem;
}

.section-desc {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* ——— Teachers ——— */
.teachers {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-panel {
  margin: 0 0 0.25rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.65rem 1.1rem;
  align-items: center;
}

.filter-row + .filter-row {
  margin-top: 1rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mist);
  line-height: 1;
}

/* Region: compact segmented control */
.filter-opts-region {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.filter-opts-region button {
  appearance: none;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.45rem 0.95rem;
  margin: 0;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.filter-opts-region button:last-child {
  border-right: none;
}

.filter-opts-region button:hover {
  color: var(--ink);
  background: rgba(26, 92, 78, 0.06);
}

.filter-opts-region button.is-active {
  color: var(--white);
  background: var(--teal);
  font-weight: 600;
}

/* Course: quiet text links */
.filter-opts-course {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0.15rem 0;
}

.filter-opts-course button {
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.15rem 0;
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
  position: relative;
  transition: color 0.2s var(--ease);
}

.filter-opts-course button:hover {
  color: var(--ink);
}

.filter-opts-course button.is-active {
  color: var(--teal);
  font-weight: 700;
}

.filter-opts-course button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1.5px;
  background: var(--teal);
}

@media (max-width: 575.98px) {
  .filter-row {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.5rem 0.85rem;
    align-items: start;
  }

  .filter-label {
    padding-top: 0.55rem;
  }

  .filter-row:last-child .filter-label {
    padding-top: 0.3rem;
  }

  .filter-opts-region button {
    padding: 0.42rem 0.75rem;
    font-size: 0.88rem;
  }

  .filter-opts-course {
    gap: 0.4rem 0.95rem;
  }

  .filter-opts-course button {
    font-size: 0.88rem;
  }
}

.filter-empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.filter-empty.is-hidden {
  display: none;
}

.filter-empty .linkish {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.filter-empty .linkish:hover {
  color: var(--price);
}

.teacher-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.teacher-item {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.teacher-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.teacher-item.is-hidden {
  display: none;
}

.teacher-row {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 0;
  color: inherit;
}

a.teacher-row:hover .teacher-name {
  color: var(--teal);
}

.teacher-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.teacher-avatar.ph {
  background: linear-gradient(145deg, #1a5c4e, #2a7a68);
}

.teacher-avatar.western {
  background: linear-gradient(145deg, #1e3a5f, #2d5a8a);
}

.teacher-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  transition: color 0.25s var(--ease);
}

.teacher-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--teal);
}

.teacher-price {
  text-align: right;
  white-space: nowrap;
}

.teacher-price .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--price);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.teacher-price .unit {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 575.98px) {
  .teacher-row {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.85rem;
  }

  .teacher-avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.1rem;
  }

  .teacher-price {
    grid-column: 2;
    text-align: left;
    margin-top: -0.25rem;
  }

  .teacher-price .num {
    display: inline;
    font-size: 1.15rem;
  }

  .teacher-price .unit {
    display: inline;
    margin-left: 0.25rem;
  }
}

/* ——— Content blocks ——— */
.advantage {
  background: var(--paper);
}

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-pane {
  padding: 2.25rem 1.75rem;
}

.split-pane:first-child {
  border-right: 1px solid var(--line);
}

.split-pane h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.pro-list,
.con-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-list li,
.con-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--teal);
}

.con-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--price);
}

.split-pane .pane-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
  .split-block {
    grid-template-columns: 1fr;
  }

  .split-pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .split-pane {
    padding: 1.75rem 0.15rem;
  }
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide;
}

.guide-list li {
  counter-increment: guide;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.guide-list li:first-child {
  border-top: 1px solid var(--line);
}

.guide-list li::before {
  content: counter(guide, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.4;
}

.guide-list h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.guide-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.edge-block {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.edge-item {
  padding: 1.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.edge-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.edge-item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 0.45rem;
}

.edge-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .edge-grid {
    grid-template-columns: 1fr;
  }

  .edge-item:nth-child(odd) {
    border-right: none;
  }

  .edge-item {
    padding: 1.5rem 0.15rem;
  }
}

/* ——— FAQ ——— */
.faq {
  background: var(--paper);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 40em;
}

/* ——— Blog ——— */
.blog {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.blog-item {
  border-bottom: 1px solid var(--line);
}

.blog-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.4rem 0;
  color: inherit;
}

a.blog-row:hover .blog-title {
  color: var(--teal);
}

.blog-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
  line-height: 1.4;
  transition: color 0.25s var(--ease);
}

.blog-excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 36em;
}

.blog-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  white-space: nowrap;
}

.blog-static .blog-row {
  cursor: default;
}

@media (max-width: 767.98px) {
  .blog-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .blog-meta {
    order: -1;
  }
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.25rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(26, 92, 78, 0.45), transparent 65%);
  pointer-events: none;
}

.cta-band .container-mx {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-band .wechat-id {
  color: #f0d9a8;
}

/* ——— Page header ——— */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 90% 20%, rgba(26, 92, 78, 0.4), transparent 60%),
    linear-gradient(135deg, #162028 0%, #1a3a34 100%);
}

.page-header .container-mx {
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  color: rgba(255, 255, 255, 0.45);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.55rem;
  line-height: 1.25;
}

.page-header p {
  margin: 0;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.68);
}

/* ——— Teacher detail ——— */
.teacher-detail {
  padding: 3rem 0 4.5rem;
  background: var(--surface);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: 2.5rem;
  align-items: start;
}

.video-wrap {
  margin-bottom: 2rem;
}

.video-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
}

.intro-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: none;
  display: block;
}

.video-fallback {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #162028, #1a5c4e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
}

.video-fallback .play-mark {
  width: 3.5rem;
  height: 3.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.video-fallback p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 18em;
}

.detail-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
}

.detail-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.detail-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.book-panel {
  position: sticky;
  top: 1.25rem;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--teal);
}

.book-panel .price-lg {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--price);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.book-panel .price-unit {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.book-panel .btn-mx {
  width: 100%;
  margin-bottom: 0.75rem;
}

.book-panel .hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.book-panel .hint .wechat-id {
  color: var(--teal);
}

@media (max-width: 991.98px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .book-panel {
    position: static;
    order: -1;
    margin-bottom: 0.5rem;
  }
}

/* ——— Article ——— */
.article-shell {
  padding: 3rem 0 4.5rem;
  background: var(--surface);
}

.article-body {
  max-width: 40rem;
  margin: 0 auto;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.article-meta-bar .tag {
  color: var(--teal);
  letter-spacing: 0.06em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 2.2rem 0 0.85rem;
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 0.1rem 0 0.1rem 1.2rem;
  border-left: 3px solid var(--teal);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.article-nav a {
  color: var(--ink-soft);
}


/* ——— Article more (related / latest tabs) ——— */
.article-more {
  padding: 2.75rem 0 3.25rem;
  background: var(--surface, var(--paper-deep, #e8ece9));
  border-top: 1px solid var(--line);
}

.article-more-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-more-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.7rem 1.1rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-more-tab:hover {
  color: var(--ink);
}

.article-more-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.article-more-tab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.article-more-panel[hidden] {
  display: none !important;
}

.article-more-panel.is-active {
  display: grid;
  gap: 1rem;
}

.related-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.related-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-card:first-child {
  padding-top: 0;
}

.related-card:hover {
  opacity: 0.88;
  color: inherit;
}

.related-card-media {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 8 / 5;
  background: var(--ink);
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.related-card-excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-body time {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--mist, var(--ink-soft));
  opacity: 0.85;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-list li {
  border-bottom: 1px solid var(--line);
}

.latest-list li:last-child {
  border-bottom: none;
}

.latest-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--ink);
  text-decoration: none;
}

.latest-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.latest-date {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist, var(--ink-soft));
  opacity: 0.85;
}

.latest-list a:hover {
  color: var(--ink-soft);
}

.latest-list a:hover .latest-date {
  color: var(--ink-soft);
}

.article-more-empty {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 575.98px) {
  .related-card {
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
  }

  .related-card-body h3 {
    font-size: 0.95rem;
  }

  .article-more-tab {
    padding-inline: 0.85rem;
    font-size: 0.9rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-end;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--white);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 60;
}

.copy-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .copy-toast {
    bottom: 2rem;
  }
}

/* Media list page (图文列表) */
.media-list-page .media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.media-list-page .media-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) 1fr;
  gap: 1rem 1.2rem;
  align-items: stretch;
  padding: 0.8rem;
  border: 1px solid var(--line, #c9d0d9);
  background: var(--surface, #fafbfc);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.media-list-page a.media-row:hover {
  transform: translateY(-1px);
  color: inherit;
}

.media-list-page .media-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1f27;
}

.media-list-page .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.media-list-page a.media-row:hover .media-thumb img {
  transform: scale(1.04);
}

.media-list-page .media-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.media-list-page .media-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.media-list-page .media-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}

.media-list-page .media-excerpt {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.82;
}

.media-list-page .media-date {
  font-size: 0.78rem;
  opacity: 0.65;
}

.media-list-page .list-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.media-list-page .list-switch a,
.media-list-page .list-switch span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line, #c9d0d9);
  text-decoration: none;
}

.media-list-page .list-switch .is-active {
  border-color: currentColor;
}

@media (max-width: 575.98px) {
  .media-list-page .media-row {
    grid-template-columns: 6.25rem 1fr;
    gap: 0.75rem;
    padding: 0.55rem;
  }

  .media-list-page .media-title {
    font-size: 0.98rem;
  }

  .media-list-page .media-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* List view switch */
.list-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}
.list-switch a,
.list-switch span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line, #c9d0d9);
  text-decoration: none;
  color: inherit;
}
.list-switch .is-active {
  border-color: currentColor;
}


/* Honest no-photo label instead of fake avatars */
.teacher-photo-note {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #5b6472);
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.14);
}
.teacher-intro-note {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
}
.teacher-intro-note h2 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.teacher-intro-note p {
  margin: 0;
  font-size: 0.95rem;
}
