/* =========================================================
   万汇云数 · GEO 免费诊断
   01 基础 / 02 表单 / 03 加载 / 04 报告 / 05 图表 / 06 响应式
   ========================================================= */

.diagnose-page {
  background: var(--paper);
  color: var(--ink);
}

.dx-view[hidden] { display: none !important; }

.dx-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

@keyframes dx-spin { to { transform: rotate(360deg); } }
@keyframes dx-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes dx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 83, 46, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(198, 83, 46, 0); }
}
@keyframes dx-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.015); opacity: 1; }
}

/* ---------- 01. 表单页 ---------- */
.dx-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 78px) 0 104px;
  min-height: 100vh;
}

.dx-hero__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dx-hero__ring {
  position: absolute;
  border: 1px solid rgba(18, 18, 16, 0.08);
  border-radius: 50%;
}
.dx-hero__ring--a { width: 880px; height: 880px; right: -300px; top: -380px; }
.dx-hero__ring--b { width: 560px; height: 560px; right: -120px; top: -220px; border-color: rgba(198, 83, 46, 0.16); }
.dx-hero__ring--c { width: 320px; height: 320px; left: -160px; bottom: -160px; border-style: dashed; border-color: rgba(18, 18, 16, 0.12); }
.dx-hero__aura::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background: radial-gradient(60% 48% at 70% 40%, rgba(198, 83, 46, 0.08), transparent 70%);
}

.dx-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(44px, 6vw, 104px);
  align-items: start;
}

.dx-hero__title {
  margin: 26px 0 30px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.025em;
}
.dx-hero__title em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--accent);
}

.dx-hero__lede {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-3);
}
.dx-hero__lede strong { color: var(--ink); font-weight: 500; }

.dx-hero__points {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.dx-hero__points li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dx-hero__num {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.dx-hero__num small {
  font-size: 15px;
  letter-spacing: 0;
  margin-left: 2px;
  color: var(--muted);
}
.dx-hero__points b { display: block; font-weight: 500; font-size: 13.5px; letter-spacing: 0.01em; }
.dx-hero__points small { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.dx-hero__trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.dx-hero__trust i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* form */
.dx-form-wrap { padding-top: 54px; }

.dx-form {
  position: relative;
  padding: clamp(26px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px -70px rgba(18, 18, 16, 0.55);
}
.dx-form::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(198, 83, 46, 0));
}
.dx-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dx-form__badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.dx-field {
  margin-top: 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}
.dx-field label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.dx-field label em { font-style: normal; color: var(--accent); }
.dx-field label span {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(18, 18, 16, 0.36);
}
.dx-field input {
  width: 100%;
  margin-top: 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  outline: 0;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}
.dx-field input::placeholder { font-size: 17px; color: rgba(18, 18, 16, 0.26); }
.dx-field:focus-within { border-bottom-color: var(--accent); }
.dx-field:focus-within label { color: var(--accent); }
.dx-field.is-error { border-bottom-color: var(--accent); }
.dx-field.is-error input { color: var(--accent); }

.dx-form__error {
  margin-top: 20px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--accent);
  border-left: 1px solid var(--accent);
  padding-left: 12px;
}

.dx-submit {
  width: 100%;
  margin-top: 30px;
  justify-content: space-between;
  min-height: 62px;
}
.dx-submit .icon { width: 18px; height: 18px; }

.dx-form__note {
  margin-top: 16px;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
}
.dx-form__config {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(198, 83, 46, 0.28);
  background: rgba(198, 83, 46, 0.05);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--accent);
}

.dx-form-aside {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 26px;
  padding: 0 4px;
}
.dx-form-aside__line { height: 1px; margin-top: 9px; background: var(--line-strong); }
.dx-form-aside p { font-size: 11px; line-height: 1.85; color: var(--muted); }
.dx-form-aside b { color: var(--ink-3); font-weight: 500; }

/* ---------- 02. 加载页 ---------- */
.dx-loading {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 110px;
  min-height: 100vh;
}
.dx-loading__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 52% at 20% 30%, rgba(198, 83, 46, 0.09), transparent 72%),
    radial-gradient(46% 46% at 84% 74%, rgba(18, 18, 16, 0.06), transparent 72%);
}
.dx-loading__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 6vw, 104px);
  align-items: start;
}

.dx-loader {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  text-align: center;
  padding-top: 6px;
}
.dx-loader .eyebrow { justify-content: center; }
.dx-loader .eyebrow::before { display: none; }

