/* 凌蒙首页 · 欧曼谛式布局（紫色主题） */
:root {
  --omd-primary: #7b2cbf;
  --omd-primary-light: #b565d8;
  --omd-primary-dark: #5a1f8a;
  --omd-accent: #8e24aa;
  --omd-soft: #f3e8ff;
  --omd-soft-2: #faf5ff;
  --omd-text: #2a2a2a;
  --omd-muted: #666;
  --omd-radius: 12px;
  --omd-max: 1200px;
  --omd-header-h: 56px;
  --omd-bottom-h: 56px;
}

body.omd-home {
  background: #f7f5fa !important;
  color: var(--omd-text);
  padding-bottom: calc(var(--omd-bottom-h) + 12px);
  scroll-behavior: smooth;
}

body.omd-home [id^="omd-"] {
  scroll-margin-top: calc(var(--omd-header-h) + 48px);
}

body.omd-home .omd-wrap {
  width: 100%;
  max-width: var(--omd-max);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.omd-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 12px rgba(123, 44, 191, 0.08);
}

.omd-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--omd-header-h);
  max-width: var(--omd-max);
  margin: 0 auto;
  padding: 0 16px;
}

.omd-header__logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.omd-header__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--omd-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.omd-header__tel svg {
  width: 18px;
  height: 18px;
  fill: var(--omd-primary);
}

.omd-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.omd-header__nav a {
  color: var(--omd-text);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.omd-header__nav a:hover {
  color: var(--omd-primary);
}

.omd-header__cta {
  display: none;
  background: linear-gradient(90deg, var(--omd-primary), var(--omd-primary-light));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.omd-header__menu {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.omd-header__menu span {
  display: block;
  height: 2px;
  background: var(--omd-primary);
  border-radius: 2px;
}

.omd-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}

.omd-drawer.is-open {
  display: block;
}

.omd-drawer__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.omd-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  max-width: 300px;
  height: 100%;
  background: #fff;
  padding: 28px 20px;
  box-sizing: border-box;
}

.omd-drawer__panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  color: var(--omd-text);
  text-decoration: none;
  font-size: 16px;
}

/* ---------- Section title ---------- */
.omd-sec {
  padding: 28px 0 8px;
}

.omd-sec--soft {
  background: linear-gradient(180deg, var(--omd-soft-2), #fff);
}

.omd-sec--tint {
  background: var(--omd-soft);
}

.omd-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.omd-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--omd-text);
  position: relative;
  padding-left: 12px;
  margin: 0;
}

.omd-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--omd-primary), var(--omd-primary-light));
}

.omd-title__more {
  color: var(--omd-primary);
  font-size: 13px;
  text-decoration: none;
}

/* ---------- Banner ---------- */
.omd-banner {
  position: relative;
  overflow: hidden;
  background: #1a1025;
}

.omd-banner .swiper {
  width: 100%;
}

.omd-banner .swiper-slide img {
  width: 100%;
  height: 42vw;
  max-height: 420px;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.omd-banner__hero {
  display: none;
  position: relative;
  min-height: 420px;
  background: linear-gradient(105deg, rgba(26, 16, 37, 0.78), rgba(90, 31, 138, 0.35)),
    url(../img/page_home-banner_bg.jpg) center/cover no-repeat;
  color: #fff;
  align-items: center;
}

.omd-banner__hero-inner {
  max-width: var(--omd-max);
  margin: 0 auto;
  padding: 48px 24px;
}

.omd-banner__hero-inner .tag {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 12px;
}

.omd-banner__hero-inner h1 {
  font-size: 42px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
}

.omd-banner__hero-inner p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 0 24px;
}

.omd-banner__hero-inner .button_red {
  cursor: pointer;
}

.omd-banner .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.55;
}

.omd-banner .swiper-pagination-bullet-active {
  background: var(--omd-primary-light);
  opacity: 1;
  width: 18px;
  border-radius: 4px;
}

/* ---------- Sell points strip ---------- */
.omd-sell {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid #f0e8f8;
}

.omd-sell__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0 16px;
  max-width: var(--omd-max);
  margin-left: auto;
  margin-right: auto;
}

.omd-sell__list::-webkit-scrollbar {
  display: none;
}

.omd-sell__list li {
  flex: 0 0 auto;
  background: var(--omd-soft);
  color: var(--omd-primary-dark);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- Icon nav grid ---------- */
.omd-icons {
  background: #fff;
  padding: 20px 0 8px;
  margin-bottom: 10px;
}

.omd-icons__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.omd-icons__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--omd-text);
  gap: 8px;
}

.omd-icons__thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(123, 44, 191, 0.18);
}

