#panel-query .cq-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
#panel-query .cq-wrap { flex-wrap: wrap; }
#panel-query .cq-input { height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 10px; font-size: 13px; color: #334155; background: #fff; min-width: 150px; }
#panel-query .cq-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
#panel-query .cq-btn { height: 34px; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 8px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
#panel-query .cq-btn:disabled { opacity: .5; cursor: not-allowed; }
#panel-query .cq-btn-primary { background: #FF589B; border-color: #FF589B; color: #fff; }
#panel-query .cq-btn-danger { background: #ef4444; border-color: #ef4444; color: #fff; }
#panel-query .cq-btn-light { background: #f8fafc; }
#panel-query .cq-scroll { overflow-x: auto; }
#panel-query .cq-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#panel-query .cq-table.cq-detail-table { table-layout: fixed; }
#panel-query .cq-table th, #panel-query .cq-table td { border-bottom: 1px solid #f1f5f9; padding: 8px 6px; text-align: left; vertical-align: top; white-space: nowrap; }
#panel-query .cq-table th { background: #f8fafc; color: #64748b; font-weight: 600; }
#panel-query .cq-table td { color: #334155; }
#panel-query .cq-sub { color: #64748b; font-size: 12px; margin-top: 2px; white-space: normal; }
#panel-query .cq-sub-title { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: #1e293b; }
#panel-query .cq-sub-title.cq-title-first { margin-top: 0; }
#panel-query .cq-empty { color: #64748b; font-size: 13px; padding: 16px 0; }
#panel-query .cq-actions { display: flex; gap: 8px; }
#panel-query .cq-order-actions { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
#panel-query .cq-notice-btn { border: 0; padding: 0; background: none; color: #be185d; font: inherit; font-size: 12px; font-weight: 600; line-height: 24px; cursor: pointer; }
#panel-query .cq-notice-btn:hover { color: #9d174d; }
#panel-query .cq-order-actions .cq-link { line-height: 24px; }
#panel-query .cq-link { border: none; background: none; color: #FF589B; font-size: 12px; cursor: pointer; padding: 0; }
#panel-query .cq-link.danger { color: #ef4444; }
#panel-query .cq-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #f1f5f9; color: #475569; }
#panel-query .cq-tag.ok { background: #ecfdf5; color: #047857; }
#panel-query .cq-tag.off { background: #f8fafc; color: #64748b; }
#panel-query .cq-tag.hot { background: #fff7ed; color: #c2410c; }
#panel-query .cq-tag.danger { background: #fef2f2; color: #b91c1c; }
#panel-query .cq-table tbody tr.is-active td { background: #fff7fa; }
#panel-query .cq-result-caption { margin: 2px 0 6px; color: #64748b; font-size: 12px; font-weight: 600; }
#panel-query .cq-order-stats-wrap { margin-bottom: 12px; border: 1px solid #fce7ef; border-radius: 10px; overflow: hidden; background: #fff; }
#panel-query .cq-order-stats { width: 100%; border-collapse: collapse; table-layout: fixed; }
#panel-query .cq-order-stats th,
#panel-query .cq-order-stats td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #f5eaf0; }
#panel-query .cq-order-stats th { background: #fdf8fa; color: #7c5a68; font-size: 11px; font-weight: 600; letter-spacing: .3px; }
#panel-query .cq-order-stats td { color: #be185d; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
#panel-query .cq-order-stats tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
  #panel-query .cq-order-stats th,
  #panel-query .cq-order-stats td { padding: 7px 4px; }
  #panel-query .cq-order-stats th { font-size: 10px; }
  #panel-query .cq-order-stats td { font-size: 15px; }
}
#panel-query .cq-btn-outline-danger { background: #fff; border-color: #fecaca; color: #dc2626; }
#panel-query .cq-btn-outline-danger:hover { background: #fef2f2; }
#panel-query .cq-account-detail-card { margin-top: 14px; padding: 14px; border: 1px solid #f1f5f9; border-radius: 14px; background: #fff; }
#panel-query .cq-detail-section { margin-top: 16px; }
#panel-query .cq-detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
#panel-query .cq-detail-section-head > span:first-child { color: #1e293b; font-size: 13px; font-weight: 700; }
#panel-query .cq-detail-empty { padding: 14px; border: 1px dashed #e2e8f0; border-radius: 8px; color: #64748b; font-size: 12px; text-align: center; }
#panel-query .cq-account-detail-card .cq-pager { margin-top: 10px; }
#panel-query .cq-account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff7fa; border: 1px solid #fce7ef; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
#panel-query .cq-balance { font-size: 13px; color: #64748b; }
#panel-query .cq-balance b { font-size: 22px; color: #d6336c; }
#panel-query .cq-notice { border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 8px 0; }
#panel-query .cq-notice.danger { background: #fef2f2; color: #b91c1c; }
#panel-query .cq-notice.ok { background: #ecfdf5; color: #047857; }
#panel-query .cq-pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: #64748b; }
#panel-query .cq-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
#panel-query .cq-stat { flex: 1 1 140px; background: #fff7fa; border: 1px solid #fce7ef; border-radius: 10px; padding: 12px; }
#panel-query .cq-stat b { display: block; font-size: 22px; color: #d6336c; }
#panel-query .cq-stat span { font-size: 12px; color: #64748b; }
body.cq-modal-open { overflow: hidden; }
.cq-modal-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: cqMaskIn .16s ease-out; }
.cq-modal-box { width: 100%; max-width: 520px; background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); overflow: hidden; animation: cqDialogIn .2s cubic-bezier(.2, .9, .3, 1.1); }
.cq-modal-box.cq-modal-sm { max-width: 420px; }
.cq-order-modal { max-width: 600px; border-radius: 18px; box-shadow: 0 24px 70px rgba(131, 24, 67, .22); }
.cq-refund-modal { max-width: 480px; border-radius: 16px; }
.cq-refund-info { display: flex; gap: 10px; margin-bottom: 12px; }
.cq-refund-info > div { flex: 1; padding: 9px 11px; border: 1px solid #fce7ef; border-radius: 9px; background: #fff7fa; text-align: center; }
.cq-refund-info span { display: block; color: #475569; font-size: 11px; font-weight: 600; }
.cq-refund-info b { display: block; margin-top: 2px; color: #be185d; font-size: 14px; }
.cq-refund-amount { margin: -2px 0 10px; padding: 9px 11px; border-radius: 9px; background: #fef2f2; color: #b91c1c; font-size: 12px; }
.cq-refund-amount b { font-size: 17px; }
.cq-order-modal .cq-modal-head { padding: 15px 20px; background: linear-gradient(135deg, #fff7fa 0%, #fff 70%); border-bottom: 1px solid #fce7ef; }
.cq-order-modal .cq-modal-head strong { color: #831843; font-size: 16px; }
.cq-order-modal .cq-modal-body { padding: 0 20px 16px; max-height: 84vh; }
.cq-order-modal .cq-modal-foot { padding: 12px 20px; background: #fff; }
.cq-order-modal .cq-modal-foot .cq-btn { height: 36px; border-radius: 9px; padding: 0 18px; }
.cq-order-form { padding-top: 14px; }
.cq-order-hero { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 12px; background: linear-gradient(135deg, #fff1f6 0%, #fdf2f8 100%); border: 1px solid #fce7ef; border-radius: 12px; }
.cq-order-hero-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; color: #db2777; box-shadow: 0 4px 12px rgba(219, 39, 119, .12); }
.cq-order-hero-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cq-order-hero-text b { color: #831843; font-size: 14px; }
.cq-order-hero-text small { color: #7c4a5e; font-size: 11px; line-height: 1.5; }
.cq-order-section { padding: 11px 13px 2px; margin-bottom: 10px; border: 1px solid #f1f5f9; border-radius: 12px; background: #fff; }
.cq-order-section-title { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: #be185d; font-size: 12px; font-weight: 700; }
.cq-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cq-order-package { grid-column: 1 / -1; }
.cq-order-form .cq-field { margin-bottom: 10px; color: #334155; font-weight: 500; }
.cq-order-form .cq-field input, .cq-order-form .cq-field select, .cq-order-form .cq-field textarea { margin-top: 6px; padding: 9px 11px; border-color: #e5e7eb; border-radius: 9px; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.cq-order-form .cq-field input:focus, .cq-order-form .cq-field select:focus, .cq-order-form .cq-field textarea:focus { outline: none; border-color: #FF589B; box-shadow: 0 0 0 3px rgba(255, 88, 155, .12); }
.cq-order-form .cq-field textarea { min-height: 58px; resize: vertical; }
.cq-order-form .cq-field select { appearance: auto; }
.cq-req { color: #ef4444; font-weight: 700; }
.cq-order-summary { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 9px 11px; border: 1px dashed #f9a8d4; border-radius: 9px; background: #fff7fa; color: #9d174d; font-size: 12px; line-height: 1.5; }
.cq-order-summary-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #FF589B; box-shadow: 0 0 0 3px rgba(255, 88, 155, .14); }
.cq-order-party { margin: 6px 2px 0; padding: 6px 9px; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 11.5px; line-height: 1.5; word-break: break-word; }
.cq-order-note { margin: 2px 2px 4px; color: #64748b; font-size: 11px; line-height: 1.6; }
.cq-order-hint { display: block; margin-top: 4px; color: #64748b; font-size: 10px; font-weight: 400; line-height: 1.4; }
@media (max-width: 560px) {
  .cq-order-modal .cq-modal-body { padding: 0 14px 14px; }
  .cq-order-grid { grid-template-columns: 1fr; }
  .cq-order-package { grid-column: auto; }
}

/* 套餐开通通知 */
.cq-notice-modal { max-width: 620px; border-radius: 18px; }
.cq-notice-modal .cq-modal-body { padding: 13px 18px 18px; max-height: 86vh; background: #f5f6f9; }
.cq-notice-modal .cq-modal-foot { padding: 12px 20px; background: #fff; }
.cq-notice-copybar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 11px; padding: 8px 10px; border: 1px solid #e8edf4; border-radius: 9px; background: #fff; color: #64748b; font-size: 11px; line-height: 1.5; }
.cq-notice-copy-state { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cq-notice-copy-state i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.cq-notice-copybar.is-loading i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); animation: cqNoticePulse 1s ease-in-out infinite; }
.cq-notice-copybar.is-ok i { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.cq-notice-copybar.is-error i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.cq-notice-copybar.is-ok .cq-notice-copy-text { color: #047857; }
.cq-notice-copybar.is-error .cq-notice-copy-text { color: #b91c1c; }
.cq-notice-copy-btn { flex: 0 0 auto; border: 0; padding: 0; background: none; color: #be185d; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.cq-notice-copy-btn:hover { color: #9d174d; }
.cq-notice-copy-btn:disabled { opacity: .55; cursor: default; }
@keyframes cqNoticePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.cq-notice-stage { display: flex; justify-content: center; }
.cq-order-notice { width: 100%; max-width: 432px; overflow: hidden; border: 1px solid #f8e2ea; border-radius: 18px; background: #fff; color: #1f2937; box-shadow: 0 14px 38px rgba(131, 24, 67, .13); }
.cq-on-head { position: relative; padding: 17px 20px 16px; overflow: hidden; border-bottom: 1px solid #fbe7ee; background: linear-gradient(135deg, #fff0f6 0%, #fff8fb 58%, #fff 100%); }
.cq-on-head::after { content: ''; position: absolute; top: -36px; right: -28px; width: 126px; height: 126px; border-radius: 50%; background: rgba(255, 88, 155, .075); }
.cq-on-brand { display: flex; align-items: center; gap: 7px; position: relative; z-index: 1; min-width: 0; }
.cq-on-brand img { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.cq-on-brand > span:first-of-type { overflow: hidden; color: #9d174d; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-overflow: ellipsis; white-space: nowrap; }
.cq-on-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 8px; border: 1px solid #a7f3d0; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 10px; font-weight: 700; }
.cq-on-badge i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, .14); }
.cq-on-title { position: relative; z-index: 1; margin-top: 15px; color: #831843; font-size: 22px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; }
.cq-on-desc { position: relative; z-index: 1; margin-top: 5px; color: #7c4a5e; font-size: 11px; line-height: 1.5; }
.cq-on-body { padding: 0 20px 17px; }
.cq-on-hero { display: flex; align-items: stretch; gap: 12px; margin-top: 14px; padding: 13px 14px; border: 1px solid #fbe3ec; border-radius: 13px; background: linear-gradient(135deg, #fff7fa 0%, #fff 62%); }
.cq-on-package { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cq-on-package span, .cq-on-count > span { color: #8a6471; font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.cq-on-package strong { color: #1e293b; font-size: 17px; font-weight: 800; line-height: 1.3; word-break: break-word; }
.cq-on-package em { color: #be185d; font-size: 10px; font-style: normal; font-weight: 600; }
.cq-on-count { flex: 0 0 auto; min-width: 108px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding-left: 12px; border-left: 1px dashed #f3d6e1; text-align: right; }
.cq-on-count strong { color: #d6336c; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cq-on-count strong small { margin-left: 2px; font-size: 12px; font-weight: 700; }
.cq-on-count em { color: #7c4a5e; font-size: 9px; font-style: normal; line-height: 1.45; }
.cq-on-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 18px; margin-top: 15px; }
.cq-on-item.cq-on-wide { grid-column: 1 / -1; }
.cq-on-item.cq-on-scope > b,
.cq-on-item.cq-on-staff > b { color: #475569; font-size: 11.5px; font-weight: 500; line-height: 17px; }
.cq-on-item { min-width: 0; }
.cq-on-item > span { display: block; color: #8a6471; font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.cq-on-item > b { display: block; margin-top: 3px; color: #1f2937; font-size: 12px; font-weight: 600; line-height: 18px; min-height: 18px; word-break: break-word; }
.cq-on-item > b i { margin-left: 4px; color: #be185d; font-size: 10.5px; font-style: normal; font-weight: 600; white-space: nowrap; }
.cq-on-item > small { display: block; margin-top: 2px; color: #9a7a86; font-size: 9.5px; line-height: 14px; }
.cq-on-item > small.cq-on-paid { color: #047857; }
.cq-on-order-no { color: #475569 !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px !important; letter-spacing: 0; }
.cq-on-money { color: #d6336c !important; font-size: 12px !important; font-weight: 800 !important; }
.cq-on-tip { margin-top: 18px; padding: 9px 11px; border: 1px solid #eef2f6; border-radius: 9px; background: #f8fafc; color: #526074; font-size: 10.5px; line-height: 1.75; }
.cq-on-tip b { color: #334155; }
.cq-on-foot { display: flex; justify-content: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; color: #7c5a68; font-size: 10px; line-height: 1.5; text-align: center; }
@media (max-width: 480px) {
  .cq-notice-modal .cq-modal-body { padding: 11px 11px 14px; }
  .cq-on-head { padding: 15px 16px 14px; }
  .cq-on-body { padding: 0 16px 15px; }
  .cq-on-title { font-size: 20px; }
  .cq-on-hero { flex-direction: column; gap: 10px; }
  .cq-on-count { min-width: 0; padding: 9px 0 0; border-top: 1px dashed #f3d6e1; border-left: 0; text-align: left; }
  .cq-on-grid { gap: 10px 14px; }
}
.cq-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: linear-gradient(135deg, #fff7fa 0%, #fff 75%); border-bottom: 1px solid #fce7ef; }
.cq-modal-head strong { color: #831843; font-size: 16px; font-weight: 700; }
.cq-modal-close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; color: #64748b; cursor: pointer; transition: background .15s, color .15s; }
.cq-modal-close:hover { background: #fff0f6; color: #be185d; }
.cq-modal-body { padding: 16px 20px; max-height: 65vh; overflow-y: auto; }
.cq-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid #f1f5f9; background: #fcfcfd; }
.cq-modal-msg { padding: 12px 14px; border: 1px solid #eef0f3; border-radius: 10px; background: #f8fafc; font-size: 14px; line-height: 1.7; color: #334155; white-space: pre-line; word-break: break-word; }
.cq-modal-box .cq-sub { color: #64748b; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.cq-account-search { position: relative; }
.cq-account-results { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; max-height: 230px; overflow-y: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
.cq-account-results.show { display: block; }
.cq-account-option { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid #f1f5f9; background: #fff; color: #334155; font-family: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.cq-account-main { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.cq-account-target { flex: 0 1 auto; min-width: 0; max-width: 46%; margin-left: 0; color: #64748b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-account-option:last-child { border-bottom: 0; }
.cq-account-option:hover, .cq-account-option.active { background: #fff7fa; }
.cq-account-option span:empty { display: none; }
.cq-account-avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.cq-account-avatar-ph { display: inline-flex; align-items: center; justify-content: center; color: #be185d; font-size: 11px; font-weight: 700; }
.cq-account-role { flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; background: #fdf2f8; color: #be185d; font-size: 10px; font-weight: 600; }
.cq-account-no { flex: 0 0 auto; color: #d6336c; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cq-account-name { flex: 0 1 auto; min-width: 0; max-width: 84px; overflow: hidden; color: #334155; font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
.cq-account-gender, .cq-account-year { flex: 0 0 auto; color: #64748b; font-size: 11px; }
.cq-account-job { flex: 0 1 auto; min-width: 0; max-width: 92px; overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; }
.cq-account-company { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; }
.cq-account-empty { padding: 10px 12px; color: #64748b; font-size: 12px; text-align: center; }
.cq-modal-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
.cq-modal-error { margin-top: 2px; border-radius: 8px; background: #fef2f2; color: #b91c1c; padding: 8px 10px; font-size: 12px; line-height: 1.6; }
.cq-modal-box .cq-btn:disabled { opacity: .6; cursor: not-allowed; }
.cq-field { display: block; margin-bottom: 12px; font-size: 12px; color: #334155; font-weight: 500; }
.cq-field input, .cq-field select, .cq-field textarea { display: block; width: 100%; margin-top: 5px; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #334155; background: #fff; }
.cq-field-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 12px 0; font-size: 12px; color: #475569; }
.cq-field-inline input { width: auto; margin: 0; }
.cq-modal-box .cq-btn { height: 36px; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 9px; padding: 0 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.cq-modal-box .cq-btn:hover { border-color: #f9a8d4; background: #fff7fa; }
.cq-modal-box .cq-btn-primary:hover { background: #ec4899; border-color: #ec4899; }
.cq-modal-box .cq-btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.cq-modal-box .cq-btn-primary { background: #FF589B; border-color: #FF589B; color: #fff; }
.cq-modal-box .cq-btn-light { background: #f8fafc; }
.cq-modal-box .cq-btn.cq-btn-danger { background: #ef4444; border-color: #ef4444; color: #fff; }

#panel-query .cq-table.cq-table-center th,
#panel-query .cq-table.cq-table-center td { text-align: center; }
#panel-query .cq-table.cq-table-center td.cq-actions { justify-content: center; }

@keyframes cqMaskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cqDialogIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* 套餐编辑弹窗 */
.cq-package-form { padding-top: 2px; }
.cq-package-hero { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 12px 13px; border: 1px solid #fce7ef; border-radius: 12px; background: linear-gradient(135deg, #fff1f6 0%, #fdf2f8 100%); }
.cq-package-hero-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #db2777; box-shadow: 0 4px 12px rgba(219, 39, 119, .12); }
.cq-package-hero-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cq-package-hero-text b { color: #831843; font-size: 14px; }
.cq-package-hero-text small { color: #7c4a5e; font-size: 11px; line-height: 1.5; }
.cq-package-section { padding: 11px 13px 2px; margin-bottom: 10px; border: 1px solid #f1f5f9; border-radius: 12px; background: #fff; }
.cq-package-section-title { margin-bottom: 9px; color: #be185d; font-size: 12px; font-weight: 700; }
.cq-package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cq-limit-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cq-package-form .cq-limit-row input[type="number"] { flex: 1; min-width: 0; margin-top: 0; }
.cq-inline-check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; font-weight: 500; color: #64748b; }
.cq-package-form .cq-inline-check input[type="checkbox"] { width: auto; margin: 0; padding: 0; }
.cq-package-form .cq-field { margin-bottom: 10px; color: #334155; font-weight: 500; }
.cq-package-form .cq-field input, .cq-package-form .cq-field textarea { margin-top: 6px; padding: 9px 11px; border-color: #e5e7eb; border-radius: 9px; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.cq-package-form .cq-field input:focus, .cq-package-form .cq-field textarea:focus { outline: none; border-color: #FF589B; box-shadow: 0 0 0 3px rgba(255, 88, 155, .12); }
.cq-package-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cq-switch-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #eef0f3; border-radius: 9px; background: #fcfcfd; cursor: pointer; }
.cq-switch-item:hover { border-color: #f9a8d4; background: #fff7fa; }
.cq-switch-item input { width: 15px; height: 15px; margin: 0; accent-color: #FF589B; }
.cq-switch-item b { display: block; color: #334155; font-size: 12px; }
.cq-switch-item small { display: block; margin-top: 1px; color: #64748b; font-size: 11px; }
.cq-package-tip { padding: 0 2px 2px; color: #64748b; font-size: 11px; line-height: 1.6; }
.cq-package-form input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.cq-package-form input[type=number]::-webkit-outer-spin-button,
.cq-package-form input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) {
  .cq-package-grid, .cq-package-switches { grid-template-columns: 1fr; }
}

/* 提示 / 确认弹窗内容 */
.cq-dialog-message { display: flex; align-items: flex-start; gap: 11px; padding: 3px 1px; }
.cq-dialog-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff7fa; color: #db2777; }
.cq-dialog-text { min-width: 0; padding-top: 5px; color: #334155; font-size: 14px; line-height: 1.7; white-space: pre-line; word-break: break-word; }
.cq-dialog-success .cq-dialog-icon { background: #ecfdf5; color: #059669; }
.cq-dialog-danger .cq-dialog-icon { background: #fef2f2; color: #dc2626; }
.cq-dialog-info .cq-dialog-icon { background: #eff6ff; color: #2563eb; }

/* 账号详情搜索：更宽输入框 + 单行富信息列表 */
#panel-query #cqAccountKeyword { flex: 0 1 420px; width: 420px; min-width: 260px; max-width: 100%; }
#panel-query .cq-account-list { border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; background: #fff; }
#panel-query .cq-account-option.is-active { background: #fff7fa; box-shadow: inset 3px 0 0 #FF589B; }
@media (max-width: 720px) {
  #panel-query #cqAccountKeyword { flex: 1 1 100%; min-width: 0; width: 100%; }
}

/* 账号详情：信息表 */
#panel-query .cq-account-table { table-layout: fixed; min-width: 1180px; }
#panel-query .cq-account-table th,
#panel-query .cq-account-table td { text-align: center; vertical-align: middle; }
#panel-query .cq-account-table tbody tr { cursor: pointer; }
#panel-query .cq-account-table tbody tr[data-account-row]:hover > td { background: #fff7fa; }
#panel-query .cq-account-table tbody tr[data-account-row].active > td,
#panel-query .cq-account-table tbody tr[data-account-row].is-active > td { background: #fff7fa; }
#panel-query .cq-account-table tbody tr[data-account-row].is-active > td:first-child { box-shadow: inset 3px 0 0 #FF589B; }
#panel-query .cq-account-table .cq-account-avatar { display: inline-flex; vertical-align: middle; }
#panel-query .cq-account-table-name { overflow: hidden; color: #1e293b; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#panel-query .cq-account-table td .cq-sub { text-align: center; }
#panel-query .cq-account-table-strong { color: #1e293b; font-weight: 700; }
#panel-query .cq-account-table-strong.pink { color: #d6336c; }
#panel-query .cq-row-actions { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
#panel-query .cq-account-enter { display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: 0 0 auto; color: #FF589B; font-size: 11px; font-weight: 600; line-height: 1; vertical-align: middle; }
#panel-query .cq-account-enter-arrow { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; }
#panel-query .cq-account-enter-arrow svg { display: block; }
#panel-query .cq-row-more { display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 2px 6px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #475569; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; cursor: pointer; }
#panel-query .cq-row-more:hover { border-color: #f9a8d4; background: #fff7fa; color: #be185d; }
#panel-query .cq-row-more-arrow { display: block; }
#panel-query .cq-row-menu { position: fixed; z-index: 10050; width: 150px; padding: 4px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
#panel-query .cq-row-menu-title { padding: 6px 8px; margin-bottom: 4px; border-bottom: 1px solid #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#panel-query .cq-row-menu-item { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: #334155; font: inherit; font-size: 12px; text-align: center; cursor: pointer; }
#panel-query .cq-row-menu-item:hover { background: #fff7fa; color: #be185d; }
#panel-query .cq-row-menu-item.danger { color: #dc2626; }
#panel-query .cq-row-menu-item.danger:hover { background: #fef2f2; color: #b91c1c; }

/* 账号详情行内展开 */
#panel-query .cq-account-table tbody tr.cq-account-expand-row > td {
  padding: 0 !important;
  border-top: 1px solid #c9d5e4;
  border-bottom: 1px solid #d9e1eb;
  background: #edf2f8;
}
#panel-query .cq-account-expand-slot {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #f0f4fa 0%, #e6edf5 100%);
  box-shadow: inset 3px 0 0 #FF589B;
  animation: cqExpandIn .18s ease-out;
}
#panel-query .cq-account-expand-slot .cq-account-detail-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#panel-query .cq-account-expand-slot .cq-scroll {
  border: 1px solid #f1e4e8;
  border-radius: 10px;
  background: #fff;
}
#panel-query .cq-account-expand-slot .cq-table th {
  background: #fdf8fa;
  border-bottom: 1px solid #f6e1ea;
  color: #7c5a68;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}
#panel-query .cq-account-expand-slot .cq-table td {
  border-bottom: 1px solid #f5eaf0;
  color: #374151;
}
#panel-query .cq-account-expand-slot .cq-table tbody tr:hover td { background: #fffafc; }
#panel-query .cq-account-expand-slot .cq-detail-section-head > span:first-child {
  position: relative;
  padding-left: 10px;
}
#panel-query .cq-account-expand-slot .cq-detail-section-head > span:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff7aa8, #ff5c8d);
  transform: translateY(-50%);
}
#panel-query .cq-used-quotas { margin-top: 8px; }
#panel-query .cq-used-quotas summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 8px;
  border-top: 1px dashed #f3e2ea;
  color: #d6336c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
#panel-query .cq-used-quotas summary::-webkit-details-marker { display: none; }
#panel-query .cq-used-quotas summary::marker { content: ''; }
#panel-query .cq-used-arrow { display: inline-flex; align-items: center; justify-content: center; color: #a85b75; transition: transform .2s, color .2s; }
#panel-query .cq-used-arrow svg { display: block; }
#panel-query .cq-used-quotas summary:hover .cq-used-arrow,
#panel-query .cq-used-quotas[open] .cq-used-arrow { color: #d6336c; }
#panel-query .cq-used-quotas[open] .cq-used-arrow { transform: rotate(180deg); }
#panel-query .cq-used-count { padding: 1px 7px; border-radius: 999px; background: #fff0f5; color: #d6336c; font-size: 10px; font-weight: 600; }
#panel-query .cq-used-quotas .cq-scroll { margin-top: 6px; }
#panel-query .cq-usage-details summary { list-style: none; cursor: pointer; user-select: none; }
#panel-query .cq-usage-details summary::-webkit-details-marker { display: none; }
#panel-query .cq-usage-details summary::marker { content: ''; }
#panel-query .cq-usage-arrow { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; color: #a85b75; vertical-align: middle; transition: transform .2s, color .2s; }
#panel-query .cq-usage-arrow svg { display: block; }
#panel-query .cq-usage-details summary:hover .cq-usage-arrow,
#panel-query .cq-usage-details[open] .cq-usage-arrow { color: #d6336c; }
#panel-query .cq-usage-details[open] .cq-usage-arrow { transform: rotate(180deg); }
#panel-query .cq-usage-details .cq-scroll { margin-top: 4px; }
#panel-query .cq-usage-count { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff0f5; color: #d6336c; font-size: 11px; font-weight: 600; white-space: nowrap; }
#panel-query .cq-usage-count.danger { background: #fef2f2; color: #b91c1c; }
#panel-query .cq-usage-count.off { background: #f8fafc; color: #64748b; }
@keyframes cqExpandIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   自助查询管理 — 移动端适配（< 768px）
   ============================================= */
@media (max-width: 767px) {
  /* ----- 子 Tab：3 列 2 行，完整收进屏幕，无横向滚动 ----- */
  #panel-query .service-subtab-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 4px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  #panel-query .service-subtab-nav .sub-tab {
    flex: none;
    min-width: 0;
    padding: 9px 4px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
  }
  #panel-query .service-subtab-nav .sub-tab.active {
    box-shadow: 0 2px 8px rgba(214, 51, 108, .14);
  }

  /* ----- 工具栏：输入框独占一行、按钮不换行 ----- */
  #panel-query .cq-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  #panel-query .cq-toolbar .cq-input {
    flex: 1 1 150px;
    width: auto;
    min-width: 0;
    height: 40px;
    font-size: 14px;
  }
  #panel-query .cq-toolbar .cq-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  #panel-query .cq-toolbar .cq-inline {
    flex: 1 1 140px;
    min-width: 0;
    justify-content: space-between;
    padding: 6px 10px;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #f8fafc;
  }
  #panel-query .cq-toolbar .cq-inline .cq-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
  }
  #panel-query .cq-toolbar .cq-inline { white-space: nowrap; }
  #panel-query .cq-toolbar .cq-inline:has(input[type="checkbox"]) {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 4px;
    border: 0;
    background: transparent;
  }
  #panel-query #cqAccountKeyword { flex: 1 1 150px; width: auto; min-width: 0; }
  /* 顶部返回栏已展示标题，移动端隐藏卡片内重复标题 */
  #panel-query > .info-card > .info-card-title { display: none; }

  /* ----- 汇总条：2 列网格 ----- */
  #panel-query .service-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    margin-bottom: 10px;
  }
  #panel-query .svc-summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    border-right: 0;
  }
  #panel-query .svc-summary-label { font-size: 11px; }
  #panel-query .svc-summary-value { font-size: 17px; }
  #panel-query #cqAccountSummary .service-summary .svc-summary-item:last-child { grid-column: 1 / -1; }

  /* ----- 统计卡片：2 列 ----- */
  #panel-query .cq-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  #panel-query .cq-stat { padding: 10px 12px; }
  #panel-query .cq-stat b { font-size: 20px; }
  #panel-query .cq-stat span { font-size: 11px; }

  /* ----- 分页 ----- */
  #panel-query .cq-pager {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }
  #panel-query .cq-pager .cq-btn { height: 36px; }

  /* ----- 账号列表：移动端卡片 ----- */
  #panel-query .cq-mobile-account-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  #panel-query .cq-m-account {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #f2e2e9;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, border-color .15s;
  }
  #panel-query .cq-m-account:active {
    background: #fff7fa;
    border-color: #f7c6d8;
  }
  #panel-query .cq-m-account .cq-account-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  #panel-query .cq-m-account-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }
  #panel-query .cq-m-account-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  #panel-query .cq-m-account-name {
    overflow: hidden;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #panel-query .cq-m-account-sub {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #panel-query .cq-m-account-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #8a7d84;
    font-size: 11px;
  }
  #panel-query .cq-m-account-stats b {
    color: #d6336c;
    font-size: 13px;
  }
  #panel-query .cq-m-account-arrow {
    flex: 0 0 auto;
    color: #c9a6b5;
    font-size: 22px;
    line-height: 1;
  }

  /* ----- 账号详情：主从视图 ----- */
  #panel-query .cq-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 10px;
    padding: 7px 12px 7px 8px;
    border: 1px solid #f3d7e3;
    border-radius: 999px;
    background: #fff7fa;
    color: #d6336c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  #panel-query .cq-detail-back svg { display: block; }
  #panel-query.cq-mobile-detail #cqAccountSummary,
  #panel-query.cq-mobile-detail #cqAccountResult > .cq-result-caption,
  #panel-query.cq-mobile-detail #cqAccountResult > .cq-mobile-account-list,
  #panel-query.cq-mobile-detail #cqAccountResult > .cq-pager,
  #panel-query.cq-mobile-detail #cqAccountResult > .cq-scroll,
  #panel-query.cq-mobile-detail .cq-toolbar {
    display: none !important;
  }
  #panel-query.cq-mobile-detail .cq-toolbar { display: none; }
  #panel-query.cq-mobile-detail #cqAccountDetail { display: block; }
  #panel-query .cq-account-detail-card {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  #panel-query .cq-account-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  #panel-query .cq-mobile-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #fce7ef;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff5f8, #fff);
  }
  #panel-query .cq-mobile-account-id { min-width: 0; }
  #panel-query .cq-mobile-account-name {
    overflow: hidden;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #panel-query .cq-mobile-account-meta {
    margin-top: 2px;
    color: #7c5a68;
    font-size: 12px;
    word-break: break-all;
  }
  #panel-query .cq-mobile-account-head .cq-balance { flex: 0 0 auto; font-size: 12px; }
  #panel-query .cq-mobile-account-head .cq-balance b { font-size: 19px; }
  #panel-query .cq-balance b { font-size: 20px; }

  /* ----- 表格 → 卡片列表 ----- */
  #panel-query .cq-scroll { overflow: visible; }
  #panel-query .cq-table,
  #panel-query .cq-table tbody,
  #panel-query .cq-table tr,
  #panel-query .cq-table td {
    display: block;
    width: 100%;
  }
  #panel-query .cq-table { table-layout: auto; min-width: 0; }
  #panel-query .cq-account-table { min-width: 0; }
  #panel-query .cq-table thead,
  #panel-query .cq-table colgroup,
  #panel-query .cq-table col { display: none; }
  #panel-query .cq-table tbody tr {
    margin-bottom: 10px;
    padding: 4px 12px;
    border: 1px solid #f2e2e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(214, 51, 108, .04);
  }
  #panel-query .cq-table tbody tr:last-child { margin-bottom: 0; }
  #panel-query .cq-table td {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #f5eaf0;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    text-align: right !important;
    white-space: normal;
    word-break: break-word;
  }
  #panel-query .cq-table td:last-child { border-bottom: 0; }
  #panel-query .cq-table td::after { content: ''; display: block; clear: both; }
  #panel-query .cq-table td::before {
    content: attr(data-label);
    float: left;
    margin-right: 12px;
    color: #8a7d84;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
  }
  #panel-query .cq-table td:not([data-label]) { text-align: left !important; }
  #panel-query .cq-table td:not([data-label])::before { display: none; }
  #panel-query .cq-table td .cq-sub { text-align: right; }
  #panel-query .cq-table td[data-label="备注"] .cq-sub { text-align: left; }
  #panel-query .cq-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  #panel-query .cq-order-actions { flex-wrap: wrap; }

  /* 详情内嵌套表格：去掉重复外框，保留分隔 */
  #panel-query .cq-account-detail-card .cq-table tbody tr {
    box-shadow: none;
    background: #fff;
  }
  #panel-query .cq-detail-section { margin-top: 14px; }
  #panel-query .cq-detail-section-head {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  #panel-query .cq-usage-details summary.cq-detail-section-head { align-items: center; }

  /* 子标题与空状态 */
  #panel-query .cq-sub-title { font-size: 13px; }
  #panel-query .cq-result-caption { font-size: 12px; }

  /* 弹窗在窄屏铺满，表单更易点按 */
  .cq-modal-mask { padding: 10px; align-items: flex-end; }
  .cq-modal-box { max-width: none; border-radius: 18px 18px 0 0; }
  .cq-modal-body { max-height: 70vh; padding: 14px 16px; }
  .cq-modal-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cq-modal-box .cq-btn { height: 42px; font-size: 14px; }
  .cq-order-modal .cq-modal-body { padding: 0 14px 14px; max-height: 72vh; }
  .cq-package-grid, .cq-package-switches { grid-template-columns: 1fr; }
}
