/* ==========================================================================
   法艺法语 EDUCATION A FRANCOPHONE — 单页官网
   版式参考 Eduxo（Lexend/Hind、胶囊标签、巨型高亮标题、圆角卡片、统计色带）
   配色沿用品牌蓝白红：蓝 #283A85 / 红 #B52231
   ========================================================================== */

:root {
  /* 品牌色 */
  --primary: #283a85;        /* 主蓝（替代参考站 violet） */
  --primary-2: #1c2a68;      /* 深蓝 */
  --primary-3: #38509f;      /* 亮蓝 */
  --accent: #b52231;         /* 主红（替代参考站 orange 高亮） */
  --accent-2: #d23b45;       /* 亮红 */
  --navy: #0b1533;           /* 深色区块 */
  --navy-2: #101c46;

  /* 中性色 */
  --shade: #f4f6fb;          /* 浅灰蓝底 */
  --shade-2: #eceffa;
  --white: #ffffff;
  --headings: #0a1330;
  --body: #5c6379;
  --muted: #8b90a3;
  --border: #e3e8f4;

  --light: rgba(40, 58, 133, 0.09);

  /* 字体：Lexend 管拉丁与数字，Hind 管正文拉丁，中文回落 Noto Sans SC */
  --font-head: "Lexend", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --font-body: "Hind", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;

  /* 布局 */
  --maxw: 1200px;
  --pad: clamp(20px, 4.5vw, 48px);
  --sec-y: clamp(70px, 8.5vw, 128px);
  --r: 18px;
  --r-lg: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 40px -26px rgba(10, 19, 48, 0.35);
  --shadow-lg: 0 40px 70px -40px rgba(10, 19, 48, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- 三色组件（蓝白红品牌记号） ---------- */
.tricolor {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
}

.tricolor i {
  flex: 1;
  height: 100%;
}

.tricolor i:nth-child(1) {
  background: var(--primary);
}

.tricolor i:nth-child(2) {
  background: #ffffff;
}

.tricolor i:nth-child(3) {
  background: var(--accent);
}

/* 页面最顶端三色饰条 */
.tricolor--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0;
  z-index: 2;
}

/* 区块标题上方的三色小标 */
.tricolor--bar {
  width: 58px;
  height: 5px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(10, 19, 48, 0.16);
}

.sec-head .tricolor--bar {
  margin-left: auto;
  margin-right: auto;
}

/* Hero 三色旗 */
.tricolor--tall {
  width: 46px;
  height: 86px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0;
  padding: 0 var(--pad);
}

.sec {
  padding: var(--sec-y) 0;
  position: relative;
}

.sec--shade {
  background: var(--shade);
}

.sec--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

/* 深色区块内的标题与标签 */
.sec--navy h2,
.sec--navy h3,
.cta h2,
.cta h3 {
  color: #fff;
}

.sec--navy .sec-head p,
.cta__list {
  color: rgba(255, 255, 255, 0.72);
}

.sec--navy .pill,
.cta .pill {
  background: var(--accent);
}

.sec--navy .pill--ghost,
.cta .pill--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 宽幅课程卡（横向） */
.course--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.course--wide .course__media {
  width: 40%;
  aspect-ratio: auto;
  min-height: 240px;
  flex-shrink: 0;
}

.course--wide .course__body {
  flex: 1;
  padding: clamp(24px, 3vw, 38px);
  justify-content: center;
}

.course--wide .course__body h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
}

.course--wide .course__body p {
  max-width: 46em;
}

@media (max-width: 860px) {
  .course--wide {
    flex-direction: column;
  }

  .course--wide .course__media {
    width: 100%;
    aspect-ratio: 16 / 10.5;
    min-height: 0;
  }
}

/* ---------- 标题体系 ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--headings);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

/* 高亮词 + 手绘下划线（参考站标志性样式，换成品牌红） */
.hl {
  color: var(--accent);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: 0.02em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M4 9.5C62 3.4 198 2.2 296 6.6' stroke='%23b52231' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center bottom / 100% 100%;
  opacity: 0.9;
}

