/* ==========================================================================
   zhaogonghao.com — 内页·闸口一路（网页版登录）
   独立模块：闸口结构 / 会话对照 / 进站五步 / 三种设备 / 凭证边界 / 刷新恢复 / 误读
   ========================================================================== */

body.page-wangyeban .in-kicker,
body.page-wangyeban .in-kicker2 { color: var(--shen-2); }
body.page-wangyeban .in-kicker { background: var(--shen-soft); border-color: var(--shen-line); }

/* 闸口结构 */
.gate-struct {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gate-struct .col {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
}
.gate-struct .col-note { border-top: 3px solid var(--jin); }
.gate-struct .col-note strong { color: var(--jin-deep); }
.gate-struct .col > span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.gate-struct strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--shen);
}
.gate-struct h3 { font-family: var(--serif); font-size: 16px; font-weight: 800; margin-top: 8px; color: var(--ink); }
.gate-struct p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 会话对照表 */
.gate-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.gate-table { font-size: 14.5px; }
.gate-table th, .gate-table td { padding: 12px 18px; text-align: left; }
.gate-table thead th {
  background: var(--shen);
  color: #dfe9f2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.gate-table tbody tr + tr { border-top: 1px solid var(--line); }
.gate-table th[scope="row"] { font-family: var(--serif); font-weight: 800; color: var(--shen); }
.gate-table td.is-ok { color: var(--shen); font-weight: 700; }
.gate-table td.is-no { color: #8a6a5f; }

/* 进站五步 */
.gate-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.gate-steps li {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
}
.gate-steps li span {
  position: absolute;
  top: -13px;
  left: 18px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--shen-2);
  color: #f0e6cf;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 900;
}
.gate-steps h3 { font-size: 14.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.gate-steps p { font-size: 12.5px; color: var(--muted); }

/* 三种设备 */
.gate-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gate-devices article {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.gate-devices .dev-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  background: var(--shen-soft);
  color: var(--shen);
  border: 1px solid var(--shen-line);
  text-transform: uppercase;
}
.gate-devices h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-top: 14px; }
.gate-devices p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* 凭证边界 */
.gate-boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gate-boundary .keep, .gate-boundary .drop {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.gate-boundary .keep { border-left: 3px solid var(--shen); }
.gate-boundary .drop { border-left: 3px solid #b2543f; }
.gate-boundary h3 { font-family: var(--serif); font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.gate-boundary li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.gate-boundary li:last-child { border-bottom: 0; }
.gate-boundary li b { font-family: var(--mono); font-size: 13px; }
.gate-boundary .keep li b { color: var(--shen); }
.gate-boundary .drop li b { color: #b2543f; }

/* 刷新恢复 */
.gate-restore { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
.gate-restore-copy h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--ink);
}
.gate-restore-copy p { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 460px; }
.gate-restore-copy a { color: var(--shen); border-bottom: 1px dashed var(--shen-line); }
.gate-cards { display: grid; gap: 12px; }
.gate-cards li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.gate-cards b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--jin-deep);
}
.gate-cards h3 { font-size: 15px; font-weight: 800; color: var(--ink); }
.gate-cards p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 响应式 */
@media (max-width: 1024px) {
  .gate-struct { grid-template-columns: 1fr 1fr; }
  .gate-steps { grid-template-columns: repeat(3, 1fr); }
  .gate-boundary, .gate-restore { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gate-struct, .gate-devices, .gate-steps { grid-template-columns: 1fr; }
  .gate-table-wrap { overflow-x: auto; }
  .gate-table { min-width: 560px; }
}
