:root {
  --xb-primary: #3370ff;
  --xb-primary-hover: #255de0;
  --xb-bg: #f4f7fd;
  --xb-card: #ffffff;
  --xb-text: #232a3b;
  --xb-text-soft: #667085;
  --xb-border: #e9edf7;
  --xb-success: #22c55e;
  --xb-warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

.xb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--xb-text);
  background: var(--xb-bg);
}

.xb-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* 与控制台深蓝玻璃主题一致的启动画面 */
.xb-loading--shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 185, 255, 0.35), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.25), transparent 38%),
    linear-gradient(135deg, #0b1d3d 0%, #06122a 100%);
}

.xb-loading__card {
  text-align: center;
  max-width: 320px;
  padding: 28px 36px;
  border-radius: 16px;
  background: rgba(10, 24, 52, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 185, 255, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(80, 150, 255, 0.06);
}

.xb-loading__spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(120, 185, 255, 0.22);
  border-top-color: rgba(186, 220, 255, 0.95);
  animation: xb-loading-spin 0.8s linear infinite;
}

.xb-loading__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #eaf2ff;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.xb-loading__hint {
  margin: 0;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.58);
  line-height: 1.5;
}

.xb-loading--custom {
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 185, 255, 0.28), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.2), transparent 38%),
    linear-gradient(135deg, #0b1d3d 0%, #06122a 100%);
  font-size: 15px;
  color: rgba(234, 242, 255, 0.88);
}

@keyframes xb-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.xb-login {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: #4f87f7;
  background-image: url("https://p.upyun.com/demo/tmp/RcUWWrIQ.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.xb-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.xb-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(34, 70, 145, 0.18);
  padding: 26px 24px 20px;
}

.xb-brand {
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 28px;
}

.xb-subtext {
  text-align: center;
  font-size: 13px;
  color: var(--xb-text-soft);
  margin-bottom: 20px;
}

.xb-auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.xb-auth-tab {
  border: 1px solid #d7e3fb;
  background: #f6f8fe;
  color: #4f5f79;
  border-radius: 9px;
  font-size: 13px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.xb-auth-tab.active {
  border-color: #8fb3ff;
  background: #eef4ff;
  color: #245fdf;
  font-weight: 600;
}

.xb-auth-tip {
  font-size: 12px;
  color: #8a96ad;
}

.xb-inline-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.xb-inline-input {
  margin-bottom: 0;
}

.xb-inline-btn {
  margin-top: 0;
  white-space: nowrap;
  padding: 10px 12px;
}

.xb-inline-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.xb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.xb-row label {
  font-size: 13px;
  color: #3e465a;
}

.xb-link {
  color: var(--xb-primary);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.xb-input {
  width: 100%;
  border: 1px solid var(--xb-border);
  background: #f3f6fd;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

.xb-input:focus {
  border-color: #a8c5ff;
  background: #ffffff;
}

.xb-input-prefilled {
  background: #eef2f7;
  border-color: #d5dce8;
  color: #6b7280;
}

.xb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4d566b;
  margin-bottom: 12px;
}

.xb-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--xb-primary);
  color: #fff;
  padding: 11px;
  font-size: 15px;
  cursor: pointer;
}

.xb-btn:hover {
  background: var(--xb-primary-hover);
}

.xb-msg {
  font-size: 13px;
  margin-top: 10px;
}

.xb-msg.error {
  color: #dc2626;
}

.xb-msg.success {
  color: #16a34a;
}

.xb-auth-divider {
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.xb-auth-divider::before,
.xb-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4eaf5;
}

.xb-auth-divider span {
  line-height: 1;
}

.xb-auth-alt {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.xb-auth-alt .xb-link {
  font-size: 14px;
  font-weight: 600;
}

/* 窄屏下由 .xb-mobile-bar 顶栏下拉导航替代侧栏，默认隐藏 */
.xb-mobile-bar {
  display: none;
}

.xb-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
}

.xb-side {
  background: #fff;
  border-right: 1px solid var(--xb-border);
  padding: 18px 12px;
}

.xb-side h1 {
  font-size: 16px;
  margin: 6px 10px 20px;
  color: #111827;
}

.xb-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xb-nav-item {
  border-radius: 8px;
  padding: 10px 12px;
  color: #4e5a73;
  font-size: 14px;
  text-decoration: none;
}

.xb-nav-item.active,
.xb-nav-item:hover {
  background: #edf3ff;
  color: #275fdf;
}

.xb-main {
  padding: 24px;
}

.xb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.xb-top h2 {
  font-size: 28px;
  margin: 0;
}

.xb-actions {
  display: flex;
  gap: 10px;
}

.xb-btn-outline {
  border: 1px solid #b8cdfa;
  background: #fff;
  color: #2f69e9;
  border-radius: 8px;
  padding: 8px 13px;
  cursor: pointer;
}

.xb-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.xb-card {
  background: #fff;
  border: 1px solid var(--xb-border);
  border-radius: 12px;
  padding: 14px;
}

.xb-card .tit {
  color: #6c7893;
  font-size: 13px;
}

.xb-card .val {
  font-size: 30px;
  font-weight: 700;
  margin: 6px 0 2px;
}

.xb-card .tag {
  font-size: 12px;
  color: #3e9c62;
}

.xb-content-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1.2fr;
}

