/* 落地页图表墙、内容页、CSS 画的图标、三步。从 A0_styles_landing.css 拆出来, 页面按顺序加载。 */

/* ---------------- landing 的图表墙 ---------------- */

.board { position: relative; max-width: 1160px; margin: 62px auto 0; }

.board-head { text-align: center; margin-bottom: 22px; }
.board-title { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.board-note { display: block; font-size: 12.5px; color: var(--dim); margin-top: 3px; }

/** 固定两列, 四张图排成 2x2。auto-fit 会在宽屏排成 3 列, 剩下一张孤零零的 */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.viz {
  margin: 0;
  padding: 16px 16px 10px;
  background: var(--glass);
  border: 1px solid var(--faint);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s, border-color 0.18s;
}
.viz:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.24); }

.viz figcaption { position: relative; display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }

.viz-fav {
  position: absolute;
  right: 0;
  top: 0;
  font: inherit;
  font-size: 11px;
  color: var(--dim);
  background: var(--glass);
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 2px 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s, color 0.16s, background 0.16s;
}
.viz:hover .viz-fav, .viz-fav.on { opacity: 1; }
.viz-fav:hover { color: var(--ink); background: rgba(255, 255, 255, 0.15); }
.viz-fav.on { color: var(--deep); background: #fff; border-color: transparent; cursor: default; }

.board-link {
  font: inherit;
  font-size: 12.5px;
  color: #9cc6ff;
  background: none;
  border: 0;
  padding: 0 0 0 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.board-link:hover { color: #fff; }
.board-link:disabled { color: var(--dim); text-decoration: none; cursor: default; }

.board-failed::after {
  content: "示例图没能加载出来，可能是后端还没起。";
  display: block;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 10px;
  background: #fff;
  color: var(--deep);
  font-size: 13px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  z-index: 50;
}
.viz .q {
  font-size: 13px;
  color: var(--dim);
  padding-left: 22px;
  position: relative;
}
.viz .q::before {
  content: "问";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.viz .a { font-size: 13.5px; font-weight: 550; color: var(--ink); padding-left: 22px; }

.viz-host { width: 100%; display: block; min-height: 190px; }
.viz-host .vega-embed { width: 100%; display: block !important; }

.board-foot { text-align: center; margin-top: 34px; }
.board-hint { display: block; font-size: 12.5px; color: var(--dim); margin-top: 12px; }

/* ---------------- 内容页 ---------------- */

.page-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 8px;
}
.page-head h1 {
  font-size: 34px;
  font-weight: 690;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.page-head p { margin: 0; color: var(--text-secondary); }

.section { max-width: 1080px; margin: 0 auto; padding: 44px 32px; }
.section.alt {
  max-width: none;
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 32px;
}
.section.alt > * { max-width: 1016px; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: 25px;
  font-weight: 660;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.section-lead { color: var(--text-secondary); margin: 0 0 30px; max-width: 640px; }
/** 一段收尾的话, 比正文淡一档, 别跟卡片抢注意力 */
.section-foot {
  color: var(--text-muted, var(--text-secondary));
  font-size: 14px;
  margin: 22px 0 0;
  max-width: 640px;
}
.section h2 + .grid, .section h2 + .steps, .section h2 + .compare { margin-top: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card.flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 15.5px; font-weight: 620; margin: 0 0 8px; }
.card p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

/* 图标全用 CSS 画, 不引外部资源 */
.card-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  margin-bottom: 15px;
  position: relative;
}
.card-icon::before, .card-icon::after { content: ""; position: absolute; }

.i-read::before {
  left: 10px; top: 11px; width: 18px; height: 2px;
  background: var(--accent); border-radius: 1px;
  box-shadow: 0 5px 0 0 var(--accent-2), 0 10px 0 0 var(--warm);
}

/* 一步步拆开: 三个递进的方块, 不用代码尖括号那种技术符号 */
.i-steps::before {
  left: 10px; top: 12px; width: 6px; height: 6px;
  background: var(--accent); border-radius: 2px;
  box-shadow: 6px 4px 0 0 var(--accent-2), 12px 8px 0 0 var(--warm);
}

.i-chart::before {
  left: 11px; bottom: 11px; width: 4px; height: 9px;
  background: var(--accent); border-radius: 1px;
  box-shadow: 6px 0 0 0 var(--accent-2), 12px 0 0 0 var(--warm);
}
.i-chart::after {
  left: 17px; bottom: 11px; width: 4px; height: 15px;
  background: var(--accent-2); border-radius: 1px;
}

.i-ask { background: rgba(237, 161, 0, 0.14); }
.i-ask::before {
  left: 14px; top: 10px; width: 10px; height: 10px;
  border: 2px solid var(--warm); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.i-ask::after {
  left: 18px; bottom: 10px; width: 3px; height: 3px;
  background: var(--warm); border-radius: 50%;
}

/* 三步 */

.steps { display: grid; gap: 16px; }
.step-item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.step-no {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step-item h3 { font-size: 15.5px; font-weight: 620; margin: 3px 0 6px; }
.step-item p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.75; }