.omd-icons__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.omd-icons__grid span {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Course cards ---------- */
.omd-courses__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.omd-course {
  background: #fff;
  border-radius: var(--omd-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(42, 20, 60, 0.06);
}

.omd-course a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.omd-course__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.omd-course__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.omd-course:hover .omd-course__cover img {
  transform: scale(1.04);
}

.omd-course__badge {
  position: absolute;
  left: 0;
  bottom: 10px;
  background: linear-gradient(90deg, var(--omd-primary), var(--omd-primary-light));
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 0 999px 999px 0;
}

.omd-course__body {
  padding: 10px 12px 14px;
}

.omd-course__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--omd-muted);
  margin-bottom: 4px;
}

.omd-course__meta .tag {
  color: var(--omd-primary);
  font-weight: 600;
}

.omd-course__name {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.omd-courses__cta {
  display: block;
  text-align: center;
  margin: 8px auto 16px;
  max-width: 280px;
  background: linear-gradient(90deg, var(--omd-primary), var(--omd-primary-light));
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Horizontal cards swiper ---------- */
.omd-hscroll {
  padding-bottom: 20px;
}

.omd-hscroll .swiper-slide {
  width: 72%;
}

.omd-card {
  background: #fff;
  border-radius: var(--omd-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(42, 20, 60, 0.06);
}

.omd-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.omd-card__img--wide {
  aspect-ratio: 16 / 10;
}

.omd-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.omd-card__cap {
  padding: 10px 12px 14px;
}

.omd-card__cap strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.omd-card__cap p {
  margin: 0;
  font-size: 12px;
  color: var(--omd-muted);
}

.omd-hscroll .swiper-pagination {
  position: relative;
  margin-top: 12px;
}

.omd-hscroll .swiper-pagination-bullet-active {
  background: var(--omd-primary);
}

/* ---------- Video ---------- */
.omd-video video {
  width: 100%;
  border-radius: var(--omd-radius);
  display: block;
  background: #000;
  max-height: 480px;
}

/* ---------- Form tweaks in omd ---------- */
body.omd-home .form-container {
  background: linear-gradient(180deg, #fff, var(--omd-soft));
  padding: 28px 0 40px;
  margin-top: 8px;
}

body.omd-home .form-container .content {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

body.omd-home .form-container h2 {
  color: var(--omd-primary-dark);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 18px;
}

body.omd-home .footer {
  background: #1f142b;
  color: rgba(255, 255, 255, 0.85);
  padding-bottom: 24px;
}

body.omd-home .footer a,
body.omd-home .footer p,
body.omd-home .footer strong {
  color: inherit;
}

body.omd-home .footer_bottom img {
  max-height: 48px;
  filter: brightness(1.05);
}

/* 极小彩蛋 */
body.omd-home .omd-easter {
  display: inline-block;
  margin-left: 4px;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.18);
  font-weight: 400;
  user-select: none;
  vertical-align: baseline;
}

/* Footer nav already purple via previous pass */
body.omd-home .footer-nav {
  z-index: 190;
}

@media screen and (max-width: 1023px) {
  body.omd-home .footer-nav {
    display: flex !important;
  }
}

/* ---------- Subnav (欧曼谛横向导航) ---------- */
.omd-subnav {
  position: sticky;
  top: var(--omd-header-h);
  z-index: 180;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.omd-subnav__track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--omd-max);
  margin: 0 auto;
  padding: 0 12px;
}

.omd-subnav__track::-webkit-scrollbar {
  display: none;
}

.omd-subnav__track a {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  font-weight: 600;
}

.omd-subnav__track a.is-active,
.omd-subnav__track a:hover {
  color: var(--omd-primary);
}

.omd-subnav__track a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--omd-primary), var(--omd-primary-light));
}

.omd-sec__desc {
  margin: -6px 0 16px;
  color: var(--omd-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Brand story ---------- */
.omd-brand__hero {
  display: grid;
  gap: 18px;
  background: #fff;
  border-radius: var(--omd-radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(42, 20, 60, 0.06);
  margin-bottom: 18px;
}

.omd-brand__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.omd-brand__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.omd-brand__copy {
  padding: 4px 16px 20px;
}

.omd-brand__eyebrow {
  color: var(--omd-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.omd-brand__copy h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.omd-brand__copy p {
  margin: 0 0 12px;
  color: #555;
  font-size: 14px;
  line-height: 1.75;
}

.omd-brand__culture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.omd-brand__chip {
  background: var(--omd-soft);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--omd-primary-dark);
  line-height: 1.45;
}

.omd-brand__chip span {
  display: block;
  font-size: 12px;
  color: var(--omd-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.omd-brand__sub {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--omd-text);
}

.omd-brand__adv {
  margin-bottom: 22px;
}

.omd-brand__adv-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.omd-brand__adv-grid li {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 8px rgba(42, 20, 60, 0.05);
}

.omd-brand__adv-grid strong {
  display: block;
  color: var(--omd-primary);
  font-size: 14px;
  margin-bottom: 4px;
}

.omd-brand__adv-grid p {
  margin: 0;
  font-size: 12px;
  color: var(--omd-muted);
  line-height: 1.5;
}

.omd-brand__founder-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.omd-brand__founder {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  background: #fff;
  border-radius: var(--omd-radius);
  padding: 12px;
  box-shadow: 0 1px 8px rgba(42, 20, 60, 0.05);
}

.omd-brand__founder-photo {
  width: 88px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
}

.omd-brand__founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.omd-brand__founder h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.omd-brand__founder p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.65;
}

.omd-brand__timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #e4d4f5;
}

.omd-brand__timeline li {
  position: relative;
  padding: 0 0 16px 18px;
}

.omd-brand__timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--omd-primary);
  box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.15);
}