.xb-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eef1f8;
}

.xb-list-item:last-child {
  border-bottom: 0;
}

.xb-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: var(--xb-primary);
}

.xb-muted {
  color: var(--xb-text-soft);
  line-height: 1.7;
}

.xb-nav-muted {
  margin-top: 12px;
  color: #9ca3af !important;
}

.xb-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.xb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.xb-table th,
.xb-table td {
  border-bottom: 1px solid var(--xb-border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.xb-table th {
  color: #64748b;
  font-weight: 600;
  background: #fafbff;
}

.xb-btn-sm,
.xb-btn-xs,
.xb-btn-inline {
  border: 1px solid #b8cdfa;
  background: #fff;
  color: var(--xb-primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.xb-btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

.xb-btn-inline {
  margin-top: 8px;
}

.xb-btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.xb-btn-ghost {
  border-color: var(--xb-border);
  color: var(--xb-text-soft);
  background: #fff;
  margin-left: 8px;
}

.xb-two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.xb-label {
  display: block;
  font-size: 13px;
  color: #4d566b;
  margin: 8px 0 4px;
}

.xb-textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--xb-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.xb-hr {
  border: 0;
  border-top: 1px solid var(--xb-border);
  margin: 16px 0;
}

.xb-ticket-bubble {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}

.xb-ticket-bubble.me {
  background: #edf3ff;
  margin-left: 24px;
}

.xb-ticket-bubble.staff {
  background: #f3f4f6;
  margin-right: 24px;
}

.xb-ticket-time {
  font-size: 11px;
  color: var(--xb-text-soft);
  margin-top: 4px;
}

.xb-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.xb-badge-ok {
  background: #dcfce7;
  color: #166534;
}

.xb-badge-off {
  background: #fee2e2;
  color: #991b1b;
}

.xb-plan-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.xb-plan-card h3 {
  margin-top: 0;
}

.xb-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--xb-primary);
  margin: 8px 0;
}

.xb-small {
  font-size: 12px;
}

.xb-notice-line {
  margin-bottom: 12px;
}

.xb-notice-rich {
  margin-top: 6px;
}

.xb-notice-rich p,
.xb-notice-rich ul,
.xb-notice-rich ol {
  margin: 0 0 8px;
}

.xb-notice-rich ul,
.xb-notice-rich ol {
  padding-left: 18px;
}

.xb-doc-body {
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

.xb-doc-body img {
  max-width: 100%;
  height: auto;
}

.xb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.xb-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.xb-modal--pay {
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.15), 0 8px 24px rgba(15, 23, 42, 0.12);
}

.xb-pay-head {
  align-items: flex-start;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-bottom: 1px solid var(--xb-border);
}

.xb-pay-head-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xb-pay-head-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.xb-pay-head-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--xb-text-soft);
}

.xb-pay-body {
  padding: 18px;
  padding-top: 16px;
}

.xb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--xb-border);
  font-weight: 600;
}

