:root {
  --bg-0: #121212;
  --bg-1: #1e1e1e;
  --bg-2: #26262b;
  --text-1: #f4f4f5;
  --text-2: #c6c6cc;
  --text-3: #8f8f98;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #d0bcff;
  --primary-rgb: 208, 188, 255;
  --primary-soft: rgba(208, 188, 255, 0.14);
  --primary-line: rgba(208, 188, 255, 0.34);
  --primary-text: #eadcff;
  --blue: #f8bbd0;
  --gold: #ffd54f;
  --teal: #80cbc4;
  --indigo: #d0bcff;
  --grad-main: #d0bcff;
  --grad-player: linear-gradient(135deg, #ad1457, #ec407a);
  --grad-manager: linear-gradient(135deg, #00695c, #26a69a);
  --grad-boss: linear-gradient(135deg, #e65100, #ffb300);
  --grad-service: linear-gradient(135deg, #c2185b, #ff7043);
  --grad-examiner: linear-gradient(135deg, #00695c, #26c6da);
  --grad-avatar: linear-gradient(135deg, #ad1457, #ec407a);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
  color-scheme: dark;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(var(--primary-rgb), 0.5);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.9);
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  background-clip: padding-box;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

p {
  line-height: 1.7;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a,
button {
  -webkit-user-drag: none;
}

/* ===== 登录页背景 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 680px at 86% -14%, rgba(208, 188, 255, 0.26), transparent 62%),
    radial-gradient(820px 600px at -6% 106%, rgba(208, 188, 255, 0.14), transparent 60%),
    radial-gradient(600px 420px at 74% 92%, rgba(208, 188, 255, 0.07), transparent 62%),
    linear-gradient(158deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2));
}

/* ===== 通用小部件 ===== */
.brand-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--grad-main);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.42);
}

.brand-mark.brand-avatar-mark {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-avatar-mark svg {
  width: 60%;
  height: 60%;
}

/* 未设置头像时全角色统一的默认头像：粉色底 + 白色小人 */
.avatar-default {
  color: #fff;
  background: var(--grad-avatar);
}

.brand-mark.brand-avatar-mark.avatar-default {
  background: var(--grad-avatar);
}

.dash-user-tag .rc-ico svg {
  width: 60%;
  height: 60%;
}

/* ===== 主布局 ===== */
.login-shell {
  width: min(440px, calc(100% - 40px));
  margin: auto;
  padding: 44px 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.grad-boss {
  background: var(--grad-boss);
}

.grad-manager {
  background: var(--grad-manager);
}

.grad-player {
  background: var(--grad-player);
}

.grad-service {
  background: var(--grad-service);
}

.grad-examiner {
  background: var(--grad-examiner);
}

.brand-mark.grad-boss {
  background: var(--grad-boss);
}

.brand-mark.grad-manager {
  background: var(--grad-manager);
}

.brand-mark.grad-player {
  background: var(--grad-player);
}

.brand-mark.grad-service {
  background: var(--grad-service);
}

.brand-mark.grad-examiner {
  background: var(--grad-examiner);
}

/* ===== 登录卡片 ===== */
.login-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  animation: fade-up 0.7s ease 0.08s both;
}

.login-card.shake {
  animation: shake 0.4s ease both;
}

.card-head {
  text-align: center;
}

.card-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-desc {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13.5px;
}

.rc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* ===== 表单 ===== */
#loginForm {
  margin-top: 22px;
  display: grid;
  gap: 15px;
}

#registerForm {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.register-card .input-wrap input {
  padding: 0 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-2);
  font-size: 13px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.2s;
}

.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-1);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap input::placeholder {
  color: var(--text-3);
}

/* 隐藏浏览器自带的密码显示/清除按钮，避免与我们自己的小眼睛重复 */
.input-wrap input::-ms-reveal,
.input-wrap input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.input-wrap input:focus {
  border-color: rgba(var(--primary-rgb), 0.75);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}

.input-wrap:focus-within .input-icon {
  color: var(--indigo);
}

.pwd-toggle {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-3);
  transition: color 0.2s, background 0.2s;
}

.pwd-toggle:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
}

.eye-icon {
  width: 19px;
  height: 19px;
}

.eye-icon.hidden {
  display: none;
}

.form-error {
  display: none;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.13);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
  font-size: 13px;
  line-height: 1.5;
}

.form-error.show {
  display: block;
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -3px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s, border-color 0.2s;
}

.checkbox input:checked + .checkbox-box {
  border-color: var(--primary);
  background: var(--primary);
}

.checkbox input:checked + .checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.link-btn,
.link-inline {
  color: var(--indigo);
  font-size: 13px;
  transition: color 0.2s;
}

.link-btn:hover,
.link-inline:hover {
  color: #eadcff;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin-top: 4px;
  border-radius: 13px;
  background: var(--grad-main);
  color: #371e73;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.36);
  transition: filter 0.2s, transform 0.12s, box-shadow 0.2s;
}

