/* 互花 · 申请 / 审核页面样式。色值和富昌系统同一套（--fc-*），见 output/盒天下/设计规范/ */
:root {
  --fc-brand: #1a5cff; --fc-brand-hover: #4a7dff; --fc-brand-active: #154acc; --fc-brand-soft: #e8efff; --fc-brand-soft-2: #f3f6ff;
  --fc-bg: #f5f7fa; --fc-surface: #fff; --fc-surface-2: #fafbfc; --fc-line: #e5e8ef; --fc-line-2: #eef0f4;
  --fc-ink-1: #1d2129; --fc-ink-2: #4e5969; --fc-ink-3: #86909c; --fc-ink-4: #c9cdd4;
  --fc-debt: #c23b36; --fc-debt-soft: #fdecea; --fc-ok: #2f7d4f; --fc-ok-soft: #e8f5ee; --fc-warn: #d98a00; --fc-warn-soft: #fff6e0; --fc-gray-soft: #f2f3f5;
  --fc-r-card: 12px; --fc-r-ctl: 8px; --fc-r-tag: 6px;
  --fc-sh-card: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.05);
  --hx-font: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body.hh-page { background: var(--fc-bg); color: var(--fc-ink-1); font: 15px/1.7 var(--hx-font); -webkit-font-smoothing: antialiased; }
a { color: var(--fc-brand); }
button, input, select, textarea { font: inherit; color: inherit; }