.xb-modal-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--xb-text-soft);
}

.xb-modal-body {
  padding: 16px;
}

.xb-pay-summary {
  background: linear-gradient(135deg, #eef4ff 0%, #f5f7ff 50%, #fafbff 100%);
  border: 1px solid #dbe4fd;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.xb-pay-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
}

.xb-pay-summary-row:last-of-type {
  margin-bottom: 12px;
}

.xb-pay-summary-label {
  color: var(--xb-text-soft);
  flex-shrink: 0;
}

.xb-pay-summary-value {
  color: #334155;
  text-align: right;
  word-break: break-all;
}

.xb-pay-trade-no {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.xb-pay-deduct {
  color: #16a34a;
  font-weight: 600;
}

.xb-pay-coupon-strip {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
}

.xb-pay-coupon-status {
  font-weight: 600;
  color: #15803d;
}

.xb-pay-discount-val {
  font-weight: 700;
  color: #16a34a;
  font-size: 15px;
}

.xb-pay-coupon-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--xb-text-soft);
  line-height: 1.45;
}

.xb-pay-amount-block {
  padding-top: 12px;
  border-top: 1px dashed rgba(51, 102, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xb-pay-amount-label {
  font-size: 12px;
  color: var(--xb-text-soft);
}

.xb-pay-amount-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--xb-primary);
  letter-spacing: -0.02em;
}

.xb-pay-zero-tip {
  text-align: center;
  font-size: 13px;
  color: var(--xb-text-soft);
  margin: 12px 0 0;
}

.xb-pay-section {
  margin-top: 4px;
}

.xb-pay-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}

.xb-pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.xb-pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 2px solid #e8edf7;
  background: #fcfdff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.xb-pay-option:hover {
  border-color: #c7d8fc;
  background: #fff;
}

.xb-pay-option:focus {
  outline: none;
  border-color: var(--xb-primary);
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.2);
}

.xb-pay-option--selected {
  border-color: var(--xb-primary);
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(51, 112, 255, 0.12);
}

.xb-pay-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
}

.xb-pay-option--selected .xb-pay-option-radio {
  border-color: var(--xb-primary);
  background: var(--xb-primary);
}

.xb-pay-option--selected .xb-pay-option-radio::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.xb-pay-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8edf7;
  font-size: 18px;
}

.xb-pay-option-icon--ph {
  font-weight: 700;
  color: var(--xb-primary);
  font-size: 16px;
}

.xb-pay-option-icon--emoji {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: #f1f5f9;
}

.xb-pay-option-icon--img {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
}

.xb-pay-option-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.xb-pay-option-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xb-pay-option-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.xb-pay-option-fee {
  font-size: 12px;
  color: var(--xb-text-soft);
}

.xb-pay-option-fee--none {
  opacity: 0.75;
}

.xb-pay-option-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0.6;
}

.xb-pay-option--selected .xb-pay-option-chev {
  border-color: var(--xb-primary);
  opacity: 1;
}

.xb-pay-foot-msg {
  min-height: 1.25em;
  margin: 0 0 12px;
  font-size: 13px;
}

.xb-pay-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #4d84ff 0%, var(--xb-primary) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(51, 112, 255, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.xb-pay-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(51, 112, 255, 0.4);
}

.xb-pay-submit:active:not(:disabled) {
  transform: translateY(0);
}

.xb-pay-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.xb-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.xb-qr-img {
  max-width: 240px;
  max-height: 240px;
}

.xb-sub-qr-body {
  text-align: center;
}

.xb-sub-qr-hint {
  margin-bottom: 8px;
}

.xb-ret-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.xb-client-modal {
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
}

.xb-client-head {
  align-items: flex-start;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.xb-client-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.xb-client-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--xb-text-soft);
}

.xb-client-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xb-client-btn {
  border: 1px solid #d5e3ff;
  background: #f8fbff;
  color: #1e3a8a;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.xb-client-btn:hover {
  border-color: #9fbdfd;
  background: #eef4ff;
  color: #1d4ed8;
}

