/* ==========================================================================
   GEOER · 首页（画布节点 frame 19:361）
   区块顺序：首屏 → 痛点 → 核心区 → 检测能力 → 数据呈现 → 关于×文章 → FAQ
   ========================================================================== */

/* ============================================================== 1 首屏 */

.hero {
  background: var(--bg-base);
  padding: 68px var(--pad-page) 56px;
}

.hero__inner {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: 58px;
  line-height: 74px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero__sub {
  font-size: 18px;
  line-height: 32px;
  color: var(--text-muted);
}

/* ---------------------------------------------------- 首屏免费入口区 */

.free-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.free-entry__row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.free-entry__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding-inline: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-input);
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.free-entry__input input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
}

.free-entry__input input::placeholder {
  color: var(--text-faint);
}

.free-entry__input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58, 91, 224, 0.12);
}

.free-entry__input.is-invalid {
  border-color: var(--accent-bad);
}

.free-entry__error {
  display: none;
  font-size: 13px;
  color: var(--accent-bad);
}

.free-entry.has-error .free-entry__error {
  display: block;
}

.free-entry__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
}

.free-entry__alt {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}

.free-entry__alt:hover {
  color: var(--brand-hover);
}

/* ------------------------------------------------ 首屏面板（脱敏样例） */

.hero-panel {
  width: 100%;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-panel);
  text-align: left;
}

.hero-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hero-panel__head .h {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-panel__qa {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 14px;
}

.hero-panel__q {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-panel__a {
  font-size: 13px;
  line-height: 22px;
  color: var(--text-body);
}

.hero-panel__rule {
  height: 1px;
  background: var(--border-base);
}

.reading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
}

.reading--soft {
  background: var(--brand-soft);
  border-radius: var(--radius-inset);
}

.reading__idx {
  flex: 0 0 auto;
  min-width: 28px;
  height: 30px;
  padding-inline: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-tag);
  background: var(--brand-tag-bg);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-warn);
}

.reading--soft .reading__idx {
  background: var(--brand-tag-bg-hover);
  color: var(--accent-bad);
}

.reading__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reading__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.reading__desc {
  font-size: 12px;
  color: var(--text-muted);
}

.reading__state {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-warn);
}

.reading--soft .reading__state {
  color: var(--accent-bad);
}

.hero-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 14px;
}

.hero-panel__foot p {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-primary);
}

/* ============================================================ 2 痛点 */

.pain__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.pain-grid {
  display: flex;
  gap: 40px;
  width: 100%;
}

.pain-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pain-item__idx {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}

.pain-item__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}

.pain-item__desc {
  font-size: 14px;
  line-height: 26px;
  color: var(--text-muted);
}

/* ============================================ 3 核心区：一段回答两结论 */

.core__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.core-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.core-grid > * {
  flex: 1 1 0;
  min-width: 0;
}

/* 左：AI 回答卡 */
.ai-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.ai-card__ask {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 20px 18px;
  background: var(--bg-inset);
}

.ai-card__ans {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 20px 22px;
}

.ai-card__anshead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ai-card__text {
  font-size: 15px;
  line-height: 28px;
  color: var(--text-body);
}

.ai-card__note {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-faint);
}

/* 右：两结论列 */
.readings-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reading-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

.reading-card--soft {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.reading-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reading-card__tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: var(--radius-tag);
  background: var(--brand-tag-bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-warn);
}

.reading-card--soft .reading-card__tag {
  background: var(--brand-tag-bg-hover);
  color: var(--accent-bad);
}

.reading-card__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.reading-card__state {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-warn);
}

.reading-card--soft .reading-card__state {
  color: var(--accent-bad);
}

.reading-card__judge {
  font-size: 14px;
  line-height: 26px;
  color: var(--text-body);
}

.reading-card__mean {
  font-size: 13px;
  line-height: 24px;
  color: var(--text-muted);
}

/* ======================================================== 4 检测能力区 */

.cap__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.cap-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

/* 三卡结构完全一致（各 6 个元素），严格等高：不得给某张卡额外加行 */
.cap-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.cap-card__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  background: var(--brand-tag-bg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand);
  transition: background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.cap-card__name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.cap-card__ask {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-body);
}

.cap-card__desc {
  font-size: 13px;
  line-height: 24px;
  color: var(--text-muted);
}

.cap-card__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 24px;
  color: var(--text-body);
}

.cap-card__foot {
  display: block;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: var(--radius-pill-sm);
  background: var(--bg-inset);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand);
}

