/* 联系方式名片 · 点击复制 */
.contact-channel.contact-copyable {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.contact-channel.contact-copyable:hover {
  border-color: #1677ff;
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.12);
}
.contact-channel.contact-copyable.is-copied {
  border-color: #52c41a;
  box-shadow: 0 0 0 1px rgba(82, 196, 26, 0.2);
}
.contact-ch-copy-hint {
  margin-left: auto;
  font-size: 12px;
  color: #8c8c8c;
  flex-shrink: 0;
}
.contact-channel.contact-copyable:hover .contact-ch-copy-hint,
.contact-channel.contact-copyable:focus-visible .contact-ch-copy-hint {
  color: #1677ff;
}
.contact-channel.contact-copyable.is-copied .contact-ch-copy-hint {
  color: #52c41a;
}
.contact-channel.contact-copyable:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
}
/* 轻提示：顶部居中细条，不遮挡正文/侧栏 */
.contact-copy-toast,
.portal-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  bottom: auto;
  z-index: 10050;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d1d1f;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  white-space: nowrap;
  text-align: center;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.contact-copy-toast.show,
.portal-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
body.player-portal .contact-copy-toast,
body.player-portal .portal-toast {
  background: rgba(251, 251, 253, 0.94);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
body.admin-portal .contact-copy-toast,
body.admin-portal .portal-toast {
  background: rgba(255, 255, 255, 0.98);
  color: #1c2233;
}

/* 名片行布局（注册 / 找回密码 / 玩家联系方式） */
.contact-card-view.contact-business .contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card-view.contact-business .contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  flex-wrap: nowrap;
}
.contact-card-view.contact-business .contact-bc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card-view.contact-business .contact-bc-label {
  font-size: 11px;
  font-weight: 600;
  color: #8c8c8c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-card-view.contact-business .contact-bc-value {
  font-family: Consolas, "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  word-break: break-all;
  line-height: 1.35;
}

/* 登录记录（管理端 / 玩家端共用部分） */
.login-audit-cell {
  font-size: 12px;
  line-height: 1.45;
  min-width: 120px;
}
.login-audit-time {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.login-audit-ip {
  font-family: Consolas, monospace;
  color: #333;
}
.login-audit-region {
  color: #666;
  font-size: 11px;
}
.admin-login-audit-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.admin-login-audit-block {
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}
.admin-login-audit-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #1677ff;
  margin-bottom: 6px;
}
.admin-login-audit-prev .admin-login-audit-label {
  color: #8c8c8c;
}
.login-audit-td {
  vertical-align: top;
}
.mono {
  font-family: Consolas, "JetBrains Mono", monospace;
}

/* 联系方式 · 渠道品牌图标 */
.contact-ch-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.contact-ch-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.contact-card-view.compact .contact-ch-icon-wrap {
  width: 40px;
  height: 40px;
}
.contact-card-view.compact .contact-ch-icon {
  width: 32px;
  height: 32px;
}
.contact-edit-channel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.contact-edit-channel-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  border: 1px solid #eee;
}