.hh-top { position: sticky; top: 0; z-index: 10; height: 60px; background: #fff; border-bottom: 1px solid var(--fc-line); display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.hh-top .hh-logo { font-size: 20px; font-weight: 700; color: var(--fc-ink-1); text-decoration: none; letter-spacing: .04em; }
.hh-top .hh-sub { color: var(--fc-ink-3); font-size: 13px; }
.hh-top .hh-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hh-acct { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fc-ink-2); }
.hh-acct img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--fc-gray-soft); }
.hh-acct span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hh-wrap { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; }
.hh-wrap.wide { max-width: 1180px; }
.hh-card { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-r-card); box-shadow: var(--fc-sh-card); padding: 32px; }
.hh-card + .hh-card { margin-top: 16px; }
.hh-center { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.hh-card h1 { font-size: 24px; line-height: 1.4; margin: 0 0 8px; }
.hh-card h2 { font-size: 18px; margin: 0 0 12px; }
.hh-lead { color: var(--fc-ink-2); margin: 0 0 24px; }
.hh-muted { color: var(--fc-ink-3); font-size: 13px; }
.hh-logo { font-weight: 700; color: var(--fc-ink-1); text-decoration: none; display: inline-block; margin-bottom: 16px; }

.hh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 20px; border-radius: var(--fc-r-ctl); border: 1px solid var(--fc-brand); background: var(--fc-brand); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.hh-btn:hover { background: var(--fc-brand-hover); border-color: var(--fc-brand-hover); }
.hh-btn:active { background: var(--fc-brand-active); }
.hh-btn[disabled], .hh-btn.is-disabled { background: #a4afcc; border-color: #a4afcc; cursor: not-allowed; }
.hh-btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }
.hh-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.hh-btn-ghost { background: #fff; color: var(--fc-ink-1); border-color: var(--fc-line); }
.hh-btn-ghost:hover { background: var(--fc-brand-soft-2); border-color: var(--fc-brand-light-7, #baceff); color: var(--fc-brand); }
.hh-btn-ok { background: var(--fc-ok); border-color: var(--fc-ok); }
.hh-btn-ok:hover { background: #3b9361; border-color: #3b9361; }
.hh-btn-danger { background: #fff; color: var(--fc-debt); border-color: #f1c2c0; }
.hh-btn-danger:hover { background: var(--fc-debt-soft); color: var(--fc-debt); border-color: var(--fc-debt); }
.hh-link { background: none; border: 0; padding: 0; color: var(--fc-brand); cursor: pointer; font-size: 14px; }

/* 状态 */
.hh-status { display: flex; gap: 16px; align-items: flex-start; }
.hh-status .ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.ico.wait { background: var(--fc-warn-soft); color: var(--fc-warn); }
.ico.ok { background: var(--fc-ok-soft); color: var(--fc-ok); }
.ico.no { background: var(--fc-gray-soft); color: var(--fc-ink-2); }
.ico.stop { background: var(--fc-debt-soft); color: var(--fc-debt); }
.ico.wx { background: #e9f7ef; color: #07a35a; }
.hh-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hh-summary { margin-top: 20px; border-top: 1px solid var(--fc-line-2); padding-top: 16px; }
.hh-kv { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--fc-line-2); font-size: 14px; }
.hh-kv span { flex: none; width: 6em; color: var(--fc-ink-3); white-space: nowrap; }
aside .hh-kv span { width: 7.5em; }
.hh-kv b { font-weight: 500; word-break: break-all; }
.hh-tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 8px; border-radius: var(--fc-r-tag); vertical-align: middle; background: var(--fc-gray-soft); color: var(--fc-ink-2); }
.hh-tag-pending { background: var(--fc-warn-soft); color: #9a6200; }
.hh-tag-approved { background: var(--fc-ok-soft); color: var(--fc-ok); }
.hh-tag-rejected { background: var(--fc-gray-soft); color: var(--fc-ink-2); }
.hh-tag-suspended { background: var(--fc-debt-soft); color: var(--fc-debt); }
.hh-tag-unbound { background: var(--fc-brand-soft); color: var(--fc-brand-active); }

/* 表单 */
.hh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.hh-form .full { grid-column: 1 / -1; }
.hh-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fc-ink-1); }
.hh-f .req { color: var(--fc-debt); margin-left: 2px; }
.hh-f .lbl { display: block; }
.hh-f input[type=text], .hh-f input[type=tel], .hh-f input:not([type]) { height: 42px; border: 1px solid var(--fc-line); border-radius: var(--fc-r-ctl); padding: 0 12px; background: #fff; font-weight: 400; }
.hh-f input:focus { outline: none; border-color: var(--fc-brand); box-shadow: 0 0 0 3px var(--fc-brand-soft); }
.hh-f small { font-weight: 400; color: var(--fc-ink-3); font-size: 12px; }
.hh-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hh-choice { position: relative; display: block; border: 1px solid var(--fc-line); border-radius: var(--fc-r-ctl); padding: 10px 12px; cursor: pointer; font-weight: 400; background: #fff; }
.hh-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hh-choice b { display: block; font-weight: 600; font-size: 14px; }
.hh-choice em { display: block; font-style: normal; color: var(--fc-ink-3); font-size: 12px; line-height: 1.5; }
.hh-choice:has(input:checked) { border-color: var(--fc-brand); background: var(--fc-brand-soft-2); box-shadow: inset 0 0 0 1px var(--fc-brand); }
.hh-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--fc-brand-soft); }
.hh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-chips .hh-choice { padding: 8px 16px; }
.hh-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--fc-ink-2); }
.hh-consent input { margin-top: 4px; }
.hh-err { color: var(--fc-debt); font-size: 14px; min-height: 1.5em; margin: 8px 0 0; }
.hh-note-box { background: var(--fc-brand-soft-2); border: 1px solid var(--fc-brand-soft); border-radius: var(--fc-r-ctl); padding: 12px 14px; font-size: 13px; color: var(--fc-ink-2); }

/* 审核页（手机） */
.hh-review { max-width: 560px; margin: 0 auto; border-radius: 0 0 var(--fc-r-card) var(--fc-r-card); }
.hh-review .hh-logo { font-size: 14px; color: var(--fc-ink-3); }
.hh-review h1 small { margin-left: 6px; }
.hh-decide { margin-top: 20px; }
.hh-note { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fc-ink-3); }
.hh-note input { height: 42px; border: 1px solid var(--fc-line); border-radius: var(--fc-r-ctl); padding: 0 12px; }
.hh-decide .hh-actions .hh-btn-lg { flex: 1; }
.hh-actions-sub { margin-top: 12px; justify-content: flex-end; }
.hh-done { background: var(--fc-ok-soft); color: var(--fc-ok); font-weight: 600; border-radius: var(--fc-r-ctl); padding: 10px 14px; margin-bottom: 16px; }

/* 后台表格 */
.hh-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hh-toolbar h1 { font-size: 22px; margin: 0 16px 0 0; }
.hh-tabs { display: flex; gap: 4px; background: var(--fc-gray-soft); padding: 4px; border-radius: 10px; }
.hh-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--fc-ink-2); font-size: 14px; }
.hh-tabs button.on { background: #fff; color: var(--fc-ink-1); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.hh-tabs i { font-style: normal; color: var(--fc-ink-3); margin-left: 4px; font-size: 12px; }
.hh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hh-table th { text-align: left; font-weight: 600; color: var(--fc-ink-3); font-size: 13px; padding: 10px 12px; background: var(--fc-surface-2); border-bottom: 1px solid var(--fc-line); white-space: nowrap; }
.hh-table td { padding: 12px; border-bottom: 1px solid var(--fc-line-2); vertical-align: top; }
.hh-table tr:hover td { background: var(--fc-brand-soft-2); }
.hh-table .nm b { display: block; }
.hh-table .nm small, .hh-table .sub { color: var(--fc-ink-3); font-size: 12px; display: block; }
.hh-table .ops { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }
.hh-empty { text-align: center; color: var(--fc-ink-3); padding: 48px 0; }
.hh-side { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.hh-qr { text-align: center; }
.hh-qr svg { width: 200px; height: 200px; }
.hh-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--fc-ink-1); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.hh-toast.show { opacity: 1; }

@media (max-width: 760px) {
  .hh-top { padding: 0 16px; }
  .hh-top .hh-sub { display: none; }
  .hh-wrap { padding: 20px 16px 64px; }
  .hh-card { padding: 20px; }
  .hh-form { grid-template-columns: 1fr; }
  .hh-side { grid-template-columns: 1fr; }
  .hh-table thead { display: none; }
  .hh-table tr { display: block; border-bottom: 1px solid var(--fc-line); padding: 8px 0; }
  .hh-table td { display: block; border: 0; padding: 4px 12px; }
  .hh-center { margin: 6vh 16px 0; }
  .hh-review { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
}
