*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #050507;
  color: #111;
}

body {
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
}

/* 通用 section */

.screen {
  width: 100%;
  min-height: 100vh;
  padding: 72px 32px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* 颜色主题 */

.screen-hero {
  background: radial-gradient(circle at top, #343242 0, #050507 60%);
  color: #fff;
}

.screen-dark {
  background: #050507;
  color: #f5f5f5;
}

.screen-light {
  background: #f7f2eb;
  color: #111;
}

.screen-white {
  background: #ffffff;
  color: #111;
}

/* 文案样式 */

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 16px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 40px;
}

.hero-subtitle span {
  font-weight: 600;
  color: #fbe2b5;
}

.section-title {
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.section-title-light {
  color: #f6f2e8;
}

.section-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 32px;
}

.section-subtitle-light {
  color: rgba(255,255,255,0.75);
}

.section-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.section-text-light {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-top: 24px;
}

/* 列表 */

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #cfa972;
}

.bullet-list-light li {
  color: rgba(255,255,255,0.86);
}

/* 高亮语 */

.highlight-quote {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 32px;
  color: #c1893c;
  font-weight: 600;
}

/* 卡片区域 */

.cards-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.card {
  border-radius: 18px;
  padding: 18px 20px;
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.card-dark h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f9e1b6;
}

.card-dark p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* 触碰图示 */

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 24px;
}

.flow-col {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid #e5d8c5;
}

.flow-col h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #b07b35;
}

.flow-col p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.flow-arrow {
  font-size: 18px;
  font-weight: 600;
  color: #cfa972;
}

/* 模块网格 */

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

.module-card {
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid #e3d5c3;
  background: #fdf8f0;
}

.module-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #b07b35;
}

.module-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

/* 评价 */

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #eddcc5;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.testimonial-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

/* 价格模块 */

.price-box {
  margin-top: 16px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
}

.price-label {
  font-size: 14px;
  color: #fbe2b5;
  margin: 0 0 4px;
}

.price-value {
  font-size: 32px;
  margin: 0 0 4px;
  color: #ffdca4;
  font-weight: 700;
}

.price-original {
  font-size: 13px;
  margin: 0 0 12px;
  color: rgba(255,255,255,0.6);
  text-decoration: line-through;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.price-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 8px;
  color: #f3c488;
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: #cfa972;
  color: #1a1510;
  box-shadow: 0 10px 30px rgba(207,169,114,0.4);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 16px rgba(207,169,114,0.45);
}

.btn-secondary {
  background: #201715;
  color: #fbe2b5;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  margin-top: 10px;
}

.btn-large {
  width: 100%;
  margin-top: 18px;
}

.micro-text {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

/* 弹窗 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: 86%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.modal h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.modal .btn {
  margin-top: 6px;
  width: 100%;
}

/* 响应式微调 */

@media (min-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 26px;
  }

  .cards-row {
    flex-direction: row;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==== Quiz 专用样式 ==== */

.quiz-hero .hero-title {
  margin-bottom: 18px;
}

.quiz-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-group {
  margin-bottom: 20px;
}

.quiz-group-title {
  margin: 0 0 10px;
  font-size: 15px;
  color: #b07b35;
}

.quiz-question {
  padding: 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid #eee0cf;
  background: #fdf8f1;
  margin-bottom: 10px;
}

.quiz-q-title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #e7d7c2;
  padding: 6px 12px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  transition: border-color 0.12s ease-out, background-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.quiz-option input {
  display: none;
}

.quiz-option span {
  flex: 1;
}

/* 选中态通过 JS 加类名 .selected */
.quiz-option.selected {
  border-color: #cfa972;
  background: #fbead0;
  box-shadow: 0 6px 18px rgba(207,169,114,0.32);
  color: #553116;
}

/* 结果页 */

.quiz-result-screen {
  display: none; /* JS 显示 */
}

.quiz-result-screen.active {
  display: flex;
}

.quiz-result-box {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  padding: 16px 14px 12px;
  margin-top: 12px;
}

.quiz-result-level {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fbe2b5;
  font-weight: 600;
}

.quiz-result-score {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}

.quiz-result-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.quiz-result-next {
  margin-top: 22px;
}

.quiz-result-next h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fbe2b5;
}

.quiz-result-next p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
}

.quiz-submit-btn {
  margin-top: 16px;
}


/* === Lesson Accordion (12讲手风琴交互) === */
.lesson {
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 20px 18px 18px;
  box-shadow: 0 10px 30px rgba(10, 6, 2, 0.04);
  border: 1px solid rgba(0,0,0,0.03);
  background: #ffffff;
}

.screen-dark .lesson {
  background: rgba(15, 11, 8, 0.92);
  border-color: rgba(255,255,255,0.05);
}

.lesson-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.6;
}

.lesson-title::after {
  content: "展开";
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b38a56;
}

.lesson:not(.collapsed) .lesson-title::after {
  content: "收起";
}

.lesson + .lesson {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .lesson {
    padding: 16px 14px 14px;
  }
  .lesson-title {
    font-size: 16px;
  }
}