/* 胶囊小标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 999px;
  line-height: 1.4;
}

.pill--accent {
  background: var(--accent);
}

.pill--ghost {
  background: var(--light);
  color: var(--primary);
}

.sec-head {
  margin-bottom: clamp(34px, 4.5vw, 60px);
}

.sec-head h2 {
  margin-top: 18px;
}

.sec-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.sec-head__row h2 {
  margin-top: 16px;
}

.sec-head p {
  margin-top: 16px;
  max-width: 46em;
  font-size: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(40, 58, 133, 0.75);
}

.btn--primary:hover {
  background: var(--primary-2);
  transform: translateY(-3px);
  box-shadow: 0 22px 38px -18px rgba(40, 58, 133, 0.8);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(181, 34, 49, 0.7);
}

.btn--accent:hover {
  background: #9c1b28;
  transform: translateY(-3px);
  box-shadow: 0 22px 38px -18px rgba(181, 34, 49, 0.75);
}

.btn--white {
  background: #fff;
  color: var(--primary);
}

.btn--white:hover {
  background: var(--shade);
  transform: translateY(-3px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--border);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--primary);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* 圆形播放按钮（参考站 How it works） */
.play {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--headings);
  padding: 0;
}

.play__ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  position: relative;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.play__ring::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(181, 34, 49, 0.3);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.play:hover .play__ring {
  background: var(--primary);
  transform: scale(1.05);
}

.play:hover .play__ring::after {
  transform: scale(1.18);
  opacity: 0;
}

.play__ring svg {
  width: 17px;
  height: 17px;
  margin-left: 3px;
}

/* 箭头链接（Enroll Now） */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}

.arrow-link svg {
  width: 16px;
  height: 16px;
}

.arrow-link:hover {
  gap: 13px;
  color: var(--accent);
}

/* ==========================================================================
   顶部条 + 导航
   ========================================================================== */
.topbar {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 46px;
  flex-wrap: wrap;
  padding: 0 var(--pad);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.topbar__promo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 15px;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar__promo svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.topbar__social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__social b {
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 6px;
}

.soc {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.soc svg {
  width: 13px;
  height: 13px;
}

.soc:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s var(--ease);
}

.nav--solid {
  box-shadow: 0 10px 30px -22px rgba(10, 19, 48, 0.45);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  max-width: var(--maxw);
  margin: 0;
  padding: 0 var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 50px;
  height: auto;
  transition: width 0.4s var(--ease);
}

.nav--solid .brand__mark {
  width: 44px;
}

.brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__cn {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--headings);
  letter-spacing: 0.06em;
}

.brand__fr {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--body);
  border-radius: 8px;
  transition: color 0.3s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--headings);
  font-weight: 600;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  margin-left: 22px;
}

.nav__inner > .lang-toggle {
  margin-left: 14px;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--headings);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav__burger span + span {
  margin-top: 5px;
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}

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

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 78px 0 auto 0;
  z-index: 89;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--pad) 28px;
  display: none;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.drawer.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.drawer a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--headings);
  font-weight: 500;
}

.drawer .btn {
  width: 100%;
  margin-top: 20px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0 clamp(66px, 8vw, 108px);
  background: linear-gradient(180deg, #fff 0%, var(--shade) 100%);
  overflow: hidden;
}

.hero__dots {
  position: absolute;
  border-radius: 50%;
  background-image: radial-gradient(var(--primary) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 70%);
  mask-image: radial-gradient(circle, #000 28%, transparent 70%);
  pointer-events: none;
}

.hero__dots--a {
  width: 210px;
  height: 210px;
  top: 8%;
  left: -60px;
}

.hero__dots--b {
  width: 150px;
  height: 150px;
  bottom: 6%;
  left: 42%;
  opacity: 0.12;
}

.hero__ring {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px dashed rgba(40, 58, 133, 0.18);
  pointer-events: none;
}

.hero__ring::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(181, 34, 49, 0.14);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
}

.hero__sub {
  margin-top: 24px;
  max-width: 32em;
  font-size: clamp(1rem, 1.2vw, 1.075rem);
  line-height: 1.9;
}

/* hero 行内预约（参考站 email + Subscribe Now） */
.hero__form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 7px 7px 7px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: 470px;
}

.hero__form svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}

.hero__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 15px;
  color: var(--headings);
  font-family: var(--font-body);
}

.hero__form input::placeholder {
  color: var(--muted);
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars img,
.avatars span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px -8px rgba(10, 19, 48, 0.5);
}

.avatars img + img,
.avatars img + span,
.avatars span + img {
  margin-left: -14px;
}

.avatars__badge {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero__social-txt b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--headings);
}

.hero__social-txt span {
  font-size: 13.5px;
  color: var(--muted);
}

/* hero 右侧人像 */
.hero__visual {
  position: relative;
}

