* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-size: 14px;
  color: #333;
  min-width: 375px;
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 180px;
  min-width: 180px;
  background: #2f4050;
  color: #a7b1c2;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
}

.sidebar::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.menu-item {
  height: 50px;
  padding: 0 22px 0 25px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: #1f2d3d;
  color: #fff;
}

.menu-item.active {
  background: #409eff;
  color: #fff;
  border-left: 3px solid #67c23a;
}

.menu-item.active i {
  color: #fff;
}

.logout {
  color: #ff6b6b;
}

.logout:hover {
  background: #1f2d3d;
}

.has-submenu {
  display: flex;
  flex-direction: column;
  height: auto;
}

.menu-title {
  height: 50px;
  padding: 0 22px 0 25px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-title:hover {
  background: #1f2d3d;
  color: #fff;
}

.has-submenu.active > .menu-title {
  background: #409eff;
  color: #fff;
  border-left: 3px solid #67c23a;
}

.sub-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s;
}

.has-submenu.open .sub-arrow {
  transform: rotate(180deg);
}

.sidebar:not(.collapse) .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #1f2d3d;
}

.sidebar:not(.collapse) .has-submenu.open .submenu {
  max-height: 300px;
}

.sidebar:not(.collapse) .submenu .menu-item {
  height: 44px;
  padding: 0 22px 0 55px;
  font-size: 13px;
  color: #a7b1c2;
  border-left: 3px solid transparent;
}

.sidebar:not(.collapse) .submenu .menu-item:hover {
  background: #3a4a5a;
  color: #fff;
}

.sidebar:not(.collapse) .submenu .menu-item.active {
  background: #409eff !important;
  color: #fff !important;
  border-left: 3px solid #67c23a !important;
}

/* 桌面端折叠状态 */
.sidebar.collapse {
  width: 60px;
  min-width: 60px;
}

.sidebar.collapse .menu-item,
.sidebar.collapse .menu-title {
  justify-content: center;
  padding: 0;
  border-left: none;
}

.sidebar.collapse .menu-item span,
.sidebar.collapse .menu-title span {
  display: none;
}

.sidebar.collapse .submenu {
  display: none;
}

.sidebar.collapse .menu-item > i:first-child,
.sidebar.collapse .menu-title > i:first-child {
  display: inline-block;
  width: 20px;
  text-align: center;
}

.sidebar.collapse .sub-arrow {
  display: none;
}

.sidebar.collapse .has-submenu {
  position: relative;
}

.sidebar.collapse .has-submenu.active-popover {
  position: relative;
}

.sidebar.collapse .has-submenu.active-popover .submenu {
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  width: 180px;
  background: #2f4050;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  padding: 0;
  overflow: hidden;
}

.sidebar.collapse .has-submenu.active-popover .submenu .menu-item {
  padding: 0 20px;
  height: 44px;
  color: #a7b1c2;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  border-left: none;
}

.sidebar.collapse .has-submenu.active-popover .submenu .menu-item span {
  display: inline-block !important;
}

.sidebar.collapse .has-submenu.active-popover .submenu .menu-item:hover {
  background: #409eff;
  color: #fff;
}

.sidebar.collapse .has-submenu.active-popover .submenu .menu-item.active {
  background: #409eff;
  color: #fff;
  border-left: 3px solid #67c23a;
}

.sidebar.collapse .menu-item.active,
.sidebar.collapse .has-submenu.active > .menu-title {
  background: #409eff;
  color: #fff;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left 0.3s ease;
}

.header {
  height: 50px;
  border-bottom: 1px solid #eee;
  padding: 0 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #606266;
}

.header-item i {
  font-size: 16px;
}

.header-item.coin-item i {
  color: #f59e0b;
}

.header-item.coin-item strong {
  color: #f59e0b;
}

.header-item.cash-item i {
  color: #10b981;
}

.header-item.cash-item strong {
  color: #10b981;
}

.header-item.username-item i {
  color: #409eff;
  font-size: 20px;
}

.header-item.username-item strong {
  color: #303133;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a {
  color: #606266;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb a:hover {
  color: #409eff;
}

.breadcrumb span {
  color: #909399;
}

.breadcrumb .current {
  color: #409eff;
  font-weight: 500;
}

.breadcrumb .separator {
  color: #c0c4cc;
}

/* 移动端面包屑：只显示最后一级 */
@media (max-width: 768px) {
  .breadcrumb a,
  .breadcrumb span:not(.current),
  .breadcrumb .separator {
    display: none !important;
  }
  
  .breadcrumb .current {
    font-size: 16px;
  }
  
  .header-right {
    gap: 12px;
  }
  
  .header-item span {
    display: none;
  }
  
  .header-item i {
    font-size: 18px;
  }
}

/* 小屏幕隐藏面包屑 */
@media (max-width: 500px) {
  .breadcrumb {
    display: none !important;
  }
  
  /* filter-row 在小屏幕让筛选项占整行 */
  .filter-row {
    flex-direction: column;
  }
  
  .filter-row .form-group,
  .filter-row .form-group-inline {
    width: 100%;
  }
  
  /* form-row 同样适配小屏幕 */
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group,
  .form-row .form-group-inline {
    width: 100%;
  }
}

#toggleBtn {
  cursor: pointer;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#toggleBtn:hover {
  background: #f5f7fa;
}

#toggleBtn.active {
  background: #e4e7ed;
}