/* ===== Non-payment pages visual refresh ===== */
.xb-dashboard {
  background:
    radial-gradient(circle at 14% 0%, rgba(76, 132, 255, 0.12), transparent 28%),
    radial-gradient(circle at 86% 100%, rgba(87, 167, 255, 0.12), transparent 30%),
    var(--xb-bg);
}

.xb-side {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(233, 237, 247, 0.95);
  padding: 18px 12px 14px;
}

.xb-side h1 {
  margin: 8px 10px 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.xb-nav-item {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.18s ease;
}

.xb-nav-item.active,
.xb-nav-item:hover {
  border-color: #d9e5ff;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  color: #275fdf;
}

.xb-main {
  padding: 22px;
}

.xb-top {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 237, 247, 0.95);
  border-radius: 14px;
}

.xb-top h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.xb-btn-outline {
  border: 1px solid #d5e3ff;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.xb-btn-outline:hover {
  border-color: #9fc0ff;
  color: #1f56d4;
  background: #f8fbff;
}

.xb-card {
  border-radius: 14px;
  border: 1px solid #e8edf8;
  box-shadow: 0 8px 24px rgba(32, 57, 104, 0.05);
  padding: 16px;
}

.xb-card h3,
.xb-card h4 {
  margin: 0 0 12px;
  color: #1e293b;
  letter-spacing: 0.01em;
}

.xb-card .val {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.xb-card .tag {
  color: #3a8d6b;
}

.xb-list-item {
  border-bottom-color: #ecf1fb;
  padding: 11px 0;
}

.xb-table {
  border-spacing: 0;
}

.xb-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.xb-table tbody tr {
  transition: background-color 0.14s ease;
}

.xb-table tbody tr:nth-child(even) {
  background: #fbfcff;
}

.xb-table tbody tr:hover {
  background: #f2f7ff;
}

.xb-btn-sm,
.xb-btn-xs,
.xb-btn-inline {
  border-color: #d4e2ff;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.xb-btn-sm:hover,
.xb-btn-xs:hover,
.xb-btn-inline:hover {
  border-color: #a9c5ff;
  background: #f8fbff;
}

.xb-textarea,
.xb-input {
  border-radius: 10px;
}

.xb-ticket-bubble {
  border: 1px solid #e7edf9;
  border-radius: 12px;
}

.xb-ticket-bubble.me {
  background: #edf3ff;
  border-color: #d5e2ff;
}

.xb-ticket-bubble.staff {
  background: #f7f8fb;
}

.xb-plan-card {
  display: flex;
  flex-direction: column;
}

.xb-plan-content {
  font-size: 14px;
  line-height: 1.68;
  margin-bottom: 10px;
  word-break: break-word;
  white-space: normal;
}

.xb-plan-content p,
.xb-plan-content ul,
.xb-plan-content ol {
  margin: 0 0 8px;
}

.xb-plan-content ul,
.xb-plan-content ol {
  padding-left: 18px;
}

.xb-plan-content code {
  background: #f3f6fd;
  border: 1px solid #e3ebff;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
}

.xb-plan-content a {
  color: #2563eb;
  text-decoration: none;
}

.xb-plan-content a:hover {
  text-decoration: underline;
}

.xb-plan-content .card-container {
  max-width: 100%;
  margin: 0;
}

/* 与控制台深蓝玻璃主题一致；避免白底 + xb-muted 浅字导致无法阅读 */
.xb-route-home .xb-plan-content {
  color: rgba(234, 242, 255, 0.92);
}

.xb-plan-content .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 185, 255, 0.22);
  border-radius: 14px;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(80, 150, 255, 0.06);
  padding: 14px;
  margin: 0;
}

.xb-plan-content .feature-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 185, 255, 0.2);
  padding: 12px 14px;
  margin-bottom: 6px !important;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: left;
  font-size: 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.xb-plan-content .feature-item:last-child {
  margin-bottom: 0 !important;
}