.login-btn svg {
  width: 18px;
  height: 18px;
  letter-spacing: 0;
}

.login-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.45);
}

.login-btn:active {
  transform: translateY(1px) scale(0.995);
}

.login-btn.loading {
  opacity: 0.75;
  pointer-events: none;
}

a.login-btn {
  display: flex;
  margin-top: 14px;
  text-decoration: none;
}

.register-success {
  padding: 8px 0;
  text-align: center;
}

.register-success h2 {
  font-size: 20px;
  font-weight: 700;
}

.register-success p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.card-foot {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.noscript {
  margin-top: 12px;
  color: #fda4af;
  font-size: 13px;
  text-align: center;
}

.page-foot {
  padding: 18px 0 22px;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.beian-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.beian-link:hover {
  color: var(--primary-text);
  text-decoration: underline;
}

/* ===== 工作台占位页 ===== */
.dash-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(var(--primary-rgb), 0.14), transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
}

.dash-topbar {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(17, 17, 19, 0.9), rgba(24, 24, 27, 0.86));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dash-brand:hover {
  opacity: 0.82;
}

.dash-brand-text b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.dash-brand-text span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
}

.dash-userbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-drawer-edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(208, 188, 255, 0.34);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.dash-drawer-edit:hover {
  background: rgba(208, 188, 255, 0.24);
  color: #fff;
}

.dash-user-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 13px;
  font-family: inherit;
}

button.dash-user-tag {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dash-brand .brand-mark,
.dash-user-tag .rc-ico,
.dash-user-tag .dash-user-name {
  visibility: hidden;
}

.dash-brand.brand-ready .brand-mark,
.dash-user-menu-wrap.user-ready .rc-ico,
.dash-user-menu-wrap.user-ready .dash-user-name {
  visibility: visible;
}

button.dash-user-tag:hover,
.dash-user-tag[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.dash-user-tag .rc-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
}

.dash-user-tag .user-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.dash-user-tag b {
  font-weight: 600;
}

.dash-user-tag .menu-caret {
  width: 13px;
  height: 13px;
  color: var(--text-3);
  transition: transform 0.2s;
}

.dash-user-tag[aria-expanded="true"] .menu-caret {
  transform: rotate(180deg);
}

.dash-user-menu-wrap {
  position: relative;
}

.dash-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(36, 36, 42, 0.98), rgba(26, 26, 31, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 80;
}

.dash-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-1);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.dash-menu-item svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-2);
  transition: color 0.2s;
}

.dash-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef5350;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.dash-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dash-menu-item:hover svg {
  color: #fff;
}

.dash-menu-current,
.dash-menu-current:hover {
  background: rgba(var(--primary-rgb), 0.16);
  color: #fff;
}

.dash-menu-current svg,
.dash-menu-current:hover svg {
  color: #eadcff;
}

.dash-menu-divider {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

.dash-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  visibility: hidden;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.dash-drawer-mask.open {
  opacity: 1;
  visibility: visible;
}

.dash-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(300px, 86vw);
  padding: 20px 14px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #24242a, #191920);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  transition: transform 0.24s ease;
}

.dash-drawer-mask.open .dash-drawer {
  transform: translateX(0);
}

.dash-drawer-head {
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
}

.dash-drawer-head b {
  font-size: 16px;
  font-weight: 700;
}

.dash-drawer-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dash-drawer-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad-avatar);
  color: #fff;
}

.dash-drawer-avatar svg {
  width: 48%;
  height: 48%;
}

