* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #1f2329; background: #f4f6fa; }
a { color: #1668dc; text-decoration: none; }
code { background: #eef2f8; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.dim { color: #7a828e; font-size: 12.5px; }

/* 登录 */
.guest { display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #1b3b6f 0%, #0f1e33 45%, #0a1422 100%); }
.loginwrap { width: 100%; display: flex; justify-content: center; padding: 24px; }
.loginbox { width: 380px; background: #fff; border-radius: 10px; padding: 32px 30px 24px; box-shadow: 0 18px 50px rgba(4, 14, 30, .45); }
.loginbox .brand { font-size: 19px; font-weight: 700; letter-spacing: .5px; color: #14315c; }
.loginbox .brand span { font-weight: 500; color: #1668dc; }
.loginbox .sub { margin: 6px 0 22px; color: #7a828e; font-size: 12.5px; }
.loginbox label { display: block; margin-bottom: 14px; font-size: 12.5px; color: #5a626e; }
.loginbox input { width: 100%; height: 38px; margin-top: 6px; padding: 0 12px; border: 1px solid #d8dee8; border-radius: 4px; font-size: 14px; }
.loginbox input:focus { outline: none; border-color: #1668dc; box-shadow: 0 0 0 3px rgba(22, 104, 220, .12); }
.loginbox .foot { margin: 16px 0 0; font-size: 12px; color: #98a0ac; text-align: center; }

/* 顶栏 */
.top { height: 56px; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: #14315c; color: #fff; }
.top .logo { font-size: 15px; letter-spacing: .5px; }
.top .logo b { font-weight: 600; color: #7fb2ff; margin-left: 6px; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: #c6d4e8; padding: 6px 12px; border-radius: 4px; font-size: 13.5px; }
.top nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.top nav a.on { background: #1668dc; color: #fff; }
.top .who { font-size: 13px; color: #c6d4e8; }
.top .who a { color: #7fb2ff; margin-left: 10px; }

main { max-width: 1180px; margin: 22px auto 40px; padding: 0 20px; }
h2 { font-size: 15.5px; margin: 26px 0 12px; font-weight: 600; }
h2:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid #e6ebf3; border-radius: 8px; padding: 16px 18px; }
.card span { display: block; color: #7a828e; font-size: 12.5px; }
.card b { font-size: 26px; font-weight: 600; color: #14315c; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.flow div { background: #fff; border: 1px solid #e6ebf3; border-left: 3px solid #1668dc; border-radius: 6px; padding: 12px 14px; font-size: 13px; }
.flow i { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; background: #1668dc; color: #fff; border-radius: 50%; font-style: normal; font-size: 11px; margin-right: 6px; }
.flow b { display: block; color: #7a828e; font-weight: 400; font-size: 12px; margin-top: 4px; }

.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6ebf3; border-radius: 8px; overflow: hidden; }
.tbl th { background: #f7f9fc; text-align: left; font-weight: 600; font-size: 12.5px; color: #5a626e; height: 34px; padding: 0 10px; border-bottom: 1px solid #e6ebf3; }
.tbl td { height: 38px; padding: 4px 10px; border-bottom: 1px solid #f0f3f8; font-size: 13px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafcff; }
.tbl .empty { text-align: center; color: #98a0ac; height: 64px; }

.st { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.s-inbound { background: #fff4e5; color: #b76a00; }
.s-signed { background: #e8f3ff; color: #1668dc; }
.s-distributed { background: #e7f7ee; color: #12864a; }
.s-rejected { background: #fdecec; color: #c0392b; }

.inline { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #e6ebf3; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.inline select, .inline input { height: 32px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 4px; font-size: 13px; background: #fff; }
.inline .wide { flex: 1; min-width: 180px; }

.btn { height: 32px; padding: 0 16px; border: 1px solid #d8dee8; border-radius: 4px; background: #fff; color: #1f2329; font-size: 13px; cursor: pointer; }
.btn:hover { border-color: #1668dc; color: #1668dc; }
.btn.primary { background: #1668dc; border-color: #1668dc; color: #fff; }
.btn.primary:hover { background: #0f56b8; color: #fff; }
.btn.block { width: 100%; height: 38px; font-size: 14px; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12.5px; }
.mini { display: inline-block; margin-right: 6px; }

.ok, .err { border-radius: 6px; padding: 9px 12px; margin-bottom: 12px; font-size: 13px; }
.ok { background: #e7f7ee; color: #12864a; border: 1px solid #bfe8d1; }
.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.hint { color: #7a828e; font-size: 12.5px; margin: -4px 0 12px; }

.foot-bar { text-align: center; color: #98a0ac; font-size: 12px; padding: 10px 0 24px; }
@media (max-width: 900px) {
  .cards, .flow { grid-template-columns: repeat(2, 1fr); }
  .top { gap: 12px; padding: 0 12px; }
  .top nav { overflow-x: auto; }
}
