:root {
  --navy-900: #0d1b34;
  --navy-800: #14243f;
  --navy-700: #1c3054;
  --navy-600: #24406e;
  --gold: #c8a35a;
  --gold-light: #e2c98a;
  --gold-soft: #f3ead6;
  --blue: #4a7cd0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1c2a44;
  --text-2: #5b6b86;
  --text-3: #95a2b8;
  --border: #e7ecf4;
  --radius: 20px;
  --shadow: 0 6px 28px rgba(20, 36, 63, 0.07);
  --shadow-lg: 0 12px 40px rgba(20, 36, 63, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: 110px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== 顶部安抚区（深蓝 + 金色光晕 + 弧形过渡） ===== */
.hero {
  position: relative;
  background: linear-gradient(155deg, #1c3054 0%, #0d1b34 70%, #0b1628 100%);
  padding: 52px 20px 58px;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 163, 90, 0.28) 0%, rgba(200, 163, 90, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero .badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-light);
  border: 1px solid rgba(226, 201, 138, 0.5);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  background: rgba(200, 163, 90, 0.08);
}

.hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.35;
  color: #fff;
}

.hero .sub {
  margin-top: 12px;
  font-size: 15px;
  color: #b9c5d9;
  letter-spacing: 0.5px;
}

.hero-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 22px auto 0;
  border-radius: 2px;
}

/* ===== 通用区块标签 ===== */
.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sec-label-bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  flex: 0 0 auto;
}

.sec-label h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.5px;
  margin: 0;
}

.sec-label-en {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  margin-left: auto;
}

/* ===== 四步流程图 ===== */
.flow {
  position: relative;
  z-index: 2;
  padding: 28px 18px 0;
}

.flow-desc {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 18px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.step .num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef2f9;
  color: var(--navy-700);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.step .step-body {
  flex: 1;
  min-width: 0;
}

.step .step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.step .step-time {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}

.step .tag-hot {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #3a2c10;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(200, 163, 90, 0.3);
}

/* 高亮步骤（重点） */
.step.highlight {
  border-color: rgba(200, 163, 90, 0.6);
  background: linear-gradient(135deg, #fffdf7 0%, #fdfaf2 100%);
  box-shadow: 0 8px 30px rgba(200, 163, 90, 0.16);
}

.step.highlight .num {
  background: linear-gradient(135deg, var(--gold), #d9b96f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 163, 90, 0.4);
}

/* 步骤间连接线 */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -15px;
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
}

/* ===== 重点模块 ===== */
.section {
  margin-top: 38px;
  padding: 0 18px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(200, 163, 90, 0.15);
}

.section-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.5px;
}

.section-head .tag {
  font-size: 12px;
  color: #3a2c10;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card .desc {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.8;
}

.video-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* 9:16 竖屏视频：宽度收窄并居中，避免撑满一屏过高 */
.video-box.video-vertical {
  width: min(72vw, 300px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 中央播放按钮 */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 2;
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%) scale(1.08);
}

.play-ico {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.video-frame.playing .play-btn {
  display: none;
}

.video-box .video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 8px;
  font-size: 14px;
  background: linear-gradient(135deg, #1c3054, #0d1b34);
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary .arrow {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
  font-size: 12px;
  font-weight: 700;
}

.faq-item[open] summary .arrow {
  transform: rotate(180deg);
}

.faq-item .answer {
  padding: 0 18px 18px;
  font-size: 15px;
  color: var(--text-2);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin: 0 18px 18px;
  line-height: 1.8;
}

/* ===== 详细培训课程入口 ===== */
.course-area {
  display: block;
  margin: 34px 18px 20px;
}

.course-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #1c3054 0%, #27416e 55%, #3a5a94 100%);
  box-shadow: 0 12px 28px rgba(20, 40, 80, 0.22);
  border: 1px solid rgba(200, 163, 90, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:active {
  transform: scale(0.98);
}

.course-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  position: relative;
}

.course-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #1c3054;
  margin-left: 2px;
}

.course-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.course-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.course-desc {
  font-size: 13px;
  color: #b9c5d9;
  letter-spacing: 0.3px;
}

.course-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--gold-light);
  font-weight: 700;
}

/* ===== 悬浮微信按钮 ===== */
.float-wx {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1fae6a, #0d9b5a);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(13, 155, 90, 0.38);
  cursor: pointer;
  letter-spacing: 0.3px;
}

.float-wx:active {
  transform: scale(0.96);
}

.float-wx .wx-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

/* ===== 弹窗 ===== */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 52, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.mask.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 340px;
  padding: 26px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop 0.22s ease;
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-800);
}

.modal-x {
  background: #f0f3f8;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.modal .tip {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 18px;
}

.modal .qr-box {
  width: 190px;
  height: 190px;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfd;
  box-shadow: 0 4px 16px rgba(20, 36, 63, 0.06);
}

.modal .qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal .wx-id {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.modal .btn-copy {
  width: 100%;
  background: linear-gradient(135deg, #1fae6a, #0d9b5a);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.modal .btn-copy:active {
  opacity: 0.88;
}

/* ===== 复制提示 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: rgba(13, 27, 52, 0.9);
  color: #fff;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 10px;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* ===== 桌面端增强 ===== */
@media (min-width: 640px) {
  .hero {
    padding: 72px 20px 110px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .flow {
    padding-top: 36px;
  }
  .flow-steps {
    flex-direction: row;
    gap: 12px;
  }
  .step {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 24px 12px;
    flex: 1;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .step .step-title {
    font-size: 15px;
  }
  .section {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .course-area {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