/* === Lesson in dark screen: ensure readable text === */
.screen-dark .lesson,
.screen-dark .lesson p,
.screen-dark .lesson li,
.screen-dark .lesson h2,
.screen-dark .lesson h3,
.screen-dark .lesson .lesson-intro {
  color: rgba(255,255,255,0.9);
}

.screen-dark .lesson .bullet-list li::before {
  color: #fbe2b5;
}



/* lesson complete button */
.lesson-complete-btn {
  margin-top: 18px;
}



/* Final quiz styles */
.final-q {
  margin-bottom: 18px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #fdf8f1;
}
.final-q-text {
  font-size: 14px;
  line-height: 1.7;
  margin: 4px 0 8px;
}
.final-quiz-result {
  margin-top: 24px;
  padding: 16px 14px;
  border-radius: 12px;
  background: #fff7e6;
}
.final-quiz-score {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.final-quiz-comment {
  font-size: 14px;
  line-height: 1.8;
}



/* Global top nav */
.kama-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(7, 5, 4, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.kama-site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kama-site-logo {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f4e3c8;
  white-space: nowrap;
}
.kama-site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.kama-site-link {
  font-size: 12px;
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.kama-site-link:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.kama-site-link-primary {
  border-color: rgba(255,255,255,0.24);
  background: #f4e3c8;
  color: #3b2712;
  font-weight: 500;
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 31;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 720px) {
  .kama-site-header-inner {
    padding-inline: 12px;
  }
  
  /* 显示汉堡菜单按钮 */
  .menu-toggle {
    display: flex;
  }
  
  /* 移动端导航样式 */
  .kama-site-nav {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 5, 4, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }
  
  .kama-site-nav.active {
    max-height: 400px;
    opacity: 1;
    padding: 12px 0;
  }
  
  .kama-site-link {
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    width: 100%;
  }
  
  .kama-site-link:last-child {
    border-bottom: none;
  }
  
  .kama-site-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: transparent;
  }
  
  .kama-site-logo {
    font-size: 10px;
  }
}


/* =========================
   KAMA Funnel: 全站升级样式
   - 移动端按钮与排版优化
   - 屏级渐显 / 滑入动画
   - 全局 Footer
   ========================= */

/* 屏级进入动画：轻微上滑 + 渐显 */
@keyframes kama-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 所有 screen 采用统一进场动画 */
.screen {
  animation: kama-fade-up 0.7s ease-out both;
}

/* Footer */
.kama-footer {
  background: #0b0704;
  color: rgba(255, 245, 230, 0.92);
  padding: 24px 0 18px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.kama-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.kama-footer-brand {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4e3c8;
  margin-bottom: 4px;
}
.kama-footer-info p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 360px;
  color: rgba(255, 245, 230, 0.8);
  margin: 0;
}
.kama-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.kama-footer-caption {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
}
.kama-footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 245, 230, 0.7);
}

/* 小按钮尺寸 */
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* 移动端整体收紧 */
@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .screen-inner {
    padding: 18px 16px;
  }
  .section-title {
    font-size: 17px;
  }
  .section-subtitle {
    font-size: 13px;
    line-height: 1.6;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-subtitle {
    font-size: 13px;
    line-height: 1.7;
  }
  .btn-large {
    padding: 10px 14px;
    font-size: 14px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .bullet-list,
  .lesson-list,
  .gain-list {
    font-size: 13px;
    line-height: 1.6;
    padding-left: 18px;
  }
  .pricing-table {
    grid-template-columns: 1fr;
  }
  .kama-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .kama-footer-actions {
    align-items: flex-start;
  }
}


/* 课程快速导航 */
.lesson-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.lesson-nav-item {
  border-radius: 999px;
}
.lesson-nav-item.active {
  border-color: #cfa972;
  background: #f4e3c8;
  color: #3b2712;
}
@media (max-width: 720px) {
  .lesson-nav-grid {
    gap: 6px;
  }
  .lesson-nav-item {
    flex: 1 1 calc(33.33% - 6px);
    text-align: center;
    padding-inline: 0;
  }
}





/* 升级：基础课 1-12 讲快捷导航 · 移动端更友好 */
.lesson-quick-nav {
  margin: 10px 16px 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lesson-quick-nav-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}
.lesson-quick-nav-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding-bottom: 2px;
}
.lesson-quick-nav-pills::-webkit-scrollbar {
  height: 3px;
}
.lesson-quick-nav-pills::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.28);
  border-radius: 999px;
}
.lesson-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.32);
  color: #f8efe4;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  min-width: 56px;
  text-align: center;
}
.lesson-pill.active {
  background: #f4e3c8;
  border-color: #f4e3c8;
  color: #3b2712;
  transform: translateY(-1px);
}
.lesson-pill:active {
  transform: translateY(1px) scale(0.97);
}

@media (max-width: 720px) {
  .lesson-quick-nav {
    margin-inline: 12px;
    padding: 8px 10px;
  }
  .lesson-quick-nav-label {
    font-size: 11px;
  }
  .lesson-pill {
    font-size: 11px;
    padding: 6px 10px;
    min-width: 54px;
  }
}