.hero__photo {
  position: relative;
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  box-shadow: var(--shadow-lg);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 16%;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.hero__badge-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--light);
  color: var(--primary);
  flex-shrink: 0;
}

.hero__badge-ico svg {
  width: 21px;
  height: 21px;
}

.hero__badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--headings);
  line-height: 1.3;
}

.hero__badge span {
  font-size: 12.5px;
  color: var(--muted);
}

.hero__flag {
  position: absolute;
  top: 9%;
  right: -18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__flag i {
  width: 15px;
  height: 86px;
}

.hero__flag i:nth-child(1) {
  background: var(--primary);
}

.hero__flag i:nth-child(2) {
  background: #fff;
}

.hero__flag i:nth-child(3) {
  background: var(--accent);
}

/* ==========================================================================
   考试体系色带（替代参考站品牌 logo 墙）
   ========================================================================== */
.strip {
  background: var(--primary);
  padding: 30px 0;
}

.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.strip__label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.strip__items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 20px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.strip__item:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

.strip__item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

/* ==========================================================================
   关于我们（参考站图片拼贴 + 文案）
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.about__collage {
  position: relative;
  padding: 40px 30px 46px 0;
}

.about__main {
  width: 74%;
  aspect-ratio: 3 / 3.9;
  border-radius: 190px 190px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__c1,
.about__c2 {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 9px solid #fff;
  box-shadow: var(--shadow);
  z-index: 2;
}

.about__c1 {
  width: 44%;
  aspect-ratio: 1;
  top: 0;
  right: 0;
}

.about__c2 {
  width: 36%;
  aspect-ratio: 1;
  bottom: 0;
  right: 8%;
}

.about__c1 img,
.about__c2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__float {
  position: absolute;
  left: -14px;
  bottom: 12%;
  z-index: 3;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 15px 19px;
  text-align: center;
  box-shadow: 0 24px 44px -24px rgba(40, 58, 133, 0.9);
}

.about__float b {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.about__float span {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
}

.about__body h2 {
  margin-top: 18px;
}

.about__body > p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.9;
}

.about__feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 26px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.about__feat {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--headings);
  font-weight: 500;
}

.about__feat svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.about__acts {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ==========================================================================
   精品课程（参考站 Popular Courses）
   ========================================================================== */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.course {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

/* 三色顶边（hover 显现） */
.course::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 3;
  display: flex;
  background: linear-gradient(
    to right,
    var(--primary) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--accent) 66.66% 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.course:hover::before {
  transform: scaleX(1);
}

.course:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.course__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.course:hover .course__media img {
  transform: scale(1.06);
}

.course__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 32, 0) 45%,
    rgba(6, 12, 32, 0.42)
  );
}

.course__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
}

.course__word {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.course__ico {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.6s var(--ease);
}

.course:hover .course__ico {
  transform: scale(1.1) rotate(-4deg);
}

.course__ico svg {
  width: 100%;
  height: 100%;
}

.course__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.course__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course__meta svg {
  width: 15px;
  height: 15px;
  color: var(--primary-3);
}

.course__body h3 {
  margin-top: 13px;
}

.course__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.course__price {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--headings);
}

.course__price s {
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
  margin-right: 7px;
}

.courses__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 52px);
}

/* 课程封面渐变（无配图的卡片用，保持网格统一） */
.cover {
  position: relative;
  isolation: isolate;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.17) 1.2px,
    transparent 1.2px
  );
  background-size: 15px 15px;
  opacity: 0.6;
}

