/* 企答通 EntAskAI · 官网样式 */
:root {
  --ink: #07141a;
  --ink-2: #0c2430;
  --ink-3: #143447;
  --foam: #eaf6f1;
  --foam-dim: #b7cfc6;
  --jade: #2ee6a6;
  --jade-dim: #1aa875;
  --signal: #ffb020;
  --line: rgba(234, 246, 241, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-ui: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1120px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--foam);
  background: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--jade);
  text-decoration: none;
}

a:hover {
  color: #7dffc7;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 20, 26, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foam);
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border: none;
  box-sizing: border-box;
  overflow: hidden;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.brand-text > span,
.brand > span {
  font-size: 0.72rem;
  color: var(--foam-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--foam-dim);
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--foam);
}

.nav .btn {
  margin-left: 0.4rem;
}

/* 覆盖 .nav a 的浅色字，避免浅绿底上看不清 */
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--foam);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--jade);
  color: var(--ink);
  font-weight: 700;
  border-color: #1bc78c;
  box-shadow: 0 6px 18px rgba(46, 230, 166, 0.28);
}

.btn-primary:hover {
  background: #5ef0b8;
  color: var(--ink);
  border-color: #5ef0b8;
}

a.btn-primary,
a.btn-primary:hover,
button.btn-primary {
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--foam);
}

.btn-ghost:hover {
  border-color: var(--jade);
  color: var(--jade);
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
  padding: 2.25rem 0 2.75rem;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(46, 230, 166, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(255, 176, 32, 0.08), transparent 50%),
    linear-gradient(160deg, #07141a 0%, #0c2430 48%, #07141a 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(234, 246, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 246, 241, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-56px, -56px, 0);
  }
}

.hero-beam {
  position: absolute;
  z-index: -1;
  width: min(52vw, 620px);
  height: min(52vw, 620px);
  right: -6%;
  top: 8%;
  border-radius: 50%;
  background: conic-gradient(from 120deg, transparent, rgba(46, 230, 166, 0.22), transparent 40%);
  filter: blur(2px);
  animation: beamSpin 18s linear infinite;
}

@keyframes beamSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
}

.hero-brand em {
  font-style: normal;
  color: var(--jade);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 18em;
  margin: 0 0 1rem;
}

.hero-lead {
  max-width: 34em;
  color: var(--foam-dim);
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  color: var(--foam-dim);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--foam);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-tight {
  padding: 2rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(12, 36, 48, 0.7), rgba(7, 20, 26, 0.2));
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  color: var(--jade);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.35;
  margin: 0 0 0.55rem;
  max-width: none; /* 不再限制 14em，避免首页/内页标题被拆成两行 */
}

.section-lead {
  color: var(--foam-dim);
  max-width: 40em;
  margin: 0 0 1.25rem;
}

.split {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 880px) {
  .split-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    column-gap: 3rem;
    row-gap: 1.6rem;
  }
}

/* Feature rows — not card-heavy */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.7rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feature-item .idx {
  color: var(--jade);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: nowrap;
  padding-top: 0.12rem;
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.feature-item p {
  margin: 0;
  color: var(--foam-dim);
}

/* Offer strip */
.offer-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .offer-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer-strip-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer {
  background: var(--ink-2);
  padding: 1.25rem 1.2rem 1.4rem;
}

.offer h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.offer .price {
  color: var(--jade);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.6rem 0;
}

.offer .price small {
  font-size: 0.85rem;
  color: var(--foam-dim);
  font-weight: 400;
}

.offer ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--foam-dim);
}

.offer li {
  margin: 0.35rem 0;
}

.offer.is-focus {
  background: linear-gradient(165deg, #123647, #0c2430);
  outline: 1px solid rgba(46, 230, 166, 0.35);
  outline-offset: -1px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(46, 230, 166, 0.35);
  padding-left: 1.3rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.15);
}

.timeline-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.timeline-item p {
  margin: 0;
  color: var(--foam-dim);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--jade);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--foam-dim);
  margin: 0.7rem 0 0;
}

/* Prose pages */
.page-hero {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(46, 230, 166, 0.12), transparent 55%),
    var(--ink);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.45rem;
}

.page-hero .section-lead {
  max-width: none;
  white-space: normal; /* 手机允许自动换行 */
}

@media (min-width: 880px) {
  .page-hero .section-lead {
    white-space: nowrap; /* 桌面保持单行 */
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 1.5rem;
  max-width: none; /* 覆盖 .section h2 的 14em，避免标题被拆成两行 */
}

/* 标准问答页：问题标题略小于普通章节标题 */
.answers-doc h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  margin-top: 1.75rem;
  margin-bottom: 0.45rem;
  color: var(--foam);
}

.prose p,
.prose li {
  color: var(--foam-dim);
}

.prose strong {
  color: var(--foam);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: auto;
}

table.data th,
table.data td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.75rem 0.75rem 0;
  text-align: left;
  vertical-align: top;
}

table.data th {
  color: var(--jade);
  font-weight: 600;
}

table.data td:last-child {
  word-break: break-word;
  line-height: 1.65;
}

/* 键值表（项/内容）：左列标签不换行 */
table.data-kv th:first-child,
table.data-kv td:first-child {
  white-space: nowrap;
  width: 1%;
  padding-right: 1.5rem;
  color: var(--foam-dim);
  font-weight: 500;
}

table.data-kv th:first-child {
  color: var(--jade);
  font-weight: 600;
}

/* 选型建议表：右列「更建议」保宽，不被左列长文挤压 */
table.data-suggest {
  table-layout: fixed;
}

table.data-suggest th:first-child,
table.data-suggest td:first-child {
  width: 62%;
  white-space: normal;
  word-break: break-word;
}

table.data-suggest th:last-child,
table.data-suggest td:last-child {
  width: 38%;
  min-width: 7.5em;
  white-space: nowrap;
  padding-left: 0.85rem;
  font-weight: 600;
  color: var(--foam);
}

@media (max-width: 640px) {
  table.data-suggest th:first-child,
  table.data-suggest td:first-child {
    width: 55%;
  }

  table.data-suggest th:last-child,
  table.data-suggest td:last-child {
    width: 45%;
    min-width: 6.5em;
    white-space: normal; /* 极窄屏允许「智能触点版」换行，但仍占足够列宽 */
  }
}

/* Contact form visual */
.contact-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1.6rem;
}

.contact-panel label {
  display: block;
  font-size: 0.85rem;
  color: var(--foam-dim);
  margin: 0.8rem 0 0.3rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--foam);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  font: inherit;
}

.contact-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.note {
  font-size: 0.88rem;
  color: var(--signal);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--foam-dim);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.site-footer .brand strong {
  color: var(--foam);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: rgba(7, 20, 26, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn {
    margin-left: 0;
  }
}
