/* =============================================
   心锚 · 官网落地页
   品牌绿对齐 App：#26BB68 / #1A9E55
   ============================================= */

:root {
  --ha-green: #26bb68;
  --ha-green-bright: #43cc7e;
  --ha-green-deep: #1a9e55;
  --ha-ink: #0e1a14;
  --ha-text: #15241c;
  --ha-muted: #5a6d62;
  --ha-dim: #7a8c82;
  --ha-line: rgba(26, 158, 85, 0.16);
  --ha-panel: #ffffff;
  --ha-bg: #eef5f0;
  --ha-font-display: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --ha-font-brand: "Noto Serif SC", "Songti SC", serif;
  --ha-font-body: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

.ha-page {
  font-family: var(--ha-font-body);
  background: var(--ha-bg);
  color: var(--ha-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.ha-page a { color: inherit; text-decoration: none; }

/* ── Nav ───────────────────────────────────────── */
.ha-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.ha-nav.is-scrolled,
.ha-nav.is-solid {
  background: rgba(238, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(14, 26, 20, 0.06);
}

.ha-nav-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ha-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ha-font-brand);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  color: var(--ha-ink);
}

.ha-brand-mark-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.ha-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--ha-muted);
}

.ha-nav-links a:hover { color: var(--ha-ink); }

.ha-nav-cta {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(38, 187, 104, 0.12);
  color: var(--ha-green-deep) !important;
  border: 1px solid rgba(38, 187, 104, 0.22);
}

.ha-nav-cta:hover { background: rgba(38, 187, 104, 0.18); }

/* ── Hero ──────────────────────────────────────── */
.ha-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 104px 0 64px;
  isolation: isolate;
}

.ha-hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 58% 48% at 78% 32%, rgba(38, 187, 104, 0.16), transparent 62%),
    linear-gradient(165deg, #f6fbf8 0%, #e9f3ec 100%);
}

.ha-hero-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.ha-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ha-green-deep);
  margin-bottom: 18px;
  opacity: 0;
  animation: ha-rise 0.8s ease 0.08s forwards;
}

.ha-hero-brand {
  font-family: var(--ha-font-brand);
  font-size: clamp(3.6rem, 9vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--ha-ink);
  opacity: 0;
  animation: ha-rise 0.85s ease 0.16s forwards;
}

.ha-hero-line {
  font-family: var(--ha-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ha-ink);
  margin: 0 0 14px;
  max-width: 14em;
  opacity: 0;
  animation: ha-rise 0.85s ease 0.26s forwards;
}

.ha-hero-sub {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ha-muted);
  margin: 0 0 30px;
  max-width: 28em;
  opacity: 0;
  animation: ha-rise 0.85s ease 0.36s forwards;
}

.ha-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: ha-rise 0.85s ease 0.46s forwards;
}

@keyframes ha-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ha-btn:hover { transform: translateY(-1px); }

.ha-btn-primary {
  background: var(--ha-green-deep);
  color: #f4fff8;
}

.ha-btn-primary:hover { background: #148a48; }

.ha-btn-ghost {
  background: transparent;
  border: 1px solid rgba(14, 26, 20, 0.14);
  color: var(--ha-text);
}

.ha-btn-ghost:hover { border-color: rgba(26, 158, 85, 0.45); }

.ha-btn[aria-disabled="true"],
.ha-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ha-hero-meta {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--ha-dim);
  opacity: 0;
  animation: ha-rise 0.85s ease 0.56s forwards;
}

.ha-hero-meta strong {
  color: var(--ha-muted);
  font-weight: 600;
}

/* Phone */
.ha-hero-stage {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: ha-rise 1s ease 0.3s forwards;
}

.ha-phone {
  width: min(100%, 300px);
  border-radius: 36px;
  padding: 12px;
  background: #1c1c1e;
}

.ha-phone-lookback {
  width: min(100%, 280px);
}

