/* 客户异议处理手册 — 视觉风格：稳重、专业、移动友好 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d212b;
  --line: #2a2f3a;
  --ink: #eef1f6;
  --ink-2: #aab2c0;
  --ink-3: #7a8392;
  --accent: #4f9cff;
  --accent-soft: rgba(79, 156, 255, 0.14);
  --good: #46c98b;
  --warn: #f0a13a;
  --danger: #f06868;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1a2230 0%, var(--bg) 55%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(960px, 92vw); margin: 0 auto; }

h2 { font-size: 1.05rem; margin: 0; letter-spacing: 0.2px; }

/* ---------- 顶栏 ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 21, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { font-size: 28px; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.brand-sub { color: var(--ink-2); font-size: 0.8rem; }
.ghost-link { color: var(--ink-2); text-decoration: none; font-size: 0.85rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.ghost-link:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- 通用卡片 ---------- */
section { margin-top: 22px; }

.context-card, .picker, .card-section, .how {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.context-head, .picker-head, .card-actions, .context-head { margin-bottom: 14px; }
.context-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.hint { color: var(--ink-3); font-size: 0.78rem; }

/* ---------- 场景表单 ---------- */
.context-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.context-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.context-grid input, .context-grid select, .search {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.context-grid input:focus, .context-grid select:focus, .search:focus { border-color: var(--accent); }
.context-grid label:last-child { grid-column: 1 / -1; }

/* ---------- 选择器 ---------- */
.picker-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.search { width: min(320px, 100%); }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-tab {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { background: var(--accent-soft); border-color: var(--accent); color: #cfe2ff; }

.obj-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.obj-item {
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: var(--ink);
}
.obj-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.obj-item.active { border-color: var(--accent); background: var(--accent-soft); }
.obj-item .oi-label { font-weight: 500; font-size: 0.95rem; }
.obj-item .oi-quote { color: var(--ink-3); font-size: 0.78rem; margin-top: 4px; }
.obj-item .oi-cat { display: inline-block; margin-top: 8px; font-size: 0.68rem; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.empty { color: var(--ink-3); grid-column: 1 / -1; padding: 20px; text-align: center; }

/* ---------- 应对卡 ---------- */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.btns { display: flex; gap: 8px; }
.btn {
  background: var(--accent);
  color: #06223f;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }

.card-body { margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }

.quote-block {
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}
.quote-block .q { font-size: 1.05rem; font-weight: 500; }
.quote-block .sub { color: var(--ink-2); font-size: 0.85rem; margin-top: 6px; }
.quote-block .sub b { color: var(--warn); font-weight: 700; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.tag b { color: var(--ink); font-weight: 500; }

.block { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.block h3 { margin: 0 0 10px; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.block h3 .num { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: #cfe2ff; display: inline-grid; place-items: center; font-size: 0.78rem; font-weight: 700; }
.block .fw-note { color: var(--ink-3); font-size: 0.76rem; font-weight: 400; margin-left: auto; }

.q-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.q-list li { padding-left: 22px; position: relative; font-size: 0.92rem; }
.q-list li::before { content: "?"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.step-list { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 10px; }
.step .step-label { flex: 0 0 auto; font-size: 0.72rem; color: #cfe2ff; background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; height: fit-content; font-weight: 500; white-space: nowrap; }
.step .step-line { font-size: 0.93rem; }

.dot-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.dot-list.danger li::marker { color: var(--danger); }
.num-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.num-list li::marker { color: var(--good); font-weight: 700; }

/* ---------- how ---------- */
.how ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.how li { font-size: 0.92rem; color: var(--ink-2); }
.how li strong { color: var(--ink); }
.src-note { color: var(--ink-3); font-size: 0.8rem; margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 26px 0 40px; color: var(--ink-2); font-size: 0.8rem; }
.footer .muted { color: var(--ink-3); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--good);
  color: #04211a;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 50;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .context-grid { grid-template-columns: 1fr; }
  .obj-list { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .step { flex-direction: column; gap: 4px; }
}