.cover--1 {
  background: linear-gradient(140deg, #31479c 0%, #1b2a6b 60%, #131f52 100%);
}

.cover--2 {
  background: linear-gradient(140deg, #b52231 0%, #8c1a26 60%, #5f1119 100%);
}

.cover--3 {
  background: linear-gradient(140deg, #3a5ab5 0%, #25397e 60%, #182558 100%);
}

.cover--4 {
  background: linear-gradient(140deg, #1f2f66 0%, #141d45 55%, #0b1330 100%);
}

.cover--5 {
  background: linear-gradient(140deg, #c0333f 0%, #96222e 60%, #6b1520 100%);
}

.cover--6 {
  background: linear-gradient(140deg, #2b3f8f 0%, #1a2760 60%, #101a48 100%);
}

/* ==========================================================================
   统计色带（参考站 violet band）
   ========================================================================== */
.stats {
  background: var(--primary);
  border-radius: var(--r-lg);
  padding: clamp(34px, 4vw, 48px) clamp(26px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 34px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 70px -50px rgba(40, 58, 133, 0.9);
}

.stats::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: clamp(20px, 3vw, 34px);
}

.stat__ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  flex-shrink: 0;
}

.stat__ico svg {
  width: 26px;
  height: 26px;
}

.stat__n {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat__n small {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 2px;
}

.stat__l {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

/* ==========================================================================
   课程方案（参考站 Pricing Plan）
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}

.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 34px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

/* 三色顶边（hover 显现） */
.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--accent) 66.66% 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.plan:hover::before {
  transform: scaleX(1);
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.plan--featured {
  border-color: var(--primary);
  box-shadow: 0 30px 60px -40px rgba(40, 58, 133, 0.8);
}

.plan__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 13px;
  border-radius: 999px;
}

.plan__name {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 900;
  color: var(--headings);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan__fr {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.plan__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.plan__note svg {
  width: 16px;
  height: 16px;
  color: var(--primary-3);
}

.plan__list {
  list-style: none;
  margin: 24px 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 13px;
}

.plan__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--body);
}

.plan__list svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==========================================================================
   师资团队（参考站深色 Meet Our Instructor）
   ========================================================================== */
.inst__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.inst {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.inst:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.inst__media {
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  position: relative;
}

.inst__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  transition: transform 0.9s var(--ease);
}

.inst:hover .inst__media img {
  transform: scale(1.05);
}

.inst__body {
  padding: 22px 24px 26px;
  text-align: center;
}

.inst__body h3 {
  color: #fff;
}

.inst__role {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.inst__fr {
  display: block;
  margin-top: 9px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 13.5px;
  color: var(--accent-2);
}

.inst__soc {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.inst--cta {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}

.inst--cta > svg {
  width: 46px;
  height: 46px;
  color: var(--accent-2);
}

.inst--cta h3 {
  margin-top: 18px;
}

.inst--cta p {
  margin-top: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
}

.inst--cta .btn {
  margin-top: 24px;
}

/* ==========================================================================
   学员心声（参考站 Testimonial）
   ========================================================================== */
.tst__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tst {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.tst:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.tst__stars {
  display: flex;
  gap: 3px;
  color: #f0a500;
}

.tst__stars svg {
  width: 16px;
  height: 16px;
}

.tst__quote {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 62px;
  line-height: 1;
  font-weight: 900;
  color: var(--light);
  pointer-events: none;
}

.tst__txt {
  position: relative;
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--body);
}

.tst__who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tst__av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--light);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.tst__who b {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--headings);
}

.tst__who span {
  font-size: 13px;
  color: var(--muted);
}

.tst__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
}

.tst__nav button {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.tst__nav button svg {
  width: 19px;
  height: 19px;
}

.tst__nav button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   博客（参考站 Latest From Our Blogs）
   ========================================================================== */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post {
  display: block;
  transition: transform 0.5s var(--ease);
}

.post:hover {
  transform: translateY(-6px);
}

.post__media {
  aspect-ratio: 16 / 10.5;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.06);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.post__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post__meta svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.post h3 {
  margin-top: 11px;
  transition: color 0.35s var(--ease);
}

.post:hover h3 {
  color: var(--primary);
}

/* ==========================================================================
   CTA 预约
   ========================================================================== */
.cta {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.cta h2 {
  color: #fff;
  margin-top: 18px;
}

.cta__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cta__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
}

.cta__list svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 4px;
}

.cta__acts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: 0 50px 90px -55px rgba(0, 0, 0, 0.85);
}

.form__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--headings);
}

.form__sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--headings);
  margin-bottom: 7px;
}

.field label i {
  color: var(--accent);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--shade);
  font-size: 15px;
  color: var(--headings);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  appearance: none;
  font-family: var(--font-body);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235c6379' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(40, 58, 133, 0.1);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--accent);
  background: #fdf2f3;
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--accent);
}

.field.has-error .field__err {
  display: block;
}

.form__hint {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.form__ok {
  display: none;
  text-align: center;
  padding: 30px 6px 12px;
}

.form__ok.is-on {
  display: block;
  animation: pop 0.5s var(--ease);
}

.form__ok > svg {
  width: 54px;
  height: 54px;
  color: #1f8a54;
  margin: 0 auto 16px;
}

.form__ok h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--headings);
}

.form__ok p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.85;
}

