/* === LOC: CONTENT-WRAPPER === */
[hidden] {
  display: none !important;
}

.content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* === LOC: TOPBAR === */
.topbar {
  align-items: center;
  backdrop-filter: saturate(150%) blur(6px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(230, 233, 241, 0.9);
  box-shadow: 0 6px 16px rgba(90, 114, 234, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  height: 54px;
  justify-content: flex-end;
  padding-left: 24px;
  padding-right: 24px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 998;
}

.topbar.is-scrolled {
  box-shadow: 0 10px 24px rgba(48, 74, 130, 0.14);
}

.topbar-right {
  align-items: center;
  color: #999;
  display: flex;
  flex-direction: row;
  gap: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  height: 100%;
  line-height: 25px;
  text-align: left;
  white-space: nowrap;
}

.book-btn-server,
.book-btn-invoice {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e6;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  height: 30px;
  justify-content: center;
  margin-left: 0;
  transition: all 0.2s ease;
  width: 104px;
}

.book-btn-server:hover,
.book-btn-invoice:hover {
  border-color: #bfceea;
  box-shadow: 0 4px 14px rgba(30, 74, 143, 0.12);
  transform: translateY(-1px);
}

.book-btn-server span,
.book-btn-invoice span {
  color: #686868;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.book-icon {
  height: 18px;
  margin-right: 3px;
  width: 18px;
}

.vipinfo-btn {
  align-items: center;
  background: linear-gradient(95deg, #fff9f0, #fbdfb6);
  border: 2px solid #fff;
  border-radius: 15px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  height: 30px;
  justify-content: center;
  margin-left: 0;
  padding: 0 12px 0 10px;
  transition: all 0.2s ease;
}

.vipinfo-btn:hover {
  box-shadow: 0 5px 14px rgba(120, 56, 14, 0.2);
  transform: translateY(-1px);
}

.vipinfo-btn > span {
  color: #78380e;
  font-size: 14px;
}

.vipinfo-btn .vip-icon {
  height: 20px;
  margin-bottom: 2px;
  margin-right: 4px;
  width: 20px;
}

.login-btn {
  align-items: center;
  background: linear-gradient(135deg, #0d76ff, #0052d9 62%, #0a46b3);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 82, 217, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  justify-content: center;
  line-height: 20px;
  margin-left: 0;
  min-width: 76px;
  padding: 6px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  transition: left 0.5s ease;
}

.login-btn:hover {
  box-shadow: 0 10px 24px rgba(0, 82, 217, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.login-btn:hover::after {
  left: 130%;
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 82, 217, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-btn.is-logged-in {
  background: linear-gradient(135deg, #13a978, #02886d 62%, #0f6b5d);
  box-shadow: 0 8px 20px rgba(2, 136, 109, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  letter-spacing: 0;
}

.login-btn.is-logged-in::after {
  display: none;
}

.member-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  position: relative;
}

.member-actions-guest,
.member-actions-auth {
  align-items: center;
  display: flex;
  gap: 10px;
}

.member-actions-guest[hidden],
.member-actions-auth[hidden],
.user-hub[hidden],
.user-menu-popover[hidden],
.user-balance-popover[hidden] {
  display: none !important;
}

.member-actions[data-auth-state="guest"] .member-actions-auth,
.member-actions[data-auth-state="logged-in"] .member-actions-guest {
  display: none;
}

.user-hub {
  align-items: center;
  display: flex;
  gap: 12px;
  position: relative;
}

.user-balance-combo {
  align-items: center;
  background: linear-gradient(90deg, #f6f3ee, #fbdfb6);
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  color: #78380e;
  cursor: pointer;
  display: inline-flex;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  gap: 0;
  height: 39px;
  line-height: 17px;
  padding: 3px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: fit-content;
}

.user-balance-combo:hover {
  box-shadow: 0 8px 18px rgba(120, 56, 14, 0.16);
  filter: brightness(1.01);
  transform: translateY(-1px);
}

.user-balance-main {
  align-items: center;
  display: inline-flex;
  gap: 0;
  padding-right: 0;
}

.user-balance-main > span {
  color: #78380e;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px;
  margin-left: 4px;
  text-align: left;
}

.user-balance-main strong {
  color: #78380e;
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.user-balance-icon {
  height: 33px;
  margin-bottom: 3px;
  width: 33px;
}

.user-balance-divider {
  background: rgba(120, 56, 14, 0.18);
  border-radius: 999px;
  display: block;
  height: 20px;
  margin-left: 6px;
  width: 1px;
}

.user-balance-topup {
  align-items: center;
  background: linear-gradient(180deg, #f9f6f5, #f9f7f5 67%, #fff);
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #8f470f;
  display: inline-flex;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  line-height: 12px;
  margin-left: 6px;
  min-width: 88px;
  padding: 5px 16px;
}

.user-avatar-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.user-avatar-img {
  border-radius: 50%;
  display: block;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.user-center-avatar {
  border: 1px solid #ecd2a3;
  border-radius: 50%;
  display: block;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.user-menu-popover {
  background: #fff;
  border: 1px solid #e0e0e6;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding: 8px;
  position: absolute;
  right: -16px;
  top: 45px;
  width: 228px;
  z-index: 1030;
}

.user-menu-brief {
  border-bottom: 1px solid #f0f1f6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
  padding: 6px 10px 10px;
}

.user-menu-brief-title,
.user-menu-brief-subtitle {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  text-align: left;
}

.user-menu-brief-title {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-brief-subtitle {
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.user-menu-popover:not([hidden]),
.user-balance-popover:not([hidden]) {
  animation: user-popin 0.18s ease;
}

.user-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #242d48;
  cursor: pointer;
  display: flex;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  gap: 8px;
  line-height: 20px;
  min-height: 44px;
  padding: 12px 15px;
  text-align: left;
  transition: background-color 0.2s ease;
  width: 100%;
}

.user-menu-item:hover {
  background: #f1f2f2;
}

.user-menu-item.is-danger {
  color: #3b465e;
}

.user-menu-icon {
  align-items: center;
  color: #4b5563;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.user-menu-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.user-balance-popover {
  background: linear-gradient(139deg, #fadbaf, #fcf2c9 51%, #fadbaf);
  border-radius: 8px;
  box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow: hidden;
  padding: 14px 14px 16px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(438px, calc(100vw - 12px));
  z-index: 1020;
}

.user-balance-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.user-balance-user {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.user-balance-user .user-center-avatar {
  height: 28px;
  width: 28px;
}

.user-center-overlay {
  align-items: flex-start;
  backdrop-filter: blur(10px);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 26%),
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 24%),
    rgba(18, 24, 39, 0.34);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  overflow: auto;
  z-index: 2200;
}

.user-center-overlay[hidden] {
  display: none !important;
}

.user-center-dialog {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(16, 24, 40, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
  max-height: min(880px, calc(100vh - 48px));
  margin: 0 auto;
  overflow: hidden;
  padding: 22px;
  width: min(1180px, calc(100vw - 36px));
}

.user-center-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid #ebf1f7;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 18px;
}

.user-center-sidebar-title {
  color: #0f172a;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 12px;
  position: relative;
}

.user-center-sidebar-title::after {
  background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 72px;
}

.user-center-nav {
  background: #f8fafc;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  border-radius: 12px;
  color: #4b5563;
  cursor: pointer;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  padding: 0 14px;
  text-align: left;
  transition: all 0.2s ease;
}

.user-center-nav:hover,
.user-center-nav.is-active {
  background: #eff6ff;
  border-color: #dbeafe;
  border-left-color: #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
  color: #0f172a;
  transform: translateX(2px);
  font-weight: 700;
}

.user-center-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.user-center-toolbar {
  align-items: center;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(247, 249, 252, 0.88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(219, 226, 234, 0.72);
  display: flex;
  justify-content: space-between;
  padding: 2px 4px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.user-center-section-title {
  color: #111827;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.user-center-section-subtitle {
  color: #6b7280;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  margin: 6px 0 0;
}

.user-center-close {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.user-center-close:hover,
.user-feedback-close:hover {
  background: #f8fbff;
  border-color: #c8d5e6;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.user-center-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.user-center-summary-card,
.user-center-detail-card,
.user-center-feedback-card,
.user-center-section[data-user-center-panel="devices"],
.user-center-section[data-user-center-panel="exports"],
.user-center-section[data-user-center-panel="orders"] {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.user-center-summary-card {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e8eef7;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.user-center-summary-card::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 68%);
  content: "";
  height: 180px;
  pointer-events: none;
  position: absolute;
  right: -40px;
  top: -70px;
  width: 180px;
}

.user-center-summary-left,
.user-center-user {
  align-items: center;
  display: flex;
}

.user-center-user {
  gap: 12px;
}

.user-center-summary-card .user-center-avatar {
  border: 2px solid rgba(252, 211, 77, 0.46);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.12);
  height: 56px;
  width: 56px;
}

.user-center-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-center-user-meta strong {
  color: #111827;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.user-center-code,
.user-center-login-tip {
  color: #6b7280;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
}

.user-center-summary-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.user-center-text-btn {
  background: transparent;
  border: 0;
  color: #9a3412;
  cursor: pointer;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.user-center-logout {
  background: linear-gradient(135deg, #ef4444, #e11d48);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  height: 38px;
  min-width: 112px;
  padding: 0 18px;
}

.user-center-text-btn:hover,
.user-center-logout:hover,
.user-center-list-item-action:hover,
.user-center-feedback-submit:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.user-center-balance-title {
  color: #78380e;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  height: 18px;
  line-height: 18px;
  margin-bottom: 12px;
  text-align: center;
}

.user-center-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}

.user-center-card {
  background: #fff;
  border: 1px solid #f3e4cf;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 152px;
  padding: 12px;
  text-align: center;
}

.user-center-card-label {
  color: #666;
  display: flex;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 18px;
  margin-bottom: 16px;
  position: relative;
  gap: 4px;
}

.user-center-card-help {
  align-items: center;
  border: 1px solid #d5d9e3;
  border-radius: 50%;
  color: #9aa3b2;
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  height: 14px;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
  outline: none;
  width: 14px;
}

.user-center-card-tooltip {
  background: rgba(44, 46, 52, 0.94);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  color: #fff;
  left: 50%;
  line-height: 1.45;
  max-width: 168px;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  top: -54px;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  z-index: 2;
}

.user-center-card-tooltip::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(44, 46, 52, 0.94);
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.user-center-card-label:hover .user-center-card-tooltip,
.user-center-card-label:focus-within .user-center-card-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.user-center-card-value {
  color: #f64a00;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  margin-bottom: 8px;
  min-height: 22px;
  text-align: center;
}

.user-center-card-points-desc {
  align-items: center;
  color: #7c8393;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 8px;
  font-weight: 600;
  gap: 2px;
  line-height: 11px;
  margin-bottom: 8px;
  text-align: center;
}

.user-center-card-points-desc span {
  display: block;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.user-center-card-tip {
  align-items: center;
  border-top: 1px solid #e0e0e0;
  color: #666d80;
  display: flex;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  justify-content: center;
  margin-top: auto;
  min-height: 34px;
  padding-top: 10px;
  text-align: center;
  white-space: nowrap;
}

.user-center-card-tip-points {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  padding-top: 8px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.user-center-card-tip-points span {
  display: block;
  width: 100%;
}

#userCenterVipText {
  align-items: center;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 4px;
  white-space: normal;
  word-break: break-word;
}

.user-center-card.is-vip {
  background: linear-gradient(135deg, #ff9800, #ff6b00);
  border-color: rgba(255, 150, 0, 0.34);
  box-shadow: 0 16px 26px rgba(249, 115, 22, 0.22);
}

.user-center-card.is-vip .user-center-card-label,
.user-center-card.is-vip .user-center-card-value,
.user-center-card.is-vip .user-center-card-tip {
  color: #fff;
}

.user-center-card.is-vip .user-center-card-tip {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.user-center-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.user-center-primary,
.user-center-secondary {
  border-radius: 6px;
  cursor: pointer;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  height: 30px;
  line-height: 30px;
  max-width: 232px;
  width: 100%;
}

.user-center-primary {
  background: linear-gradient(177deg, #ff6700, #fc3134);
  border: 0;
  color: #fff;
}

.user-center-secondary {
  background: #fff;
  border: 1px solid #f97316;
  color: #e74d1f;
  margin-top: 0;
}

.user-feedback-overlay {
  align-items: flex-start;
  backdrop-filter: blur(10px);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 26%),
    rgba(18, 24, 39, 0.36);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  overflow: auto;
  z-index: 2200;
}

.user-feedback-overlay[hidden] {
  display: none !important;
}

.user-feedback-dialog {
  background: linear-gradient(180deg, #fff7ec 0%, #fff 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(16, 24, 40, 0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow: hidden;
  padding: 22px;
  width: min(1080px, calc(100vw - 36px));
}

.user-feedback-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(247, 221, 186, 0.72);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.user-feedback-title {
  color: #111827;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.user-feedback-subtitle {
  color: #6b7280;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  margin: 6px 0 0;
}

.user-feedback-close {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.user-feedback-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  min-height: 0;
}

.user-feedback-form-card,
.user-feedback-history-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  border: 1px solid #f6e4ca;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  min-height: 0;
  padding: 24px;
}

.user-feedback-form-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.user-feedback-form-head strong {
  color: #111827;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.user-feedback-form-head span {
  color: #6b7280;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
}

.user-feedback-history-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.user-feedback-history-card::before {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0));
  border-radius: 20px 20px 0 0;
  content: "";
  height: 52px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.user-feedback-history-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  min-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.user-feedback-history-list::-webkit-scrollbar,
.user-center-section::-webkit-scrollbar {
  width: 8px;
}

.user-feedback-history-list::-webkit-scrollbar-thumb,
.user-center-section::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.user-feedback-history-list::-webkit-scrollbar-track,
.user-center-section::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.72);
  border-radius: 999px;
}

.user-feedback-history-empty {
  align-items: center;
  color: #94a3b8;
  display: flex;
  flex: 1;
  font-size: 14px;
  justify-content: center;
  min-height: 260px;
  text-align: center;
}

.user-feedback-history-item {
  background: linear-gradient(180deg, #fffdf8 0%, #fff7eb 100%);
  border: 1px solid #f7ddba;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.08);
  padding: 16px;
}

.user-feedback-history-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.user-feedback-status {
  border: 1px solid #f3d4a8;
  border-radius: 999px;
  color: #9a3412;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

.user-feedback-status.is-processing {
  border-color: #c7d2fe;
  color: #1d4ed8;
}

.user-feedback-status.is-resolved {
  border-color: #bbf7d0;
  color: #166534;
}

.user-feedback-time,
.user-feedback-history-meta {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.user-feedback-history-content {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.user-feedback-history-reply {
  background: #fff;
  border: 1px solid #f3e8d8;
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px 14px;
}

.user-feedback-history-reply strong {
  color: #111827;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.user-feedback-history-reply p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.user-center-primary:hover,
.user-center-secondary:hover {
  filter: brightness(0.98);
}

.user-center-detail-card {
  border: 1px solid #eaf0f7;
  padding: 18px 24px;
}

.user-center-detail-row {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}

.user-center-detail-row:last-child {
  border-bottom: 0;
}

.user-center-detail-row span {
  color: #6b7280;
  font-size: 15px;
}

.user-center-detail-row strong {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.user-center-block-head {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
}

.user-center-block-head strong {
  color: #111827;
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.user-center-block-head span {
  color: #6b7280;
  font-size: 13px;
}

.user-center-list {
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}

.user-center-list-empty {
  align-items: center;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  gap: 10px;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

.user-center-list-item {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 0;
}

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

.user-center-list-item-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.user-center-list-item-title {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.user-center-list-item-meta,
.user-center-list-item-desc {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.user-center-list-item-action {
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  color: #111827;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  height: 38px;
  min-width: 96px;
  padding: 0 16px;
}

.user-center-list-item-action.is-danger {
  border-color: #fecaca;
  color: #dc2626;
}

.user-center-feedback-card {
  border: 1px solid #eaf0f7;
  padding: 26px 28px 30px;
}

.user-center-form-label {
  color: #111827;
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.user-center-form-label span {
  color: #ef4444;
  margin-left: 4px;
}

.user-center-feedback-card textarea,
.user-center-feedback-card input {
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

.user-center-feedback-card textarea {
  height: 180px;
  resize: vertical;
}

.user-center-feedback-card textarea:focus,
.user-center-feedback-card input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.user-center-form-count {
  color: #64748b;
  font-size: 13px;
  margin: 8px 0 20px;
  text-align: right;
}

.user-center-feedback-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.user-center-feedback-submit {
  background: linear-gradient(135deg, #0d76ff, #0052d9);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 26px rgba(13, 118, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  height: 44px;
  min-width: 284px;
}

.user-center-feedback-submit:disabled,
.user-center-list-item-action:disabled,
.user-center-logout:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@keyframes user-popin {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body.modal-open {
  overflow: hidden;
}

