:root {
  --navy: #0A2540;
  --navy-2: #061829;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #059669;
  --gold: #2563EB;
  --blue: #2457d6;
  --course-primary: #2563EB;
  --course-junior: #059669;
  --course-senior: #7b8494;
  --green: #059669;
  --ink: #1E293B;
  --muted: #607086;
  --line: rgba(10, 37, 64, 0.1);
  --gray: #F8FAFC;
  --tag-blue: #EFF6FF;
  --tag-green: #ECFDF5;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(10, 37, 64, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--gray);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  padding-bottom: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 210px;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(10, 37, 64, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #344256;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 30px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: var(--gold);
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  font: inherit;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.tf-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 92px clamp(20px, 5vw, 72px) 120px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.78) 42%, rgba(10, 37, 64, 0.24) 100%),
    linear-gradient(0deg, rgba(10, 37, 64, 0.18), rgba(10, 37, 64, 0.18)),
    url("https://image5.sixthtone.com/image/5/22/121.jpg") 72% center/cover;
}

.tf-hero.has-managed-bg {
  background-image:
    linear-gradient(90deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.78) 42%, rgba(10, 37, 64, 0.24) 100%),
    linear-gradient(0deg, rgba(10, 37, 64, 0.18), rgba(10, 37, 64, 0.18)),
    var(--managed-bg);
  background-position: center, center, 72% center;
  background-size: auto, auto, cover;
}

.tf-hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(20px, 5vw, 72px) 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #BFDBFE;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.06;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  color: var(--navy);
  font-weight: 900;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

.hero-content p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.34);
}

.button.secondary {
  color: var(--white);
  background: var(--navy);
}

.button.ghost {
  color: var(--white);
  background: rgba(10, 37, 64, 0.36);
  border-color: rgba(255, 255, 255, 0.72);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 86px;
  z-index: 1;
  width: 330px;
  padding: 24px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.feature-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: -82px auto 0;
  padding: 0 clamp(20px, 5vw, 24px);
}

.feature-band a {
  padding: 34px;
  color: var(--white);
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-band a:nth-child(2) {
  background: #22365e;
}

.feature-band a:nth-child(3) {
  background: var(--gold);
  color: var(--navy);
}

.feature-band span {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.feature-band strong {
  display: block;
  font-size: 24px;
}

.feature-band p {
  margin: 8px 0 0;
}

.section {
  padding: 48px clamp(20px, 5vw, 72px);
  margin-bottom: 0;
}

.advantages-section {
  position: relative;
  overflow: hidden;
  padding-inline: clamp(18px, 3vw, 42px);
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 87, 214, 0.08), transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.advantages-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 250, 0));
  pointer-events: none;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto 46px;
}

.section-head h2 {
  position: relative;
  max-width: 620px;
  margin: 0;
  padding-bottom: 16px;
  color: var(--navy);
  font-size: clamp(40px, 4vw, 62px);
  line-height: 1.12;
  font-weight: 900;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 92px;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), rgba(37, 99, 235, 0));
  border-radius: 999px;
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.advantage-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1480px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 82% 50%, rgba(36, 87, 214, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(239, 246, 255, 0.82));
  border-radius: 42px;
  box-shadow: 0 34px 100px rgba(10, 37, 64, 0.12);
  backdrop-filter: blur(18px);
}

.advantage-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  background:
    linear-gradient(rgba(10, 37, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: 32px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.advantage-screen {
  position: relative;
  z-index: 3;
  min-height: 390px;
  perspective: 1200px;
}

.advantage-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.advantage-point {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(640px, 72vw);
  min-height: 288px;
  padding: clamp(26px, 4vw, 44px);
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 64px rgba(10, 37, 64, 0.13);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(0) scale(0.76) rotateY(0deg);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.72s ease, box-shadow 0.72s ease, background 0.72s ease;
}

.advantage-point.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(0) scale(1) rotateY(0deg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 34px 86px rgba(10, 37, 64, 0.18);
}

.advantage-point.is-prev {
  z-index: 2;
  opacity: 0.58;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(-56%) scale(0.82) rotateY(18deg);
}

.advantage-point.is-next {
  z-index: 2;
  opacity: 0.58;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateX(56%) scale(0.82) rotateY(-18deg);
}

.advantage-point.is-far-prev {
  z-index: 1;
  opacity: 0.24;
  transform: translate(-50%, -50%) translateX(-95%) scale(0.68) rotateY(30deg);
}

.advantage-point.is-far-next {
  z-index: 1;
  opacity: 0.24;
  transform: translate(-50%, -50%) translateX(95%) scale(0.68) rotateY(-30deg);
}

.advantage-point.is-active:hover {
  transform: translate(-50%, -54%) translateX(0) scale(1.03) rotateY(0deg);
}

.advantage-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 16px;
  color: var(--gold);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
  transition: transform 0.7s ease, color 0.7s ease, background 0.7s ease, box-shadow 0.7s ease;
}

.advantage-point:hover .icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), #60A5FA);
  transform: scale(1.08);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.34);
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-point h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 900;
}