.content {
  flex: 1;
  padding: 15px;
  background: #f5f7fa;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px !important;
    min-width: 60px !important;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 999;
  }

  .sidebar.expanded {
    width: 180px !important;
    min-width: 180px !important;
  }

  .main {
    margin-left: 60px !important;
  }

  .sidebar.expanded + .main {
    margin-left: 180px !important;
  }

  .header {
    position: fixed;
    top: 0;
    right: 0;
    left: 60px;
    z-index: 1000;
  }

  .sidebar.expanded + .main .header {
    left: 180px;
  }

  .content {
    margin-top: 50px;
    padding: 15px;
  }

  /* 移动端折叠状态复用桌面端 collapse 样式 */
  .sidebar:not(.expanded) .menu-item,
  .sidebar:not(.expanded) .menu-title {
    justify-content: center;
    padding: 0;
    border-left: none;
  }

  .sidebar:not(.expanded) .menu-item span,
  .sidebar:not(.expanded) .menu-title span {
    display: none;
  }

  .sidebar:not(.expanded) .sub-arrow {
    display: none;
  }

  .sidebar:not(.expanded) .submenu {
    display: none !important;
  }

  .sidebar.expanded .menu-item {
    justify-content: flex-start;
    padding: 0 22px 0 25px;
    border-left: 3px solid transparent;
  }

  .sidebar.expanded .menu-title {
    justify-content: flex-start;
    padding: 0 22px 0 25px;
    border-left: 3px solid transparent;
  }

  .sidebar.expanded .has-submenu.active > .menu-title {
    background: #409eff;
    color: #fff;
    border-left: 3px solid #67c23a;
  }

  .sidebar.expanded .menu-item span,
  .sidebar.expanded .menu-title span {
    display: inline-block;
  }

  .sidebar.expanded .sub-arrow {
    display: inline-block;
  }

  .sidebar.expanded .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1f2d3d;
  }

  .sidebar.expanded .has-submenu.open .submenu {
    max-height: 300px;
  }

  .sidebar.expanded .submenu .menu-item {
    height: 44px;
    padding: 0 22px 0 60px;
    font-size: 13px;
    color: #a7b1c2;
    border-left: 3px solid transparent;
  }

  .sidebar.expanded .submenu .menu-item:hover {
    background: #3a4a5a;
    color: #fff;
  }

  .sidebar.expanded .submenu .menu-item.active {
    background: #409eff !important;
    color: #fff !important;
    border-left: 3px solid #67c23a !important;
  }

  .toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .table-footer {
    flex-direction: column;
    gap: 10px;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 自定义全局提示弹窗 - 独立隔离 不被Bootstrap覆盖 */
.my-global-msg-tip {
  position: fixed !important;
  top: 30% !important;
  left: 50% !important;
  transform: translate(-50%, -30%) !important;
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
  padding: 12px 26px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  z-index: 999999 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
  min-width: 120px !important;
  text-align: center !important;
}
.my-global-msg-tip.show {
  opacity: 1 !important;
}

/* 成功绿色版 */
.my-global-msg-tip.success {
  background: rgba(15, 183, 108, 0.85) !important;
}
/* 错误红色版 */
.my-global-msg-tip.error {
  background: rgba(235, 68, 68, 0.85) !important;
}

.login-body {
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 350px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
}

.login-item {
  margin-bottom: 20px;
}

.login-item input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.login-item input:focus {
  border-color: #409eff;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #66b1ff;
}

.login-links {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.login-link {
  color: #409eff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.login-link:hover {
  color: #66b1ff;
}

@media (max-width: 768px) {
  .login-body {
    padding: 15px;
  }

  .login-box {
    padding: 25px 20px;
    border-radius: 6px;
  }

  .login-box h2 {
    font-size: 20px;
    margin-bottom: 22px;
  }

  .login-item {
    margin-bottom: 18px;
  }

  .login-item input {
    padding: 14px 15px;
    font-size: 16px;
  }

  .login-btn {
    padding: 15px;
    font-size: 17px;
  }

  .login-links {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .login-link {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-body {
    padding: 12px;
  }

  .login-box {
    padding: 22px 18px;
  }

  .login-box h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .login-item input {
    padding: 12px;
  }
}

/* 全局提示框 */
.my-global-msg-tip {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.my-global-msg-tip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.my-global-msg-tip.default {
  background: #fff;
  color: #333;
  border: 1px solid #e4e7ed;
}

.my-global-msg-tip.success {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.my-global-msg-tip.error {
  background: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
}

.order-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 600;
}

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

.toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  gap: 15px;
  flex-wrap: wrap;
}

.toolbar-buttons {
  display: flex;
  gap: 12px;
  row-gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-filters {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-filters .form-group {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.toolbar-filters .datetime-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  overflow: hidden;
  height: 36px;
}

.toolbar-filters .datetime-wrapper .datetime-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  background: #f5f7fa;
  font-size: 14px;
  color: #606266;
  border-right: 1px solid #e4e7ed;
}

.toolbar-filters .datetime-wrapper input[type="datetime-local"] {
  padding: 0 12px;
  border: none;
  background: #fff;
  font-size: 14px;
  outline: none;
  min-width: 180px;
  height: 100%;
  box-sizing: border-box;
}

.toolbar-filters .datetime-wrapper:focus-within {
  border-color: #409eff;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e4e7ed;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #606266;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #409eff;
  color: #409eff;
}

.filter-btn.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}

.header-actions select {
  padding: 8px 12px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  min-width: 150px;
}

.header-actions select:hover {
  border-color: #409eff;
}

.header-actions select:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f7fa;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e4e7ed;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 200px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-right select {
  padding: 8px 12px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.info-text {
  color: #909399;
  font-size: 14px;
}

.table-container {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: auto;
  max-height: calc(100vh - 300px);
  min-height: 120px;
  min-width: 300px;
}

.data-table {
  width: max-content;
  /* 表格按内容撑开，不强制100% */
  min-width: 100%; 
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  white-space: nowrap;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #ebeef5;
}

.data-table th {
  background: #f5f7fa;
  font-weight: 600;
  color: #606266;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
}

.data-table tr:hover {
  background: #f5f7fa;
}

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

.empty-row td {
  text-align: center;
  color: #909399;
  padding: 40px 0;
}

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.status-pending {
  background: #fdf6ec;
  color: #e6a23c;
}

.status-processing {
  background: #ecf5ff;
  color: #409eff;
}

.status-shipped {
  background: #e8f4ff;
  color: #36cfc9;
}

.status-completed {
  background: #f0f9eb;
  color: #67c23a;
}

.status-cancelled {
  background: #f4f4f5;
  color: #909399;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 12px 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.selected-info {
  color: #606266;
  font-size: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #606266;
}

.page-size-control select {
  padding: 4px 8px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.page-size-control select:hover {
  border-color: #409eff;
}

.page-info {
  color: #606266;
  font-size: 14px;
}

.page-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-ellipsis {
  color: #606266;
  padding: 0 5px;
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-primary {
  background: #409eff;
  color: #fff;
}

.btn-primary:hover {
  background: #66b1ff;
}
.btn-warning {
  background: #e6a23c;
  color: #fff;
}
.btn-warning:hover {
  background: #f0c78a;
}
.btn-green {
  background: #67c23a;
  color: #fff;
}
.btn-green:hover {
  background: #85ce61;
}
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
}
.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
}

.btn-sm:hover {
  border-color: #409eff;
  color: #409eff;
}

.btn-sm.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}

.btn-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-icon {
  padding: 5px 8px;
  border: none;
  background: transparent;
  color: #409eff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.btn-icon:hover {
  background: #ecf5ff;
}

.btn-icon.btn-danger {
  color: #f56c6c;
}

.btn-icon.btn-danger:hover {
  background: #fef0f0;
}

/* 购买页面样式 */
.buy-container {
  display: flex;
  gap: 10px;
  height: 100%;
}

.product-section {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-section .section-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cart-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  position: sticky;
  top: 10px;
  width: 320px;
  display: flex;
  flex-direction: column;
}

.section-header {
  padding: 10px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.section-body {
  padding: 10px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #e4e7ed;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.3s;
  background: #fff;
  outline: none;
}

.form-group-inline {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 2px solid #e4e7ed;
  border-radius: 6px;
  background: #fff;
  transition: all 0.3s;
}

.form-group-inline:hover {
  border-color: #d0d3d8;
}

.form-group-inline:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group-inline label {
  margin-bottom: 0;
  font-weight: 500;
  color: #666;
  font-size: 13px;
  white-space: nowrap;
  min-width: 70px;
}

.form-group-inline select {
  flex: 1;
  width: auto;
  padding: 6px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.form-group-inline select:focus {
  border-color: #667eea;
  box-shadow: none;
}

.form-group select:focus,
.form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.game-card {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
  margin-top: 8px;
}

.game-card h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 13px;
}

.game-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e4e7ed;
  font-size: 12px;
}

.game-info-row:last-child {
  border-bottom: none;
}

.game-info-row span:first-child {
  color: #666;
}

.game-info-row span:last-child {
  color: #333;
  font-weight: 500;
}

.price-box {
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
  border-radius: 6px;
  margin-top: 8px;
}

.price-label {
  font-size: 14px;
  color: #666;
  display: block;
  margin-bottom: 5px;
}

.price-value {
  font-size: 32px;
  font-weight: 700;
  color: #e74c3c;
}

.quantity-control {
  display: flex;
  align-items: center;
  width: 100%;
}

.qty-btn {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #606266;
}

.qty-btn:hover {
  border-color: #667eea;
  background: #667eea;
  color: #fff;
}

.qty-btn:active {
  transform: scale(0.95);
}

.quantity-control input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: #fff;
  padding: 4px 2px;
  border-radius: 4px;
}

.add-cart-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-empty {
  text-align: center;
  padding: 25px 10px;
  color: #999;
}

.cart-empty i {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

.cart-item:hover {
  background: #fafafa;
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.cart-item-desc {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
}

.cart-item-location {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.location-item {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid #e4e7ed;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.cart-item-qty span {
  min-width: 26px;
  text-align: center;
  font-size: 12px;
}

.cart-item-remove {
  color: #999;
  cursor: pointer;
  font-size: 12px;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-footer {
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.cart-summary.total {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.cart-summary.total .total-price {
  color: #e74c3c;
  font-size: 20px;
}

.checkout-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.batch-buy-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.batch-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.batch-buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.clear-cart {
  color: #999;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}

.clear-cart:hover {
  color: #e74c3c;
}

.cart-count {
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.package-card {
  border: 2px solid #e4e7ed;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.package-card:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.package-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2ff 100%);
}

.package-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.package-price {
  font-size: 16px;
  font-weight: 700;
  color: #e74c3c;
}

.package-desc {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row .form-group,
.form-row .form-group-inline {
  flex: 1;
  min-width: 0;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e7ed;
}

.filter-row .form-group,
.filter-row .form-group-inline {
  flex: 1;
  min-width: 0;
}

.region-list {
  margin-top: 10px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  
}

.region-list h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #333;
}

#regionItems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding-bottom: 8px;
}

.region-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.region-item {
  border: 2px solid #e4e7ed;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 200px;
}

.region-item:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.region-item.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2ff 100%);
}

.region-item.active {
  border-color: #27ae60;
  background: linear-gradient(135deg, #f0fff4 0%, #e8f8f0 100%);
}

.region-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}

.region-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-name i {
  margin-right: 4px;
  color: #667eea;
}

.region-signal {
  display: flex;
  align-items: center;
  gap: 4px;
}

.region-signal i {
  font-size: 14px;
}

.signal-text {
  font-size: 11px;
  font-weight: 600;
}

.region-status {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  flex-shrink: 0;
  font-weight: 600;
}

.region-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #666;
  font-weight: 600;
}

.meta-item i {
  font-size: 12px;
}

.region-quantity {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e4e7ed;
}

.region-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
}

.remain-section {
  display: flex;
  align-items: center;
}

.remain-label {
  color: #999;
  font-size: 12px;
  font-weight: 600;
}

.remain-value {
  font-weight: 700;
  color: #27ae60;
  font-size: 14px;
}

.cart-toggle-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  z-index: 10000;
  font-size: 20px;
  transition: all 0.3s;
}

.cart-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2998;
}

.cart-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  display: none;
}

@media (max-width: 768px) {
  .buy-container {
    flex-direction: column;
  }
  
  .product-section {
    width: 100%;
  }
  
  .cart-section {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100%;
    z-index: 2999;
    transition: right 0.3s ease;
    border-radius: 0;
  }
  
  .cart-section.cart-open {
    right: 0;
  }
  
  .cart-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .cart-overlay.cart-overlay-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .cart-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cart-close-btn {
    display: block;
  }
  
  .cart-section .section-body {
    max-height: calc(100vh - 280px);
  }
}

.confirm-modal-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.6) !important;
  z-index: 999999 !important;
  justify-content: center !important;
  align-items: center !important;
}

.confirm-modal-overlay.active {
  display: flex !important;
}

.confirm-modal {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  min-width: 480px !important;
  max-width: 90vw !important;
  max-height: 75vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  animation: modalFadeIn 0.25s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  overflow: hidden !important;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-modal-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}

.confirm-modal-message {
  font-size: 14px !important;
  color: #666 !important;
  margin-bottom: 16px !important;
  text-align: left !important;
  line-height: 1.6 !important;
  overflow-y: auto !important;
  flex: 1 !important;
  word-break: break-word !important;
  min-height: 0 !important;
}

.confirm-modal-buttons {
  display: flex !important;
  gap: 12px !important;
}

.confirm-modal-btn {
  flex: 1 !important;
  padding: 12px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.confirm-modal-btn.cancel {
  background: #f0f0f0 !important;
  color: #333 !important;
}

.confirm-modal-btn.cancel:hover {
  background: #e0e0e0 !important;
}

.confirm-modal-btn.confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.confirm-modal-btn.confirm:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.change-ip-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.change-ip-modal-overlay.show {
  display: flex;
}

.change-ip-modal {
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

@keyframes modalPopup {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.change-ip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.change-ip-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.change-ip-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.change-ip-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.change-ip-modal-body {
  padding: 15px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.change-ip-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.tab-btn {
  padding: 10px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.tab-btn:hover:not(.active) {
  border-color: #667eea;
  color: #667eea;
}

.change-ip-content {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.info-box {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  color: #666;
  font-size: 13px;
}

.info-box i {
  margin-right: 10px;
  color: #667eea;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e4e7ed;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

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

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.radio-group input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.selected-ips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.selected-ips-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.selected-ips-header .count {
  font-size: 12px;
  color: #999;
}

.selected-ips-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
}

.selected-ips-list .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #999;
}

.selected-ips-list .empty-state i {
  font-size: 32px;
  margin-bottom: 8px;
}

.selected-ips-list .empty-state p {
  margin: 0;
  font-size: 13px;
}

.change-ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.change-ip-table thead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.change-ip-table th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e4e7ed;
}

.change-ip-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.change-ip-table tbody tr:hover {
  background: #f8f9fa;
}

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

.change-ip-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e4e7ed;
}

.change-ip-modal-footer .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.change-ip-modal-footer .btn-secondary {
  background: #f0f0f0;
  color: #666;
}

.change-ip-modal-footer .btn-secondary:hover {
  background: #e0e0e0;
}

.change-ip-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.change-ip-modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.change-ip-modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.group-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.group-modal-overlay.show {
  display: flex;
}

.group-modal {
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

.group-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.group-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.group-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.group-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.group-modal-body {
  padding: 24px;
}

.group-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e4e7ed;
}

.group-modal-footer .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.group-modal-footer .btn-secondary {
  background: #f5f7fa;
  color: #606266;
  border: 1px solid #dcdfe6;
}

.group-modal-footer .btn-secondary:hover {
  background: #e4e7ed;
}

.group-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}

.group-modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.group-modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.black-ip-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.black-ip-modal-overlay.show {
  display: flex;
}

.start-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.start-modal-overlay.show {
  display: flex;
}

.start-modal {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

.start-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.start-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.start-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.start-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.start-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.start-modal-body .form-group {
  margin-bottom: 20px;
}

.start-modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.start-modal-body .radio-group {
  display: flex;
  gap: 20px;
}

.start-modal-body .radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.start-modal-body .radio-group input[type="radio"] {
  margin: 0;
}

.start-modal-footer {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.start-modal-footer .btn-primary {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  border: none;
}

.start-modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.start-modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.start-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.start-table thead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.start-table th,
.start-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.start-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #666;
}

.black-ip-modal {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

.black-ip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
}

.black-ip-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.black-ip-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.black-ip-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.black-ip-modal-body {
  padding: 24px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.black-ip-modal-body .warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #dc2626;
}

.black-ip-modal-body .warning-box i {
  font-size: 20px;
  flex-shrink: 0;
}

.black-ip-modal-body .warning-box span {
  font-size: 14px;
  line-height: 1.6;
}

.black-ip-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e4e7ed;
}

.black-ip-modal-footer .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.black-ip-modal-footer .btn-secondary {
  background: #f5f7fa;
  color: #606266;
  border: 1px solid #dcdfe6;
}

.black-ip-modal-footer .btn-secondary:hover {
  background: #e4e7ed;
}

.black-ip-modal-footer .btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
}

.black-ip-modal-footer .btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.black-ip-modal-footer .btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.black-ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.black-ip-table thead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.black-ip-table th {
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e4e7ed;
}

.black-ip-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.black-ip-table tbody tr:hover {
  background: #f8f9fa;
}

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

.renew-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.renew-modal-overlay.show {
  display: flex;
}

.renew-modal {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

.renew-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.renew-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.renew-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.renew-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.renew-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.renew-modal-body .form-group {
  margin-bottom: 20px;
}

.renew-modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.renew-modal-body .form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e4e7ed;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.selected-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.selected-items-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.selected-items-header .count {
  font-size: 12px;
  color: #999;
}

.selected-items-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  margin-bottom: 16px;
}

.renew-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.renew-table thead {
  position: sticky;
  top: 0;
  background: #fff;
}

.renew-table th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e4e7ed;
}

.renew-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.renew-table tbody tr:hover {
  background: #f8f9fa;
}

.renew-summary {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.summary-row span:first-child {
  color: #666;
}

.summary-row.total {
  font-size: 16px;
  font-weight: 600;
  color: #e74c3c;
  border-top: 1px solid #e4e7ed;
  margin-top: 8px;
}

.summary-row.total span:first-child {
  color: #333;
}

.renew-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e4e7ed;
}

.renew-modal-footer .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.renew-modal-footer .btn-secondary {
  background: #f0f0f0;
  color: #666;
}

.renew-modal-footer .btn-secondary:hover {
  background: #e0e0e0;
}

.renew-modal-footer .btn-primary {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.renew-modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

/* User View Modal Styles */
.user-view-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.user-view-modal-overlay.show {
  display: flex;
}

.user-view-modal {
  background: white;
  border-radius: 16px;
  padding: 0;
  width: 95%;
  max-width: 1000px;
  overflow: hidden;
  box-shadow: 0 15px 60px rgba(0,0,0,0.18);
}

.user-view-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.user-view-modal-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-view-modal-header .icon-box {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-view-modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.user-view-modal-header .subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.user-view-modal-header .close-btn {
  border: none;
  background: rgba(255,255,255,0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.user-view-modal-header .close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.user-view-modal-body {
  padding: 20px;
}

.user-view-loading {
  text-align: center;
  padding: 30px;
  color: #666;
}

.user-view-content {
  display: none;
}

.user-view-warning {
  background: #fff7e6;
  border-left: 4px solid #faad14;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 0 4px 4px 0;
}

.user-view-warning-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d48806;
  font-size: 13px;
  line-height: 1.6;
}

.user-view-warning-row.mb-8 {
  margin-bottom: 8px;
}

.user-view-warning-row .icon-placeholder {
  width: 20px;
  visibility: hidden;
}

.user-view-table-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.user-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 800px;
}

.user-view-table thead tr {
  background: #e9ecef;
}

.user-view-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
  font-weight: 600;
}

.user-view-table th.text-center {
  text-align: center;
}

.user-view-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}

.user-view-table td.text-center {
  text-align: center;
}

.user-view-table input[type="checkbox"] {
  cursor: pointer;
}

.user-view-table input[type="number"] {
  width: 70px;
  padding: 4px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.user-view-empty {
  display: none;
  text-align: center;
  padding: 30px;
  color: #999;
}

.user-view-empty i {
  font-size: 40px;
  margin-bottom: 10px;
}

.user-view-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}

.user-view-modal-footer .btn {
  padding: 11px 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  border: none;
}

.user-view-modal-footer .btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.user-view-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(102,126,234,0.35);
}

