/* 用户功能样式 */

/* 导航栏用户信息 */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-nickname {
  font-weight: 600;
  color: #333;
}

.coin-badge {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #8b4513;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.vip-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.nav-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.nav-btn:hover {
  opacity: 0.8;
}

/* 权限遮罩 */
.permission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.permission-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.permission-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.permission-content h3 {
  margin: 0 0 8px 0;
  color: #333;
}

.permission-content p {
  color: #666;
  margin: 0 0 24px 0;
}

.permission-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 弹窗基础样式 */
.user-modal-overlay,
.vip-center-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.user-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.user-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.user-modal-header h3 {
  margin: 0;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

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

/* 默认提示文字颜色 */
#code-output.default-hint {
  color: #d4d4d4;  /* 设置您想要的颜色 */
  font-size:13px;
}

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

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

.user-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.user-group input:focus {
  outline: none;
  border-color: #4f46e5;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.code-input-wrapper {
  display: flex;
  gap: 12px;
}

.code-input-wrapper input {
  flex: 1;
}

.code-input-wrapper .btn {
  flex-shrink: 0;
}

.modal-switch {
  text-align: center;
  margin-top: 16px;
  color: #666;
}

.modal-switch a {
  color: #4f46e5;
  text-decoration: none;
}

.modal-switch a:hover {
  text-decoration: underline;
}

/* 会员中心 */
.vip-center {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vip-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #4b4b4f, #000000);
  color: white;
}

.vip-center-header h3 {
  margin: 0;
}

.vip-center-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.vip-section {
  margin-bottom: 24px;
}

.vip-section h4 {
  margin: 0 0 16px 0;
  color: #333;
  border-left: 4px solid #4f46e5;
  padding-left: 12px;
}

.vip-section_user {
  float: left;
  width: 60%;
  margin-bottom: 24px;
}

.vip-section_user h4 {
  margin: 0 0 16px 0;
  color: #333;
  border-left: 4px solid #4f46e5;
  padding-left: 12px;
}

.vip-section_ok {
  float: right;
  width: 36%;
  margin-bottom: 24px;
}

.vip-section_ok h4 {
  margin: 0 0 16px 0;
  color: #333;
  border-left: 4px solid #4f46e5;
  padding-left: 12px;
}

.vip-section_buy {
  clear: both;
  margin-bottom: 24px;
}

.vip-section_buy h4 {
  margin: 0 0 16px 0;
  color: #333;
  border-left: 4px solid #4f46e5;
  padding-left: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-label {
  color: #666;
}

.info-value {
  color: #333;
  font-weight: 500;
}

.info-value.coin {
  color: #d97706;
        display: flex;           /* 添加 */
    align-items: center;     /* 添加 */
    gap: 8px;               /* 添加（图标和文字间距） */
}

.vip-status {
  padding: 23px 16px;
  border-radius: 12px;
  text-align: center;
}

.vip-status.vip-active {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
}

.vip-status.vip-inactive {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.vip-badge-large {
  font-size: 30px;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 8px;
}

.vip-status p {
  margin: 0;
  color: #666;
}

.vip-status span {
  font-weight: 600;
  color: #333;
}

/* 套餐网格 */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.package-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.package-card:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
}

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

.package-duration {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.package-price {
  font-weight: 700;
  color: #d97706;
  margin-bottom: 12px;
    display: inline-flex;           /* 添加 */
    align-items: center;     /* 添加 */
    gap: 8px;               /* 添加（图标和文字间距） */
}

/* 用户区域容器 */
.user-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 用户信息迷你区域（参数设置旁边） */
.user-info-mini {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.user-info-mini .user-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* 用户下拉菜单 */
.user-dropdown {
  position: absolute;
  top: 52px;
  right: 2px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  z-index: 1000;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius:0px;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-item-disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  cursor: default;
  font-size: 12px;
  border-bottom: 1px solid #eee;
  padding: 12px 16px;
}

.dropdown-item-disabled .user-name {
  color: #333;
  font-weight: 500;
}

.dropdown-item-disabled .user-coin {
  color: #d97706;
  font-weight: 500;
  display: inline-flex;           /* 添加 */
  align-items: center;     /* 添加 */
  gap: 2px;               /* 添加（图标和文字间距） */
}

.dropdown-item-disabled .user-vip {
  background: #e54d4d;
  color: white;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.dropdown-item-disabled:hover {
  background: none;
}

/* 调整参数设置面板头部样式 */
.sidebar-right .panel-header {
  position: relative;
}

/* 消费记录 */
.records-list {
  max-height: 200px;
  overflow-y: auto;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.record-type {
  color: #666;
}

.record-amount {
  font-weight: 600;
}

.record-desc {
  flex: 1;
  margin: 0 12px;
  color: #333;
}

.record-time {
  color: #999;
  font-size: 12px;
}

.empty {
  text-align: center;
  color: #999;
  padding: 20px;
}

/* 充值选项 */
.recharge-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.recharge-option {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.recharge-option:hover {
  border-color: #4f46e5;
}

.recharge-amount {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.recharge-coins {
  font-size: 12px;
  color: #d97706;
  margin-top: 4px;
}

.recharge-tip {
  text-align: center;
  color: #999;
  font-size: 12px;
}

/* Toast消息提示 */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 2000;
  animation: slideIn 0.3s ease;
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
