.subhub-page {
  display: grid;
  gap: var(--subhub-space-5);
}

.subhub-section-stack {
  display: grid;
  gap: var(--subhub-space-4);
}

.subhub-card,
.subhub-panel,
.subhub-empty-state,
.subhub-notice {
  border: 1px solid var(--subhub-line);
  border-radius: var(--subhub-radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--subhub-shadow-sm);
}

.subhub-card {
  padding: var(--subhub-space-4);
}

.subhub-panel {
  overflow: hidden;
}

.subhub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--subhub-space-3);
  padding: var(--subhub-space-3) var(--subhub-space-4);
  border-bottom: 1px solid var(--subhub-line);
}

.subhub-panel-body {
  padding: var(--subhub-space-4);
}

.subhub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--subhub-radius-pill);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.subhub-badge.is-primary {
  border-color: rgba(83, 107, 145, 0.18);
  color: var(--subhub-primary-deep);
  background: rgba(83, 107, 145, 0.14);
}

.subhub-badge.is-success {
  border-color: rgba(109, 150, 141, 0.18);
  color: var(--subhub-success);
  background: rgba(109, 150, 141, 0.14);
}

.subhub-badge.is-warning {
  border-color: rgba(188, 149, 98, 0.2);
  color: var(--subhub-warning);
  background: rgba(188, 149, 98, 0.14);
}

.subhub-badge.is-danger {
  border-color: rgba(156, 107, 101, 0.2);
  color: var(--subhub-danger);
  background: rgba(156, 107, 101, 0.14);
}

.subhub-badge.is-neutral {
  border-color: var(--subhub-line);
  color: var(--subhub-muted);
  background: rgba(102, 114, 134, 0.1);
}

.subhub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--subhub-radius-pill);
  color: #fff;
  background: var(--subhub-primary);
  box-shadow: 0 10px 20px rgba(34, 51, 79, 0.14);
}

.subhub-button:hover,
.subhub-button:focus {
  color: #fff;
  border-color: var(--subhub-primary-deep);
  background: var(--subhub-primary-deep);
}

.subhub-button.is-secondary {
  border-color: var(--subhub-line-strong);
  color: var(--subhub-primary-deep);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.subhub-button.is-secondary:hover,
.subhub-button.is-secondary:focus {
  border-color: rgba(83, 107, 145, 0.28);
  color: var(--subhub-primary-deep);
  background: rgba(83, 107, 145, 0.1);
}

.subhub-password-field {
  position: relative;
}

.subhub-password-field .subhub-password-input {
  padding-right: 46px !important;
}

.subhub-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--subhub-muted);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.subhub-password-toggle:hover,
.subhub-password-toggle:focus {
  color: var(--subhub-primary);
  background: rgba(83, 107, 145, 0.1);
  outline: none;
}

body.subhub-user-center {
  min-height: 100vh;
  color: var(--subhub-text);
  background:
    radial-gradient(circle at top left, rgba(183, 149, 98, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(83, 107, 145, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfaf8 0%, var(--subhub-front-bg) 46%, var(--subhub-bg) 100%) !important;
}

body.subhub-user-center .bg-content {
  background: transparent !important;
}

body.subhub-user-center .fly-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--subhub-line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(34, 51, 79, 0.08);
}

body.subhub-user-center .fly-logo,
body.subhub-user-center .fly-nav a,
body.subhub-user-center .fly-nav-user a,
body.subhub-user-center .fly-mobile-shop-link {
  color: var(--subhub-primary-deep) !important;
}

body.subhub-user-center .user-logo img,
body.subhub-user-center .user-avatar {
  border-radius: 14px;
}

body.subhub-user-center .fly-panel,
body.subhub-user-center .layui-card,
body.subhub-user-center .sh-section {
  border: 1px solid var(--subhub-line);
  border-radius: var(--subhub-radius-md);
  box-shadow: var(--subhub-shadow-sm);
}

.subhub-field,
.subhub-select,
.subhub-textarea {
  width: 100%;
  border: 1px solid var(--subhub-line);
  border-radius: var(--subhub-radius-sm);
  color: var(--subhub-text);
  background: rgba(255, 255, 255, 0.94);
}

.subhub-field:focus,
.subhub-select:focus,
.subhub-textarea:focus {
  border-color: rgba(83, 107, 145, 0.42);
  box-shadow: 0 0 0 4px rgba(83, 107, 145, 0.12);
}

.subhub-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--subhub-space-3);
  padding: var(--subhub-space-4);
  color: var(--subhub-muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)),
    rgba(83, 107, 145, 0.08);
}