/* Batch User View Modal Styles */
.batch-user-view-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.batch-user-view-modal-overlay.show {
  display: flex;
}

.batch-user-view-modal {
  background: white;
  border-radius: 16px;
  padding: 0;
  width: 95%;
  max-width: 1000px;
  overflow: hidden;
  box-shadow: 0 15px 60px rgba(0,0,0,0.18);
}

.batch-user-view-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.batch-user-view-modal-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-user-view-modal-header .icon-box {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.batch-user-view-modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.batch-user-view-modal-header .subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.batch-user-view-modal-header .close-btn {
  border: none;
  background: rgba(255,255,255,0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.batch-user-view-modal-header .close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.batch-user-view-modal-body {
  padding: 20px;
}

.batch-user-view-loading {
  text-align: center;
  padding: 30px;
  color: #666;
}

.batch-user-view-content {
  display: none;
}

.batch-user-view-warning {
  background: #fff7e6;
  border-left: 4px solid #faad14;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 0 4px 4px 0;
}

.batch-user-view-warning-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d48806;
  font-size: 13px;
  line-height: 1.6;
}

.batch-user-view-warning-row.mb-8 {
  margin-bottom: 8px;
}

.batch-user-view-warning-row .icon-placeholder {
  width: 20px;
  visibility: hidden;
}

.batch-user-view-table-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.batch-user-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 800px;
}

.batch-user-view-table thead tr {
  background: #e9ecef;
}

.batch-user-view-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
  font-weight: 600;
}

