/* 选址分析首页 /tools/site（spec 20260930-mapstudio-trade-area-online design §5.2，UI 稿 H1 / H2）。
   令牌全部来自 tokens.css（ml_base 已载），不引入新色；sh- 前缀。页面无实心主按钮。
   内容壳与 /tools 目录页同口径（spec 20260817-content-shell-unify）。 */
body { --nav-shell-max: var(--content-shell-max, 1760px); --nav-shell-pad: var(--content-shell-pad, clamp(20px, 3.25vw, 56px)); }
main.container-fluid { padding-inline: 0; }
.sh-wrap { max-width: var(--content-shell-max, 1760px); margin: 0 auto; padding: 20px var(--content-shell-pad, clamp(20px, 3.25vw, 56px)) 56px; color: var(--ink); }

.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sh-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
.sh-lede { margin: 8px 0 0; max-width: 720px; font-size: 13px; line-height: 1.7; color: var(--ink-secondary); }
.sh-balance { margin: 0; font-size: 13px; color: var(--ink-secondary); white-space: nowrap; }
.sh-balance b { color: var(--ink); }
.sh-balance a { color: var(--brand-heavy); font-weight: 600; text-decoration: none; }
.sh-balance a:hover { text-decoration: underline; }

/* 三张子应用卡：三列等宽 */
.sh-apps { margin-top: 20px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-app {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.sh-app:hover { border-color: var(--brand-line); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.sh-app-top { display: flex; align-items: center; gap: 10px; }
.sh-app-ic { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-md, 8px); background: var(--brand-soft); color: var(--brand); font-size: 16px; }
.sh-app-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.sh-app-q { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.sh-app-io { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.sh-app-io div { display: flex; gap: 8px; }
.sh-app-io dt { flex: 0 0 auto; color: var(--muted); font-weight: 400; }
.sh-app-io dd { margin: 0; color: var(--ink-secondary); }
.sh-app-price { margin: 0; display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; line-height: 1.6; color: var(--ink-secondary); }
.sh-app-price i { color: var(--warning-dark); font-size: 11px; }
.sh-app-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 12px; }
.sh-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border: 1px solid var(--brand-line); border-radius: var(--radius-md, 8px);
  background: var(--surface); color: var(--brand-heavy); font-size: 13px; font-weight: 600; text-decoration: none;
}
.sh-btn:hover { background: var(--brand-soft); color: var(--brand-heavy); text-decoration: none; }
.sh-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* 下半区：最近的分析（登录）/ 怎么开始（匿名） + 相关工具 */
.sh-low { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sh-panel { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--surface); }
.sh-panel-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.sh-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sh-recent-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sh-recent-row:first-child { border-top: 0; }
.sh-recent-copy { flex: 1 1 auto; min-width: 0; }
.sh-recent-copy b { display: block; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-recent-copy small { color: var(--muted); font-size: 12px; }
.sh-recent-row a { flex: 0 0 auto; color: var(--brand-heavy); font-weight: 600; text-decoration: none; }
.sh-recent-row a:hover { text-decoration: underline; }
.sh-recent-empty { margin: 0; font-size: 13px; color: var(--muted); }
.sh-howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-secondary); }
.sh-howto a { color: var(--brand-heavy); font-weight: 600; }
.sh-rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-rel-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: var(--radius-md, 8px); color: var(--ink); text-decoration: none; }
.sh-rel-item:hover { background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.sh-rel-item i { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-md, 8px); background: var(--surface-soft); color: var(--ink-secondary); font-size: 13px; }
.sh-rel-item strong { display: block; font-size: 13px; font-weight: 600; }
.sh-rel-item small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }

.sh-foot { margin: 24px 0 0; font-size: 12.5px; color: var(--muted); }
.sh-foot a { color: var(--ink-secondary); }
.sh-foot a:hover { color: var(--brand-heavy); }

@media (max-width: 1023.98px) {
  .sh-apps { grid-template-columns: 1fr; }
  .sh-low { grid-template-columns: 1fr; }
}
@media (max-width: 599.98px) {
  .sh-rel { grid-template-columns: 1fr; }
}
