/* ============================================================
   好好聊 · 页面层
   少即是多：每一屏只回答一个问题
   ============================================================ */

@media (max-width: 420px) {
  .hide-sm { display: none; }
}

/* ========== 首页 ========== */
.hero {
  padding: var(--sp-3) 0 var(--sp-5);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-4);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.hero__kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  margin-top: var(--sp-3);
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 32em;
}

/* ========== 输入卡 ========== */
.compose {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
}

.compose__preview {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  margin-bottom: var(--sp-3);
}

.compose__preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.compose__rm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: rgba(10, 9, 8, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  backdrop-filter: blur(6px);
}

/* ---------- 折叠区 ---------- */
.more-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--fg-3);
  transition: color var(--dur-1);
}

.more-toggle__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  font-size: 11px;
  line-height: 1;
  transition: transform var(--dur-2) var(--ease-out);
}

.more-toggle.is-open {
  color: var(--accent);
}

.more-toggle.is-open .more-toggle__icon {
  transform: rotate(45deg);
  border-color: var(--accent-line);
}

.more-panel {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  animation: screenIn var(--dur-2) var(--ease-out) both;
}

.more-field + .more-field {
  margin-top: 18px;
}

.more-field__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--fg-2);
}

.more-field__opt {
  font-size: 11.5px;
  color: var(--fg-4);
}

.more-field__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.6;
}

.more-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

/* ========== 分析中 ========== */
.think {
  text-align: center;
  padding: var(--sp-6) 0;
}

.think__orb {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-full);
  background: conic-gradient(from 0deg, transparent, var(--accent) 40%, var(--ember) 60%, transparent 85%);
  filter: blur(1px);
  animation: spin 2.4s linear infinite;
  position: relative;
}

.think__orb::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: var(--r-full);
  background: var(--bg-deep);
}

@keyframes spin { to { transform: rotate(360deg); } }

.think__steps {
  margin-top: var(--sp-5);
  text-align: left;
  display: inline-block;
}

.think__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--fg-4);
  transition: color var(--dur-2);
}

.think__step.is-done { color: var(--fg-3); }
.think__step.is-now { color: var(--accent-hi); }

.think__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
  flex: none;
}

.think__step.is-now .think__dot {
  animation: pulse 1.1s var(--ease-soft) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* ========== 结果：状态条 ========== */
.read {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  background:
    radial-gradient(120% 90% at 8% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.read__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.read__score {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.read__score b {
  font-family: var(--font-latin);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  color: var(--accent-hi);
}

.read__score i {
  font-style: normal;
  font-size: 12px;
  color: var(--fg-4);
}

.read__sep {
  width: 1px;
  height: 14px;
  background: var(--line-2);
  align-self: center;
}

.read__stage {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--fg);
}

.read__mood {
  font-size: 12px;
  color: var(--fg-3);
}

.read__sub {
  margin-top: 13px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fg-2);
}

/* ========== 建议卡 ========== */
.sug, .sug--skeleton {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  animation: sugIn var(--dur-3) var(--ease-out) both;
}

.sug:nth-child(2) { animation-delay: 60ms; }
.sug:nth-child(3) { animation-delay: 120ms; }

@keyframes sugIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.sug__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.sug__idx {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

.sug__label {
  font-size: 12.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.sug__spacer { flex: 1; }

.sug__text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--fg);
}

.sug__more { margin-top: 12px; }

.sug__next { color: var(--fg-3); }

.sug__foot {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.sug__act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--fg-2);
  transition: all var(--dur-1);
}

.sug__act:active { transform: scale(0.94); }

.sug__act--main {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-hi);
  font-weight: 500;
}

.sug__act.is-done {
  background: var(--sage-soft);
  border-color: transparent;
  color: var(--sage);
}

/* ========== 折叠块 ========== */
.fold {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: 15px var(--sp-4);
  font-size: 14px;
  color: var(--fg-2);
  text-align: left;
}

.fold__head em {
  font-style: normal;
  color: var(--fg-4);
  font-size: 12px;
  margin-left: 4px;
}

.fold__x {
  flex: none;
  color: var(--fg-4);
  font-size: 15px;
  transition: transform var(--dur-2);
}

.fold__head.is-open .fold__x { transform: rotate(45deg); color: var(--accent); }

.fold__body {
  padding: 0 var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--line);
  animation: screenIn var(--dur-2) var(--ease-out) both;
}

/* ========== 步骤 ========== */
.step {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: none; }

.step__n {
  flex: none;
  font-size: 18px;
  color: var(--accent);
  line-height: 1.3;
}

.step--tip { color: var(--fg-3); }

.step__dot {
  flex: none;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.9;
}

/* ========== 追问 ========== */
.follow-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 7px 7px 7px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}

