:root{ --gold:#f5c147; --line:#2a200a; --card:#2b2618; --card2:#1d1a12; --text:#eee; --muted:#aaa; }
.user-card{
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg,var(--card),var(--card2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  
  /* 固定卡片大小 */
  width: 600px;
  height: 120px;
  min-width: 600px;
  min-height: 120px;
  max-width: 600px;
  max-height: 120px;
}
.user-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.35);}
.user-avt{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #5a4b1a;
  border: 2px solid #b3973d;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
  /* 固定头像大小 */
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
}
.user-avt img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.user-info{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  
  /* 固定用户信息区域大小 */
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}
.user-name{
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* 固定用户名大小 */
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  line-height: 24px;
}
.user-stats{
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: #ffd36b;
  align-items: center;
  flex-wrap: wrap;
  
  /* 固定统计信息大小 */
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
}
.user-stat{display:flex;gap:6px;align-items:center}
.user-coin{color:#ffd86f;text-shadow:0 0 8px rgba(255,216,111,.45)}
.user-actions{
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  
  /* 固定操作按钮区域大小 - 调整为三个按钮横向平铺 */
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  
  /* 按钮布局 - 强制横向平铺，不转行 */
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-direction: row;
}

/* 统一按钮样式 */
.user-actions .btn,
.user-actions button {
  /* 重置所有可能的样式 */
  all: unset;
  box-sizing: border-box;
  
  /* 固定按钮尺寸 - 确保不被压缩 */
  width: 80px;
  height: 36px;
  min-width: 80px;
  min-height: 36px;
  max-width: 80px;
  max-height: 36px;
  
  /* 内边距 */
  padding: 0;
  
  /* 基础样式 */
  border: 1px solid #b68c21;
  background: #2a2a2a;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  
  /* 字体样式 */
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  
  /* 过渡效果 */
  transition: all 0.2s ease;
  
  /* 确保按钮内容居中 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* 文本溢出处理 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* 防止按钮被压缩和换行 */
  flex-shrink: 0;
  flex-grow: 0;
}

/* 按钮悬停效果 */
.user-actions .btn:hover,
.user-actions button:hover {
  background: #3a3a3a;
  border-color: #c68c21;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* 主要按钮样式 */
.user-actions .btn-primary,
.user-actions button.btn-primary {
  background: linear-gradient(180deg, #6ee07c, #2bb34d);
  color: #112115;
  border: 1px solid #2bb34d;
  font-weight: 800;
}

.user-actions .btn-primary:hover,
.user-actions button.btn-primary:hover {
  background: linear-gradient(180deg, #5dd06b, #1aa23c);
  border-color: #1aa23c;
}

/* 警告按钮样式 */
.user-actions .btn-warning,
.user-actions button.btn-warning {
  background: linear-gradient(180deg, #f7d870, #d6a528);
  color: #312100;
  border: 1px solid #d1a21f;
  font-weight: 800;
}

.user-actions .btn-warning:hover,
.user-actions button.btn-warning:hover {
  background: linear-gradient(180deg, #f5d660, #c69518);
  border-color: #c1950f;
}

/* 普通按钮样式 */
.user-actions .btn:not(.btn-primary):not(.btn-warning),
.user-actions button:not(.btn-primary):not(.btn-warning) {
  background: #2a2a2a;
  color: var(--text);
  border: 1px solid #b68c21;
}

.user-actions .btn:not(.btn-primary):not(.btn-warning):hover,
.user-actions button:not(.btn-primary):not(.btn-warning):hover {
  background: #3a3a3a;
  border-color: #c68c21;
}

/* 按钮禁用状态 */
.user-actions .btn:disabled,
.user-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.user-actions .btn:disabled:hover,
.user-actions button:disabled:hover {
  background: inherit;
  border-color: inherit;
  transform: none;
  box-shadow: none;
}

.user-card[aria-disabled="true"]{opacity:.8;cursor:default}

/* 响应式设计 */
@media (max-width: 720px) {
  .user-card {
    width: 90vw;
    min-width: 90vw;
    max-width: 90vw;
    height: auto;
    min-height: 120px;
    padding: 12px 16px;
  }
  
  .user-info {
    width: auto;
    min-width: auto;
    max-width: none;
    flex: 1;
  }
  
  .user-name {
    width: auto;
    min-width: auto;
    max-width: none;
  }
  
  .user-stats {
    width: auto;
    min-width: auto;
    max-width: none;
  }
  
  .user-actions {
    width: auto;
    min-width: auto;
    max-width: none;
    height: auto;
    min-height: auto;
    max-height: none;
    justify-content: center;
    gap: 6px;
    
    /* 移动端也保持横向布局 */
    flex-wrap: nowrap;
    flex-direction: row;
    
    /* 确保移动端能容纳三个按钮 */
    min-width: 200px;
  }
  
  .user-actions .btn,
  .user-actions button {
    width: 60px;
    height: 28px;
    min-width: 60px;
    min-height: 28px;
    max-width: 60px;
    max-height: 28px;
    font-size: 11px;
    line-height: 28px;
    
    /* 移动端也防止压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
}

/* 确保在所有页面中按钮样式一致 - 高优先级 */
#user-info .user-card .user-actions .btn,
#user-info .user-card .user-actions button,
#nav-user .user-card .user-actions .btn,
#nav-user .user-card .user-actions button {
  /* 继承上面的统一样式 */
}

/* 强制按钮容器不换行 */
.user-card .user-actions {
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  overflow: visible !important;
}

/* 强制按钮不换行 */
.user-card .user-actions .btn,
.user-card .user-actions button {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  white-space: nowrap !important;
}

/* 高优先级样式覆盖 - 确保不被其他样式影响 */
.user-card .user-actions .btn,
.user-card .user-actions button {
  /* 强制应用统一样式 */
  width: 80px !important;
  height: 36px !important;
  min-width: 80px !important;
  min-height: 36px !important;
  max-width: 80px !important;
  max-height: 36px !important;
  padding: 0 !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  line-height: 36px !important;
  
  /* 强制横向布局，防止换行 */
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  white-space: nowrap !important;
}

/* 特定按钮类型的高优先级样式 */
.user-card .user-actions .btn-primary,
.user-card .user-actions button.btn-primary {
  background: linear-gradient(180deg, #6ee07c, #2bb34d) !important;
  color: #112115 !important;
  border: 1px solid #2bb34d !important;
  font-weight: 800 !important;
}

.user-card .user-actions .btn-warning,
.user-card .user-actions button.btn-warning {
  background: linear-gradient(180deg, #f7d870, #d6a528) !important;
  color: #312100 !important;
  border: 1px solid #d1a21f !important;
  font-weight: 800 !important;
}

.user-card .user-actions .btn:not(.btn-primary):not(.btn-warning),
.user-card .user-actions button:not(.btn-primary):not(.btn-warning) {
  background: #2a2a2a !important;
  color: var(--text) !important;
  border: 1px solid #b68c21 !important;
}