.dash-drawer-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-drawer-userinfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-drawer-nickname {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-drawer-balance {
  color: var(--text-3);
  font-size: 12px;
}

.dash-drawer-nav {
  flex: 1;
  margin-top: 12px;
  overflow-y: auto;
}

.dash-drawer .dash-menu {
  position: static;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

.dash-drawer .dash-menu-item {
  padding: 11px 12px;
  white-space: normal;
}

.dash-menu-group .dash-menu-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.dash-menu-caret {
  display: inline-flex;
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.2s;
}

.dash-menu-caret svg {
  width: 15px;
  height: 15px;
}

.dash-menu-group.open .dash-menu-caret {
  transform: rotate(180deg);
}

.dash-menu-sub {
  display: none;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 2px 0 4px;
  padding-left: 10px;
}

.dash-menu-group.open .dash-menu-sub {
  display: grid;
}

.dash-menu-subitem {
  display: block;
  padding: 9px 12px 9px 32px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dash-menu-subitem:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dash-drawer .dash-menu-divider {
  margin: 6px 8px;
}

.dash-main {
  flex: 1;
  width: min(920px, calc(100% - 36px));
  margin: clamp(28px, 5vw, 64px) auto;
}

.dash-content {
  margin-top: 26px;
}

.dash-foot {
  padding: 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
}

/* ===== 动画 ===== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

/* ===== 响应式 ===== */
@media (max-width: 520px) {
  .login-shell {
    width: min(100% - 24px, 440px);
    padding: 12px 0 20px;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .page-foot {
    padding: 12px 20px 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(var(--primary-rgb), 0.32);
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(var(--primary-rgb), 0.2), transparent 70%),
    linear-gradient(180deg, rgba(var(--primary-rgb), 0.13), rgba(var(--primary-rgb), 0.05));
}

.welcome-date {
  color: var(--text-2);
  font-size: 12.5px;
  letter-spacing: 0.5px;
}

.welcome-card h2 {
  margin-top: 7px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.welcome-sub {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
  max-width: 420px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
}

.stat-card p {
  color: var(--text-3);
  font-size: 12.5px;
}

.stat-num {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.stat-num span {
  margin-left: 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.stat-warn .stat-num {
  color: var(--gold);
}

.stat-good .stat-num {
  color: #4ade80;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.action-main {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--grad-main);
  color: #371e73;
  text-align: left;
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.35);
  transition: filter 0.2s, transform 0.12s;
}

.action-main:hover {
  filter: brightness(1.08);
}

.action-main:active {
  transform: scale(0.99);
}

.action-plus {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(55, 30, 115, 0.1);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.action-main-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.action-main-text b {
  font-size: 17px;
  font-weight: 700;
}

.action-main-text small {
  margin-top: 5px;
  color: rgba(55, 30, 115, 0.68);
  font-size: 12px;
}

.action-arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
}

.orders-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  overflow: hidden;
}

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

.panel-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.panel-link {
  color: var(--indigo);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.panel-link:hover {
  color: #eadcff;
}

.order-list {
  list-style: none;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.order-item:last-child {
  border-bottom: none;
}

.order-game {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(var(--primary-rgb), 0.16);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  color: var(--indigo);
  font-size: 15px;
  font-weight: 800;
}

.order-info {
  min-width: 0;
  flex: 1;
}

.order-info b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-info small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.order-right strong {
  font-size: 15px;
  font-weight: 700;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-pending {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fcd34d;
}

.chip-approved {
  background: rgba(52, 211, 153, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #5eead4;
}

.chip-rejected {
  background: rgba(248, 113, 113, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.chip-withdrawn {
  background: rgba(148, 163, 184, 0.13);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.list-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  max-width: min(90vw, 420px);
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(38, 38, 44, 0.96);
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 400;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-confirm-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.66);
  z-index: 300;
}

.page-confirm-card {
  width: min(440px, 100%);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #24242a, #191920);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.page-confirm-text {
  margin-top: 14px;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.7;
}

.reg-modal-name {
  margin: 4px 0 12px;
  color: var(--text-2);
  font-size: 13px;
}

.detail-finance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 2px;
}

.detail-finance > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-finance span {
  color: var(--text-3);
  font-size: 12px;
}

.detail-finance b {
  font-size: 18px;
}

@media (max-width: 600px) {
  .detail-finance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .stat-card {
    padding: 13px 12px;
  }

  .stat-num {
    font-size: 20px;
  }

  .order-item {
    padding: 13px 14px;
  }
}

/* ===== 个人资料页 ===== */
.profile-main {
  width: min(720px, calc(100% - 36px));
}

.profile-panel {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.profile-avatar-letter {
  pointer-events: none;
  visibility: hidden;
}

body.profile-ready .profile-avatar-letter {
  visibility: visible;
}

.profile-avatar-letter svg {
  width: 30px;
  height: 30px;
}

.profile-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-edit-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.avatar-edit-hint svg {
  width: 11px;
  height: 11px;
}

.profile-avatar:hover .avatar-edit-hint,
.profile-avatar:focus-within .avatar-edit-hint {
  opacity: 1;
}

.profile-head h1 {
  font-size: clamp(21px, 3vw, 25px);
  font-weight: 700;
}

.profile-head p {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

#profileForm {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.password-divider {
  height: 1px;
  margin: 26px 0 0;
  background: var(--line);
}

#passwordForm {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.password-head {
  padding-bottom: 0;
  border-bottom: 0;
}

.password-head h3 {
  font-size: 18px;
  font-weight: 700;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.profile-field label {
  color: var(--text-2);
  font-size: 13px;
}

.profile-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-field input {
  height: 46px;
  padding: 0 14px;
}

.profile-field input::placeholder {
  color: var(--text-3);
}

.profile-field input:focus {
  border-color: rgba(var(--primary-rgb), 0.75);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}

.profile-field input[readonly] {
  color: var(--text-3);
  cursor: default;
}

.field-hint {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.profile-save {
  height: 46px;
  padding: 0 30px;
  border-radius: 12px;
  background: var(--grad-main);
  color: #371e73;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.34);
  transition: filter 0.2s, transform 0.12s;
}

.profile-save:hover {
  filter: brightness(1.08);
}

.profile-save:active {
  transform: translateY(1px) scale(0.995);
}

.profile-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.profile-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .profile-main {
    width: min(100% - 24px, 720px);
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column-reverse;
  }

  .profile-save,
  .profile-back {
    width: 100%;
  }
}

/* ===== 成员管理页 ===== */
.members-main {
  width: min(980px, calc(100% - 36px));
}

.members-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.members-head h1 {
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 700;
}

.members-head p {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13px;
}

.members-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.member-category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 16px;
}

.member-category-tabs a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.member-category-tabs a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.member-category-tabs a.active {
  border-color: var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-text);
}

.members-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--grad-main);
  color: #371e73;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.3);
  transition: filter 0.2s;
}

.members-add-btn span {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.members-add-btn:hover {
  filter: brightness(1.08);
}

.members-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.members-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  max-width: 400px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s;
}

.members-search:focus-within {
  border-color: rgba(var(--primary-rgb), 0.65);
}

.members-search svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.members-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
}

.members-search input::placeholder {
  color: var(--text-3);
}

.members-select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-1);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.members-select option {
  color: #111;
}

.members-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.member-table-scroll {
  overflow-x: auto;
}

.member-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.member-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.member-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-1);
  font-size: 13.5px;
  white-space: nowrap;
}

.member-table tbody tr:last-child td {
  border-bottom: none;
}

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

.all-order-table {
  min-width: 0;
}

.all-order-table th.member-op-col,
.all-order-table td.member-ops {
  text-align: right;
}

.all-order-table th.all-order-money-col {
  text-align: right;
}

.all-order-table td {
  padding: 13px 14px;
  line-height: 1.7;
}

.all-order-table .all-order-money {
  color: #fcd34d;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}

.consume-table {
  min-width: 0;
  table-layout: fixed;
}

.consume-table th,
.consume-table td {
  padding: 11px 8px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consume-table th:first-child,
.consume-table td:first-child {
  padding-left: 18px;
}

.consume-table th:nth-child(1),
.consume-table td:nth-child(1) {
  width: 24%;
}

.consume-table th:nth-child(2),
.consume-table td:nth-child(2) {
  width: 15%;
}

.consume-table th:nth-child(3),
.consume-table td:nth-child(3) {
  width: 10%;
}

.consume-table th:nth-child(4),
.consume-table td:nth-child(4) {
  width: 17%;
}

.consume-table th:nth-child(5),
.consume-table td:nth-child(5) {
  width: 11%;
}

.consume-table th:nth-child(6),
.consume-table td:nth-child(6) {
  width: 23%;
}

.consume-table td.consume-name {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

.badge-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-prepaid {
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.13);
  color: #fcd34d;
}

.badge-walkin {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.13);
  color: #cbd5e1;
}

.consume-overview {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
  margin-bottom: 0;
}

.member-uid {
  color: var(--indigo);
  font-weight: 700;
}

.member-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.member-phone {
  color: var(--text-2);
}

.member-ops {
  text-align: right;
}

.ops-btn {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 12.5px;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ops-btn + .ops-btn {
  margin-left: 7px;
}

.ops-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.ops-danger {
  color: #fca5a5;
}

.ops-danger:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
}

.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.role-boss {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fcd34d;
}

.role-manager {
  background: rgba(45, 212, 191, 0.13);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #5eead4;
}

.role-player {
  background: rgba(208, 188, 255, 0.14);
  border: 1px solid rgba(208, 188, 255, 0.32);
  color: #eadcff;
}

.role-walkin {
  background: rgba(66, 165, 245, 0.13);
  border: 1px solid rgba(66, 165, 245, 0.34);
  color: #90caf9;
}

.role-service {
  background: rgba(244, 114, 182, 0.13);
  border: 1px solid rgba(244, 114, 182, 0.32);
  color: #f9a8d4;
}

.role-examiner {
  background: rgba(38, 198, 218, 0.13);
  border: 1px solid rgba(38, 198, 218, 0.32);
  color: #80deea;
}

.members-empty {
  padding: 34px 16px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

/* ===== 通用弹窗 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 200;
}

.modal-card {
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  padding: 22px 24px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #24242a, #191920);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: fade-up 0.22s ease both;
}

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

.modal-head h2 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

#memberForm {
  margin-top: 18px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.profile-field select {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.profile-field select:focus {
  border-color: rgba(var(--primary-rgb), 0.75);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}

.profile-field select option {
  color: #111;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .members-main {
    width: min(100% - 24px, 980px);
  }

  .members-head {
    flex-direction: column;
    align-items: stretch;
  }

  .members-head-actions {
    justify-content: flex-end;
  }

  .members-add-btn {
    justify-content: center;
  }

  .members-search {
    max-width: none;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .profile-save,
  .modal-actions .profile-back {
    width: 100%;
  }
}

/* ===== 首页活动幻灯片 ===== */
.activity-home {
  margin-top: 16px;
}

.activity-slider {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.act-viewport {
  overflow: hidden;
}

.act-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}

.act-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0;
}

.act-slide-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.act-slide-title {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(12, 12, 16, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.act-cover {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: opacity 0.2s;
}

@media (max-width: 640px) {
  .act-cover {
    height: 180px;
  }
}

.act-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 12px;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(208, 188, 255, 0.22), rgba(244, 114, 182, 0.14));
  color: var(--text-2);
  font-size: 14px;
}

.act-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.act-nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.act-nav.prev {
  left: 12px;
}

.act-nav.next {
  right: 12px;
}

.act-nav svg {
  width: 18px;
  height: 18px;
}

.act-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.act-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.2s, background 0.2s;
}

.act-dot.active {
  width: 20px;
  background: var(--primary);
}

/* ===== 活动详情页 ===== */
.activity-detail-main {
  width: min(820px, calc(100% - 36px));
  margin: 30px auto;
}

.activity-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
}

.activity-detail-back:hover {
  color: var(--primary-text);
}

.activity-detail-card {
  padding: clamp(18px, 3vw, 30px);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.activity-detail-card h1 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  text-align: left;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.activity-detail-time {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12.5px;
}

.activity-detail-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.9;
  word-break: break-word;
  text-align: left;
}

.activity-detail-body img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

.activity-detail-body p,
.activity-detail-body div {
  margin: 8px 0;
  text-align: left;
}

/* ===== 活动管理页 ===== */
.log-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.log-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.log-main {
  min-width: 0;
  flex: 1;
}

.log-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.log-head b {
  font-size: 13.5px;
}

.log-action {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary-text);
  font-size: 11.5px;
  font-weight: 600;
}