.batch-user-view-table th.text-center {
  text-align: center;
}

.batch-user-view-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}

.batch-user-view-table td.text-center {
  text-align: center;
}

.batch-user-view-table input[type="checkbox"] {
  cursor: pointer;
}

.batch-user-view-table input[type="number"] {
  width: 70px;
  padding: 4px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.batch-user-view-empty {
  display: none;
  text-align: center;
  padding: 30px;
  color: #999;
}

.batch-user-view-empty i {
  font-size: 40px;
  margin-bottom: 10px;
}

.batch-user-view-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}

.batch-user-view-modal-footer .btn {
  padding: 11px 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  border: none;
}

.batch-user-view-modal-footer .btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.batch-user-view-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(102,126,234,0.35);
}

/* User Recharge Modal Styles */
.user-recharge-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.user-recharge-modal-overlay.show {
  display: flex;
}

.user-recharge-modal {
  background: white;
  border-radius: 16px;
  padding: 0;
  width: 95%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 15px 60px rgba(0,0,0,0.18);
}

.user-recharge-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.user-recharge-modal-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-recharge-modal-header .icon-box {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-recharge-modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.user-recharge-modal-header .subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.user-recharge-modal-header .close-btn {
  border: none;
  background: rgba(255,255,255,0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.user-recharge-modal-header .close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.user-recharge-modal-body {
  padding: 24px;
}

.user-recharge-modal-body .form-group {
  margin-bottom: 20px;
}

.user-recharge-modal-body label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.user-recharge-modal-body input[type="number"],
.user-recharge-modal-body input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.user-recharge-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}

.user-recharge-modal-footer .btn {
  padding: 11px 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  border: none;
}

.user-recharge-modal-footer .btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.user-recharge-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(102,126,234,0.35);
}

.renew-modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 推广链接容器样式 */
.link-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.link-text {
    display: block;
    word-break: break-all;
    font-size: 12px;
    color: #409eff;
    text-decoration: underline;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-text:hover {
    color: #66b1ff;
}

.link-container .btn {
    align-self: flex-start;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #f0f9eb;
    color: #67c23a;
}

.status-inactive {
    background: #f5f5f5;
    color: #909399;
}

.status-pending {
    background: #fdf6ec;
    color: #e6a23c;
}

.status-default {
    background: #f5f5f5;
    color: #909399;
}

/* 开关按钮样式 */
.switch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-inner {
    display: inline-block;
    width: 52px;
    height: 28px;
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(103, 194, 58, 0.4), inset 0 1px 2px rgba(255,255,255,0.3);
}

.switch-inner::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.switch-inner::after {
    content: '开';
    position: absolute;
    right: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    line-height: 28px;
}

.switch-label input[type="checkbox"]:not(:checked) + .switch-inner {
    background: linear-gradient(135deg, #ccc 0%, #e0e0e0 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 2px rgba(255,255,255,0.5);
}

.switch-label input[type="checkbox"]:not(:checked) + .switch-inner::before {
    transform: translateX(24px);
}

.switch-label input[type="checkbox"]:not(:checked) + .switch-inner::after {
    content: '关';
    right: auto;
    left: 8px;
}

/* 平均时长模态框样式 */
.avg-time-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.avg-time-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.avg-time-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 950px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.avg-time-modal-overlay.show .avg-time-modal {
  transform: translateY(0);
}

.avg-time-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.avg-time-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avg-time-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.avg-time-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.avg-time-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.avg-time-modal-body .form-group {
  margin-bottom: 24px;
}

.avg-time-modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

.avg-time-modal-body .form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background: #fff;
}

.avg-time-modal-body .form-group select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.selected-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.selected-items-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-items-header .count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.selected-items-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.avg-time-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.avg-time-table thead {
  background: #f8f9fa;
  color: #495057;
  position: sticky;
  top: 0;
  z-index: 1;
}

.avg-time-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.avg-time-table tbody tr {
  background: #fff;
  transition: all 0.2s ease;
}

.avg-time-table tbody tr:hover {
  background: #f0f4ff;
}

.avg-time-table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #e9ecef;
}

.avg-time-table .time-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.avg-time-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
}