.follow-inline input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.follow-inline__send {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.follow-inline__send:active { transform: scale(0.9); }

.follow-out {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

.follow-out__q {
  font-size: 12.5px;
  color: var(--fg-3);
  margin-bottom: 10px;
}

.follow-out__a {
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-2);
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.follow-out .sug { margin-bottom: 10px; }

/* ========== 话术库 ========== */
.lib__head { padding: var(--sp-3) 0 var(--sp-4); }

.lib__search { position: relative; margin-top: 14px; }

.lib__search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}

.lib__search::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -7px;
  border: 1.5px solid var(--fg-4);
  border-radius: 50%;
}

.lib__search::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  width: 6px;
  height: 1.5px;
  margin-top: 2px;
  background: var(--fg-4);
  transform: rotate(45deg);
}

.pb {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--sp-4);
  margin-bottom: 10px;
}

.pb__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
}

.pb__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.pb__when {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.6;
}

.pb__tpl {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border-left: 2px solid var(--accent-line);
  font-size: 14px;
  line-height: 1.68;
  color: var(--fg-2);
}

.pb__tpl + .pb__tpl { margin-top: 7px; }

.pb__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 11px;
}

.pb__lock {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-md);
  text-align: center;
  background: var(--accent-soft);
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ========== 我的 ========== */
.member__action {
  flex: none;
  color: var(--accent-hi);
  font-size: 14px;
  font-weight: 600;
}
.member__pending {
  margin: 0 var(--screen-end) 0 var(--screen-start);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-inline: var(--screen-start) var(--screen-end);
}
.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding-block: 10px;
  color: var(--fg-3);
  font-size: 12.5px;
}
.stat + .stat { justify-content: flex-end; }
.stat b { color: var(--fg-2); font-variant-numeric: tabular-nums; }

/* ========== 会员页 ========== */
.paywall__hero {
  margin-top: 12px;
  padding: 10px 12px;
  border-inline-start: 2px solid var(--accent);
  background: var(--surface);
}
.paywall__hero h2 { font-size: 14px; }
.paywall__hero p,
.paywall__hint {
  margin-top: 6px;
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.6;
}
.paywall__section { margin-top: 16px; }
.paywall__section .settings-group__title { margin-top: 0; }
.paywall__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.paywall__section-head + .cell-group { margin-top: 6px; }
.paywall__quota,
.paywall__plan-end {
  flex: none;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.paywall__quota strong { font-size: 15px; }
.paywall__action .row__title,
.paywall__price { color: var(--accent-hi); font-weight: 600; }
.paywall__price { font-size: 16px; }
.paywall__price small { color: var(--fg-3); font-size: 12px; font-weight: 400; }
.plan-detail__price { margin: 0 0 12px; color: var(--fg-3); font-size: 14px; }
.plan-detail__price strong { color: var(--accent-hi); font-size: 23px; }
.plan-detail__price span { margin-inline-start: 6px; font-size: 12px; }
.plan-detail__benefits {
  list-style: disc;
  padding-inline-start: 1.2em;
  font-size: 14px;
  line-height: 1.75;
}
.plan-detail__note,
.plan-detail__purchase p { color: var(--fg-3); font-size: 13px; line-height: 1.65; }
.plan-detail__note { margin-top: 8px; }
.plan-detail__purchase { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-detail__purchase h3 { margin: 0 0 4px; font-size: 14px; }
.plan-detail__instructions { margin-top: 6px; white-space: pre-line; }
.plan-detail__purchase .btn { margin-top: 10px; }
.paywall__hint [data-pricing-retry] { margin-top: 6px; }
.paywall__footnote { margin-top: 16px; }
.paywall__panel + .paywall__panel { border-top: 1px solid var(--line); }
.paywall__panel > .more__sum {
  min-height: 52px;
  padding-inline: var(--screen-start) var(--screen-end);
  color: var(--fg);
  font-size: 14.5px;
}
.paywall__panel > .more__sum:active { background: var(--surface-2); }
.paywall__panel > .more__sum:focus-visible { outline-offset: -2px; }
.paywall__panel > .more__body {
  border-top: 1px solid var(--line);
  padding-inline: var(--screen-start) var(--screen-end);
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.65;
}

.cycle {
  display: flex;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.cycle__btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: calc(var(--r-sm) - 2px);
  color: var(--fg-3);
  font-size: 13px;
}
.cycle__btn.is-on {
  background: var(--surface-3);
  color: var(--fg);
  font-weight: 600;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare th,
.compare td {
  padding: 11px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare th { font-weight: 500; color: var(--fg-3); font-size: 12px; }
.compare td { color: var(--fg-2); }
.compare th[scope="row"] { width: 36%; }
.compare td, .compare th { overflow-wrap: anywhere; }
.compare tr:last-child > * { border-bottom: 0; }

.faq:not(:last-child) { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: 14px 0;
  font-size: 14px;
  text-align: left;
  color: var(--fg);
}

.faq__a {
  padding-bottom: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-3);
  animation: screenIn var(--dur-2) var(--ease-out) both;
}

.faq__icon {
  display: grid;
  flex: none;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--fg-3);
  font-size: 16px;
  line-height: 1;
}
.faq__q[aria-expanded="true"] > .faq__icon { transform: rotate(45deg); }