.xb-plan-content .feature-item:hover {
  transform: translateY(-2px);
  border-color: rgba(160, 200, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.xb-plan-content .highlight {
  font-weight: 700;
  color: #fb7185;
}

.xb-plan-content .feature-item p {
  margin: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}

.xb-plan-content .icon {
  font-style: normal;
  font-size: 20px;
  margin-right: 10px;
  color: #fb7185;
  flex: 0 0 auto;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(251, 113, 133, 0.35));
}

.xb-emoji-prefix {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}

.xb-emoji-prefix img {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* ===== 控制台深蓝玻璃主题（全路由与首页一致） ===== */
.xb-route-home .xb-dashboard {
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 185, 255, 0.35), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.25), transparent 38%),
    linear-gradient(135deg, #0b1d3d 0%, #06122a 100%);
  min-height: 100vh;
}

.xb-route-home .xb-side {
  background: rgba(7, 21, 47, 0.75);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(100, 150, 255, 0.18);
}

.xb-route-home .xb-side h1 {
  color: #eaf2ff;
}

.xb-route-home .xb-nav-item {
  color: rgba(234, 242, 255, 0.88);
  border-color: transparent;
}

.xb-route-home .xb-nav-item.active,
.xb-route-home .xb-nav-item:hover {
  border-color: rgba(120, 185, 255, 0.35);
  background: linear-gradient(180deg, rgba(120, 185, 255, 0.14) 0%, rgba(99, 102, 241, 0.10) 100%);
  color: #dbeafe;
}

.xb-route-home .xb-main {
  padding: 24px;
}

.xb-route-home .xb-top {
  background: rgba(10, 24, 52, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(120, 185, 255, 0.22);
}

.xb-route-home .xb-top h2 {
  color: #eaf2ff;
}

.xb-route-home .xb-btn-outline {
  border: 1px solid rgba(120, 185, 255, 0.38);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
}

.xb-route-home .xb-btn-outline:hover {
  border-color: rgba(160, 200, 255, 0.55);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.xb-route-home .xb-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 185, 255, 0.24);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(80, 150, 255, 0.08),
    0 0 36px rgba(60, 120, 255, 0.18);
}

.xb-route-home .xb-card h3,
.xb-route-home .xb-card h4 {
  color: #eaf2ff;
}

.xb-route-home .xb-card .tit {
  color: rgba(234, 242, 255, 0.78);
}

.xb-route-home .xb-card .val {
  color: #eaf2ff;
}

.xb-route-home .xb-card .tag {
  color: rgba(160, 230, 255, 0.9);
}

.xb-route-home .xb-stat-grid .xb-card {
  padding: 18px;
}

.xb-route-home .xb-list-item {
  border-bottom-color: rgba(120, 185, 255, 0.18);
}

.xb-route-home .xb-list-item span,
.xb-route-home .xb-muted {
  color: rgba(234, 242, 255, 0.78);
}

.xb-route-home .xb-notice-rich,
.xb-route-home .xb-doc-body {
  color: rgba(234, 242, 255, 0.85);
}

.xb-route-home .xb-notice-rich a,
.xb-route-home .xb-doc-body a {
  color: #60a5fa;
}

.xb-route-home .xb-input,
.xb-route-home .xb-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 185, 255, 0.22);
  color: rgba(234, 242, 255, 0.9);
}

.xb-route-home .xb-input:focus,
.xb-route-home .xb-textarea:focus {
  border-color: rgba(160, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.10);
}

.xb-route-home .xb-btn-sm,
.xb-route-home .xb-btn-xs,
.xb-route-home .xb-btn-inline {
  border-color: rgba(120, 185, 255, 0.35);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
}

.xb-route-home .xb-btn-sm:hover,
.xb-route-home .xb-btn-xs:hover,
.xb-route-home .xb-btn-inline:hover {
  border-color: rgba(160, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.10);
}

.xb-route-home .xb-table th {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 242, 255, 0.85);
}

.xb-route-home .xb-table td {
  border-bottom-color: rgba(120, 185, 255, 0.16);
  color: rgba(234, 242, 255, 0.9);
}

.xb-route-home .xb-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.xb-route-home .xb-table tbody tr:hover {
  background: rgba(120, 185, 255, 0.1);
}

.xb-route-home .xb-nav-muted {
  color: rgba(180, 200, 230, 0.55) !important;
}