/* hover / 键盘焦点同款（PRD 4.5） */
.cap-card:hover,
.cap-card:focus-visible {
  background: var(--brand-soft);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.cap-card:hover .cap-card__tag,
.cap-card:focus-visible .cap-card__tag {
  background: var(--brand-tag-bg-hover);
  color: var(--brand-cyan);
}

.cap-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ======================================================== 5 数据呈现 */

.data__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.metrics {
  display: flex;
  gap: 20px;
}

.metric {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

.metric__num {
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.metric__label {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 四步产出流程：高度固定 192，说明文字不裁切 */
.steps {
  display: flex;
  gap: 20px;
}

.step {
  flex: 1 1 0;
  min-width: 0;
  height: 192px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

.step__k {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.step__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.step__desc {
  font-size: 14px;
  line-height: 26px;
  color: var(--text-muted);
}

/* 信任凭证 */
.trust {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.trust-cards {
  display: flex;
  gap: 20px;
}

.trust-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

.trust-card img {
  width: 24px;
  height: 24px;
}

.trust-card__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.trust-card__desc {
  font-size: 14px;
  line-height: 26px;
  color: var(--text-muted);
}

/* 报告结构预览：不做卡片化列表 */
.report-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapters {
  padding: 30px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
}

.chapter {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 14px;
}

.chapter__no {
  flex: 0 0 36px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.chapter__name {
  flex: 0 0 150px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.chapter__desc {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 26px;
  color: var(--text-muted);
}

/* ================================================ 6 关于GEOER × 近期文章 */

.about {
  display: flex;
  align-items: stretch;
  gap: 64px;
}

.about__left {
  flex: 0 0 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 信息列：三行 + 行间 1px 分隔线，首末不画线 */
.info-list {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-block: 12px;
}

.info-row + .info-row {
  border-top: 1px solid var(--border-base);
}

.info-row__k {
  flex: 0 0 68px;
  font-size: 13px;
  color: var(--text-muted);
}

.info-row__v {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
}

/* 文章列：去卡片化 */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
}

.article-row + .article-row {
  border-top: 1px solid var(--border-base);
}

.article-row__no {
  flex: 0 0 auto;
  min-width: 104px;
  font-size: 13px;
  color: var(--brand);
}

.article-row__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}

.article-row:hover .article-row__title {
  color: var(--brand);
}

.article-row__date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-faint);
}

.about__more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.about__more:hover {
  color: var(--brand);
}

/* ============================================================== 7 FAQ */

/* 注意：这里必须是 stretch。用 center 会让手风琴按内容宽度收缩，
   收起态 1034px、展开态满宽，两者对不齐（画布里条目是满宽）。 */
.faq__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}

.faq__more {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
  transition: color var(--dur-fast) var(--ease-out);
}

.faq__more:hover {
  color: var(--brand-hover);
}

/* ============================================================ 断点 */

@media (max-width: 1199px) {
  /* 三列/四列卡改 2 列换行 */
  .pain-grid,
  .cap-grid,
  .trust-cards,
  .steps {
    flex-wrap: wrap;
  }

  .pain-item,
  .cap-card,
  .trust-card,
  .step {
    flex: 1 1 calc(50% - 12px);
  }

  .metrics {
    flex-wrap: wrap;
  }

  .metric {
    flex: 1 1 calc(50% - 10px);
  }

  /* 核心区两列改 1 列堆叠 */
  .core-grid {
    flex-direction: column;
  }

  /* 关于×文章改上下堆叠 */
  .about {
    flex-direction: column;
    gap: 48px;
  }

  .about__left {
    flex: 0 0 auto;
    width: 100%;
    max-width: 620px;
  }

  .about__more {
    margin-top: 8px;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .hero__inner {
    gap: 28px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 54px;
  }

  .hero__sub {
    font-size: 17px;
    line-height: 30px;
  }

  .hero-panel {
    padding: 18px;
  }

  .chapter__name {
    flex: 0 0 118px;
  }

  .chapter {
    gap: 12px;
  }
}

@media (max-width: 639px) {
  /* 首屏输入行改竖排 */
  .free-entry__row {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 10px;
  }

  .free-entry__input,
  .free-entry__row .btn {
    width: 100%;
  }

  .hero__title {
    font-size: 34px;
    line-height: 46px;
  }

  .hero__sub {
    font-size: 16px;
    line-height: 28px;
  }

  /* 全部卡片 1 列 */
  .pain-grid,
  .cap-grid,
  .trust-cards,
  .steps,
  .metrics {
    flex-direction: column;
  }

  .pain-item,
  .cap-card,
  .trust-card,
  .step,
  .metric {
    flex: 1 1 auto;
  }

  .step {
    height: auto;
    min-height: 168px;
  }

  .article-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .article-row__no {
    min-width: 0;
  }

  .article-row__title {
    flex: 1 1 100%;
    order: 3;
  }

  .article-row__date {
    margin-left: auto;
  }

  .info-row {
    min-height: 0;
    align-items: flex-start;
    gap: 16px;
  }

  .info-row__k {
    flex: 0 0 56px;
  }

  .chapter {
    align-items: flex-start;
  }

  .chapter__no {
    flex: 0 0 28px;
  }

  .chapter__name {
    flex: 0 0 96px;
  }
}
