.longhua-banner {
  margin: 0 1rem 0.75rem;
  border: 1px solid color-mix(in oklch, var(--primary, #3080ff) 28%, var(--border, #d6d6d6));
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--primary, #3080ff) 14%, transparent), transparent 52%),
    color-mix(in oklch, var(--background, #fff) 94%, var(--primary, #3080ff));
  color: var(--foreground, #111);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.longhua-banner__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.875rem 1.125rem;
}

.longhua-banner__title {
  margin: 0;
  text-align: left;
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.longhua-banner__mark {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #3080ff 55%, #a855f7);
  box-shadow: 0 0 0 0.35rem rgba(48, 128, 255, 0.12);
}

.longhua-banner--public {
  margin-top: 4.75rem;
}

@media (min-width: 768px) {
  header [class*="hidden"][class*="lg:block"],
  header [class~="hidden"][class~="lg:block"] {
    display: block !important;
  }
}

.longhua-fallback-topnav {
  position: relative;
  z-index: 60;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.25rem;
  pointer-events: auto;
}

.longhua-fallback-topnav a {
  position: relative;
  z-index: 61;
  border-radius: 0.375rem;
  padding: 0.375rem 0.625rem;
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}

.longhua-fallback-topnav a:hover {
  color: var(--foreground, #111);
  background: color-mix(in oklch, var(--foreground, #111) 8%, transparent);
}

@media (max-width: 1023px) {
  .longhua-fallback-topnav {
    display: none !important;
  }
}

.longhua-affiliate-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.56);
}

.longhua-affiliate-dialog {
  width: min(960px, 96vw);
  max-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
  background: var(--background, #111);
  color: var(--foreground, #f6f6f6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.longhua-affiliate-head,
.longhua-affiliate-foot {
  flex: 0 0 auto;
  border-color: var(--border, rgba(255, 255, 255, 0.16));
  padding: 1rem;
}

.longhua-affiliate-head {
  border-bottom-width: 1px;
}

.longhua-affiliate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top-width: 1px;
}

.longhua-affiliate-foot-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.longhua-affiliate-button-primary {
  border-color: color-mix(in oklch, var(--primary, #3080ff) 62%, var(--border, rgba(255, 255, 255, 0.16)));
  background: var(--primary, #3080ff);
  color: var(--primary-foreground, #fff);
}

.longhua-affiliate-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.longhua-send-redemption-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.75rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.longhua-send-redemption-label {
  grid-column: 1 / -1;
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.8125rem;
}

.longhua-send-redemption-select {
  min-width: 0;
  min-height: 2.25rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  background: var(--background, #111);
  color: var(--foreground, #f6f6f6);
}

.longhua-send-redemption-message {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.8125rem;
}

.longhua-redemption-bulk-delete {
  min-height: 2.5rem;
  border: 1px solid color-mix(in oklch, var(--destructive, #ef4444) 62%, var(--border, rgba(255, 255, 255, 0.16)));
  border-radius: 0.5rem;
  padding: 0 1rem;
  background: var(--destructive, #ef4444);
  color: var(--destructive-foreground, #fff);
  font-weight: 700;
  white-space: nowrap;
}

.longhua-redemption-bulk-delete--floating {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 9998;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.longhua-redemption-bulk-delete:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.longhua-personal-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}

.longhua-personal-notice-dialog {
  width: min(460px, 94vw);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--background, #111);
  color: var(--foreground, #f6f6f6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.longhua-personal-notice-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.longhua-personal-notice-content {
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: break-word;
}

.longhua-personal-notice-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.longhua-personal-notice-actions button {
  min-height: 2.25rem;
  border: 1px solid var(--primary, #3080ff);
  border-radius: 0.5rem;
  padding: 0 0.875rem;
  background: var(--primary, #3080ff);
  color: var(--primary-foreground, #fff);
}

.longhua-system-notice-records {
  max-height: min(360px, 42vh);
  overflow: auto;
  margin: 0.75rem 2rem 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
}

.longhua-system-notice-records-title {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  font-weight: 700;
}

.longhua-system-notice-record {
  padding: 0.875rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.16));
}

.longhua-system-notice-record:last-child {
  border-bottom: 0;
}

.longhua-system-notice-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.longhua-system-notice-record-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  background: color-mix(in oklch, var(--primary, #3080ff) 14%, transparent);
  color: var(--primary, #3080ff);
  font-size: 0.75rem;
}

.longhua-system-notice-record p {
  margin: 0;
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}

.longhua-system-notice-record-time {
  margin-top: 0.5rem;
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.75rem;
}

.longhua-affiliate-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.longhua-affiliate-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.longhua-affiliate-subtitle {
  margin-top: 0.25rem;
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.875rem;
}

.longhua-affiliate-close,
.longhua-affiliate-button {
  min-height: 2.25rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  background: transparent;
  color: inherit;
}

.longhua-affiliate-close {
  width: 2.25rem;
  padding: 0;
  font-size: 1.25rem;
}

.longhua-affiliate-body {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}

.longhua-affiliate-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.longhua-affiliate-card {
  min-width: 0;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: color-mix(in oklch, var(--background, #111) 88%, var(--primary, #3080ff));
}

.longhua-affiliate-label {
  color: var(--muted-foreground, #a3a3a3);
  font-size: 0.75rem;
}

.longhua-affiliate-value {
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.125rem;
  font-weight: 700;
}

.longhua-affiliate-table-wrap {
  overflow: auto;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 0.5rem;
}

.longhua-affiliate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.longhua-affiliate-table th,
.longhua-affiliate-table td {
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  padding: 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.longhua-affiliate-table th {
  color: var(--muted-foreground, #a3a3a3);
  font-weight: 600;
}

.longhua-affiliate-table tr:last-child td {
  border-bottom: 0;
}

.longhua-affiliate-userlink {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary, #3080ff);
  font-weight: 600;
}

.longhua-affiliate-empty,
.longhua-affiliate-loading,
.longhua-affiliate-error {
  padding: 2rem 1rem;
  color: var(--muted-foreground, #a3a3a3);
  text-align: center;
}

.longhua-affiliate-error {
  color: var(--destructive, #ef4444);
}

.longhua-affiliate-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 640px) {
  .longhua-affiliate-summary {
    grid-template-columns: 1fr;
  }

  .longhua-send-redemption-panel {
    grid-template-columns: 1fr;
  }

  .longhua-redemption-bulk-delete {
    width: 100%;
  }

  .longhua-redemption-bulk-delete--floating {
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .longhua-system-notice-records {
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

@media (max-width: 640px) {
  .longhua-banner {
    margin-right: 0.75rem;
    margin-left: 0.75rem;
  }

  .longhua-banner__inner {
    align-items: flex-start;
    padding: 0.85rem;
  }
}
