/* 莲花演说首页布局增强 — 保留品牌橙，重排首屏与响应式 */

:root {
  --brand: #ff8900;
  --brand-deep: #e07000;
  --brand-soft: #fff4e8;
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --line: #ececec;
  --paper: #faf8f5;
  --white: #fff;
  --wrap: min(1160px, calc(100% - 40px));
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.lh-wrap {
  width: var(--wrap);
  margin: 0 auto;
}

/* ========== Header ========== */
.lh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lh-header-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lh-logo img {
  height: 52px;
  width: auto;
}

.lh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lh-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #333;
  transition: color 0.25s var(--ease);
}

.lh-nav a:hover,
.lh-nav a.is-active {
  color: var(--brand);
}

.lh-nav-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: var(--brand);
  color: #fff !important;
  border-radius: 2px;
  font-weight: 600;
}

.lh-nav-cta:hover {
  background: var(--brand-deep);
  color: #fff !important;
}

.lh-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.lh-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #222;
  transition: 0.25s var(--ease);
}

.lh-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lh-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.lh-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lh-drawer-bg {
  display: none;
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10010;
  border: 0;
}

.lh-drawer-bg.is-open {
  display: block !important;
}

.lh-drawer {
  /* 默认彻底不显示，避免未点击就露出来 */
  display: none !important;
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(300px, 86vw);
  max-width: 320px;
  height: 100%;
  height: 100dvh;
  margin: 0;
  background: #fff;
  z-index: 10020;
  padding: 72px 22px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
  text-align: left;
  transform: none !important;
}

.lh-drawer.is-open {
  display: block !important;
}

.lh-drawer a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 6px;
  border-bottom: 1px dashed #eee;
  font-size: 16px;
  color: #1c1c1c;
  text-align: left;
}

.lh-drawer a:hover,
.lh-drawer a:active {
  color: var(--brand);
}

/* ========== Hero ========== */
.lh-hero {
  position: relative;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: #1a1208;
}

.lh-hero .swiper-container,
.lh-hero .swiper,
.lh-hero .ddds {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.lh-hero .swiper-wrapper {
  height: 100%;
}

.lh-hero .swiper-slide {
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
}

.lh-hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: lhKenBurns 12s ease-in-out infinite alternate;
}

@keyframes lhKenBurns {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

.lh-hero-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* 全面压暗轮播图内嵌文案，仅保留现场氛围 */
  background:
    linear-gradient(
      115deg,
      rgba(22, 12, 4, 0.82) 0%,
      rgba(22, 12, 4, 0.68) 42%,
      rgba(180, 80, 0, 0.78) 100%
    );
}

.lh-hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 12px) 0 48px;
}

.lh-hero-copy {
  width: var(--wrap);
  margin: 0 auto;
  color: #fff;
  max-width: 720px;
}

.lh-hero-brand {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  opacity: 0;
  animation: lhRise 0.9s var(--ease) 0.15s forwards;
}

.lh-hero-title {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: lhRise 0.9s var(--ease) 0.3s forwards;
}

.lh-hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  margin: 0 0 28px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  animation: lhRise 0.9s var(--ease) 0.45s forwards;
}

.lh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: lhRise 0.9s var(--ease) 0.6s forwards;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s;
}

.lh-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 137, 0, 0.35);
}

.lh-btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.lh-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.lh-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes lhRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Sections common ========== */
.lh-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.lh-section-alt {
  background: var(--paper);
}

.lh-section-brand {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 137, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}

.lh-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 600;
}

.lh-heading {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.lh-heading span {
  color: var(--brand);
}

.lh-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 36em;
}

.lh-head-center {
  text-align: center;
}

.lh-head-center .lh-lead {
  margin-left: auto;
  margin-right: auto;
}

.lh-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.lh-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Why learn ========== */
.lh-why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.lh-why-item {
  grid-column: span 2;
  padding: 28px 24px;
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: 4px 4px 0 0;
  min-height: 160px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.lh-why-item:nth-child(4),
.lh-why-item:nth-child(5) {
  grid-column: span 3;
}

.lh-why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(224, 112, 0, 0.28);
}

.lh-why-item strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.lh-why-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
}

/* ========== Pain points ========== */
.lh-pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.lh-pain-item {
  display: flex;
  gap: 14px;
  padding: 20px 18px;
  background: #fff;
  border-left: 3px solid var(--brand);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.lh-pain-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.lh-pain-item p {
  margin: 0;
  font-size: 15px;
  color: #333;
}

/* ========== Gains ========== */
.lh-gain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.lh-gain-item {
  text-align: center;
  padding: 8px 10px 20px;
}

.lh-gain-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.lh-gain-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--brand);
  font-family: "Noto Serif SC", serif;
}

.lh-gain-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== Compare ========== */
.lh-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.lh-compare-panel {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 220px;
}