.dx-ring {
  position: relative;
  width: min(310px, 70vw);
  aspect-ratio: 1;
  margin: 30px auto 0;
}
.dx-ring svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.dx-ring__track { fill: none; stroke: rgba(18, 18, 16, 0.1); stroke-width: 1; }
.dx-ring__ticks {
  fill: none;
  stroke: rgba(18, 18, 16, 0.26);
  stroke-width: 1;
  stroke-dasharray: 1 8;
  transform-origin: 130px 130px;
  animation: dx-spin 52s linear infinite;
}
.dx-ring__value {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.22s linear;
  filter: drop-shadow(0 0 7px rgba(198, 83, 46, 0.28));
}
.dx-ring__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: dx-spin 6.8s linear infinite;
}
.dx-ring__orbit::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(198, 83, 46, 0.12);
}
.dx-ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
}
.dx-ring__pct {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 82px);
  line-height: 1;
}
.dx-ring__pct b { font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.dx-ring__pct small { margin-top: 14px; font-size: 16px; color: var(--muted); }
.dx-ring__label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.dx-loader__title {
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
}
.dx-loader__title b { font-weight: 500; color: var(--accent); }
.dx-loader__stage {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.dx-loader__time {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.dx-loader__time b { color: var(--ink-3); font-weight: 400; }

.dx-live {
  display: grid;
  gap: 34px;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 58px);
}

.dx-steps { list-style: none; margin: 0; padding: 0; }
.dx-steps li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.42;
  transition: opacity 0.45s var(--ease), background 0.45s var(--ease);
}
.dx-steps li:first-child { border-top: 1px solid var(--line); }
.dx-steps li.is-active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(198, 83, 46, 0.06), transparent 72%);
}
.dx-steps li.is-done { opacity: 0.92; }
.dx-steps__index {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.dx-steps li.is-active .dx-steps__index { color: var(--accent); }
.dx-steps li b { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; }
.dx-steps li small { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: 0.01em; color: var(--muted); }
.dx-steps__state {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dx-steps li.is-active .dx-steps__state { color: var(--accent); }
.dx-steps li.is-done .dx-steps__state { color: var(--ink-3); }

.dx-dims__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.dx-dims__head b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.dx-dims__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.dx-dims__grid li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  background: var(--paper);
  transition: background 0.4s var(--ease);
}
.dx-dims__grid .id {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.dx-dims__grid .nm {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-3);
  transition: color 0.4s var(--ease);
}
.dx-dims__grid .st {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: transparent;
  transition: color 0.4s var(--ease);
}
.dx-dims__grid li.is-active { background: rgba(198, 83, 46, 0.07); }
.dx-dims__grid li.is-active .nm { color: var(--ink); }
.dx-dims__grid li.is-active .st { color: var(--accent); }
.dx-dims__grid li.is-done { background: rgba(18, 18, 16, 0.035); }
.dx-dims__grid li.is-done .nm { color: var(--ink); }
.dx-dims__grid li.is-done .st { color: var(--ink-3); }

.dx-feed {
  display: grid;
  gap: 7px;
  align-content: end;
  min-height: 92px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.dx-feed p {
  display: flex;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--ink-3);
  animation: dx-fade-up 0.5s var(--ease) both;
}
.dx-feed .t { flex: 0 0 42px; color: var(--muted); }
.dx-feed .is-accent { color: var(--accent); }

.dx-load-error {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-content: center;
  padding: 32px;
  text-align: center;
  background: rgba(242, 239, 232, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dx-load-error[hidden] { display: none !important; }
.dx-load-error h3 {
  margin: 20px 0 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
}
.dx-load-error p { max-width: 520px; margin: 0 auto; font-size: 13px; line-height: 1.9; color: var(--ink-3); }
.dx-load-error__actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- 03. 按钮 ---------- */
.btn--ghost {
  background: transparent;
  border-color: rgba(18, 18, 16, 0.28);
  color: var(--ink);
  min-height: 52px;
}
.btn--ghost:hover { background: rgba(18, 18, 16, 0.06); border-color: var(--ink); }

/* ---------- 04. 响应式 ---------- */
@media (max-width: 1120px) {
  .dx-hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .dx-hero { padding-top: calc(var(--header-h) + 54px); }
  .dx-hero__points { max-width: none; }
  .dx-form-wrap { padding-top: 0; max-width: 640px; }
  .dx-loading__inner { grid-template-columns: 1fr; gap: 44px; }
  .dx-loader { position: static; }
  .dx-live { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
}

@media (max-width: 760px) {
  .dx-hero { padding-bottom: 72px; }
  .dx-hero__title { font-size: clamp(38px, 10vw, 56px); }
  .dx-hero__lede { font-size: 14px; }
  .dx-hero__points li { grid-template-columns: 74px 1fr; }
  .dx-hero__num { font-size: 34px; }
  .dx-form { padding: 22px 20px; }
  .dx-field input { font-size: 19px; }
  .dx-loading { padding-top: calc(var(--header-h) + 40px); }
  .dx-dims__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .dx-hero__trust { flex-wrap: wrap; row-gap: 8px; }
  .dx-loader__title { font-size: 19px; }
  .dx-steps li { grid-template-columns: 32px 1fr auto; gap: 12px; }
  .dx-steps li small { display: none; }
  .dx-dims__grid li { min-height: 52px; padding: 9px 10px; }
  .dx-dims__grid .nm { font-size: 10px; }
  .dx-feed { min-height: 80px; }
}

/* ---------- 05. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .dx-ring__ticks,
  .dx-ring__orbit,
  .dx-feed p,
  .dx-hero__ring { animation: none !important; }
}