.log-target {
  display: block;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}

.log-detail {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.log-time {
  flex: none;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.activity-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 14px;
}

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

.activity-admin-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
}

.activity-admin-card .ac-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.activity-admin-card .ac-body {
  flex: 1;
  padding: 13px 14px;
}

.activity-admin-card .ac-body b {
  display: block;
  font-size: 15px;
}

.activity-admin-card .ac-body small {
  display: block;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}

.activity-admin-card .ac-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.activity-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  cursor: pointer;
}

.activity-switch-text {
  color: var(--text-2);
  font-size: 12px;
}

.activity-switch input:checked ~ .activity-switch-text {
  color: var(--primary-text);
}

.activity-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.activity-switch-track {
  position: relative;
  display: block;
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s;
}

.activity-switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.activity-switch input:checked ~ .activity-switch-track {
  background: var(--primary);
}

.activity-switch input:checked ~ .activity-switch-track i {
  left: 21px;
}

.activity-cover-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
}

.activity-edit-top {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.activity-edit-fields {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.activity-date-row {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: end;
  gap: 6px;
  justify-content: start;
  margin-top: 14px;
}

.activity-date-row .profile-field {
  width: 158px;
}

.activity-date-tilde {
  color: var(--text-3);
  font-size: 16px;
  padding-bottom: 11px;
}

.activity-cover-settings {
  flex: none;
  width: 320px;
  text-align: left;
}

.activity-cover-settings > label {
  color: var(--text-2);
  font-size: 13px;
}

.activity-cover-settings .activity-cover-compact {
  margin-top: 7px;
  width: 100%;
}

.activity-cover-settings .field-hint {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.activity-cover-preview {
  display: block;
  width: 100%;
  height: 92px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.activity-cover-box .activity-cover-preview {
  margin: 0;
  border: 0;
  border-radius: 0;
  height: 92px;
}

.cover-progress {
  margin-top: 8px;
}

.cover-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cover-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-main);
  transition: width 0.2s;
}

.cover-progress small {
  display: block;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}

@media (max-width: 680px) {
  .activity-edit-top {
    flex-direction: column;
  }

  .activity-edit-fields,
  .activity-cover-settings {
    width: 100%;
  }

  .activity-cover-settings {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
}

.activity-cover-compact {
  flex: none;
  width: 220px;
  min-height: 72px;
  border-radius: 10px;
}

.activity-cover-compact img,
.activity-cover-compact .ac-no-cover {
  min-height: 72px;
  max-height: 96px;
}

.activity-cover-box img,
.activity-cover-box .ac-no-cover {
  width: 100%;
  min-height: 150px;
  max-height: 220px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
}

.activity-cover-box.activity-cover-compact img,
.activity-cover-box.activity-cover-compact .ac-no-cover {
  height: 92px;
  min-height: 72px;
  max-height: 92px;
}

.activity-cover-box.activity-cover-compact .ac-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-cover-box.activity-cover-compact {
  height: 92px;
  min-height: 92px;
  overflow: hidden;
}

.activity-cover-box.activity-cover-compact img {
  object-fit: cover;
  display: block;
}

.activity-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.activity-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.activity-editor-toolbar button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
}

.activity-editor-toolbar button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.activity-content-area {
  min-height: 180px;
  max-height: 340px;
  padding: 12px;
  overflow-y: auto;
  outline: none;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-1);
}

.activity-content-area img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  margin: 6px 0;
}

