/* ============================================================
   反诈自查与核验工具 —— 本文件只服务 /anti-fraud-check 这一页
   所有样式都圈在 .afc 里，不会碰到主站别的页面。
   配色：浅底深字，警戒色用红，跟反诈栏目的深藏青 + 红条呼应。
   ============================================================ */

.afc {
  --afc-ink: #18263f;
  --afc-mute: #5b6981;
  --afc-line: #e2e8f2;
  --afc-bg: #f5f7fc;
  --afc-card: #ffffff;
  --afc-red: #c62828;
  --afc-red-soft: #fff2f1;
  --afc-blue: #1c4fa1;
  --afc-navy: #101f3b;
  background: var(--afc-bg);
  color: var(--afc-ink);
  font-size: 15px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
.afc *, .afc *::before, .afc *::after { box-sizing: border-box; }
.afc a { color: var(--afc-blue); text-decoration: underline; text-underline-offset: 2px; }
.afc a:hover { color: var(--afc-red); }
.afc button { font: inherit; cursor: pointer; }
.afc .afc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.afc .afc-tiny { font-size: 12.5px; color: var(--afc-mute); line-height: 1.65; margin: 10px 0 0; }

/* ---------- 顶部说明 ---------- */
.afc .afc-hero {
  position: relative;
  background: var(--afc-navy);
  color: #fff;
  padding: 42px 0 36px;
  border-top: 4px solid var(--afc-red);
}
.afc .afc-hero::after {
  /* 右上角那点暗纹，纯装饰，不压字 */
  content: "";
  position: absolute; right: 0; top: 0; width: 260px; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.afc .afc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #ffd9d6; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; letter-spacing: .5px;
}
.afc .afc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff6b5e; display: inline-block;
  box-shadow: 0 0 0 3px rgba(255,107,94,.22);
}
.afc .afc-hero h1 { font-size: 32px; line-height: 1.3; margin: 16px 0 8px; color: #fff; font-weight: 700; }
.afc .afc-lead { font-size: 16px; color: #d5deef; margin: 0 0 20px; max-width: 780px; }
.afc .afc-hero-note {
  background: rgba(255,255,255,.08); border-left: 3px solid #ff7a6d;
  border-radius: 0 8px 8px 0; padding: 12px 16px; max-width: 880px;
  font-size: 14px; color: #e8edf8;
}
.afc .afc-hero-note strong { color: #ffbfb8; }
.afc .afc-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 12.5px; color: #aab9d2; }
.afc .afc-hero-meta span::before { content: "·"; margin-right: 8px; color: #ff7a6d; }

/* ---------- 三块切换 ---------- */
.afc .afc-tabs { background: var(--afc-card); border-bottom: 1px solid var(--afc-line); }
.afc .afc-tabs-in { display: flex; gap: 4px; overflow-x: auto; }
.afc .afc-tab {
  border: 0; background: transparent; color: var(--afc-mute);
  padding: 15px 20px; font-size: 15px; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.afc .afc-tab:hover { color: var(--afc-ink); }
.afc .afc-tab.is-on { color: var(--afc-red); border-bottom-color: var(--afc-red); }

/* ---------- 主体 ---------- */
.afc .afc-body { padding: 28px 0 64px; }
.afc .afc-panel { display: none; }
.afc .afc-panel.is-on { display: block; }
.afc .afc-p-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin: 0 0 18px;
}
.afc .afc-p-head h2 { font-size: 23px; margin: 0 0 6px; color: var(--afc-ink); }
.afc .afc-p-head p { margin: 0; color: var(--afc-mute); font-size: 14px; max-width: 800px; }
.afc .afc-p-tag {
  flex: none; background: #eef2fa; color: var(--afc-blue); border: 1px solid #dbe4f4;
  font-size: 12px; border-radius: 6px; padding: 4px 10px; white-space: nowrap;
}

.afc .afc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.afc .afc-box {
  background: var(--afc-card); border: 1px solid var(--afc-line);
  border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(16,31,59,.03);
}
.afc .afc-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.afc .afc-textarea {
  width: 100%; min-height: 190px; resize: vertical; padding: 12px 14px;
  border: 1px solid #cfd9e9; border-radius: 8px; background: #fcfdff;
  color: var(--afc-ink); font-size: 14px; line-height: 1.7; font-family: inherit;
}
.afc .afc-textarea:focus, .afc .afc-btn:focus-visible, .afc .afc-tab:focus-visible {
  outline: 2px solid var(--afc-blue); outline-offset: 2px;
}
.afc .afc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.afc .afc-btn {
  border: 1px solid #cfd9e9; background: #fff; color: var(--afc-ink);
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.afc .afc-btn:hover { border-color: var(--afc-blue); color: var(--afc-blue); }
.afc .afc-btn-main { background: var(--afc-navy); border-color: var(--afc-navy); color: #fff; }
.afc .afc-btn-main:hover { background: var(--afc-blue); border-color: var(--afc-blue); color: #fff; }

/* 结果区 */
.afc .afc-result { background: #fbfcff; min-height: 280px; }
.afc .afc-result-idle { text-align: center; color: var(--afc-mute); padding: 52px 12px; }
.afc .afc-result-ic { display: block; font-size: 30px; margin-bottom: 10px; opacity: .7; }
.afc .afc-result-idle p { margin: 0 0 6px; font-size: 14px; }
.afc .afc-out-top {
  background: var(--afc-red-soft); border: 1px solid #f4cfcb; color: #8f2420;
  border-radius: 8px; padding: 10px 13px; font-size: 14px; font-weight: 600; margin-bottom: 12px;
}
.afc .afc-out-none { background: #eef7f1; border-color: #cfe8d8; color: #256144; }
.afc .afc-out-tip { font-size: 12.5px; color: var(--afc-mute); margin: 12px 0 0; border-top: 1px dashed var(--afc-line); padding-top: 10px; }
.afc .afc-hit { border: 1px solid var(--afc-line); border-left: 3px solid var(--afc-red); border-radius: 0 8px 8px 0; padding: 11px 13px; margin-bottom: 10px; background: #fff; }
.afc .afc-hit-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; }
.afc .afc-hit-g { font-size: 12px; color: #8f2420; background: var(--afc-red-soft); border-radius: 4px; padding: 1px 8px; }
.afc .afc-hit-w { font-weight: 700; font-size: 14px; }
.afc .afc-hit p { margin: 3px 0 0; font-size: 13px; color: #43516b; }
.afc .afc-hit .afc-hit-do { color: var(--afc-blue); }
.afc .afc-q-group { margin-bottom: 14px; }
.afc .afc-q-group h3 { font-size: 15px; margin: 0 0 8px; color: var(--afc-blue); }
.afc .afc-qi { border-left: 3px solid #cbd8ee; padding: 8px 12px; background: #fff; border-radius: 0 6px 6px 0; margin-bottom: 8px; font-size: 13.5px; }
.afc .afc-qi p { margin: 4px 0 0; color: #43516b; }
.afc .afc-qi .afc-qi-do { color: var(--afc-blue); }

/* 情形自测题目 */
.afc .afc-quiz { display: flex; flex-direction: column; gap: 8px; }
.afc .afc-q {
  display: grid; grid-template-columns: 20px 26px 1fr auto; align-items: start; gap: 9px;
  border: 1px solid var(--afc-line); border-radius: 8px; padding: 10px 12px;
  background: #fff; cursor: pointer; font-size: 13.5px; line-height: 1.6;
}
.afc .afc-q:hover { border-color: #b9c9e4; }
.afc .afc-q:has(.afc-q-in:checked) { border-color: var(--afc-red); background: var(--afc-red-soft); }
.afc .afc-q-in { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--afc-red); }
.afc .afc-q-n { color: #98a6bd; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.afc .afc-q-t { color: var(--afc-ink); }
.afc .afc-q-g { font-size: 11.5px; color: var(--afc-blue); background: #eef2fa; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }

/* 提示条 */
.afc .afc-inline-note {
  margin-top: 16px; background: #eef3fb; border: 1px solid #d6e2f5;
  border-radius: 8px; padding: 12px 15px; font-size: 13.5px; color: #364a6d;
}
.afc .afc-inline-note b { color: var(--afc-blue); }
.afc .afc-note-red { background: var(--afc-red-soft); border-color: #f4cfcb; color: #8f2420; }
.afc .afc-note-red b { color: var(--afc-red); }

/* ---------- 表格 ---------- */
.afc .afc-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--afc-line); border-radius: 12px; }
.afc .afc-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; }
.afc .afc-cap { text-align: left; padding: 12px 16px; color: var(--afc-mute); font-size: 12.5px; border-bottom: 1px solid var(--afc-line); }
.afc .afc-table th {
  background: #f0f4fb; color: var(--afc-ink); font-weight: 700; text-align: left;
  padding: 11px 14px; border-bottom: 1px solid var(--afc-line); white-space: nowrap;
}
.afc .afc-table td { padding: 11px 14px; border-bottom: 1px solid #eef1f7; vertical-align: top; color: #3c4a63; }
.afc .afc-table tr:last-child td { border-bottom: 0; }
.afc .afc-table tbody tr:nth-child(even) { background: #fbfcff; }
.afc .afc-td-w { font-weight: 700; color: var(--afc-ink); white-space: nowrap; }
.afc .afc-td-host { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--afc-blue); }
.afc .afc-td-terms { color: #8f2420; font-weight: 600; min-width: 190px; }
.afc .afc-print-only-note { margin-top: 10px; }

/* ---------- 三查 / FAQ / 风险提示 ---------- */
.afc .afc-sec { margin-top: 34px; background: #fff; border: 1px solid var(--afc-line); border-radius: 12px; padding: 22px; }
.afc .afc-sec-head { margin-bottom: 18px; }
.afc .afc-sec-head h2 { font-size: 21px; margin: 0 0 6px; }
.afc .afc-sec-head p { margin: 0; color: var(--afc-mute); font-size: 14px; }
.afc .afc-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.afc .afc-three-card { border: 1px solid var(--afc-line); border-radius: 10px; padding: 16px; background: #fbfcff; }
.afc .afc-three-n { font-size: 12px; letter-spacing: 2px; color: var(--afc-red); font-weight: 700; }
.afc .afc-three-card h3 { font-size: 17px; margin: 4px 0 8px; }
.afc .afc-three-card p { margin: 0; font-size: 13.5px; color: #43516b; }
.afc .afc-three-card b { color: var(--afc-ink); }

.afc .afc-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.afc .afc-faq-i { border: 1px solid var(--afc-line); border-radius: 8px; padding: 0 14px; background: #fbfcff; }
.afc .afc-faq-i summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--afc-ink); }
.afc .afc-faq-i p { margin: 0 0 13px; font-size: 13.5px; color: #43516b; }

.afc .afc-risk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.afc .afc-risk-i { border-left: 3px solid #cbd8ee; background: #fbfcff; border-radius: 0 8px 8px 0; padding: 10px 14px; }
.afc .afc-risk-i b { display: block; font-size: 13.5px; color: var(--afc-blue); margin-bottom: 3px; }
.afc .afc-risk-i p { margin: 0; font-size: 13px; color: #43516b; }
.afc .afc-sign { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--afc-line); font-size: 13px; color: var(--afc-mute); }

.afc .afc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; font-size: 13.5px; color: var(--afc-mute); }
.afc .afc-links a { background: #fff; border: 1px solid var(--afc-line); border-radius: 6px; padding: 5px 12px; text-decoration: none; }
.afc .afc-links a:hover { border-color: var(--afc-blue); }

/* ---------- 三步动线（选对象 → 照动作走 → 填核验单） ---------- */
.afc .afc-flow { background: #eef2f9; border-bottom: 1px solid var(--afc-line); padding: 26px 0 30px; }
.afc .afc-step { background: #fff; border: 1px solid var(--afc-line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.afc .afc-step-h { margin-bottom: 16px; }
.afc .afc-step-n { display: inline-block; background: var(--afc-red); color: #fff; font-size: 12px; font-weight: 700; border-radius: 5px; padding: 2px 10px; letter-spacing: .5px; }
.afc .afc-step-h h2 { font-size: 21px; margin: 10px 0 6px; }
.afc .afc-step-h p { margin: 0; color: var(--afc-mute); font-size: 14px; }

.afc .afc-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.afc .afc-track-btn {
  text-align: left; border: 1px solid var(--afc-line); background: #fbfcff; border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; color: var(--afc-ink);
}
.afc .afc-track-btn:hover { border-color: #b9c9e4; }
.afc .afc-track-btn.is-on { border-color: var(--afc-red); background: var(--afc-red-soft); box-shadow: inset 0 0 0 1px var(--afc-red); }
.afc .afc-track-t { font-weight: 700; font-size: 15px; }
.afc .afc-track-btn.is-on .afc-track-t { color: #8f2420; }
.afc .afc-track-d { font-size: 12.5px; color: var(--afc-mute); line-height: 1.6; }

.afc .afc-track-panel { display: none; }
.afc .afc-track-panel.is-on { display: block; }
.afc .afc-track-need { background: #f5f8fd; border: 1px dashed #c9d7ee; border-radius: 8px; padding: 11px 14px; margin-bottom: 14px; }
.afc .afc-track-need b { font-size: 13.5px; color: var(--afc-blue); }
.afc .afc-track-need p { margin: 4px 0 0; font-size: 13.5px; color: #43516b; }

.afc .afc-steps { list-style: none; margin: 0; padding: 0; }
.afc .afc-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid #eef1f7; }
.afc .afc-steps li:first-child { border-top: 0; padding-top: 4px; }
.afc .afc-steps-n { color: var(--afc-red); font-size: 13px; font-weight: 700; padding-top: 2px; font-variant-numeric: tabular-nums; }
.afc .afc-steps b { font-size: 15px; color: var(--afc-ink); }
.afc .afc-steps p { margin: 4px 0 0; font-size: 13.5px; color: #43516b; }

.afc .afc-three-do { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.afc .afc-three-do article { border: 1px solid var(--afc-line); border-top: 3px solid var(--afc-navy); border-radius: 0 0 10px 10px; padding: 14px 16px; background: #fbfcff; }
.afc .afc-do-n { font-size: 15px; color: var(--afc-red); font-weight: 700; }
.afc .afc-three-do h3 { font-size: 17px; margin: 4px 0 6px; }
.afc .afc-three-do p { margin: 0; font-size: 13.5px; color: #43516b; }

/* 核验单 */
.afc .afc-sheet { background: #fff; border: 1px solid var(--afc-line); border-radius: 12px; padding: 22px; margin-top: 14px; scroll-margin-top: 90px; }
.afc .afc-sheet-head h3 { font-size: 18px; margin: 0 0 8px; }
.afc .afc-sheet-fill { margin: 0 0 6px; font-size: 13.5px; color: #43516b; }
.afc .afc-sheet-sec { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--afc-line); }
.afc .afc-sheet-sec > b { font-size: 14.5px; color: var(--afc-ink); }
.afc .afc-sheet-track { display: none; }
.afc .afc-sheet-track.is-on { display: block; }
.afc .afc-sheet-track-t { display: inline-block; font-size: 13px; color: #8f2420; background: var(--afc-red-soft); border-radius: 4px; padding: 2px 9px; margin: 8px 0 6px; }
.afc .afc-sheet-track ol, .afc .afc-sheet-ch { list-style: none; margin: 0; padding: 0; }
.afc .afc-sheet-track li, .afc .afc-sheet-ch li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #43516b; padding: 5px 0; }
.afc .afc-box-line { flex: none; width: 13px; height: 13px; border: 1px solid #9fb0c9; border-radius: 3px; margin-top: 3px; background: #fff; }
.afc .afc-sheet-line { margin: 8px 0 0; font-size: 13.5px; color: #43516b; display: flex; align-items: baseline; gap: 8px; }
.afc .afc-inp { border: 0; border-bottom: 1px solid #9fb0c9; background: transparent; font: inherit; font-size: 13.5px; color: var(--afc-ink); padding: 2px 4px; min-width: 120px; }
.afc .afc-inp:focus { outline: none; border-bottom-color: var(--afc-blue); }
.afc .afc-inp-s { width: 130px; }
.afc .afc-inp-m { width: 180px; }
.afc .afc-inp-wide { flex: 1; }
.afc .afc-sheet-foot { border-top: 1px solid var(--afc-line); }
.afc .afc-sheet-foot p { margin: 6px 0 0; font-size: 13.5px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .afc .afc-cols, .afc .afc-three, .afc .afc-faq, .afc .afc-risk,
  .afc .afc-tracks, .afc .afc-three-do { grid-template-columns: 1fr; }
  .afc .afc-hero h1 { font-size: 26px; }
  .afc .afc-p-head { flex-direction: column; }
  .afc .afc-q { grid-template-columns: 20px 24px 1fr; }
  .afc .afc-q-g { grid-column: 3; justify-self: start; }
}
@media (max-width: 560px) {
  .afc .afc-wrap { padding: 0 14px; }
  .afc .afc-tab { padding: 13px 14px; font-size: 14px; }
  .afc .afc-sec { padding: 16px; }
  .afc .afc-box { padding: 14px; }
}

/* ---------- 打印：只留第 ③ 块那张表和必要说明 ---------- */
@media print {
  body.afc-printing { background: #fff; }
  body.afc-printing .site-header,
  body.afc-printing .site-footer,
  body.afc-printing .afc-tabs,
  body.afc-printing .afc-flow,
  body.afc-printing .afc-hero-meta,
  body.afc-printing .afc-panel:not(#afc-p-path),
  body.afc-printing .afc-sec,
  body.afc-printing .afc-links,
  body.afc-printing .afc-p-head .afc-btn,
  body.afc-printing .afc-print-only-note { display: none !important; }
  body.afc-printing .afc { background: #fff; color: #000; font-size: 11pt; }
  body.afc-printing .afc-hero { background: #fff; color: #000; border-top: 0; padding: 0 0 10px; border-bottom: 1px solid #999; }
  body.afc-printing .afc-hero::after { display: none; }
  body.afc-printing .afc-hero h1 { color: #000; font-size: 18pt; margin: 6px 0; }
  body.afc-printing .afc-lead, body.afc-printing .afc-hero-note { color: #333; }
  body.afc-printing .afc-badge { color: #333; border-color: #bbb; background: #fff; }
  body.afc-printing .afc-p-head h2 { color: #000; }
  body.afc-printing #afc-p-path { display: block !important; }
  body.afc-printing .afc-table-wrap { border: 1px solid #999; overflow: visible; }
  body.afc-printing .afc-table { min-width: 0; font-size: 9pt; }
  body.afc-printing .afc-cap { color: #333; }
  body.afc-printing .afc-table th { background: #eee; }
  body.afc-printing .afc-table tr { page-break-inside: avoid; }

  /* 打印核验单：只留第 3 步那一页单子，其余全收起来 */
  body.afc-printing-sheet { background: #fff; }
  body.afc-printing-sheet .site-header,
  body.afc-printing-sheet .site-footer,
  body.afc-printing-sheet .afc-hero,
  body.afc-printing-sheet .afc-tabs,
  body.afc-printing-sheet .afc-step,
  body.afc-printing-sheet .afc-panel,
  body.afc-printing-sheet .afc-sec,
  body.afc-printing-sheet .afc-links { display: none !important; }
  body.afc-printing-sheet .afc-flow { background: #fff; padding: 0; border: 0; }
  body.afc-printing-sheet .afc-sheet-block { margin: 0; }
  body.afc-printing-sheet .afc-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 11pt; }
  body.afc-printing-sheet .afc-inp { border-bottom-color: #666; }
}