.avg-time-modal-footer .btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avg-time-modal-footer .btn-secondary {
  background: #e9ecef;
  color: #495057;
}

.avg-time-modal-footer .btn-secondary:hover {
  background: #dee2e6;
}

.avg-time-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.avg-time-modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.avg-time-modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pack-switch-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.pack-switch-modal-overlay.show {
  display: flex;
}

.pack-switch-modal {
  width: 95%;
  max-width: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

.pack-switch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.pack-switch-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.pack-switch-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.pack-switch-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pack-switch-modal-body {
  padding: 24px;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}

.pack-switch-modal-body .form-group {
  margin-bottom: 20px;
}

.pack-switch-modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.pack-switch-modal-body .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pack-switch-modal-body .form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.selected-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e7ed;
}

.selected-items-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.selected-items-header .count {
  font-size: 13px;
  color: #999;
}

.selected-items-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.pack-switch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pack-switch-table thead {
  background: #f8f9fa;
  color: #495057;
  position: sticky;
  top: 0;
  z-index: 1;
}

.pack-switch-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.pack-switch-table tbody tr {
  background: #fff;
  transition: all 0.2s ease;
}

.pack-switch-table tbody tr:hover {
  background: #f0f4ff;
}

.pack-switch-table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #e9ecef;
}