.activity-content-area:empty::before {
  content: attr(data-placeholder);
  color: var(--text-3);
  pointer-events: none;
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 160px;
  padding: 8px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
}

.emoji-picker.hidden {
  display: none;
}

.emoji-picker button {
  width: 34px;
  height: 34px;
  font-size: 21px;
  border-radius: 8px;
}

.emoji-picker button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== 技能标签 ===== */
.members-tool-btn {
  height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.08);
  color: #5eead4;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.members-tool-btn:hover {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.6);
}

.member-tag-tool-btn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
}

.member-tag-tool-btn:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.6);
}

.skill-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag-option {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skill-tag-option:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.skill-tag-option.selected {
  border-color: var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-text);
}

.skill-picker-empty,
.skill-list-empty {
  color: var(--text-3);
  font-size: 13px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.26);
  color: #5eead4;
  font-size: 11.5px;
  white-space: nowrap;
}

.member-tag-chip {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.skill-manage {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.skill-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.skill-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.skill-name {
  color: var(--text-1);
  font-size: 14px;
}

.skill-add-row {
  display: flex;
  gap: 10px;
}

.skill-add-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.skill-add-row input:focus {
  border-color: rgba(45, 212, 191, 0.65);
}

.skill-add-btn {
  height: 42px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .skill-add-row {
    flex-direction: column;
  }

  .skill-add-btn {
    justify-content: center;
  }
}

/* ===== 新建报单 ===== */
.order-main {
  width: min(920px, calc(100% - 36px));
}

.order-form-card {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
}

.order-form-head {
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.order-form-head h1 {
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 700;
}

.order-form-head p {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13px;
}

.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 18px;
}

.proof-upload {
  margin-top: 20px;
}

.boss-tags-show {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boss-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.boss-label-row .boss-tags-show .skill-chip {
  margin: 0;
  padding: 2px 8px;
  font-size: 10.5px;
}

.proof-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 130px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.proof-upload-box:hover {
  border-color: rgba(var(--primary-rgb), 0.7);
  background: rgba(var(--primary-rgb), 0.06);
}

.proof-upload-box svg {
  width: 26px;
  height: 26px;
  color: var(--text-3);
}

.proof-upload-box span {
  font-size: 14px;
}

.proof-upload-box small {
  color: var(--text-3);
  font-size: 12px;
}

.proof-preview {
  position: relative;
  display: inline-block;
  margin-top: 12px;
}

.proof-preview img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.proof-preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
}

.amount-preview {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 14px;
}

.amount-row b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.amount-row .amount-primary {
  color: #fcd34d;
  font-size: 18px;
}

.amount-row .amount-income {
  color: #4ade80;
  font-size: 18px;
}

.amount-note {
  margin-top: -5px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
}

.order-submit-row {
  margin-top: 22px;
}

@media (max-width: 620px) {
  .order-main {
    width: min(100% - 24px, 920px);
  }

  .order-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 订单审核 ===== */
.audit-main {
  width: min(980px, calc(100% - 36px));
}

.audit-head h1 {
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 700;
}

.audit-head p {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13px;
}

.audit-main .members-toolbar {
  margin-top: 18px;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.export-tools {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.export-unit {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.export-unit .filter-label {
  grid-column: 1 / -1;
}

.export-unit .stats-date-input,
.export-unit button {
  margin: 0;
}

.export-unit button {
  height: 38px;
}

@media (max-width: 760px) {
  .export-tools {
    align-items: stretch;
  }

  .export-unit {
    width: 100%;
  }
}

.audit-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 14px;
}

.audit-tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.audit-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.audit-tab.active {
  border-color: var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary-text);
}

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

.audit-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
}

.audit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.audit-card-head div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audit-card-head b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.audit-card-head span {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.player-order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 13px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

.player-order-summary b {
  color: var(--text-1);
  font-weight: 700;
}

.audit-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.audit-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.audit-field span {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.audit-field b {
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  word-break: break-all;
}

.audit-boss-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.audit-boss-tags .skill-chip {
  margin: 0;
}

.modal-card-lg {
  width: min(760px, 100%);
}

.import-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  margin-top: 16px;
}

.import-template-box,
.import-upload-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.import-template-box h3 {
  font-size: 16px;
  font-weight: 700;
}

.import-template-box p,
.import-template-box li,
.import-file-label small {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
}

.import-template-box ul {
  padding-left: 16px;
}

.import-file-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  cursor: pointer;
  color: var(--text-1);
  font-size: 14px;
}

.import-upload-box textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-1);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  resize: vertical;
}

.import-result {
  max-height: 180px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.import-result b {
  color: #4ade80;
}

.import-result li {
  color: #fca5a5;
}

@media (max-width: 700px) {
  .import-layout {
    grid-template-columns: 1fr;
  }
}

.detail-fields {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#detailBody > .status-chip {
  margin-bottom: 10px;
}

.detail-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.detail-head-left h2 {
  white-space: nowrap;
}

.withdraw-order-btn {
  height: 40px;
  padding: 0 18px;
  margin-top: 24px;
}

#detailBody .audit-reason {
  margin-top: 14px;
}

.audit-proof {
  display: inline-block;
  margin-top: 14px;
  color: var(--indigo);
  font-size: 13px;
  text-decoration: none;
}

.audit-proof:hover {
  color: #eadcff;
  text-decoration: underline;
}

.audit-reason {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  font-size: 13px;
}

.audit-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.audit-actions .profile-save {
  height: 38px;
  padding: 0 22px;
}

.audit-reject-btn {
  height: 38px;
  padding: 0 18px;
}

.audit-empty {
  padding: 40px 0;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .audit-main {
    width: min(100% - 24px, 980px);
  }

  .audit-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.withdraw-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.04));
  margin-top: 18px;
}