.subhub-order-risk-notice {
  width: min(100%, 1040px);
  margin: 22px auto 0;
  color: var(--subhub-text);
}

.subhub-order-risk-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 4px;
  color: var(--subhub-muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.8;
}

.subhub-order-risk-disclaimer i {
  margin-top: 5px;
  color: var(--subhub-accent);
}

.subhub-order-risk-disclaimer strong {
  color: var(--subhub-primary-deep);
}

.subhub-order-risk-card {
  padding: 20px 24px;
  border: 1px solid rgba(188, 149, 98, 0.2);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 14px 36px rgba(34, 51, 79, 0.06);
}

.subhub-order-risk-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--subhub-accent);
  font-size: 16px;
  font-weight: 800;
}

.subhub-order-risk-title i {
  color: var(--subhub-accent);
}

.subhub-order-risk-card ol {
  margin: 0;
  padding-left: 22px;
  color: var(--subhub-primary-deep);
  font-size: 15px;
  line-height: 1.9;
}

.subhub-order-risk-action {
  margin: 14px 0 0;
  color: var(--subhub-danger);
  font-size: 15px;
  font-weight: 800;
}

.subhub-empty-state {
  display: grid;
  justify-items: center;
  gap: var(--subhub-space-2);
  padding: var(--subhub-space-6) var(--subhub-space-4);
  color: var(--subhub-muted);
  text-align: center;
}

.subhub-empty-state::before {
  content: "";
  width: 96px;
  height: 68px;
  background: url("/assets/subhub/brand/empty-state.svg") center/contain no-repeat;
}

.subhub-surface-menu {
  border: 1px solid var(--subhub-line);
  border-radius: var(--subhub-radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--subhub-shadow-md);
  backdrop-filter: blur(18px);
}

.subhub-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 6px;
  margin-bottom: 4px;
}

.sh-badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--subhub-radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.sh-badge-capsule.user {
  color: var(--subhub-primary-deep);
  background: rgba(83, 107, 145, 0.1);
  border-color: rgba(83, 107, 145, 0.18);
}

.sh-badge-capsule.user:hover,
.sh-badge-capsule.user.active {
  color: #fff;
  background: var(--subhub-primary);
  border-color: var(--subhub-primary);
}

.sh-badge-capsule.merchant {
  color: var(--subhub-primary-deep);
  background: rgba(83, 107, 145, 0.1);
  border-color: rgba(83, 107, 145, 0.18);
}

.sh-badge-capsule.merchant:hover,
.sh-badge-capsule.merchant.active {
  color: #fff;
  background: var(--subhub-primary);
  border-color: var(--subhub-primary);
}

.sh-badge-capsule.supplier {
  color: var(--subhub-primary-deep);
  background: rgba(83, 107, 145, 0.1);
  border-color: rgba(83, 107, 145, 0.18);
}

.sh-badge-capsule.supplier:hover,
.sh-badge-capsule.supplier.active {
  color: #fff;
  background: var(--subhub-primary);
  border-color: var(--subhub-primary);
}

.sh-badge-capsule i {
  font-size: 13px;
}

@media (max-width: 767px) {
  .subhub-page {
    gap: var(--subhub-space-4);
  }

  .subhub-card,
  .subhub-panel-body,
  .subhub-notice {
    padding: var(--subhub-space-3);
  }

  .subhub-order-risk-notice {
    margin-top: 16px;
  }

  .subhub-order-risk-disclaimer {
    font-size: 14px;
  }

  .subhub-order-risk-card {
    padding: 16px;
    border-radius: 14px;
  }

  .subhub-order-risk-card ol {
    font-size: 14px;
    line-height: 1.8;
  }
}