.pack-switch-table .time-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pack-switch-table .new-etime {
  color: #667eea;
  font-weight: 500;
}

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

.pack-switch-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e4e7ed;
}

.pack-switch-modal-footer .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pack-switch-modal-footer .btn-secondary {
  background: #f0f0f0;
  color: #666;
  border: none;
}

.pack-switch-modal-footer .btn-secondary:hover {
  background: #e0e0e0;
}

.pack-switch-modal-footer .btn-primary {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.pack-switch-modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.pack-switch-modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.node-move-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.node-move-modal-overlay.show {
  display: flex;
}

.node-move-modal {
  width: 95%;
  max-width: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPopup 0.3s ease;
}

.node-move-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
}

.node-move-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.node-move-modal-header .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.node-move-modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.node-move-modal-body {
  padding: 24px;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}

.node-move-modal-body .warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #dc2626;
}

.node-move-modal-body .warning-box i {
  font-size: 20px;
  flex-shrink: 0;
}

.node-move-modal-body .warning-box span {
  font-size: 14px;
  line-height: 1.6;
}

.node-move-modal-body .form-group {
  margin-bottom: 20px;
}

.node-move-modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.node-move-modal-body .form-group label .required {
  color: #dc2626;
}

.node-move-modal-body .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e4e7ed;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}

