@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&display=swap');

:root {
  --uc-bg: #06111d;
  --uc-bg-deep: #040b14;
  --uc-surface: rgba(10, 21, 36, 0.9);
  --uc-surface-strong: rgba(8, 18, 31, 0.96);
  --uc-surface-soft: rgba(255, 255, 255, 0.03);
  --uc-line: rgba(139, 204, 255, 0.14);
  --uc-line-strong: rgba(139, 204, 255, 0.28);
  --uc-text: #f2f7ff;
  --uc-muted: #90a8c6;
  --uc-muted-strong: #d3e0f1;
  --uc-accent: #5fc2ff;
  --uc-accent-strong: #9ae6ff;
  --uc-accent-warm: #f1c76a;
  --uc-danger: #ff808c;
  --uc-success: #63dca6;
  --uc-radius-xl: 24px;
  --uc-radius-lg: 18px;
  --uc-radius-md: 14px;
  --uc-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body.user-center-page {
  margin: 0;
  color: var(--uc-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 194, 255, 0.19), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(103, 223, 202, 0.1), transparent 24%),
    radial-gradient(circle at 78% 42%, rgba(87, 126, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #06111d 0%, #091827 36%, #07131d 100%);
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.user-center-page a {
  color: inherit;
  text-decoration: none;
}

body.user-center-page img {
  display: block;
  max-width: 100%;
}

.account-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 104px auto 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.account-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--uc-line);
  border-radius: var(--uc-radius-xl);
  background:
    linear-gradient(180deg, rgba(13, 24, 38, 0.96), rgba(8, 16, 26, 0.99));
  box-shadow: var(--uc-shadow);
}

.account-sidebar-head {
  padding: 26px 22px 18px;
  border-bottom: 1px solid var(--uc-line);
  background:
    radial-gradient(circle at top right, rgba(90, 178, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%);
}

.account-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.account-user-meta strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.account-user-meta span {
  display: block;
  margin-top: 6px;
  color: var(--uc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.account-nav {
  padding: 14px;
}

.account-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  margin-bottom: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #eaf2fc;
  font-size: 14px;
  font-weight: 700;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

.account-nav a:last-child {
  margin-bottom: 0;
}

.account-nav a::after {
  content: ">";
  color: rgba(234, 242, 252, 0.5);
  font-size: 18px;
  transition: transform .22s ease, color .22s ease;
}

.account-nav a:hover,
.account-nav a.is-active {
  transform: translateX(4px);
  border-color: var(--uc-line-strong);
  background: rgba(90, 178, 255, 0.1);
  color: var(--uc-accent-strong);
}

.account-nav a:hover::after,
.account-nav a.is-active::after {
  color: var(--uc-accent-strong);
  transform: translateX(2px);
}

.account-nav a.account-exit {
  margin-top: 18px;
  justify-content: center;
  border-color: rgba(255, 107, 120, 0.2);
  background: rgba(255, 107, 120, 0.08);
  color: #ffd2d7;
}

.account-nav a.account-exit::after {
  display: none;
}

.account-main {
  display: grid;
  gap: 18px;
}

.account-hero,
.account-panel,
.account-table-panel,
.account-form-panel,
.account-article-list,
.account-support-list {
  overflow: hidden;
  border: 1px solid var(--uc-line);
  border-radius: var(--uc-radius-xl);
  background:
    linear-gradient(180deg, rgba(13, 24, 38, 0.94), rgba(9, 17, 28, 0.98));
  box-shadow: var(--uc-shadow);
}

.account-hero {
  position: relative;
  padding: 26px 28px;
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(90, 178, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%);
  pointer-events: none;
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.account-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(90, 178, 255, 0.14);
  color: var(--uc-accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.account-title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.account-copy {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--uc-muted);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.account-metrics > div,
.account-stat-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--uc-radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.account-metrics strong,
.account-stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.account-metrics span,
.account-stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--uc-muted);
  font-size: 12px;
}

.account-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 0;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.account-panel-head p,
.account-panel-head span {
  color: var(--uc-muted);
  font-size: 13px;
}

.account-panel-body {
  padding: 22px 24px 24px;
}

.account-notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--uc-muted-strong);
  font-size: 13px;
}

.account-notice-bar strong {
  color: var(--uc-accent-strong);
  font-size: 12px;
}

.data-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #e6effb;
  vertical-align: middle;
}

.data-table th {
  color: var(--uc-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-title {
  font-weight: 700;
}

.table-muted {
  color: var(--uc-muted) !important;
}

.table-badge,
.status-badge,
.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.table-badge,
.soft-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #eef5ff;
}

.status-badge.is-processing {
  background: rgba(245, 195, 95, 0.12);
  color: #ffd582;
}

.status-badge.is-success {
  background: rgba(91, 208, 138, 0.14);
  color: #9cf0bc;
}

.status-badge.is-danger {
  background: rgba(255, 107, 120, 0.14);
  color: #ffbdc4;
}

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

.ui-button,
.ui-button-secondary,
.ui-button-ghost,
.data-table button,
.submitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.ui-button,
.data-table button,
.submitlist {
  background: linear-gradient(135deg, var(--uc-accent) 0%, #3198ff 100%);
  color: #07111c;
}

.ui-button-secondary {
  background: linear-gradient(135deg, #7bd8a5 0%, #55c893 100%);
  color: #07111c;
}

.ui-button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #eef5ff;
}

.ui-button:hover,
.ui-button-secondary:hover,
.ui-button-ghost:hover,
.data-table button:hover,
.submitlist:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  padding: 32px 24px;
  color: var(--uc-muted);
  text-align: center;
}

.empty-state strong {
  color: var(--uc-text);
  font-size: 22px;
}

.promo-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--uc-radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.promo-link-card h3,
.account-card-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.promo-link-card p,
.account-card-copy {
  margin-top: 10px;
  color: var(--uc-muted);
  font-size: 13px;
  line-height: 1.75;
}

.promo-link-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--uc-muted-strong);
  font-size: 12px;
  word-break: break-all;
}