.withdraw-balance-card p {
  color: var(--text-2);
  font-size: 13px;
}

.withdraw-balance-card strong {
  display: block;
  margin-top: 6px;
  color: #4ade80;
  font-size: 32px;
  font-weight: 800;
}

.wd-divider {
  flex: none;
  width: 1px;
  align-self: stretch;
  min-height: 66px;
  background: var(--line);
}

.wd-frozen {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 620px) {
  .wd-divider {
    display: none;
  }

  .wd-frozen {
    min-width: 100%;
  }
}

.weekly-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}

.members-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.withdraw-now {
  font-size: 20px;
  font-weight: 800;
  color: #4ade80;
}

.prepaid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prepaid-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.prepaid-card-strip {
  margin: -18px -20px 14px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.prepaid-card-strip.strip-prepaid {
  background: linear-gradient(90deg, #ffd54f, #ffca28);
  color: #3d2e00;
}

.prepaid-card-strip.strip-walkin {
  background: #9e9e9e;
  color: #fff;
}

.prepaid-card-strip.strip-debt {
  background: #ef5350;
  color: #fff;
}

.prepaid-card-debt {
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.13), rgba(248, 113, 113, 0.05));
}

.prepaid-card-top b {
  font-size: 15px;
  font-weight: 700;
}