.advantage-point p {
  margin: 0;
  color: #445268;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
}

.advantage-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(10, 37, 64, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.advantage-arrow.prev {
  left: clamp(12px, 3vw, 36px);
}

.advantage-arrow.next {
  right: clamp(12px, 3vw, 36px);
}

.advantage-arrow:hover {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.advantage-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-dots {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.advantage-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(10, 37, 64, 0.18);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.advantage-dots button.active {
  width: 34px;
  background: var(--gold);
}
.gray {
  background: var(--gray);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.about-section {
  display: grid;
  min-height: 720px;
  grid-template-rows: 0.4fr auto 0.3fr;
  gap: clamp(26px, 4vw, 42px);
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  border-radius: 34px;
}

.about-hero {
  max-width: 780px;
}

.about-hero h2 {
  margin: 12px 0 14px;
  color: #1E293B;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.about-hero p {
  max-width: 620px;
  margin: 0;
  color: #4b5563;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.about-data-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(10, 37, 64, 0.1);
}

.about-data-item {
  position: relative;
  display: grid;
  min-height: 170px;
  padding: clamp(22px, 3vw, 34px);
  align-content: center;
  gap: 8px;
  border-bottom: 4px solid rgba(37, 99, 235, 0.82);
  transition: background 0.25s ease, transform 0.25s ease;
}

.about-data-item + .about-data-item::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: rgba(10, 37, 64, 0.08);
}

.about-data-item:hover {
  z-index: 1;
  background: #EFF6FF;
  transform: translateY(-4px) scale(1.015);
}

.about-data-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
}

.about-data-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-data-item strong {
  color: #111827;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  font-weight: 900;
}

.about-data-item span:last-child {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.55;
}

.about-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 5vw, 64px);
}

.about-action p {
  max-width: 720px;
  margin: 0;
  color: #374151;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.75;
}

.about-action .button {
  flex: 0 0 auto;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.26);
}

.about-action .button:active {
  background: #1D4ED8;
  transform: translateY(1px) scale(0.98);
}

.contact-copy p,
.course-card p,
.event-grid p,
.teacher-grid p,
.blog-card p {
  color: var(--muted);
}

.tf-section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.tf-section-title h2 {
  margin: 0;
  white-space: nowrap;
}

.tf-section-title span {
  flex: 1;
  border-top: 2px solid var(--gold);
}

.tf-section-title a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.course-grid,
.teacher-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.teacher-section {
  background: #F9FAFB;
}

.teacher-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.teacher-section-head h2 {
  margin: 0;
  color: #1E293B;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.teacher-section-head p {
  margin: 10px 0 0;
  color: #6B7280;
  font-size: 16px;
}

.teacher-section-head a {
  color: #2563EB;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-section .teacher-grid {
  gap: 30px;
}

.section-lead {
  max-width: 820px;
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.program-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.program-tab {
  min-height: 42px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.program-tab.active,
.program-tab:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.course-system {
  display: grid;
  gap: 34px;
}

.course-level-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.26fr) minmax(0, 1fr);
  gap: 26px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 58px rgba(10, 37, 64, 0.08);
}

.course-level-head {
  position: sticky;
  top: 110px;
  align-self: start;
}

.course-level-head p {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-level-head h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.course-level-head span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: 26px;
  flex-direction: column;
}

.product-card.hidden {
  display: none;
}

.course-level-group.hidden {
  display: none;
}

.course-level-group:has(.product-card:not(.hidden)) {
  display: grid;
}

.course-level-group:not(:has(.product-card:not(.hidden))) {
  display: none;
}

.product-card .course-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--navy);
  background: #EFF6FF;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.product-card h3 {
  min-height: auto;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.3;
}

.product-card p {
  margin: 0 0 16px;
  line-height: 1.75;
}

.product-card strong {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--navy);
  font-size: 15px;
}

.course-card,
.teacher-grid a,
.blog-card,
.contact-form {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.course-card {
  border-left: 6px solid var(--course-primary);
  box-shadow: 0 14px 42px rgba(10, 37, 64, 0.08);
}

.managed-card-image {
  display: none;
  width: calc(100% + 52px);
  height: 150px;
  margin: -26px -26px 18px;
  overflow: hidden;
  background: #eaf0f7;
  border-radius: 14px 14px 0 0;
}

.managed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-managed-card-image .managed-card-image {
  display: block;
}

.course-card.primary {
  border-left-color: var(--course-primary);
}

.course-card.junior {
  border-left-color: var(--course-junior);
}

.course-card.senior {
  border-left-color: var(--course-senior);
}

.course-card:hover,
.teacher-grid a:hover,
.blog-card:hover,
.event-grid a:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 64px rgba(20, 33, 61, 0.18);
}