.ha-phone-notch {
  width: 96px;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ha-phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.ha-phone-screen-intercept {
  padding: 18px 20px 28px;
  min-height: 460px;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ha-mock-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

.ha-mock-dots {
  width: 42px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.ha-mock-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.ha-mock-app-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: block;
  background: #1c1c1e;
}

.ha-mock-app-name {
  display: block;
  width: 72px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.ha-mock-quote {
  margin: 18px 0 0;
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
  max-width: 16em;
}

.ha-mock-ask {
  margin: 22px 0 0;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: #fff;
}

.ha-mock-write {
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.32);
}

.ha-mock-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
}

.ha-mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ha-mock-btn-primary {
  background: var(--ha-green);
  color: #fff;
}

.ha-mock-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  font-size: 0.88rem;
  min-height: 42px;
}

/* ── Sections ──────────────────────────────────── */
.ha-section { padding: 88px 0; }
.ha-section-tight { padding: 56px 0; }

.ha-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.ha-section-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.ha-section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ha-section-head h2 {
  font-family: var(--ha-font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--ha-ink);
}

.ha-section-head p {
  margin: 0;
  color: var(--ha-muted);
  line-height: 1.75;
}

.ha-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ha-green-deep);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ── Loop ──────────────────────────────────────── */
.ha-loop-rail {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ha-loop-index {
  display: block;
  font-family: var(--ha-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ha-green-deep);
  margin-bottom: 14px;
}

.ha-loop-rail h3 {
  font-size: 1.12rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--ha-ink);
}

.ha-loop-rail p {
  margin: 0;
  color: var(--ha-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ha-capsule {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #0a0a0c;
  color: #f2f2f7;
  font-size: 0.78rem;
}

.ha-capsule em {
  font-style: normal;
  color: var(--ha-green-bright);
  font-weight: 600;
}

.ha-capsule-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ha-green-bright);
  animation: ha-pulse 2.2s ease-out infinite;
}

@keyframes ha-pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 204, 126, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(67, 204, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 204, 126, 0); }
}

.ha-lookback {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.ha-phone-screen-today {
  padding: 22px 18px 24px;
  min-height: 420px;
  background: #0f1117;
  color: #edf4ef;
}

.ha-today-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  font-size: 0.78rem;
  color: rgba(237, 244, 239, 0.42);
}

.ha-today-top span:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: #edf4ef;
}

.ha-today-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ha-today-row time {
  font-size: 0.72rem;
  color: rgba(237, 244, 239, 0.32);
  padding-top: 2px;
}

.ha-today-row p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(237, 244, 239, 0.72);
}

.ha-today-row span {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ha-green-bright);
}

.ha-today-row-quit {
  align-items: center;
}

.ha-today-row-quit p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(237, 244, 239, 0.45);
}

.ha-today-pending {
  color: rgba(237, 244, 239, 0.55) !important;
  border-bottom: 1px solid rgba(237, 244, 239, 0.22);
}

.ha-compare {
  max-width: 28em;
}

.ha-compare-prompt {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ha-ink);
  margin: 0 0 16px;
}

.ha-compare-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ha-compare-tiers span {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(14, 26, 20, 0.1);
  font-size: 0.9rem;
  color: var(--ha-muted);
}

.ha-compare-tiers .is-on {
  background: rgba(38, 187, 104, 0.12);
  border-color: rgba(38, 187, 104, 0.35);
  color: var(--ha-green-deep);
  font-weight: 600;
}

.ha-compare-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ha-dim);
}

/* ── Tools ─────────────────────────────────────── */
.ha-tools {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(14, 26, 20, 0.08);
}

.ha-tools article {
  padding: 28px 0;
  border-bottom: 1px solid rgba(14, 26, 20, 0.08);
  max-width: 40em;
}

.ha-tools h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--ha-ink);
}

.ha-tool-tag {
  margin: 0 0 10px !important;
  font-size: 0.86rem !important;
  color: var(--ha-green-deep) !important;
  font-weight: 600;
}