.prepaid-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.prepaid-card-top .skill-chip {
  margin: 0;
}

.prepaid-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.prepaid-balance span {
  color: var(--text-3);
  font-size: 13px;
}

.prepaid-balance strong {
  color: var(--gold);
  font-size: 24px;
  font-weight: 800;
}

.prepaid-balance strong.prepaid-debt-num {
  color: #ff8a80;
}

.prepaid-cumulative {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.prepaid-cumulative span {
  color: var(--text-3);
  font-size: 12.5px;
}

.prepaid-cumulative strong {
  color: #4ade80;
  font-size: 17px;
  font-weight: 800;
}

.prepaid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.prepaid-action-btn {
  height: 40px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, filter 0.2s, background 0.2s;
}

.prepaid-action-income {
  border: none;
  background: var(--grad-main);
  color: #371e73;
}

.prepaid-action-consume {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.prepaid-action-btn:hover {
  filter: brightness(1.08);
}

.prepaid-history {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.prepaid-history-row {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.8;
}

.prepaid-history-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.prepaid-history-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.prepaid-history-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin-top: 16px;
  overflow-y: auto;
}

.prepaid-history-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.4;
}

.prepaid-history-full small {
  color: var(--text-3);
  font-size: 12px;
}

.color-income {
  color: #4ade80;
}

.color-consume {
  color: #fca5a5;
}

.prepaid-current-name {
  font-size: 15px;
  font-weight: 700;
}

.boss-assist-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.boss-frequent b {
  font-size: 18px;
}

@media (max-width: 640px) {
  .boss-assist-row {
    grid-template-columns: 1fr;
  }
}

/* ===== 系统设置 ===== */
.settings-sep {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.settings-main {
  width: min(720px, calc(100% - 36px));
}

.settings-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 18px;
}

.settings-future {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.settings-reset-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.06);
}

.settings-reset-block b {
  color: #fecaca;
  font-size: 15px;
}

.settings-reset-block p {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}

.settings-reset-btn {
  flex: none;
  height: 38px;
  padding: 0 16px;
}