.node-move-modal-body .form-group input:focus {
  outline: none;
  border-color: #f39c12;
}

.node-move-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.node-move-table thead {
  background: #f8f9fa;
  color: #495057;
  position: sticky;
  top: 0;
  z-index: 1;
}

.node-move-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.node-move-table tbody tr {
  background: #fff;
  transition: all 0.2s ease;
}

.node-move-table tbody tr:hover {
  background: #fef9e7;
}

.node-move-table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #e9ecef;
}

.node-move-table .time-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.node-move-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e4e7ed;
}

.node-move-modal-footer .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.node-move-modal-footer .btn-secondary {
  background: #f0f0f0;
  color: #666;
  border: none;
}

.node-move-modal-footer .btn-secondary:hover {
  background: #e0e0e0;
}

.node-move-modal-footer .btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.node-move-modal-footer .btn-warning:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

.node-move-modal-footer .btn-warning:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 表单容器 */
.form-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 50px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 密码表单 */
.password-form .form-group {
	margin-bottom: 32px;
}

.password-form .form-group label {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
	color: #333;
	font-size: 16px;
}

.password-form .form-group label .required {
	color: #dc2626;
}

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

.form-input {
	width: 100%;
	padding: 16px 20px;
	padding-right: 85px;
	border: 2px solid #e5e7eb;
	border-radius: 14px;
	font-size: 16px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.info-section .form-input ,.password-form .form-input {
	height: 50px;
}

.form-input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.08);
	background: #ffffff;
}

.form-input::placeholder {
	color: #9ca3af;
}

.toggle-password {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
	border: 0;
	color: #6b7280;
	cursor: pointer;
	font-size: 18px;
	padding: 10px 14px;
	border-radius: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 35px;
	min-height: 35px;
}

.toggle-password:hover {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	border-color: #d1d5db;
	color: #4b5563;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-50%) scale(1.02);
}

.toggle-password:active {
	transform: translateY(-50%) scale(0.98);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.toggle-password.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-color: #667eea;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.toggle-password.active:hover {
	background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.password-toggle {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
	border: 0;
	color: #6b7280;
	cursor: pointer;
	font-size: 16px;
	padding: 10px 14px;
	border-radius: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	z-index: 10;
}

.password-toggle:hover {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	border-color: #d1d5db;
	color: #4b5563;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-50%) scale(1.02);
}

.password-toggle:active {
	transform: translateY(-50%) scale(0.98);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.password-toggle.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-color: #667eea;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.password-toggle.active:hover {
	background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.password-hint {
	margin-top: 10px;
	font-size: 14px;
	color: #6b7280;
}

.password-match-error {
	margin-top: 10px;
	font-size: 14px;
	color: #dc2626;
	font-weight: 500;
	min-height: 20px;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #f3f4f6;
}

.form-actions .btn {
	min-width: 120px;
	padding: 16px 32px;
	font-weight: 500;
	font-size: 16px;
}

.form-actions .btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: none;
}

.form-actions .btn-secondary:hover {
	background: #e5e7eb;
}

.form-actions .btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-actions .btn-primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-actions .btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* 个人信息页面样式 */
.profile-container {
	max-width: 900px;
	margin: 0 auto;
}

.profile-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin-bottom: 24px;
}

.profile-header {
	display: flex;
	align-items: center;
	padding: 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.avatar-container {
	margin-right: 24px;
}

.avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-info .username {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 600;
}

.profile-info .user-role {
	margin: 0;
	font-size: 14px;
	opacity: 0.9;
}

.profile-body {
	padding: 32px;
}

.info-section {
	margin-bottom: 32px;
}

.info-section:last-child {
	margin-bottom: 0;
}

.section-title {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-title i {
	color: #667eea;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.info-item.highlight {
	background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
	border-color: #c7d2fe;
}

.info-item label {
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
}

.info-value {
	font-size: 15px;
	color: #1f2937;
	font-weight: 500;
}

.coin-value {
	font-size: 20px;
	color: #667eea;
	font-weight: 700;
}

.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.status-success {
	background: #dcfce7;
	color: #166534;
}

.status-danger {
	background: #fee2e2;
	color: #991b1b;
}

.status-warning {
	background: #fef3c7;
	color: #92400e;
}

.edit-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.edit-link:hover {
	color: #5a6fd6;
	text-decoration: underline;
}

.profile-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
}

.profile-actions .btn {
	padding: 12px 28px;
	font-size: 15px;
}

.loading-cell {
	padding: 40px !important;
	text-align: center;
}

.loading-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #667eea;
	font-size: 16px;
}