.xb-route-home .xb-nav-muted:hover {
  color: rgba(234, 242, 255, 0.92) !important;
}

.xb-route-home .xb-label {
  color: rgba(234, 242, 255, 0.78);
}

.xb-route-home .xb-btn-ghost {
  border-color: rgba(120, 185, 255, 0.32);
  color: rgba(234, 242, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.xb-route-home .xb-btn-ghost:hover {
  border-color: rgba(160, 200, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.xb-route-home .xb-btn-danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
}

.xb-route-home .xb-btn-danger:hover {
  border-color: rgba(252, 165, 165, 0.6);
  background: rgba(153, 27, 27, 0.35);
}

.xb-route-home .xb-hr {
  border-top-color: rgba(120, 185, 255, 0.22);
}

.xb-route-home .xb-ticket-bubble.me {
  background: rgba(120, 185, 255, 0.14);
  border: 1px solid rgba(120, 185, 255, 0.28);
  color: rgba(234, 242, 255, 0.92);
}

.xb-route-home .xb-ticket-bubble.staff {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 185, 255, 0.2);
  color: rgba(234, 242, 255, 0.88);
}

.xb-route-home .xb-ticket-time {
  color: rgba(234, 242, 255, 0.55);
}

.xb-route-home .xb-card .xb-plan-content a {
  color: #60a5fa;
}

.xb-route-home .xb-card .xb-plan-content code {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(120, 185, 255, 0.25);
  color: rgba(234, 242, 255, 0.9);
}

.xb-plan-card .xb-plan-buy {
  margin-top: auto;
}

#xb-outlet > .xb-muted {
  background: #fff;
  border: 1px dashed #dbe4f7;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.xb-route-home #xb-outlet > .xb-muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(120, 185, 255, 0.28);
  color: rgba(234, 242, 255, 0.85);
}

@media (max-width: 1060px) {
  .xb-dashboard {
    grid-template-columns: 1fr;
  }

  .xb-mobile-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: calc(10px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px))
      10px calc(12px + env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(233, 237, 247, 0.95);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  }

  .xb-route-home .xb-mobile-bar {
    background: rgba(7, 21, 47, 0.92);
    border-bottom-color: rgba(100, 150, 255, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }

  .xb-mobile-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
  }

  .xb-mobile-bar__brand {
    flex: 0 1 34%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    letter-spacing: 0.02em;
  }

  .xb-route-home .xb-mobile-bar__brand {
    color: #eaf2ff;
  }

  .xb-mobile-bar__controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .xb-mobile-nav-select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    border: 1px solid #d5e3ff;
    background: #fff
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E")
      no-repeat right 10px center;
    background-size: 12px;
    padding: 9px 30px 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
  }

  .xb-route-home .xb-mobile-nav-select {
    border-color: rgba(120, 185, 255, 0.38);
    background-color: rgba(255, 255, 255, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2393c5fd' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    color: #eaf2ff;
  }

  .xb-route-home .xb-mobile-nav-select option {
    color: #0f172a;
    background: #fff;
  }

  .xb-mobile-bar__logout {
    flex: 0 0 auto;
    border: 1px solid #d5e3ff;
    background: #f8fbff;
    color: #1e40af;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  .xb-route-home .xb-mobile-bar__logout {
    border-color: rgba(120, 185, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
  }

  .xb-side {
    display: none;
  }

  /* 仅写 .xb-main 会被后面全局的 .xb-route-home .xb-main { padding:24px } 盖掉 top，须提高特异性 */
  .xb-main {
    padding-left: 22px;
    padding-right: 22px;
    padding-bottom: 22px;
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
  }

  .xb-route-home .xb-main {
    padding: calc(84px + env(safe-area-inset-top, 0px)) 24px 24px 24px;
  }

  .xb-stat-grid,
  .xb-content-grid {
    grid-template-columns: 1fr;
  }

  .xb-two-col {
    grid-template-columns: 1fr;
  }

  .xb-client-list {
    grid-template-columns: 1fr;
  }

  .xb-plan-content .feature-item {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .xb-plan-content .feature-item {
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  .xb-plan-content .feature-item {
    font-size: 11px;
  }
}