@media (max-width: 620px) {
  .settings-reset-block {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-reset-btn {
    width: 100%;
  }
}

.settings-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  font-size: 14px;
  cursor: pointer;
}

.settings-switch-group {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.settings-switch-group .settings-switch-row {
  margin-top: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
}

.settings-switch-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.share-setting-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.share-setting-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 13px;
}

.share-setting-item input {
  width: 96px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-1);
  font-family: inherit;
}

.share-setting-item small {
  color: var(--text-3);
  font-size: 12px;
}

.settings-tags-block {
  margin-top: 18px;
}

.settings-tag-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.settings-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

#projectList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#projectList .project-item-row {
  width: auto;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px 8px 4px 12px;
  border-radius: 999px;
  margin: 0;
}

#projectList .project-item-row > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.project-item-row > span {
  flex: none;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-del {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 7px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.project-del:hover {
  color: #ff8a80;
  background: rgba(248, 113, 113, 0.14);
}

.settings-tag-row > span {
  flex: none;
  min-width: 100px;
  font-size: 14px;
}

.settings-tag-row input {
  width: 90px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-1);
  font-family: inherit;
}

.settings-tag-row small {
  color: var(--text-3);
  font-size: 12px;
}

@media (max-width: 620px) {
  .settings-tag-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .settings-main {
    width: min(100% - 24px, 720px);
  }

  .settings-fields {
    grid-template-columns: 1fr;
  }
}

.stats-date-input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-1);
  font-family: inherit;
  outline: none;
  color-scheme: dark;
}

/* 日期/月份原生控件的显示修复：原生日历控件完全不可见，
   由外层中文界面接管展示，彻底避免 yyyy/mm 之类的浏览器占位 */
.df-wrap {
  position: relative;
  display: block;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.df-wrap.df-wrap-stats {
  display: inline-block;
  flex: none;
  width: 158px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
}

.df-wrap > input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  outline: 0;
  font-variant-numeric: tabular-nums;
}

.df-ph {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text-3);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}

.df-wrap-stats .df-ph {
  padding-left: 10px;
  font-size: 13px;
}

.df-wrap.has-value .df-ph {
  color: var(--text-1);
}

.df-ph-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.df-wrap.focus {
  border-color: rgba(var(--primary-rgb), 0.75);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.df-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  pointer-events: auto;
}

.df-open:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

.df-open svg {
  width: 17px;
  height: 17px;
}

.df-wrap.has-value .df-open {
  color: var(--primary-text);
}

.overview-card {
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.overview-head h3 {
  font-size: 18px;
  font-weight: 700;
}

.overview-head p {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}

.overview-pickers {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.overview-pickers label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.overview-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.overview-balance,
.overview-top-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.overview-balance > span,
.overview-top-item > span {
  color: var(--text-2);
  font-size: 13px;
}

.overview-balance strong {
  font-size: 30px;
  font-weight: 800;
}

.overview-balance small {
  color: var(--text-3);
  font-size: 11.5px;
}

.overview-top-item strong {
  font-size: 24px;
  font-weight: 800;
}

.overview-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.overview-pair {
  display: grid;
  gap: 10px;
  align-content: start;
}

.overview-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.overview-field span {
  color: var(--text-3);
  font-size: 12px;
}

.overview-field b {
  font-size: 18px;
  font-weight: 800;
}

.gold-num {
  color: var(--gold) !important;
}

.green-num {
  color: #4ade80 !important;
}

.blue-num {
  color: var(--blue) !important;
}

/* ===== 接单排行 ===== */
.rank-main {
  width: min(980px, calc(100% - 36px));
}

.rank-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 16px 0 14px;
}

.rank-tools .filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.rank-scope {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12.5px;
}

.rank-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.rank-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.rank-top.rank-1 {
  padding-top: 28px;
  border-color: rgba(255, 213, 79, 0.42);
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(255, 213, 79, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  transform: translateY(-8px);
}

.rank-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-avatar);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rank-1 .rank-avatar {
  width: 84px;
  height: 84px;
}

.rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-avatar svg {
  width: 46%;
  height: 46%;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
}

.rank-top b {
  display: block;
  max-width: 180px;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-top small {
  color: var(--text-3);
  font-size: 12px;
}

.rank-value {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.rank-value.count-mode {
  color: var(--blue);
}

.rank-table td.rank-no {
  font-weight: 800;
}

.rank-table tr.rank-top-row td {
  background: rgba(255, 255, 255, 0.035);
}

.rank-table tr.rank-first td {
  color: var(--gold);
}

@media (max-width: 640px) {
  .overview-top,
  .overview-fields {
    grid-template-columns: 1fr;
  }

  .rank-main {
    width: min(100% - 24px, 980px);
  }

  .rank-podium {
    grid-template-columns: 1fr;
  }

  .rank-top.rank-1 {
    transform: none;
    order: -1;
  }

  .rank-scope {
    margin-left: 0;
  }
}