.teacher-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.course-card img,
.teacher-grid img {
  height: 218px;
}

.teacher-card img {
  width: 40%;
  height: 180px;
  flex: 0 0 40%;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.teacher-info {
  display: flex;
  width: 60%;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.teacher-info h3 {
  margin: 0;
  color: #1E293B;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.teacher-position {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-tags span {
  display: inline-block;
  padding: 4px 12px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.teacher-bio {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6B7280;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.teacher-action {
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.42);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.course-card div,
.teacher-grid div,
.blog-card div {
  padding: 24px;
}

.teacher-card div,
.teacher-grid .teacher-info {
  padding: 0;
}

.course-card .course-badge {
  padding: 6px 10px;
}

.blog-card {
  min-height: 250px;
}

.blog-card div {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.blog-card::after {
  content: "阅读全文";
  display: block;
  margin: auto 24px 24px;
  color: var(--blue);
  font-weight: 800;
}

.course-card small,
.blog-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.course-card ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: #344057;
}

.free-consultation-float {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 60;
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.free-consultation-float:hover {
  color: var(--white);
  background: #1D4ED8;
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.38);
}

.free-consultation-float:active {
  transform: translateY(0) scale(0.97);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 48px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--navy);
}

.cta-section p {
  max-width: 760px;
  color: #dce4f3;
}

.success-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(10, 37, 64, 0.1);
}

.carousel-track {
  position: relative;
  min-height: 600px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 600px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-image {
  width: 50%;
  min-height: 600px;
  background-position: center;
  background-size: cover;
}

.slide-content {
  display: flex;
  width: 50%;
  padding: 40px;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}

.story-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.slide-content h2 {
  margin: 0 0 10px;
  color: #1E293B;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.35;
  font-weight: 900;
}

.story-subtitle {
  max-width: none;
  margin: 0 0 22px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.story-compare {
  display: flex;
  gap: 4%;
  margin: 0 0 22px;
}

.story-compare-item {
  display: flex;
  width: 48%;
  gap: 10px;
  padding: 16px;
  align-items: flex-start;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.story-compare-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.story-compare-item > span {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.4;
}

.story-compare-item.pain {
  color: #DC2626;
  background: #FEF2F2;
}

.story-compare-item.result {
  color: #059669;
  background: #ECFDF5;
}

.story-compare-item strong {
  display: block;
  margin-bottom: 6px;
  color: currentColor;
  font-size: 15px;
}

.story-compare-item p {
  margin: 0;
  color: currentColor;
  font-size: 14px;
  line-height: 1.6;
}

.slide-content blockquote {
  position: relative;
  margin: 22px 0 0;
  padding: 18px 20px 18px 44px;
  opacity: 0;
  background: #EFF6FF;
  border-left: 4px solid #2563EB;
  border-radius: 0 12px 12px 0;
  color: #555;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeIn 0.8s ease forwards;
}

.slide-content blockquote::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 16px;
  color: #2563EB;
  font-size: 36px;
  font-style: normal;
  line-height: 1;
}

.slide-content cite {
  display: block;
  margin-top: 10px;
  color: #999;
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.slide-content cite::before {
  content: "—— ";
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(10, 37, 64, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow.prev {
  left: 24px;
}

.carousel-arrow.next {
  right: 24px;
}

.carousel-arrow:hover {
  color: var(--white);
  background: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 7;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(10, 37, 64, 0.22);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active {
  width: 30px;
  background: var(--primary);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.event-grid a {
  padding: 28px;
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-grid time {
  color: var(--blue);
  font-weight: 800;
}

.activity-section {
  padding: 48px 0;
  background-color: #F8FAFC;
}

.activity-timeline {
  display: grid;
  gap: 20px;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px;
  margin-bottom: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.activity-card .month {
  flex: 0 0 96px;
  color: #2563EB;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.activity-card h3 {
  margin: 0 0 8px;
  color: #1E293B;
  font-size: 22px;
  font-weight: 800;
}

.activity-card p {
  margin: 0;
  color: #666;
  line-height: 1.7;
}

.news-tools {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active,
.tab:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.news-search {
  width: min(320px, 100%);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
}

.news-text-list {
  display: grid;
  gap: 0;
  max-width: 980px;
}

.news-text-item {
  display: block;
  padding: 0 0 22px;
  margin-bottom: 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.news-text-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}

.news-text-item p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.news-text-item:hover span {
  color: var(--blue);
}

.news-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(36, 87, 214, 0.06), transparent 28%),
    var(--gray);
}

.news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.news-heading h2 {
  position: relative;
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--navy);
  font-size: clamp(38px, 4vw, 56px);
  letter-spacing: 0;
}

.news-heading h2::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 6px;
  background: var(--gold);
  border-radius: 999px;
}

.news-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.news-heading a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--blue);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.07);
  font-weight: 900;
  white-space: nowrap;
}

.news-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.news-main-column,
.news-side-column {
  min-height: 620px;
}

.news-main-column {
  display: grid;
  gap: 18px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.news-feature-card {
  position: relative;
  min-height: 300px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding: 26px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.18), rgba(10, 37, 64, 0.86)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1400&q=85") center/cover;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(10, 37, 64, 0.16);
}

.news-feature-card span {
  width: fit-content;
  padding: 7px 14px;
  color: var(--white);
  background: var(--gold);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.news-feature-card h3 {
  max-width: 620px;
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.news-feature-card time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 700;
}

.stage-news-panel {
  display: none;
  gap: 14px;
  min-height: 0;
  animation: newsFade 220ms ease;
}

.stage-news-panel.active {
  display: grid;
}

.stage-news-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 116px;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  padding: 20px 22px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.07);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.stage-news-row:hover,
.stage-news-row:active {
  background: #fbfcff;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(10, 37, 64, 0.1);
}

.stage-news-row span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue);
  background: #eef4ff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}

.stage-news-row strong {
  color: var(--navy);
  font-size: 18px;
}

.stage-news-row time {
  color: #8a95a5;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.news-side-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.stage-switch-card,
.hot-news-card {
  padding: 26px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(10, 37, 64, 0.08);
}

.stage-switch-card h3,
.hot-news-card h3 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 22px;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  background: #f3f6fb;
  border-radius: 18px;
}

.stage-tab {
  min-height: 42px;
  color: #667386;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.stage-tab.active {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(36, 87, 214, 0.22);
}

.hot-news-card {
  display: grid;
  align-content: start;
  min-height: 0;
}

.hot-news-card a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}

.hot-news-card a:last-child {
  border-bottom: 0;
}

.hot-news-card span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hot-news-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.faq-section {
  background: var(--gray);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  width: 100%;
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #1E293B;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.faq-mark {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}

.faq-arrow {
  color: #9CA3AF;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  margin: 0 24px 20px;
  padding: 14px 14px 14px 12px;
  color: #6B7280;
  background: #F9FAFB;
  border-left: 3px solid #2563EB;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.faq-cta {
  margin-top: 34px;
  padding: 32px 24px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-cta p {
  margin: 0 0 18px;
  color: #1E293B;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
}

.faq-cta a {
  display: inline-flex;
  padding: 12px 32px;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: #2563EB;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-cta a:hover {
  color: #FFFFFF;
  background: #1D4ED8;
  transform: translateY(-2px);
}

.blog-card.hidden {
  display: none;
}

.contact-info {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-info span {
  padding: 14px 16px;
  color: var(--navy);
  background: var(--gray);
  border-left: 4px solid var(--gold);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form .full-field,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 5vw, 72px);
  color: #dce4f3;
  background: var(--navy-2);
}

.footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  .feature-band,
  .product-grid,
  .course-grid,
  .teacher-grid,
  .blog-grid,
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-level-group {
    grid-template-columns: 1fr;
  }

  .course-level-head {
    position: static;
  }

  .teacher-card {
    flex-direction: column;
    align-items: stretch;
  }

  .teacher-card img,
  .teacher-info {
    width: 100%;
    flex-basis: auto;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .news-two-column {
    grid-template-columns: 1fr;
  }

  .news-side-column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .cta-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    flex-direction: column;
    min-height: 680px;
  }

  .slide-image,
  .slide-content {
    width: 100%;
  }

  .slide-image {
    min-height: 300px;
  }

  .slide-content {
    min-height: 380px;
    padding: 32px 24px 56px;
  }

  .story-compare {
    flex-direction: column;
    gap: 14px;
  }

  .story-compare-item {
    width: 100%;
  }

  .about-section {
    min-height: auto;
  }

  .about-data-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-data-item:nth-child(3)::before {
    display: none;
  }

  .about-action {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .hotline {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 8px 0;
  }

  .site-nav.open {
    display: flex;
  }

  .tf-hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px 46px;
    background: linear-gradient(180deg, #0A2540 0%, #102f4d 100%);
  }

  .tf-hero::before {
    content: "";
    display: block;
    height: clamp(240px, 46vw, 340px);
    margin: 0 -20px 34px;
    background:
      linear-gradient(180deg, rgba(10, 37, 64, 0.02) 0%, rgba(10, 37, 64, 0.18) 62%, rgba(10, 37, 64, 0.72) 100%),
      url("https://image5.sixthtone.com/image/5/22/121.jpg") center top / cover no-repeat;
  }

  .tf-hero.has-managed-bg::before {
    background:
      linear-gradient(180deg, rgba(10, 37, 64, 0.02) 0%, rgba(10, 37, 64, 0.18) 62%, rgba(10, 37, 64, 0.72) 100%),
      var(--managed-bg) center top / cover no-repeat;
  }

  .tf-hero::after {
    display: none;
  }

  .hero-content {
    max-width: 620px;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 420px;
    margin-top: 28px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 18px;
  }

  .advantage-panel {
    height: auto;
    padding: 24px;
  }

  .advantage-screen {
    min-height: 360px;
  }

  .advantage-track {
    position: absolute;
    inset: 0;
  }

  .advantage-point,
  .advantage-point:nth-child(1),
  .advantage-point:nth-child(2),
  .advantage-point:nth-child(3),
  .advantage-point:nth-child(4),
  .advantage-point:nth-child(5),
  .advantage-point:nth-child(1):hover,
  .advantage-point:nth-child(2):hover,
  .advantage-point:nth-child(3):hover,
  .advantage-point:nth-child(4):hover,
  .advantage-point:nth-child(5):hover {
    position: absolute;
    width: min(100%, 420px);
    min-height: 300px;
  }

  .advantage-point.is-active {
    transform: translate(-50%, -50%) translateX(0) scale(1);
  }

  .advantage-point.is-prev {
    transform: translate(-50%, -50%) translateX(-72%) scale(0.78);
  }

  .advantage-point.is-next {
    transform: translate(-50%, -50%) translateX(72%) scale(0.78);
  }

  .advantage-point.is-far-prev,
  .advantage-point.is-far-next {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.68);
  }

  .advantage-arrow {
    width: 44px;
    height: 44px;
  }
  .feature-band {
    margin-top: 0;
    padding: 0;
  }

  .news-tools {
    flex-direction: column;
  }

  .news-heading {
    display: block;
    padding: 0;
  }

  .news-heading a {
    display: inline-flex;
    margin-top: 14px;
  }

  .news-side-column {
    grid-template-columns: 1fr;
  }

  .stage-news-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 14px;
    min-height: auto;
    padding: 20px;
  }

  .stage-news-row time {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .section,
  .cta-section,
  .slide-content,
  .footer {
    padding-inline: 16px;
  }

  .tf-hero {
    padding: 0 16px 34px;
  }

  .tf-hero::before {
    height: clamp(210px, 64vw, 286px);
    margin: 0 -16px 28px;
    background-position: center top;
  }

  .tf-hero.has-managed-bg::before {
    background:
      linear-gradient(180deg, rgba(10, 37, 64, 0.02) 0%, rgba(10, 37, 64, 0.18) 62%, rgba(10, 37, 64, 0.72) 100%),
      var(--managed-bg) center top / cover no-repeat;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .news-feature-card {
    min-height: 230px;
    padding: 22px;
  }

  .news-feature-card h3 {
    font-size: 24px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.14;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .course-level-group {
    padding: 20px;
    border-radius: 22px;
  }

  .product-card {
    min-height: auto;
  }

  .activity-section {
    padding: 32px 16px;
  }

  .activity-card {
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .activity-card .month {
    flex-basis: 72px;
    font-size: 38px;
  }

  .success-carousel,
  .carousel-track,
  .carousel-slide {
    min-height: 700px;
  }

  .story-compare {
    flex-direction: column;
    gap: 14px;
  }

  .slide-image {
    min-height: 260px;
  }

  .slide-content {
    min-height: 440px;
  }

  .carousel-arrow {
    display: none;
  }

  .free-consultation-float {
    right: 16px;
    bottom: 16px;
    min-height: 50px;
    padding: 0 20px;
  }

  .activity-card {
    display: block;
  }

  .activity-card .month {
    display: block;
    margin-bottom: 14px;
  }

  .feature-band,
  .product-grid,
  .course-grid,
  .teacher-grid,
  .blog-grid,
  .event-grid,
  .about-data-strip,
  .contact-form,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .about-section {
    border-radius: 24px;
  }

  .about-data-item {
    min-height: 142px;
  }

  .about-data-item::before,
  .about-data-item:nth-child(3)::before {
    display: none;
  }

  .about-action .button {
    width: 100%;
    justify-content: center;
  }

  .tf-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .tf-section-title span {
    width: 100%;
  }

  .teacher-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .teacher-card img {
    height: 220px;
  }

  .footer {
    display: block;
  }
}

/* Course system stable layout. */
.programs-section {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.programs-section .course-system {
  gap: 42px;
}

.programs-section .course-level-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.programs-section .course-level-head {
  display: flex;
  min-height: auto;
  padding: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border-radius: 0;
}

.programs-section .course-level-head p {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.programs-section .course-level-head h3 {
  margin: 0;
  color: #1e293b;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.programs-section .course-level-head span {
  max-width: 420px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
  text-align: right;
}

.programs-section .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.programs-section .course-card,
.programs-section .product-card {
  min-height: 238px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-top: 4px solid #2563eb;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.programs-section .course-card.junior {
  border-top-color: #059669;
  border-left-color: rgba(148, 163, 184, 0.22);
}

.programs-section .course-card.senior {
  border-top-color: #475569;
  border-left-color: rgba(148, 163, 184, 0.22);
}

.programs-section .course-card:hover,
.programs-section .product-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  border-top-color: #2563eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.programs-section .course-card.junior:hover {
  border-top-color: #059669;
}

.programs-section .course-card.senior:hover {
  border-top-color: #475569;
}

.programs-section .product-card h3 {
  font-size: 19px;
}

.programs-section .product-card p {
  margin-bottom: 12px;
  line-height: 1.62;
}

.programs-section .course-card ul {
  gap: 6px;
  margin-bottom: 14px;
}

.programs-section .product-card strong {
  padding-top: 12px;
}

@media (max-width: 1040px) {
  .programs-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .programs-section .course-level-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .programs-section .course-level-head span {
    max-width: none;
    text-align: left;
  }

  .programs-section .product-grid {
    grid-template-columns: 1fr;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
}

.container,
.main,
.wrapper,
.page-wrapper,
.site-content {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}

[style*="100vw"] {
  width: 100% !important;
}

@media (min-width: 768px) {
  .container,
  .main,
  .wrapper,
  .page-wrapper,
  .site-content {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container,
  .main,
  .wrapper,
  .page-wrapper,
  .site-content {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container,
  .main,
  .wrapper,
  .page-wrapper,
  .site-content {
    max-width: 1200px;
  }
}

/* 清除默认 */
body {
  margin: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* 强制消灭所有100vw导致的横向撑爆 */
* {
  box-sizing: border-box;
}

[style*="100vw"],
[style*="width:100vw"] {
  width: 100% !important;
  min-width: 0 !important;
}

/* 页面最外层所有直接子区块限宽居中 */
body > div,
body > section,
body > main,
body > article,
.wrapper,
.container,
.page-wrap,
.layout,
#wrap,
#container,
#main {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 全宽背景区块——背景铺满但内层内容居中（如有此类结构自动适配） */
.banner,
.header,
.footer,
.section-full,
[class*="banner"],
[class*="header"],
[class*="footer"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.banner > *,
.header > *,
.footer > *,
.section-full > * {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 图片视频不撑破 */
img,
video,
iframe,
svg,
table {
  max-width: 100% !important;
  height: auto !important;
}

/* 修复上一段强制限宽对首页主体、头部和图标的误伤 */
body > main#top {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-header {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nav-wrap {
  width: 100% !important;
  max-width: none !important;
  min-height: 82px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 clamp(20px, 5vw, 72px) !important;
}

.tf-hero {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 92px clamp(20px, 5vw, 72px) 120px !important;
}

.section,
.cta-section,
.footer {
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(20px, 4vw, 48px) !important;
  padding-right: clamp(20px, 4vw, 48px) !important;
}

.footer {
  width: 100% !important;
  max-width: none !important;
  padding: 38px clamp(20px, 5vw, 72px) !important;
}

svg {
  width: revert-layer !important;
  height: revert-layer !important;
}

.icon svg,
.advantage-arrow svg,
.about-data-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.advantage-arrow svg {
  width: 25px !important;
  height: 25px !important;
}

@media (max-width: 820px) {
  .tf-hero {
    padding: 0 20px 46px !important;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .section,
  .cta-section,
  .footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .tf-hero {
    padding: 0 16px 34px !important;
  }
}

/* 整体视觉尺寸校正：不使用全局缩放，只收敛字号、间距和卡片尺寸 */
body {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

h1 {
  font-size: clamp(42px, 4.8vw, 64px) !important;
  line-height: 1.1 !important;
  margin-bottom: 18px !important;
}

h2 {
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.2 !important;
}

h3 {
  font-size: 20px !important;
}

.tf-hero {
  min-height: 560px !important;
  padding-top: 72px !important;
  padding-bottom: 88px !important;
}

.hero-content {
  max-width: 680px !important;
}

.hero-content p {
  max-width: 500px !important;
  font-size: 18px !important;
  line-height: 1.62 !important;
}

.hero-actions {
  gap: 14px !important;
  margin-top: 30px !important;
}

.button,
.hotline {
  min-height: 44px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
}

.section {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

.section-head {
  gap: 24px !important;
  margin-bottom: 30px !important;
}

.section-head h2 {
  font-size: clamp(30px, 3.2vw, 44px) !important;
}

.section-head p,
.section-lead,
.contact-copy p,
.about-hero p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.advantage-panel {
  padding: 28px !important;
}

.advantage-screen {
  min-height: 320px !important;
}

.advantage-point {
  min-height: 240px !important;
  padding: 28px !important;
}

.advantage-point h3 {
  font-size: clamp(24px, 2.4vw, 30px) !important;
}

.advantage-point p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.about-section {
  min-height: 560px !important;
  gap: 26px !important;
}

.about-hero h2 {
  font-size: clamp(34px, 4vw, 48px) !important;
}

.about-data-item {
  min-height: 132px !important;
  padding: 22px !important;
}

.about-data-item strong {
  font-size: clamp(28px, 2.8vw, 36px) !important;
}

.course-system {
  gap: 24px !important;
}

.course-level-group {
  gap: 20px !important;
  padding: 24px !important;
  border-radius: 20px !important;
}

.course-level-head h3 {
  font-size: clamp(24px, 2.4vw, 30px) !important;
}

.product-card {
  min-height: 260px !important;
  padding: 22px !important;
}

.product-card h3 {
  font-size: 19px !important;
}

.product-card p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.success-carousel,
.carousel-track,
.carousel-slide {
  min-height: 500px !important;
}

.slide-image {
  min-height: 500px !important;
}

.slide-content {
  padding: 32px !important;
}

.slide-content h2 {
  font-size: clamp(26px, 2.7vw, 36px) !important;
}

.activity-section {
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}

.activity-card {
  padding: 24px !important;
}

.activity-card .month {
  font-size: 40px !important;
}

.teacher-card {
  padding: 20px !important;
}

.teacher-card img {
  height: 150px !important;
}

.news-section {
  min-height: auto !important;
}

.news-feature-card {
  min-height: 260px !important;
}

.news-feature-card h3 {
  font-size: clamp(24px, 2.7vw, 34px) !important;
}

.stage-news-row {
  min-height: 64px !important;
  padding: 18px 20px !important;
}

.contact-section {
  gap: 36px !important;
}

@media (max-width: 820px) {
  h1 {
    font-size: 34px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  .tf-hero {
    min-height: auto !important;
  }

  .tf-hero::before {
    height: clamp(190px, 46vw, 280px) !important;
  }

  .section-head {
    display: block !important;
  }

  .success-carousel,
  .carousel-track,
  .carousel-slide {
    min-height: 620px !important;
  }

  .slide-image {
    min-height: 240px !important;
  }
}

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

  h1 {
    font-size: 30px !important;
  }

  .hero-content p {
    font-size: 15px !important;
  }

  .section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .course-level-group,
  .product-card,
  .teacher-card,
  .activity-card,
  .contact-form {
    padding: 18px !important;
  }

  .success-carousel,
  .carousel-track,
  .carousel-slide {
    min-height: 650px !important;
  }
}

/* Homepage news module: featured story + compact list */
.news-wrapper {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.news-featured {
  flex: 0 0 calc(60% - 12px);
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.news-featured img {
  display: block;
  width: 100%;
  height: 260px !important;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.featured-title {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.4;
}

.featured-desc {
  margin: 8px 0;
  color: #666;
  font-size: 14px !important;
  line-height: 1.65;
}

.news-featured time {
  color: #96a1b2;
  font-size: 13px;
  font-weight: 800;
}

.news-list {
  flex: 0 0 calc(40% - 12px);
  min-width: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  border-bottom: 1px solid #eee;
}

.news-list li:first-child {
  border-top: 1px solid #eee;
}

.news-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-list li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.news-list .index {
  flex: 0 0 24px;
  min-width: 24px;
  color: #999;
  font-size: 12px;
  font-weight: 800;
}

.news-list strong {
  flex: 1 1 auto;
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list time {
  flex: 0 0 auto;
  color: #96a1b2;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .news-wrapper {
    flex-direction: column;
  }

  .news-featured,
  .news-list {
    flex: 0 0 100%;
  }

  .news-featured img {
    height: 200px !important;
  }

  .news-list strong {
    white-space: normal;
  }
}

/* Unified page layout: full-width module backgrounds, centered 1200px content */
:root {
  --container-max-width: 1200px;
  --container-padding: 24px;
  --section-gap: 64px;
}

.container {
  width: 100% !important;
  max-width: var(--container-max-width) !important;
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.module-bg,
.module-bg-white {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: var(--section-gap) !important;
  padding-bottom: var(--section-gap) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.module-bg {
  background-color: #f8f9fa !important;
}

.module-bg-white {
  background-color: #ffffff !important;
}

body {
  overflow-x: hidden !important;
}

main#top {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-header,
.footer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nav-wrap {
  width: 100% !important;
  max-width: var(--container-max-width) !important;
  min-height: 78px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
}

.tf-hero {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  min-height: 620px !important;
}

.tf-hero::after {
  inset-left: var(--container-padding) !important;
  inset-right: var(--container-padding) !important;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

.tf-hero > .hero-content,
.tf-hero > .hero-panel {
  margin-left: max(var(--container-padding), calc((100vw - var(--container-max-width)) / 2 + var(--container-padding))) !important;
}

.tf-hero > .hero-content {
  padding-top: 92px !important;
}

.tf-hero > .hero-panel {
  margin-bottom: 84px !important;
}

.section,
.success-carousel,
.activity-section,
.teacher-section,
.news-section,
.faq-section,
.contact-section,
.advantages-section,
.about-section,
.programs-section {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: var(--section-gap) 0 !important;
  background-color: #f8f9fa !important;
}

.about-section,
.teacher-section,
.faq-section,
.footer {
  background-color: #ffffff !important;
}

.advantages-section > *,
.about-section > *,
.programs-section > *,
.activity-section > *,
.teacher-section > *,
.news-section > *,
.faq-section > *,
.footer > * {
  width: 100% !important;
  max-width: var(--container-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
  box-sizing: border-box !important;
}

.contact-section {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr) !important;
  gap: clamp(30px, 6vw, 72px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: max(var(--container-padding), calc((100vw - var(--container-max-width)) / 2 + var(--container-padding))) !important;
  padding-right: max(var(--container-padding), calc((100vw - var(--container-max-width)) / 2 + var(--container-padding))) !important;
}

.contact-section > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding-left: max(var(--container-padding), calc((100vw - var(--container-max-width)) / 2 + var(--container-padding))) !important;
  padding-right: max(var(--container-padding), calc((100vw - var(--container-max-width)) / 2 + var(--container-padding))) !important;
}

.footer > * {
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.success-carousel {
  max-width: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.success-carousel > .carousel-track,
.success-carousel > .carousel-dots {
  width: 100% !important;
  max-width: var(--container-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
  box-sizing: border-box !important;
}

.carousel-arrow.prev {
  left: max(16px, calc((100vw - var(--container-max-width)) / 2 + 16px)) !important;
}

.carousel-arrow.next {
  right: max(16px, calc((100vw - var(--container-max-width)) / 2 + 16px)) !important;
}

.course-grid,
.product-grid,
.teacher-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
}

.news-wrapper {
  max-width: var(--container-max-width) !important;
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
  box-sizing: border-box !important;
}

img,
video,
iframe,
svg {
  max-width: 100% !important;
}

[style*="100vw"],
[style*="width:100vw"] {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --section-gap: 48px;
  }

  .tf-hero {
    min-height: auto !important;
  }

  .tf-hero > .hero-content,
  .tf-hero > .hero-panel {
    margin-left: var(--container-padding) !important;
    margin-right: var(--container-padding) !important;
  }

  .tf-hero > .hero-content {
    padding-top: 72px !important;
  }

  .course-grid,
  .product-grid,
  .teacher-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-section,
  .footer {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
  }
}

/* Refined news center and trial form polish */
.news-section {
  background: #f8f9fa !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.news-heading {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px !important;
}

.news-heading h2 {
  position: relative;
  margin-bottom: 5px !important;
  padding-left: 14px;
  color: #162033 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.news-heading h2::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  background: #2563eb;
  border-radius: 999px;
}

.news-heading p {
  margin: 0 !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.news-heading a {
  color: #2563eb !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4;
}

.news-heading a::after {
  content: " →";
  font-weight: 900;
}

.news-wrapper {
  gap: 22px !important;
  align-items: stretch !important;
}

.news-featured {
  border-radius: 14px;
}

.news-featured img {
  height: 240px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.featured-title {
  margin-top: 10px !important;
  color: #1f2937 !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
}

.featured-desc {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.news-featured time {
  color: #999 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.news-list li {
  border-bottom-color: #edf0f4 !important;
}

.news-list li:first-child {
  border-top-color: #edf0f4 !important;
}

.news-list li a {
  gap: 10px !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
}

.news-list .index {
  display: inline-flex;
  flex: 0 0 30px !important;
  min-width: 30px !important;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #2563eb !important;
  background: #e6f2ff;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1;
}

.news-list strong {
  color: #333 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
}

.news-list time {
  color: #999 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.faq-section .tf-section-title {
  margin-bottom: 18px !important;
}

.faq-section .tf-section-title h2 {
  color: #162033 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

.faq-section .tf-section-title a {
  color: #1d4ed8 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid !important;
  gap: 16px !important;
  align-self: center !important;
  width: 100% !important;
  padding: 28px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.contact-form label {
  display: grid !important;
  gap: 7px !important;
  color: #333 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  color: #333 !important;
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  outline: none !important;
  box-shadow: none !important;
  font: 500 14px/1.5 Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form textarea {
  min-height: 120px !important;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa !important;
  font-weight: 400 !important;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12) !important;
}

.contact-form button,
.contact-form .button.primary {
  width: 100% !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  color: #ffffff !important;
  background: #0056b3 !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.18) !important;
}

.contact-form button:hover,
.contact-form .button.primary:hover {
  background: #004494 !important;
  transform: translateY(-1px);
}

.contact-form button:active,
.contact-form .button.primary:active {
  transform: translateY(0) scale(0.99);
}

@media (max-width: 768px) {
  .news-section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  .news-heading {
    align-items: flex-start;
    margin-bottom: 18px !important;
  }

  .news-featured img {
    height: 210px !important;
  }

  .news-list li a {
    align-items: flex-start !important;
  }

  .news-list time {
    padding-top: 2px;
  }

  .contact-form {
    padding: 22px !important;
  }
}