.omd-brand__timeline em {
  display: block;
  font-style: normal;
  color: var(--omd-primary);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.omd-brand__timeline span {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

@media screen and (min-width: 768px) {
  .omd-brand__hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  .omd-brand__media {
    aspect-ratio: auto;
    min-height: 320px;
  }

  .omd-brand__copy {
    padding: 28px 28px 28px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .omd-brand__copy h3 {
    font-size: 26px;
  }

  .omd-brand__culture {
    grid-template-columns: repeat(4, 1fr);
  }

  .omd-brand__adv-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .omd-brand__founder-grid {
    grid-template-columns: 1fr 1fr;
  }

  .omd-subnav__track {
    justify-content: center;
    gap: 8px;
  }

  .omd-header__nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .omd-header__nav a {
    font-size: 14px;
  }
}

@media screen and (min-width: 1024px) {
  .omd-header__bar {
    gap: 20px;
  }

  .omd-header__tel {
    order: 3;
  }
}

/* Isolate from legacy layout rules */
body.omd-home .home_banner-icon_list,
body.omd-home > .header:not(.omd-header) {
  display: none !important;
}

body.omd-home .omd-header,
body.omd-home .omd-banner,
body.omd-home .omd-sell,
body.omd-home .omd-icons,
body.omd-home .omd-sec {
  box-sizing: border-box;
}

body.omd-home .omd-header * ,
body.omd-home .omd-icons * ,
body.omd-home .omd-courses__grid * ,
body.omd-home .omd-card * {
  box-sizing: border-box;
}

body.omd-home .omd-header a,
body.omd-home .omd-icons a,
body.omd-home .omd-course a {
  color: inherit;
}

/* Prevent legacy .content width rules from crushing sections */
body.omd-home .omd-wrap.content,
body.omd-home .form-container .content,
body.omd-home .footer .content {
  width: 100%;
  max-width: var(--omd-max);
  margin-left: auto;
  margin-right: auto;
}

/* Form should not steal focus clicks into modal when typing */
body.omd-home .form-container form {
  position: relative;
  z-index: 1;
}

/* ---------- Desktop ---------- */
@media screen and (min-width: 768px) {
  :root {
    --omd-header-h: 72px;
  }

  .omd-header__logo img {
    height: 44px;
  }

  .omd-header__menu {
    display: none;
  }

  .omd-header__nav {
    display: flex;
    max-width: 62%;
  }

  .omd-header__cta {
    display: inline-block;
  }

  /* 中屏隐藏电话，避免顶栏过挤 */
  .omd-header__tel {
    font-size: 15px;
  }

  .omd-banner .swiper-slide img {
    height: 360px;
    max-height: none;
  }

  .omd-icons__thumb {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .omd-icons__grid span {
    font-size: 14px;
  }

  .omd-courses__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .omd-title h2 {
    font-size: 26px;
  }

  .omd-title h2::before {
    height: 22px;
  }

  .omd-sec {
    padding: 40px 0 16px;
  }

  .omd-hscroll .swiper-slide {
    width: 280px;
  }

  .omd-sell__list {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    gap: 12px;
  }
}

@media screen and (min-width: 1024px) {
  body.omd-home {
    padding-bottom: 0;
  }

  body.omd-home .footer-nav {
    display: none !important;
  }

  .omd-banner__mobile {
    display: none;
  }

  .omd-banner__hero {
    display: flex;
  }

  .omd-header__nav {
    max-width: none;
    gap: 18px;
  }

  .omd-courses__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .omd-course__body {
    padding: 14px 16px 18px;
  }

  .omd-course__name {
    font-size: 17px;
  }

  .omd-icons__grid {
    gap: 24px 16px;
    max-width: 880px;
    margin: 0 auto;
  }

  .omd-hscroll .swiper-slide {
    width: 260px;
  }

  .omd-wrap {
    padding: 0 24px;
  }
}

@media screen and (max-width: 1023px) {
  body.omd-home .footer .footer_main {
    display: none;
  }
}