.loading-spinner i {
	font-size: 24px;
}

.empty-cell {
	padding: 40px !important;
	text-align: center;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: #9ca3af;
}

.empty-state i {
	font-size: 48px;
	opacity: 0.5;
}

.empty-state p {
	margin: 0;
	font-size: 14px;
}

@media (max-width: 768px) {
	.profile-header {
		flex-direction: column;
		text-align: center;
		padding: 24px;
	}
	
	.avatar-container {
		margin-right: 0;
		margin-bottom: 16px;
	}
	
	.info-grid {
		grid-template-columns: 1fr;
	}
	
	.profile-actions {
		flex-direction: column;
	}
	
	.profile-actions .btn {
    width: 100%;
}
}

.info-item .edit-link {
    margin-left: 10px;
    font-size: 14px;
}

.phone-edit-btn {
    width:50px;
    padding: 4px 12px;
    font-size: 13px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.phone-edit-btn:active {
    transform: translateY(0);
}

.user-group-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.user-group-modal-overlay.show {
    display: flex;
}

.user-group-modal {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalPopup 0.3s ease;
}

.user-group-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.user-group-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.user-group-modal-header .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.user-group-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-group-modal-body {
    padding: 24px;
}

.user-group-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e4e7ed;
}

.user-group-modal-footer .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.user-group-modal-footer .btn-secondary {
    background: #f5f7fa;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.user-group-modal-footer .btn-secondary:hover {
    background: #e4e7ed;
}

.user-group-modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.user-group-modal-footer .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.user-group-modal-footer .btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 金币流水样式 */
.statxt-badge {
	display: inline-block;
	padding: 4px 12px;
	color: #fff;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.statxt-renew {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.statxt-buy {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.statxt-recharge {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.statxt-withdraw {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.statxt-transfer {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.statxt-commission {
	background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.statxt-default {
	background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.tcoin-positive {
	color: #10b981;
	font-weight: 600;
	font-size: 15px;
}

.tcoin-negative {
	color: #ef4444;
	font-weight: 600;
	font-size: 15px;
}

/* 通用模态框样式 */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.modal-overlay.show {
	display: flex;
}

.modal {
	width: 95%;
	max-width: 560px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: modalPopup 0.3s ease;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.modal-header .modal-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.2s;
}

.modal-header .modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid #e4e7ed;
}

.modal-footer .btn {
	min-width: 100px;
}

.test-result-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.test-result-table thead {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.test-result-table th {
	padding: 8px 6px;
	text-align: left;
	font-weight: 600;
	color: #666;
	font-size: 11px;
	border-bottom: 2px solid #dee2e6;
	white-space: nowrap;
}

.test-result-table td {
	padding: 8px 6px;
	border-bottom: 1px solid #f0f0f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 120px;
}

.test-result-table tbody tr:hover {
	background: #f8f9fa;
}

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

.batch-search-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.batch-search-table thead {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.batch-search-table th {
	padding: 8px 6px;
	text-align: left;
	font-weight: 600;
	color: #666;
	font-size: 11px;
	border-bottom: 2px solid #dee2e6;
	white-space: nowrap;
}

.batch-search-table td {
	padding: 8px 6px;
	border-bottom: 1px solid #f0f0f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 120px;
}

.batch-search-table tbody tr:hover:not([style*="background:#fef2f2"]) {
	background: #f8f9fa;
}

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

.batch-search-table input[type="checkbox"] {
	cursor: pointer;
}

.batch-search-table input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

/* 游戏搜索下拉框样式 */
.searchable-select {
	position: relative;
	flex: 1;
	width: auto;
}

.searchable-select input {
	width: 100%;
	padding: 6px;
	border: 1px solid #e4e7ed;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	cursor: pointer;
}

.searchable-select input:focus {
	border-color: #667eea;
}

/* 模态框中的搜索下拉框样式 */
.change-ip-modal-body .searchable-select input {
	padding: 12px;
	border: 2px solid #e4e7ed;
	border-radius: 8px;
	font-size: 14px;
}

.change-ip-modal-body .searchable-select input:focus {
	border-color: #667eea;
}

.change-ip-modal-body .game-dropdown {
	border-radius: 0 0 8px 8px;
}

.game-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #e4e7ed;
	border-top: none;
	border-radius: 0 0 4px 4px;
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
}

.info-box {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.info-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: calc(33.333% - 8px);
	padding: 12px;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	background: #f8f9fa;
}

.info-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	margin: 5px;
	border-bottom: 1px solid #e9ecef;
}

.info-label {
	color: #6c757d;
	font-size: 13px;
	margin-bottom: 4px;
}

.info-value {
	color: #212529;
	font-size: 14px;
	font-weight: 600;
	word-break: break-all;
}

.top-stat-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  flex: 1; /* 5个卡片自动平分宽度 */
  padding: 20px 16px;
  border-radius: 8px;
  color: #fff;
}
.stat-card-1 { background: #ffffff; color: #333; border: 1px solid #e6e8eb; }
.stat-card-2 { background: #9254de; }
.stat-card-3 { background: #1677ff; }
.stat-card-4 { background: #36c66c; }
.stat-card-5 { background: #fa8c16; }
.stat-title {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.stat-num {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 13px;
  opacity: 0.8;
}