.ha-tools p {
  margin: 0;
  color: var(--ha-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Trust ─────────────────────────────────────── */
.ha-trust {
  text-align: center;
  padding: 8px 0 12px;
}

.ha-trust h2 {
  font-family: var(--ha-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--ha-ink);
}

.ha-trust p {
  margin: 0 auto;
  max-width: 36em;
  color: var(--ha-muted);
  line-height: 1.75;
}

.ha-trust-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.ha-trust-links a {
  color: var(--ha-green-deep);
  border-bottom: 1px solid rgba(26, 158, 85, 0.3);
  padding-bottom: 2px;
}

/* ── Download ──────────────────────────────────── */
.ha-download-panel {
  padding: 8px 0 12px;
  border-top: 1px solid rgba(14, 26, 20, 0.08);
}

.ha-download-copy h3 {
  font-family: var(--ha-font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ha-ink);
}

.ha-download-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 14px;
}

.ha-download-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.ha-download-platform {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: var(--ha-green-deep) !important;
}

.ha-download-copy p {
  margin: 0 0 12px;
  color: var(--ha-muted);
  line-height: 1.7;
}

.ha-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ha-changelog {
  margin-top: 18px;
  max-width: 36em;
}

.ha-changelog[hidden] {
  display: none;
}

.ha-changelog summary {
  display: inline;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ha-muted);
  border-bottom: 1px solid rgba(14, 26, 20, 0.18);
  padding-bottom: 1px;
  user-select: none;
}

.ha-changelog summary::-webkit-details-marker {
  display: none;
}

.ha-changelog summary:hover {
  color: var(--ha-green-deep);
  border-bottom-color: rgba(26, 158, 85, 0.45);
}

.ha-changelog[open] summary {
  color: var(--ha-green-deep);
  border-bottom-color: transparent;
}

.ha-changelog p {
  margin: 10px 0 0 !important;
  font-size: 0.9rem !important;
  color: var(--ha-text) !important;
  line-height: 1.7 !important;
}

.ha-faq {
  margin-top: 48px;
  max-width: 40em;
}

.ha-faq h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--ha-ink);
}

.ha-faq dl { margin: 0; }

.ha-faq div {
  padding: 14px 0;
  border-top: 1px solid rgba(14, 26, 20, 0.08);
}

.ha-faq div:last-child {
  border-bottom: 1px solid rgba(14, 26, 20, 0.08);
}

.ha-faq dt {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ha-ink);
}

.ha-faq dd {
  margin: 0;
  color: var(--ha-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────── */
.ha-footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(14, 26, 20, 0.06);
  color: var(--ha-dim);
  font-size: 0.84rem;
}

.ha-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.ha-footer a:hover { color: var(--ha-muted); }

/* ── Toast ─────────────────────────────────────── */
.ha-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ha-ink);
  color: #edf4ef;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
  max-width: min(90vw, 420px);
  text-align: center;
}

.ha-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 960px) {
  .ha-hero-layout,
  .ha-loop-rail,
  .ha-lookback {
    grid-template-columns: 1fr;
  }

  .ha-hero {
    padding-top: 96px;
    padding-bottom: 48px;
    min-height: auto;
  }

  .ha-hero-stage { order: -1; }

  .ha-phone { width: min(100%, 260px); }

  .ha-phone-screen-intercept { min-height: 400px; }

  .ha-nav-links a:not(.ha-nav-cta) { display: none; }

  .ha-section-head-center {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .ha-hero-brand { font-size: 3.2rem; }
  .ha-section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-capsule-pulse,
  .ha-kicker,
  .ha-hero-brand,
  .ha-hero-line,
  .ha-hero-sub,
  .ha-hero-actions,
  .ha-hero-meta,
  .ha-hero-stage {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── 法律页（隐私 / 协议）──────────────────────── */
.ha-legal {
  padding: 120px 0 80px;
}

.ha-legal-wrap { max-width: 720px; }

.ha-legal h1 {
  font-family: var(--ha-font-brand);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 10px 0 8px;
  letter-spacing: 0.04em;
  color: var(--ha-ink);
}

.ha-legal-meta {
  color: var(--ha-muted);
  font-size: 0.92rem;
  margin-bottom: 36px;
}

.ha-legal section { margin-bottom: 28px; }

.ha-legal h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ha-green-deep);
}

.ha-legal p,
.ha-legal li {
  color: var(--ha-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.ha-legal ul {
  padding-left: 1.2em;
  margin: 8px 0 0;
}

.ha-legal li + li { margin-top: 6px; }

.ha-legal a {
  color: var(--ha-green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ha-legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 26, 20, 0.08);
}

.ha-legal-back a {
  text-decoration: none;
  font-weight: 500;
}
