/* seomoz.link · 在线工具通用交互组件
   供工具箱里的检测/生成类页面共用（geo-analysis.html 保留其自有内联样式） */

/* ---------- 输入区 ---------- */
.scan-box { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--page); margin: 18px 0 10px; }
.scan-row { display: flex; gap: 10px; margin-bottom: 10px; }
.scan-row:last-of-type { margin-bottom: 0; }
.scan-row input, .scan-row select {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
}
.scan-row input.opt { flex: .8; }
.scan-row input:focus, .scan-row select:focus { border-color: var(--link); }
.scan-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.scan-err { display: none; border-left: 4px solid #b3402a; background: #f9e5e0; border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.btn-scan { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 11px 26px; font-size: 15px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-scan:hover { background: var(--link); }
.btn-scan:disabled { background: #9db4cc; cursor: wait; }
.btn-line { background: #fff; border: 1px solid var(--primary); color: var(--primary); border-radius: 8px; padding: 8px 18px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn-line:hover { background: var(--blue-soft); }

/* ---------- 加载态 ---------- */
.loading { display: none; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 16px 0; }
.loading.show { display: flex; }
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--link);
  border-radius: 50%; animation: smspin .8s linear infinite; flex: none;
}
@keyframes smspin { to { transform: rotate(360deg); } }

/* ---------- 结果区 ---------- */
#result { display: none; margin-top: 26px; }
.res-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: var(--bg); margin-bottom: 16px; }
.res-card h2 { font-size: 18px; color: var(--ink); margin-bottom: 6px; border: none; padding: 0; }
.res-sub { font-size: 14px; color: var(--muted); line-height: 1.75; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stat-chips span {
  font-family: var(--mono); font-size: 12px; color: var(--link);
  background: var(--blue-soft); border-radius: 20px; padding: 3px 12px;
}
/* 每日免费额度提示：用琥珀色区分，避免和普通统计项混淆 */
.stat-chips span.quota {
  color: var(--amber);
  background: #fdf1dc;
  font-weight: 600;
}
.stat-chips span.quota.empty { color: #a5341f; background: #fbe4de; }

/* ---------- 分栏 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ---------- 阶段 / 分组卡片 ---------- */
.qcard { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--bg); }
.qcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.qcard-head h3 { font-size: 15.5px; color: var(--ink); font-weight: 700; }
.qcard .intent { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }

.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li {
  position: relative; padding: 7px 44px 7px 0; font-size: 13.5px; color: var(--body);
  line-height: 1.6; border-bottom: 1px dashed var(--line); cursor: pointer;
}
.qlist li:last-child { border-bottom: none; }
.qlist li:hover { color: var(--link); }
.qlist li::after {
  content: "复制"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; opacity: 0; transition: opacity .15s;
}
.qlist li:hover::after { opacity: 1; }
.qlist li.done::after { content: "已复制"; color: var(--teal); border-color: var(--teal-soft); background: var(--teal-soft); opacity: 1; }

/* ---------- 优先级标记 ---------- */
.pill { font-family: var(--mono); font-size: 10.5px; padding: 1px 9px; border-radius: 8px; white-space: nowrap; }
.pill.p0 { color: #b3402a; background: #f9e5e0; }
.pill.p1 { color: var(--amber); background: var(--amber-soft); }
.pill.p2 { color: var(--muted); background: var(--page); border: 1px solid var(--line); }
.pill.tag { color: var(--teal); background: var(--teal-soft); }

/* ---------- 输出面板 ---------- */
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-top: 20px; display: none; }
.panel .panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
.panel h2 { font-size: 16px; color: var(--ink); border: none; padding: 0; }
.panel a { font-size: 12.5px; cursor: pointer; }
.panel pre {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; background: var(--page);
  color: var(--body); border-radius: 8px; padding: 14px 16px; overflow: auto;
  max-height: 420px; white-space: pre-wrap; word-break: break-word; margin: 0;
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .scan-row { flex-direction: column; }
  .scan-row input.opt { flex: 1; }
}