.lh-compare-panel.is-brand {
  border-color: transparent;
  background: linear-gradient(160deg, #fff7ee, #ffe8cc);
}

.lh-compare-panel h3 {
  font-size: 18px;
  margin: 0 0 14px;
  font-family: "Noto Serif SC", serif;
}

.lh-compare-panel p {
  margin: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.lh-compare-panel p + p {
  margin-top: 12px;
}

.lh-vs {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
}

.lh-compare-media {
  margin-bottom: 14px;
}

.lh-compare-media img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

/* ========== Training ========== */
.lh-train-text {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
  margin: 0 0 36px;
  max-width: 52em;
}

.lh-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.lh-step {
  position: relative;
  padding: 28px 22px 24px;
  background: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.lh-step-index {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: "Noto Serif SC", serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(255, 137, 0, 0.15);
  line-height: 1;
}

.lh-step h3 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--brand);
  font-family: "Noto Serif SC", serif;
}

.lh-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.lh-section-cta {
  display: flex;
  justify-content: center;
}

/* ========== Laws ========== */
.lh-laws {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lh-law {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.lh-law img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto;
}

.lh-law h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--brand);
  font-family: "Noto Serif SC", serif;
}

.lh-law p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.lh-law:nth-child(2) {
  grid-template-columns: 1fr 140px;
}

.lh-law:nth-child(2) img {
  order: 2;
}

/* ========== Six opens ========== */
.lh-six {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.lh-six-item {
  text-align: center;
  padding: 18px 8px;
  transition: transform 0.3s var(--ease);
}

.lh-six-item:hover {
  transform: translateY(-6px);
}

.lh-six-item img {
  width: 100%;
  max-width: 120px;
  margin: 0 auto 12px;
}

.lh-six-item h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--brand);
  font-family: "Noto Serif SC", serif;
}

.lh-six-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ========== Video ========== */
.lh-video-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.lh-video-frame iframe,
.lh-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #111;
}

/* ========== Outcomes ========== */
.lh-outcomes {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.lh-outcome {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.lh-outcome.is-focus {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-color: transparent;
  transform: scale(1.02);
}

.lh-outcome h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  margin: 0 0 16px;
  letter-spacing: 0.2em;
}

.lh-outcome.is-focus h3 {
  color: #fff;
}

.lh-outcome:not(.is-focus) h3 {
  color: var(--brand);
}

.lh-outcome p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: inherit;
}

.lh-outcome:not(.is-focus) p {
  color: #555;
}

/* ========== Footer ========== */
.lh-footer {
  background: #1f1f1f;
  color: #bbb;
  padding: 48px 0 0;
}

.lh-footer a {
  color: #ccc;
}

.lh-footer a:hover {
  color: var(--brand);
}

.lh-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.lh-footer h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 600;
}

.lh-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 28px;
}

.lh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lh-footer-code {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.lh-footer-code img {
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 4px;
}

.lh-footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.lh-footer-bottom a {
  color: #888;
}

/* Hide legacy fixed-layout leftovers if old classes remain */
.indexban,
.tss_dn {
  /* overridden by new structure */
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .lh-nav a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .lh-six {
    grid-template-columns: repeat(3, 1fr);
  }

  .lh-gain-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .lh-laws {
    grid-template-columns: 1fr;
  }

  .lh-law,
  .lh-law:nth-child(2) {
    grid-template-columns: 100px 1fr;
  }

  .lh-law:nth-child(2) img {
    order: 0;
  }

  .lh-law img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 950px) {
  body {
    overflow-x: hidden;
  }

  .lh-header-inner {
    width: min(1160px, calc(100% - 28px));
  }

  .lh-nav {
    display: none !important;
  }

  .lh-menu-btn {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* 侧栏仅在 .is-open 时由基础规则 display:block，这里不要再写 display:block */
  .lh-drawer-bg:not(.is-open) {
    display: none !important;
  }

  .lh-hero {
    height: min(72vh, 560px);
    min-height: 380px;
  }

  .lh-why-grid {
    grid-template-columns: 1fr;
  }

  .lh-why-item,
  .lh-why-item:nth-child(4),
  .lh-why-item:nth-child(5) {
    grid-column: span 1;
    min-height: 0;
    border-radius: 0;
  }

  .lh-pain-grid {
    grid-template-columns: 1fr;
  }

  .lh-gain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lh-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lh-vs {
    text-align: center;
    font-size: 22px;
  }

  .lh-steps {
    grid-template-columns: 1fr 1fr;
  }

  .lh-outcomes {
    grid-template-columns: 1fr;
  }

  .lh-outcome.is-focus {
    transform: none;
    order: -1;
  }

  /* Force show sections that old CSS hid on mobile */
  .tss_dn,
  .index2,
  .index3,
  .index7 {
    display: block !important;
  }

  .head_pc,
  .allhead {
    display: none !important;
  }

  .head_wap {
    display: none !important;
  }
}

@media (max-width: 560px) {
  :root {
    --wrap: calc(100% - 28px);
    --header-h: 64px;
  }

  .lh-logo img {
    height: 42px;
  }

  .lh-hero {
    min-height: 360px;
    height: 68vh;
  }

  .lh-hero-content {
    align-items: flex-end;
    padding: calc(var(--header-h) + 8px) 0 36px;
  }

  .lh-steps,
  .lh-six {
    grid-template-columns: 1fr;
  }

  .lh-gain-item img {
    width: 72px;
    height: 72px;
  }

  .lh-footer-grid {
    flex-direction: column;
    gap: 28px;
  }

  .lh-footer-code {
    text-align: left;
  }
}