.promo-qr {
  width: 132px;
  height: 132px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
}

.account-filter-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.account-filter-tabs span,
.account-filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--uc-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.account-filter-tabs .is-active {
  background: rgba(90, 178, 255, 0.14);
  color: var(--uc-accent-strong);
}

.support-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.support-list {
  padding: 18px;
}

.support-list-item {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.support-list-item:last-child {
  margin-bottom: 0;
}

.support-list-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-list-item small {
  color: var(--uc-muted);
  font-size: 12px;
}

.support-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #eef5ff;
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  color: var(--uc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.field input[type="text"],
.field select,
.field textarea,
.modal-body input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f8fd;
  font-size: 14px;
}

.field textarea {
  min-height: 160px;
  padding: 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.modal-body input::placeholder {
  color: #8ea1bb;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.upload-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--uc-muted);
  font-size: 12px;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.support-detail {
  padding: 24px;
}

.support-detail-list {
  display: grid;
  gap: 14px;
}

.support-detail-list p {
  margin: 0;
  color: var(--uc-muted-strong);
  font-size: 14px;
  line-height: 1.8;
}

.support-detail-list strong {
  color: #ffffff;
}

.support-detail-image {
  width: 120px;
  height: 120px;
  margin-top: 8px;
  border-radius: 18px;
  object-fit: cover;
}

.help-list {
  padding: 18px;
}

.help-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.help-card:hover {
  transform: translateY(-3px);
  border-color: var(--uc-line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.help-card:last-child {
  margin-bottom: 0;
}

.help-card-media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.05);
}

.help-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.help-card-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.help-card-desc {
  margin-top: 10px;
  color: var(--uc-muted);
  font-size: 13px;
  line-height: 1.78;
}

.help-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.help-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8f1fd;
  font-size: 11px;
  font-weight: 700;
}

.main-box1 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(420px, calc(100% - 24px));
  transform: translate(-50%, -50%);
  border: 1px solid var(--uc-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #122135, #08131f);
  box-shadow: var(--uc-shadow);
}

.main-box1-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  font-size: 15px;
  font-weight: 800;
}

.main-box1-top img {
  cursor: pointer;
}

.main-box1 > div:nth-child(2) {
  padding: 0 20px;
  color: var(--uc-muted);
  font-size: 13px;
  line-height: 1.8;
}

.main-box1 > div:nth-child(3),
.main-box1 > div:nth-child(4) {
  padding: 16px 20px 20px;
}

.modal-body p {
  margin: 0 0 10px;
  color: #eef5ff;
  font-size: 13px;
  font-weight: 700;
}

.main-box1 .button {
  width: 100%;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.pagination li,
.pagination a,
.pagination span,
.pagination p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--uc-muted-strong);
  font-size: 12px;
}

.pagination .active span,
.pagination a.cur {
  background: rgba(90, 178, 255, 0.14);
  color: var(--uc-accent-strong) !important;
}

@media (max-width: 1180px) {
  .account-shell,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  body.user-center-page header,
  body.user-center-page footer,
  body.user-center-page .float_right {
    display: none;
  }

  .account-shell {
    width: calc(100% - 20px);
    margin: 16px auto 24px;
    gap: 16px;
  }

  .account-sidebar-head,
  .account-panel-body,
  .support-form,
  .support-detail,
  .help-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-panel-head {
    padding: 18px 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .account-hero {
    padding: 20px 16px;
  }

  .account-metrics,
  .account-grid-2,
  .promo-link-card,
  .help-card {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 620px;
  }

  .help-card-media {
    aspect-ratio: 16 / 9;
  }

  .support-list {
    padding: 16px;
  }
}