.form__ok b {
  color: var(--primary);
}

.form__back {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   页脚（参考站深色页脚）
   ========================================================================== */
.foot {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding-top: clamp(56px, 7vw, 84px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.72fr 0.72fr 1.1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.foot__brand img {
  width: 72px;
  height: auto;
}

.foot__brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}

.foot__brand small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.foot p {
  font-size: 14px;
  line-height: 1.9;
}

.foot h5 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.foot ul a,
.foot ul li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.3s var(--ease);
}

.foot ul a:hover {
  color: #fff;
}

.foot__phone {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin-bottom: 14px;
  transition: color 0.3s var(--ease);
}

.foot__phone:hover {
  color: var(--accent-2);
}

.foot__contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.foot__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--accent-2);
}

.foot__soc {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.foot__bar {
  height: 4px;
  display: flex;
}

.foot__bar i {
  flex: 1;
}

.foot__bar i:nth-child(1) {
  background: var(--primary);
}

.foot__bar i:nth-child(2) {
  background: #ffffff;
}

.foot__bar i:nth-child(3) {
  background: var(--accent);
}

.foot__copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

/* 返回顶部 */
.top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  box-shadow: var(--shadow);
}

.top.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.top svg {
  width: 19px;
  height: 19px;
}

/* ==========================================================================
   动效
   ========================================================================== */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.rv.is-in {
  opacity: 1;
  transform: none;
}

.rv[data-d="1"] {
  transition-delay: 0.08s;
}

.rv[data-d="2"] {
  transition-delay: 0.16s;
}

.rv[data-d="3"] {
  transition-delay: 0.24s;
}

.rv[data-d="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid,
  .about__grid,
  .cta__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 460px;
    margin: 0 auto;
  }

  .about__collage {
    max-width: 460px;
    margin: 0 auto;
  }

  .courses__grid,
  .plans,
  .inst__grid,
  .tst__grid,
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 中屏：略收链接字号与内边距，保证整行横排不溢出 */
@media (max-width: 1199px) {
  .nav__links {
    gap: 4px;
  }
  .nav__links a {
    padding: 10px 10px;
    font-size: 13.5px;
  }
  .nav__cta {
    margin-left: 14px;
  }
  .nav__inner > .lang-toggle {
    margin-left: 10px;
  }
}

/* 较窄中屏：收起品牌法文小字，腾出空间给导航 */
@media (max-width: 1100px) {
  .brand__fr {
    display: none;
  }
}

/* 窄屏 / 平板竖屏及以下：切换为汉堡抽屉（文字才竖排） */
@media (max-width: 1000px) {
  .nav__links,
  .nav__cta,
  .nav__inner > .lang-toggle {
    display: none;
  }

  .nav__burger {
    display: grid;
  }

  .drawer {
    display: block;
  }
}

@media (max-width: 860px) {
  .topbar__item--wide {
    display: none;
  }

  .courses__grid,
  .plans,
  .inst__grid,
  .tst__grid,
  .posts {
    grid-template-columns: 1fr;
  }

  .sec-head__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .nav__inner {
    min-height: 68px;
  }

  .drawer {
    inset: 68px 0 auto 0;
  }

  .brand__mark {
    width: 42px;
  }

  .brand__cn {
    font-size: 16.5px;
  }

  .hero__form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 14px;
    gap: 12px;
  }

  .hero__form .btn {
    width: 100%;
  }

  .hero__form input {
    text-align: center;
  }

  .hero__badge {
    left: 0;
    padding: 11px 14px;
  }

  .hero__flag {
    right: 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 24px;
  }

  .about__feats {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .foot__grid {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    justify-content: center;
    gap: 12px;
  }

  .topbar__promo {
    font-size: 11.5px;
  }
}

/* ===== 中英语言切换按钮（位于「预约免费试听」右侧） ===== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 21, 51, 0.04);
  color: var(--headings);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
}
.lang-toggle:hover {
  border-color: rgba(11, 21, 51, 0.35);
  background: rgba(11, 21, 51, 0.07);
}
.lang-toggle__opt {
  padding: 3px 9px;
  border-radius: 999px;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.lang-toggle__opt.is-active {
  opacity: 1;
  background: var(--accent);
  color: #fff;
}
.lang-toggle__div {
  opacity: 0.35;
  font-weight: 400;
}
.lang-toggle--block {
  display: flex;
  justify-content: center;
  margin: 16px 2px 4px;
}