/* 管理端 · 支付渠道弹窗 */
.payment-channel-modal-mask {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal.modal-payment-channel {
  max-width: 560px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}
.payment-modal-hero {
  position: relative;
  padding: 18px 22px 16px;
  background: linear-gradient(135deg, #1677ff 0%, #36cfc9 100%);
  color: #fff;
}
.payment-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.12);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.payment-modal-hero-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
}
.payment-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.payment-modal-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.payment-modal-hero h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.payment-modal-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.payment-modal-body {
  padding: 16px 22px 8px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
}
.payment-modal-body .form-row {
  margin-bottom: 14px;
}
.payment-modal-body .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
}
.payment-modal-body .form-row input,
.payment-modal-body .form-row textarea {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.pay-ch-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pay-ch-name-row input {
  flex: 1;
  min-width: 140px;
}
.pay-ch-enabled-label {
  font-weight: normal;
  font-size: 13px;
  white-space: nowrap;
}
.payment-modal-actions {
  margin: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid #f0f0f0;
}
.pay-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.pay-channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
}
.pay-ch-list-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.pay-ch-list-main {
  flex: 1;
  min-width: 0;
}
.pay-ch-list-main strong {
  font-size: 15px;
  margin-right: 8px;
}
.pay-ch-list-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.45;
  word-break: break-all;
}
.pay-ch-list-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.payment-page-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.payment-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.payment-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-compact-finance td,
.table-compact-finance th {
  font-size: 13px;
  padding: 9px 10px;
}
.amt-plus {
  color: #389e0d;
  font-weight: 600;
}
.amt-minus {
  color: #cf1322;
  font-weight: 600;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "PingFang SC", sans-serif; background: #f0f2f5; color: #1a1a1a; font-size: 14px; }
a { color: #1677ff; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #001529; color: #fff; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar .brand { padding: 20px 16px; font-size: 16px; font-weight: 600; border-bottom: 1px solid #153450; display: flex; align-items: center; gap: 10px; }
.sidebar .brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #1677ff;
  color: #fff;
}
.admin-nav-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.admin-nav-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.admin-nav-label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
.sidebar nav a .nav-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.sidebar .foot { margin-top: auto; padding: 16px; font-size: 12px; color: rgba(255,255,255,.45); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: #fff; padding: 12px 24px; border-bottom: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center; }
.content { padding: 24px; flex: 1; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-bottom: 16px; }
.card h2 { margin: 0 0 16px; font-size: 16px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; color: #666; font-size: 13px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; max-width: 400px; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; }
.btn { background: #1677ff; color: #fff; border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #4096ff; }
.btn.secondary { background: #fff; color: #333; border: 1px solid #d9d9d9; }
.btn.danger { background: #ff4d4f; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; }
th { background: #fafafa; font-weight: 500; color: #666; font-size: 13px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag.ok { background: #f6ffed; color: #52c41a; }
.tag.warn { background: #fff7e6; color: #fa8c16; }
.tag.err { background: #fff2f0; color: #ff4d4f; }
.tag.off { background: #f5f5f5; color: #999; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%); }
.login-box { background: #fff; border-radius: 12px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.login-box h1 { margin: 0 0 8px; font-size: 22px; text-align: center; }
.login-box .sub { text-align: center; color: #999; margin-bottom: 24px; font-size: 13px; }
.login-box .logo { text-align: center; margin-bottom: 16px; }
.login-box .logo img { max-height: 48px; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 0; width: 90%; max-width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.18); max-height: 90vh; overflow: auto; }
.modal.modal-lg { max-width: 520px; padding-bottom: 0; }
.modal.modal-lg.admin-modal-user-edit { max-width: 500px; padding-bottom: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-close { border: none; background: transparent; font-size: 24px; line-height: 1; color: #999; cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: #333; }
.modal .msg { margin: 12px 24px 0; }
.modal .form-grid { padding: 16px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.modal .form-row input,
.modal .form-row textarea,
.modal .form-row select { max-width: none; }
.modal .form-row.span-2 { grid-column: 1 / -1; }
.modal .form-hint { margin: 6px 0 0; font-size: 12px; color: #999; }
.balance-adjust {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.balance-adjust select {
  width: auto;
  flex: 0 0 96px;
  min-width: 88px;
  flex-shrink: 0;
  max-width: 40%;
}
.balance-adjust input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}
.admin-modal-user-edit.modal {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  max-height: min(88vh, 620px);
  padding: 0;
  overflow: hidden;
}
.admin-modal-user-edit .form-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 18px 4px;
  gap: 0 12px;
}
.admin-modal-user-edit .modal-head { padding: 14px 18px 0; flex-shrink: 0; }
.admin-modal-user-edit .modal-head h3 { font-size: 15px; }
.admin-modal-user-edit .form-row { margin-bottom: 10px; }
.admin-modal-user-edit .form-row label { margin-bottom: 4px; font-size: 12px; }
.admin-modal-user-edit .form-row input,
.admin-modal-user-edit .form-row textarea,
.admin-modal-user-edit .form-row select {
  padding: 7px 10px;
  font-size: 13px;
  max-width: 100%;
}
.admin-modal-user-edit .form-row textarea { min-height: 48px; }
.admin-modal-user-edit .form-hint { margin: 4px 0 0; font-size: 11px; }
.admin-modal-user-edit .modal-actions {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 18px 14px;
}
.admin-modal-user-edit .admin-login-audit-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.admin-modal-user-edit .admin-login-audit-block { padding: 8px 10px; min-width: 0; }
.admin-modal-user-edit .login-audit-time,
.admin-modal-user-edit .login-audit-ip,
.admin-modal-user-edit .login-audit-region { font-size: 11px; word-break: break-all; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin: 16px 24px 0; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.msg { padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fff2f0; color: #cf1322; }
.msg.ok { background: #f6ffed; color: #389e0d; }
.key-mono { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.user-avatar-thumb { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
tr.key-row-dirty { background: #fffbe6; }
.key-actions { white-space: nowrap; }
.key-actions .btn { margin-right: 6px; }
#keysTable .key-plan-select,
#keysTable .key-status-select { max-width: 96px; padding: 4px 8px; font-size: 13px; }
/* JSON 代码块：深色字 + 浅底，避免与 .doc-json 冲突导致看不见 */
.docs-page { padding: 20px !important; }
.docs-page-title { margin: 0 0 16px; font-size: 18px; }
.docs-layout { display: flex; gap: 0; align-items: stretch; min-height: calc(100vh - 180px); }
.docs-subnav { width: 240px; flex-shrink: 0; border-right: 1px solid #e8e8e8; padding-right: 12px; max-height: calc(100vh - 160px); overflow-y: auto; }
.docs-sub-group { padding: 14px 10px 6px; margin-top: 4px; border-top: 1px solid #f0f0f0; }
.docs-sub-group:first-of-type { border-top: none; margin-top: 0; padding-top: 4px; }
.docs-nav-cat { font-size: 11px; font-weight: 700; color: #8c8c8c; text-transform: uppercase; letter-spacing: 0.06em; }
.docs-sub-link { display: block; padding: 8px 10px; border-radius: 6px; line-height: 1.35; text-decoration: none; color: inherit; }
.docs-sub-link:hover { background: #f5f5f5; }
.docs-sub-link.active { background: #e6f4ff; box-shadow: inset 3px 0 0 #1677ff; }
.docs-sub-link.docs-sub-page { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.docs-nav-page-text { font-size: 13px; font-weight: 600; color: #1f2937; }
.docs-sub-link.docs-sub-page.active .docs-nav-page-text { color: #1677ff; }
.docs-sub-link.docs-sub-api { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.docs-nav-api-text { font-size: 12px; color: #4b5563; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-sub-link.docs-sub-api.active .docs-nav-api-text { color: #1677ff; font-weight: 500; }
.docs-main { flex: 1; min-width: 0; padding-left: 20px; max-height: calc(100vh - 160px); overflow-y: auto; }
.doc-page-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.doc-frontend-url { font-size: 13px; margin: 8px 0; word-break: break-all; }
.doc-page-param { font-size: 13px; margin: 4px 0; }
.doc-api-list { margin-top: 16px; }
.doc-api-block { border: 1px solid #e8e8e8; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fafafa; }
.doc-api-title { margin: 0 0 10px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-api-title .method { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #e6f4ff; color: #1677ff; }
.doc-breadcrumb { margin: 0 0 12px; font-size: 13px; }
.doc-breadcrumb a { color: #1677ff; }
.doc-section { padding-bottom: 24px; }
.doc-section.hidden { display: none; }
.doc-section-head { margin-bottom: 12px; }
.doc-section-head h3 { margin: 8px 0 0; font-size: 16px; font-weight: 600; }
.doc-section-head .method { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #e6f4ff; color: #1677ff; margin-right: 8px; }
.doc-section-head .doc-path { font-size: 13px; background: #f5f5f5; padding: 2px 8px; border-radius: 4px; }
.doc-note { font-size: 13px; color: #666; margin: 0 0 12px; }
.live-video-disabled-note { color: #d32f2f; font-weight: 600; font-size: 13px; margin: 8px 0 0; }
.doc-json-block {
  background: #1e1e2e;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 8px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.live-video-docs .tag-ok { background: #e8f5e9; color: #2e7d32; }
.live-video-docs .tag-warn { background: #fff3e0; color: #e65100; }
.admin-live-video-table .lv-toggle { min-width: 88px; }
.doc-notes-list { font-size: 13px; color: #666; line-height: 1.7; padding-left: 20px; margin: 0; }
.docs-meta { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.docs-meta code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.doc-block { margin-top: 12px; }
.doc-block-title { font-size: 13px; color: #1f2937; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.docs-page .docs-meta,
.docs-page .doc-note,
.docs-page .doc-notes-list { color: #374151; }
.docs-page .docs-meta strong { color: #111827; }
.docs-page .docs-meta code { background: #e8f0fe; color: #1d4ed8; padding: 2px 6px; }
.docs-page code.doc-path { color: #0f766e; background: #ecfdf5; }
/* VS Code 深色代码风格 */
pre.doc-json,
.docs pre.doc-json {
  background: #1e1e1e !important;
  color: #d4d4d4 !important;
  border: 1px solid #3c3c3c;
  padding: 14px 16px;
  border-radius: 8px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  max-height: 480px;
  margin: 0;
  font-family: Consolas, "Courier New", "Microsoft YaHei UI", monospace;
  white-space: pre;
  tab-size: 2;
  -webkit-font-smoothing: antialiased;
}
pre.doc-json .json-key { color: #9cdcfe; }
pre.doc-json .json-str { color: #ce9178; }
pre.doc-json .json-num { color: #b5cea8; }
pre.doc-json .json-bool { color: #569cd6; }
pre.doc-json .json-null { color: #569cd6; }
pre.doc-json .json-punc { color: #d4d4d4; }
pre.doc-code,
.docs pre.doc-code {
  background: #1e1e1e !important;
  color: #d4d4d4 !important;
  border: 1px solid #3c3c3c;
  padding: 14px 16px;
  border-radius: 8px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  max-height: 520px;
  margin: 0;
  font-family: Consolas, "Courier New", "Microsoft YaHei UI", monospace;
  white-space: pre;
  tab-size: 2;
}
.sdk-steps { margin: 0 0 12px 20px; padding: 0; color: #374151; line-height: 1.7; }
.sdk-steps li { margin-bottom: 4px; }
.btn-copy { font-size: 11px; padding: 4px 10px; }
.doc-tables { font-size: 12px; color: #4b5563; margin-top: 4px; }
.doc-fields { font-size: 12px; color: #555; margin-top: 8px; }
.doc-fields dt { font-weight: 500; margin-top: 6px; }
.doc-fields dd { margin: 2px 0 0 12px; color: #666; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.hidden { display: none !important; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.online-dot.on { background: #52c41a; }
.online-dot.off { background: #d9d9d9; }

/* 接口文档 · 接入分级标签 */
.usage-badge,
.usage-badge-sm {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
  flex-shrink: 0;
}
.usage-badge-sm { font-size: 10px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.usage-required { background: #fff1f0; color: #cf1322; }
.usage-recommended { background: #e6f7ff; color: #0958d9; }
.usage-optional { background: #f6ffed; color: #389e0d; }
.usage-reference { background: #f9f0ff; color: #722ed1; }
.usage-portal { background: #fff7e6; color: #d46b08; }
.doc-usage-note { font-size: 12px; color: #8c8c8c; margin-left: 6px; font-weight: normal; }
.doc-page-usage { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.doc-ref-only { opacity: 0.92; }
.doc-h4 { font-size: 14px; margin: 20px 0 10px; font-weight: 600; }
.doc-steps-list { margin: 0 0 16px; padding-left: 22px; line-height: 1.75; color: #374151; font-size: 13px; }
.doc-tier-table,
.doc-scenario-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.doc-tier-table th,
.doc-tier-table td,
.doc-scenario-table th,
.doc-scenario-table td { padding: 8px 10px; border: 1px solid #f0f0f0; text-align: left; vertical-align: top; }
.doc-tier-table th,
.doc-scenario-table th { background: #fafafa; color: #666; font-weight: 500; }
.doc-inline-api { display: inline-block; font-size: 12px; margin: 2px 0; background: #f5f5f5; padding: 2px 6px; border-radius: 4px; }
.doc-health { margin-top: 12px; }
.docs-nav-top-text { font-size: 13px; font-weight: 500; color: #4b5563; }
.docs-sub-link.docs-sub-top.active .docs-nav-top-text { color: #1677ff; font-weight: 600; }

/* —— 专业化接口文档侧栏 —— */
.docs-nav-api-method,
.method-mini {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 0;
  border-radius: 4px;
  flex-shrink: 0;
  width: 38px;
  text-align: center;
  font-family: Consolas, monospace;
}
.docs-sub-api-name,
.docs-nav-api-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method-get, .method-mini.method-get { background: #e6f7ff; color: #0958d9; }
.method-post, .method-mini.method-post { background: #f6ffed; color: #389e0d; }
.method-put, .method-mini.method-put { background: #fff7e6; color: #d46b08; }
.method-delete, .method-mini.method-delete { background: #fff1f0; color: #cf1322; }
.doc-api-pro { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0; overflow: hidden; margin-bottom: 20px; }
.doc-api-header { padding: 16px 18px 12px; border-bottom: 1px solid #f0f0f0; background: #fafbfc; }
.doc-api-pro .doc-api-title { margin: 0 0 8px; }
.doc-api-pro .doc-path { font-size: 13px; background: #f3f4f6; padding: 2px 8px; border-radius: 4px; }
.doc-api-name { font-weight: 600; color: #111; }
.doc-endpoint-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.doc-endpoint-bar .method { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.doc-endpoint-bar .method-get { background: #2563eb; color: #fff; }
.doc-endpoint-bar .method-post { background: #16a34a; color: #fff; }
.doc-full-url { color: #e2e8f0; font-size: 13px; word-break: break-all; background: transparent; }
.doc-panel { border-top: 1px solid #f0f0f0; }
.doc-panel-head {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
}
.doc-panel-sub { font-weight: 400; color: #9ca3af; font-size: 12px; margin-left: 8px; }
.doc-panel-body { padding: 12px 18px 16px; }
.doc-panel-flush { padding: 0; }
.doc-panel-flush .doc-block { margin: 0; }
.doc-panel-flush pre.doc-json { border-radius: 0; border-left: none; border-right: none; max-height: 420px; }
.doc-prize-panel .doc-panel-head { background: #fffbe6; color: #874d00; }
.doc-h3 { margin: 0 0 12px; font-size: 16px; color: #1f2937; }
.assoc-flow p { margin: 6px 0; font-size: 13px; color: #374151; line-height: 1.6; }
.assoc-faq { margin: 12px 0 0; font-size: 13px; }
.assoc-faq dt { font-weight: 600; color: #1f2937; margin-top: 14px; }
.assoc-faq dd { margin: 6px 0 0; color: #4b5563; line-height: 1.65; }
.assoc-goto-docs { color: #1677ff; text-decoration: none; }
.assoc-goto-docs:hover { text-decoration: underline; }
.h5map-summary-table { font-size: 12px; }
.h5map-summary-table code.doc-inline-api { display: inline-block; margin: 2px 0; font-size: 11px; }
.h5map-sub-page { padding-left: 20px !important; font-size: 12px; }
.fdict-sub-page { padding-left: 20px !important; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.fdict-count { font-size: 11px; color: #8c8c8c; font-weight: normal; }
.fdict-summary-table { font-size: 12px; }
.fdict-endpoint { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px dashed #e8e8e8; }
.fdict-ep-head { margin-bottom: 10px; }
.fdict-ep-head h4 { margin: 0 0 6px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fdict-ep-name { color: #666; font-weight: normal; font-size: 13px; }
.tag-warn { background: #fff7e6; color: #d48806; border: 1px solid #ffe58f; }
.doc-prize-meta { margin: 0 0 12px; font-size: 13px; color: #595959; line-height: 1.6; }
.doc-prize-meta code { font-size: 12px; background: #f5f5f5; padding: 2px 6px; border-radius: 4px; }
.doc-prize-table td strong { color: #0958d9; }
.doc-param-table,
.doc-dict-table,
.doc-spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-param-table th,
.doc-dict-table th,
.doc-spec-table th {
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 500;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}
.doc-param-table td,
.doc-dict-table td,
.doc-spec-table td {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  line-height: 1.5;
}
.doc-field-name { color: #0f766e; font-weight: 600; background: #ecfdf5; padding: 1px 6px; border-radius: 3px; }
.doc-db-col { color: #7c3aed; background: #f5f3ff; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.doc-type { color: #2563eb; font-size: 12px; }
.doc-req-yes { color: #cf1322; font-weight: 600; font-size: 12px; }
.doc-req-no { color: #9ca3af; font-size: 12px; }
.doc-cell-desc { color: #374151; max-width: 360px; }
.doc-cell-ex { color: #6b7280; font-size: 12px; font-family: Consolas, monospace; max-width: 160px; word-break: break-all; }
.doc-default { color: #9ca3af; font-size: 12px; }
.doc-dict-group { margin-bottom: 16px; }
.doc-dict-group:last-child { margin-bottom: 0; }
.doc-dict-group-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #111; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-dict-table-tag { font-size: 11px; font-weight: 500; color: #7c3aed; background: #ede9fe; padding: 2px 8px; border-radius: 4px; }
.doc-details { margin: 0 18px 12px; font-size: 13px; }
.doc-details summary { cursor: pointer; color: #1677ff; padding: 8px 0; }
.doc-details .doc-block { margin-top: 8px; }
.docs-layout { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; padding: 16px 0 16px 16px; }
.docs-subnav { background: #fafbfc; border-radius: 8px 0 0 8px; padding: 12px; }

.sidebar nav a { position: relative; }
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 10px;
  background: #ff4d4f;
  color: #fff;
  vertical-align: middle;
}
.nav-badge.hidden { display: none; }

.contact-edit-channel { margin-top: 12px; }
.contact-edit-channel h3 { margin: 0 0 12px; font-size: 15px; }
.qr-preview { max-height: 80px; display: block; margin: 8px 0; border-radius: 6px; border: 1px solid #eee; }
body.admin-portal .qr-upload-row.hidden,
.qr-upload-row.hidden {
  display: none !important;
}

.ticket-card { margin-bottom: 12px; }
.ticket-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ticket-meta { color: #999; font-size: 12px; margin: 0 0 8px; }
.ticket-content, .ticket-card textarea.ticket-reply {
  font-family: Consolas, monospace;
  font-size: 13px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.ticket-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

@keyframes announcement-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes announcement-ring {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.1); opacity: 0.12; }
}
.announcement-modal .modal-announcement {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.28), 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: announcement-pop 0.26s ease-out;
}
.announcement-modal-hero {
  position: relative;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 50%, #c2410c 100%);
  overflow: hidden;
}
.announcement-modal-hero::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.announcement-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 36px;
}
.announcement-bell-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  position: relative;
}
.announcement-bell-wrap::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  animation: announcement-ring 2s ease-in-out infinite;
}
.announcement-hero-text { flex: 1; min-width: 0; }
.announcement-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.announcement-modal-hero h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.announcement-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.announcement-modal-body {
  padding: 16px 20px 10px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.announcement-content-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
  max-height: 50vh;
  overflow: auto;
  margin-bottom: 12px;
}
.announcement-modal-content { margin-bottom: 0; }
.announcement-text { font-size: 14px; line-height: 1.7; color: #334155; white-space: pre-wrap; word-break: break-word; }
.announcement-text-muted { color: #94a3b8; font-size: 13px; margin: 0; }
.announcement-dismiss-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.announcement-dismiss-label input { width: auto; margin: 0; accent-color: #ea580c; }
.announcement-modal .modal-actions {
  padding: 0 20px 18px;
  border-top: none;
}
.announcement-modal .modal-actions .btn {
  width: 100%;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  border: none;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}
.announcement-modal .modal-actions .btn:hover {
  filter: brightness(1.05);
}
