/* ===== 使用指南 - Sticky Scroll ===== */
.guide { background: var(--dark); }

.guide-header { text-align: center; margin-bottom: 80px; }
.guide-header .section-desc { margin: 0 auto; }

.guide-scroll-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

/* Left: scrollable steps */
.guide-steps { padding-bottom: 20vh; }

.guide-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  opacity: 0.2;
  filter: blur(3px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-step.guide-step--active {
  opacity: 1;
  filter: blur(0);
}

.guide-step h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.guide-step p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 440px;
}

/* Step 0: 选哪个助手对照表 */
.guide-pick-table {
  margin-top: 28px;
  max-width: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark-card);
}
.guide-pick-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.guide-pick-table thead th {
  text-align: left;
  font-weight: 600;
  color: #fff;
  padding: 13px 18px;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.28), rgba(253, 121, 168, 0.18));
}
.guide-pick-table thead th:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-pick-table tbody td {
  padding: 14px 18px;
  vertical-align: top;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.guide-pick-table tbody td:first-child {
  color: var(--text-muted);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  width: 46%;
}
.guide-pick-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.pick-tag {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 4px 11px;
  font-size: 0.82rem;
  border-radius: 999px;
  color: var(--primary-light);
  background: rgba(108, 92, 231, 0.14);
  border: 1px solid rgba(108, 92, 231, 0.3);
  white-space: nowrap;
}
.pick-more {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 学习中心标签说明表：标签列窄、说明列为正文色 */
.guide-pick-table--review tbody td:first-child {
  width: 30%;
  white-space: nowrap;
}
.guide-pick-table--review tbody td:last-child {
  color: #d8d6ea;
}
.guide-pick-table--review .pick-tag {
  margin: 0;
}

/* 练习中心：计划说明列表 */
.guide-plan-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-plan-list li {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--primary);
}
.guide-plan-list .pick-tag {
  margin: 0 0 8px;
}
.guide-plan-list .plan-desc {
  display: block;
  color: #d8d6ea;
  line-height: 1.7;
  font-size: 0.92rem;
}
.plan-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.day-chip {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--primary-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.28);
  white-space: nowrap;
}

/* 打卡和成就：成就卡片网格 */
.guide-achieve-grid {
  margin-top: 28px;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.achieve-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.achieve-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.4);
}
.achieve-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 11px;
  background: rgba(108, 92, 231, 0.14);
  border: 1px solid rgba(108, 92, 231, 0.25);
}
.achieve-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.achieve-cond {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .guide-achieve-grid { grid-template-columns: 1fr; }
}

.guide-step-img-mobile {
  display: none;
}

/* Right: sticky visual */
.guide-visual {
  position: sticky;
  top: 120px;
}
.guide-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
}
.guide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.guide-img.active { opacity: 1; }


/* ===== 常见问题 FAQ Accordion ===== */
.faq { background: var(--dark); padding-top: 0; scroll-margin-top: 80px; }

.faq-header { text-align: center; margin-bottom: 56px; }
.faq-header .section-desc { margin: 0 auto; }
.faq-header--inline { margin-top: 48px; margin-bottom: 32px; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 问题卡片 */
.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item.open .faq-question {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.faq-question-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.faq-chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s, background 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.open .faq-chevron {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  transform: rotate(180deg);
}
.faq-chevron svg { display: block; }

/* 答案卡片 */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16,1,0.3,1);
  margin-left: 60px;
  margin-top: 20px;
}
.faq-item.open .faq-answer-wrap {
  grid-template-rows: 1fr;
  margin-bottom: 33px;
}
.faq-answer-inner { overflow: hidden; }

.faq-answer {
  padding: 20px 18px 22px 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq-answer-text { flex: 1; }

.faq-steps {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.faq-steps li {
  line-height: 1.8;
  margin-bottom: 6px;
}
.faq-steps ul {
  margin: 4px 0 0;
  padding-left: 18px;
  list-style: circle;
}
.faq-steps strong { color: #fff; }

.faq-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-left: 3px solid var(--primary);
}
.faq-note strong { color: var(--primary-light); }
.faq-note ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: disc;
}
.faq-note li {
  line-height: 1.8;
  margin-bottom: 4px;
}

.faq-ai-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.faq-ai-badge svg { display: block; }

/* ===== 视频播放按钮覆盖层 ===== */
.video-play-btn {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  border-radius: inherit;
}
.video-play-btn:hover {
  background: rgba(0,0,0,0.35);
}
.video-play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.video-play-btn:hover svg {
  transform: scale(1.12);
}
.video-play-btn:active svg {
  transform: scale(0.94);
}


/* ===== 手机端 ===== */
@media (max-width: 600px) {
  .faq-answer-wrap { margin-left: 60px; }
}

@media (max-width: 900px) {
  .guide-scroll-container {
    display: block;
  }
  .guide-visual { display: none; }

  .guide-step {
    min-height: auto;
    padding: 48px 0 0;
    opacity: 1;
    filter: blur(0);
  }

  .guide-step-img-mobile {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 12px;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .guide-step-img-mobile.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .guide-steps { padding-bottom: 60px; }

  .guide-pick-table { max-width: 100%; }
}

@media (max-width: 600px) {
  .guide-pick-table table { font-size: 0.85rem; }
  .guide-pick-table thead th,
  .guide-pick-table tbody td { padding: 11px 12px; }
  .pick-tag { font-size: 0.78rem; padding: 3px 9px; white-space: normal; }
}
