/* style.css */

/* ===============================================
   基础样式重置
   =============================================== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  padding: 0 1rem;
  margin: 0;
  font-family: "微软雅黑", "eras demi itc", sans-serif; /* 添加通用字体回退 */
}

img {
  display: block;
}

ul,
li,
ol {
  list-style: none;
}

/* ===============================================
   页面布局和通用组件
   =============================================== */
.box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.box div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list {
  margin-right: 1rem;
  width: 1.2rem;
  height: 1.2rem;
}

.box .right {
  margin-left: 0rem;
  width: 1.2rem;
  height: 1.2rem;
}

/* 水平线样式 */
.box3 + hr, .box6 + hr, .box8 + hr, .add-tag-container + hr, .box9 + hr, .box10 + hr, .story-container.has-stories + hr {
  opacity: 0.3;
  margin: 0.5rem 0;
  width: 100%;
  max-width: 100%;
  border: none;
  border-top: 1px solid currentColor;
  position: relative;
  left: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ===============================================
   头部导航区域
   =============================================== */
.box1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}

.box1 .box1_left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.box1 .box1_right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.5rem;
}

.box1 .box1_right .box1_right_div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.box1_right_div3 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.box1 img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

#img1 {
  width: 1.8rem;
}

/* 顶部背景容器 */
.header-bg-wrapper {
  position: relative;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.header-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70.67%;
  background-color: rgb(0, 0, 0);
  z-index: -1;
}

/* ===============================================
   个人信息头部
   =============================================== */
.box2 {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  padding-left: 0.5rem;
  padding-bottom: 1.2rem;
  position: relative;
}

/* 头像样式 */
.avatar-wrapper {
  position: relative;
  width: 5rem;
  height: 5rem;
  margin-right: 1rem;
  overflow: visible;
}

.box2 .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0;
}

.avatar-frame-overlay {
  position: absolute;
  top: -37.5%;
  left: -37.5%;
  width: 175%;
  height: 175%;
  pointer-events: none;
  transform-origin: center;
  z-index: 2; /* 确保头像框在头像之上 */
}

/* 名字样式 */
.box2 h2 {
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0.8rem;
  transition: color 0.3s ease;
}

/* 状态按钮 */
.box2 button {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 0.6rem;
  padding: 0.2rem;
  height: 1.2rem;
  width: 3rem;
  background-color: #fff;
  border: 1px solid #e9e8ea;
  color: #3e4040;
}

.box2 button img {
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.1rem;
  margin-top: 0.1rem;
}

/* 点赞区域 */
.box2 .good {
  position: absolute;
  background-color: transparent;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  right: 0rem;
  bottom: 3.8rem;
}

.box2 .good img {
  width: 1rem;
  height: 1rem;
  margin-bottom: 0.2rem;
}

.box2 .good p {
  font-size: 0.75rem;
  font-weight: bold;
  color: #171918;
}

/* ===============================================
   QQ号码区域
   =============================================== */
.box3 section {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1rem;
}

.box3 section .i1 {
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: -0.3rem;
  top: -0.3rem;
  transform: rotate(315deg);
}


.box3 div {
  display: flex;
  justify-content: flex-start !important;
}

.box3 .i3 {
  width: auto;
  height: 13px;
  margin-left: .3rem;
}

.box3 .i2 {
  margin-top: -3.875px;
  margin-left: -3px;
  width: auto;
  height: 22.5px;
}

.box3 p {
  height: 15px;
  line-height: 15px;
  background: linear-gradient(to right, #EDC386, #DAA45F);
  border: 0;
  color: #000000;
  font-weight: 400;
  padding: 0.01rem 0.3rem 0.3rem 0.1rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* ===============================================
   个性签名和详情区域
   =============================================== */
.box4 {
  display: flex;
  align-items: center;
}

.box5 {
  color: #252525;
}

/* ===============================================
   会员图标和等级区域
   =============================================== */
.box7_right {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0;
  /* 移除间距 */
}

/* 统一 box7_right 内的图片大小 */
.box7_right img {
  height: 16px; /* 统一高度为16px */
  width: auto; /* 宽度自适应保持比例 */
  margin-right: 0.4rem; /* 适当的右边距 */
  object-fit: contain; /* 确保图片内容完整显示 */
}

/* 会员图标区域 (box8) */
.box8 .box7_right {
  gap: 0.25rem; /* 使用gap来控制间距 */
  overflow-x: hidden;
  white-space: nowrap;
}

/* 统一 box8 内的会员和装饰图标大小 (除vip-icon-15到vip-icon-33) */
.box8 .box7_right img {
  width: 28px; /* 统一宽度为28px */
  height: 28px; /* 统一高度为28px */
  margin-right: 0; /* 移除margin-right，改用gap控制 */
  object-fit: contain;
}

/* 装饰图标6到18的尺寸调整 */
#vip-icon-15, #vip-icon-22, #vip-icon-23, #vip-icon-24, #vip-icon-25, #vip-icon-26, #vip-icon-27, #vip-icon-28, #vip-icon-29, #vip-icon-30, #vip-icon-31, #vip-icon-32, #vip-icon-33 {
    width: 20px; /* 装饰图标6到18的宽度 */
    height: 20px; /* 装饰图标6到18的高度 */
}


/* 勋章图标的特殊大小 */
#medalIcon {
  height: 18px; /* 勋章图标可以稍微大一点 */
  width: auto;
  margin-left: 0.2rem;
}

/* 等级图标的特殊大小 */
.qq-level-icons img {
  height: 16px !important; /* 等级图标保持16px */
  width: 16px !important;
  margin-right: -1px !important; /* 微调间距使紧凑 */
}

/* ===============================================
   故事容器样式
   =============================================== */
.story-container {
  display: flex;
  overflow-x: auto;
  padding: 0.2rem 0 0.2rem 0;
  margin-bottom: 1.5rem;
  margin-top: -0.4rem;
  width: 100%;
  gap: 0.4rem;
  /* 隐藏滚动条 */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  /* 默认隐藏整个故事容器 */
  display: none;
}

/* 当有故事图片时显示容器 */
.story-container.has-stories {
  display: flex;
}

.story-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, and Opera */
}

.story-item {
  flex: 0 0 auto;
  width: calc((100% - 1.2rem) / 4);
  height: calc((100% - 1.2rem) / 4);
  aspect-ratio: 1;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  background-color: #f1f1f7;
  border: 0px solid #ddd;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
}

/* 默认隐藏没有图片的story-item，但不隐藏添加按钮 */
.story-item:not(.add-story) {
  display: none;
}

.story-item.has-image {
  display: block;
  background-color: transparent;
  border: none;
}

.story-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-story {
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #f2f1f7;
}

.add-story-icon {
  font-size: 3rem;
  color: #2da6ec;
  line-height: 1;
}

.add-story p {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #1296e5;
}

/* 完善资料区域 */
.box10 div p:last-child {
  color: #252525;
}

#p1, .share-story {
  color: #1096fb;
  font-size: 0.8rem;
  margin-right: 5px;
}

/* ===============================================
   底部按钮区域
   =============================================== */
.last {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: grid;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  padding: 1rem;
  /* 提供内边距，使按钮不贴边 */
  z-index: 1000;
  /* 确保位于其他元素之上 */
}

.last button {
  width: 100%;
  border: none;
  border: 1.5px solid #d7d7d7;
  height: 35%;
  padding-bottom: 35%;
  position: relative;
  border-radius: 14px;
  background-color: #fff;
}

.last span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 500;
  color: #000;
  font-size: 1rem;
}

.last button:last-child {
  background-color: #0099ff;
  border-color: #0099ff;
}

.last button:last-child span {
  color: #fff !important;
}

/* ===============================================
   等级图标容器样式
   =============================================== */
.level-container {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  height: 16px; /* 统一高度 */
  letter-spacing: -2px;
  font-size: 0;
  white-space: nowrap;
  margin-left: 4px;
}

.level-container img {
  height: 16px; /* 统一高度 */
  width: auto; /* 宽度自适应 */
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  font-size: 0;
  line-height: 0;
  margin-right: -1px;
}

/* 等级图标布局优化 */
.box7_right .level-container {
  margin-right: 0.2rem !important;
}

.box7_right .level-container img {
  margin-right: 0 !important;
}

/* ===============================================
   模态框样式
   =============================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999; /* 确保层级最高 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* 遮罩层 */
  backdrop-filter: blur(5px); /* 整体背景模糊 */
}

.modal-content {
  background-color: #ffffff; /* 修改为白色 */
  margin: 5% auto; /* 菜单缩小并上移，视觉上更集中 */
  padding: 40px 15px 15px 15px; /* 增加顶部内边距，为关闭按钮腾出空间 */
  border-radius: 12px; /* 圆角圆润 */
  width: 90%;
  max-width: 400px; /* 限制最大宽度，在桌面端更显精致 */
  border: 1px solid rgba(220, 220, 220, 0.5); /* 稍微柔和的边框 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* 柔和的阴影 */
  backdrop-filter: none; /* 移除模糊，使其纯白 */
  -webkit-backdrop-filter: none; /* 兼容性前缀 */
  animation-name: animatetop;
  animation-duration: 0.4s;
  color: #333; /* 文本颜色 */
  position: relative; /* 确保关闭按钮定位正确 */
  max-height: 90vh; /* 限制最大高度，避免过长 */
  display: flex; /* 使用 flex 布局 */
  flex-direction: column; /* 内容垂直堆叠 */
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0
  }

  to {
    top: 5%; /* 动画结束位置与margin-top一致 */
    opacity: 1
  }
}

/* 优化关闭按钮样式 - 更精致和交互友好 */
.close {
  color: #616161; /* 深灰色，与主题色搭配 */
  position: absolute; /* 绝对定位 */
  top: 10px; /* 调整位置 */
  right: 10px; /* 调整位置 */
  font-size: 24px; /* 适中大小 */
  font-weight: normal; /* 取消粗体，更显精致 */
  line-height: 1; /* 确保垂直居中 */
  background-color: transparent; /* 确保背景透明 */
  border-radius: 50%; /* 圆形 */
  padding: 5px; /* 增加点击区域 */
  cursor: pointer;
  transition: all 0.2s ease-in-out; /* 平滑过渡动画 */
  text-shadow: none; /* 移除文字阴影 */
  z-index: 10010; /* 确保关闭按钮的z-index足够高，覆盖所有内部元素 */
}

.close:hover,
.close:focus {
  color: #333; /* 鼠标悬停时颜色加深 */
  background-color: rgba(0, 0, 0, 0.05); /* 悬停时出现轻微的背景高光 */
  transform: rotate(90deg); /* 悬停时旋转，增加趣味性和反馈 */
  outline: none; /* 移除焦点边框 */
}

/* ===============================================
   表单样式 - 优化输入框和提交按钮，统一玻璃风格
   =============================================== */
/* 确保表单区域可滚动，并且不被 tab-navigation 遮挡 */
#editForm {
    flex-grow: 1; /* 让表单内容区域填充剩余空间 */
    overflow-y: auto; /* 内容溢出时显示垂直滚动条 */
    padding-right: 5px; /* 为滚动条留出空间 */
    scrollbar-width: thin; /* Firefox */
}
#editForm::-webkit-scrollbar {
    width: 6px; /* Webkit 滚动条宽度 */
}
#editForm::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2); /* Webkit 滚动条颜色 */
    border-radius: 3px;
}
#editForm::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

#editForm label {
  display: block;
  margin-bottom: 8px; /* 减少间距 */
  font-weight: 500; /* 适中字重，更显专业 */
  color: #333; /* 深灰色，易读 */
  font-size: 0.9rem; /* 稍微减小字体 */
}

#editForm input[type="text"],
#editForm input[type="file"],
#editForm input[type="number"] {
  width: 100%;
  padding: 10px; /* 减小内边距 */
  margin-bottom: 15px; /* 减少间距 */
  border: 1px solid #ddd; /* 更清晰的边框 */
  border-radius: 8px; /* 更圆润的圆角 */
  box-sizing: border-box;
  background-color: #f9f9f9; /* 浅色背景 */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* 增加背景色过渡 */
  color: #333; /* 匹配主题的深灰色文本 */
  font-size: 0.9rem; /* 字体大小统一 */
}

#editForm input[type="text"]:focus,
#editForm input[type="file"]:focus,
#editForm input[type="number"]:focus {
  outline: none;
  border-color: #007bff; /* 聚焦时亮蓝色边框 */
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2); /* 聚焦时柔和的蓝色阴影 */
  background-color: #ffffff; /* 聚焦时背景更实，方便输入 */
}

#editForm input[type="submit"] {
  background-color: #007BFF; /* 保持品牌蓝色 */
  color: white;
  padding: 12px 25px; /* 减小内边距 */
  border: none;
  border-radius: 8px; /* 更圆润的圆角 */
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; /* 增加动画效果 */
  font-weight: bold; /* 加粗文字 */
  font-size: 0.95rem; /* 稍微减小字体 */
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2); /* 按钮阴影 */
  margin-top: 20px; /* 增加上方间距 */
}

#editForm input[type="submit"]:hover {
  background-color: #0056b3; /* 鼠标悬停时变深 */
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* 鼠标悬停时阴影更明显 */
  transform: translateY(-1px); /* 轻微上浮效果 */
}

#editForm input[type="submit"]:active {
  transform: translateY(0); /* 点击时恢复原位 */
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.2); /* 点击时阴影变小，模拟按下效果 */
}
  
/* ===============================================
   等级图标样式选择器 - 优化标签样式和交互
   =============================================== */
.icon-style-selector {
  display: flex;
  flex-wrap: wrap; /* 允许换行 */
  gap: 10px; /* 减小间距 */
  margin-bottom: 15px; /* 减小间距 */
}

.icon-style-label {
  cursor: pointer;
  border: 1px solid #ddd; /* 更细的边框 */
  padding: 8px; /* 减小内边距 */
  border-radius: 8px; /* 更圆润的圆角 */
  display: inline-flex; /* 保持内容居中 */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease; /* 平滑过渡动画 */
  background-color: #f9f9f9; /* 浅色背景 */
  box-shadow: none; /* 移除阴影 */
}

.icon-style-label:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 悬停时轻微阴影 */
  transform: translateY(-1px); /* 轻微上浮 */
}

input[name="levelIconStyle"]:checked+.icon-style-label {
  border-color: #007BFF; /* 选中时亮蓝色边框 */
  background-color: #e6f7ff; /* 选中时背景更透明，带品牌色彩 */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2); /* 选中时柔和的蓝色阴影 */
  transform: scale(1.02); /* 选中时轻微放大，强调选择 */
}

.style-preview {
  width: 28px; /* 减小预览图尺寸 */
  height: 28px;
  object-fit: contain;
}

/* 隐藏实际的单选按钮 */
input[name="levelIconStyle"] {
  display: none;
}
  
/* ===============================================
   VIP图片选择器样式
   =============================================== */
.vip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.vip-label {
  cursor: pointer;
  border: 2px solid transparent;
  padding: 5px;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.3s;
}

.vip-label:hover {
  background-color: #f0f0f0;
}

input[name="imageSelect"]:checked+.vip-label {
  border-color: #007BFF;
  background-color: #e6f3ff;
}

.vip-label img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* 隐藏实际的单选按钮 */
input[name="imageSelect"] {
  display: none;
}
  
/* ===============================================
   个人信息头部补充样式
   =============================================== */
.profile-main {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.2rem; /* 整体向下平移一点 */
}

.name-status-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.20rem;
}

.personal-details {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  color: #888;
}

.personal-details span {
  padding: 0;
  margin-right: 0.5rem;
}

/* ===============================================
   互换后的样式定义
   =============================================== */

/* QQ号码区域移动到个人信息头部后的样式 */
.qq-section {
display: flex;
align-items: center;
justify-content: flex-start;
margin-top: 0.8rem;
font-size: 0.8rem;
}

.qq-section section {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1rem;
}

.qq-section section .i1 {
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: -0.3rem;
  top: -0.3rem;
  transform: rotate(315deg);
}

.qq-section span {
  display: block;
  color: #c2a77d;
  font-weight: 600;
  background-color: #EDC386;
  height: 15px;
  font-style: italic;
  border-bottom-left-radius: 1rem;
  border-top-left-radius: 1rem;
}

.qq-section div {
  display: flex;
  justify-content: flex-start !important;
}

.qq-section .i3 {
  width: auto;
  height: 13px;
  margin-left: .3rem;
}

.id-badge .id-icon {
  height: 16px;
  width: auto;
  margin-right: -0.2rem;  /* 负边距使图标和文字重叠 */
  position: relative;
  z-index: 2;
  /* 确保在移动端保持合适大小 */
  max-width: 100%;
  height: auto;
}

.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;  /* 移除间距，使用负边距控制重叠 */
  margin-left: 0.2rem;
  /* 防止在移动端换行 */
  white-space: nowrap;
  /* 确保内容不会溢出 */
  max-width: 100%;
  box-sizing: border-box;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .box3 + hr, .box6 + hr, .box8 + hr, .add-tag-container + hr, .box9 + hr, .box10 + hr {
    margin: 0.5rem 0 0.5rem 0.5rem;
    width: calc(100% - 0.5rem);
  }
  
  .id-badge {
    margin-left: 0.1rem;
  }
  .id-badge .id-icon {
    height: 14px;  /* 在移动端稍微调小图标 */
  }
}

.id-number {
  font-size: 0.65rem;  /* 从0.55rem增大到0.65rem */
  font-weight: 400 !important;
  font-style: normal !important;
  color: #000000 !important;
  margin-left: -2px;  /* 添加负边距使文字左移 */
  background-color: #ffffff !important;
  padding: 0 0.4rem;
  border-radius: 999px;
  line-height: 1.4;
  transition: all 0.3s ease;
  border: none !important;
}

.id-number.black-gold {
background: linear-gradient(to right, #2D0D03, #442519) !important;
color: #F9DA94 !important;
box-shadow: 0 0 8px rgba(212, 175, 55, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.1);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
border: none;
}

.qq-section .i2 {
  margin-top: -3.875px;
  margin-left: -3px;
  width: auto;
  height: 22.5px;
}

.qq-section p {
  height: 15px;
  line-height: 15px;
  background: linear-gradient(to right, #EDC386, #DAA45F);
  border: 0;
  color: #000000;
  font-weight: 400;
  padding: 0.01rem 0.3rem 0.3rem 0.1rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* 移动到box3位置的个人详情样式 */
.moved-personal-details {
  display: flex;
  align-items: center;
font-size: 0.8rem;
color: #252525;
  flex: 1;
  justify-content: flex-start;
  margin-top: -0.5rem;
  gap: 0.4rem; /* 增大间距到0.4rem */
}

.moved-personal-details .detail-item {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-left: 0.5rem !important;
  margin: 0; /* 移除margin，使用gap控制间距 */
color: #252525;
  background: none;
font-weight: 400;
  font-style: normal;
  border-radius: 0;
  height: auto;
  vertical-align: middle;
  white-space: nowrap; /* 防止内容换行 */
}

.moved-personal-details .detail-separator {
  color: #ccc;
  margin: 0; /* 移除margin，分割线将被gap居中 */
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.moved-personal-details .gender-icon {
  width: 12px;
  height: 12px;
  margin-right: 0.2rem;
  vertical-align: middle;
  display: inline-block;
}
 /* 等级图标容器样式 */
 .qq-level-icons {
  display: inline-flex !important;
  align-items: center !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  white-space: nowrap !important;
}

.qq-level-icons img {
  height: 16px !important;
  width: 16px !important;
  display: inline-block !important;
  padding: 0 !important;
  border: none !important;
  vertical-align: middle !important;
}

/* 确保包装元素的间距 */
.qq-level-icons span {
  margin-right: 3px !important;
  display: inline-block !important;
  font-size: 0 !important;
}

/* 修复图标间距样式 */
.box7 .box7_right {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0;
  /* 移除间距 */
}

.box2 .box7_right {
margin-top: 0.35rem;
}

/* 勋章图标的特殊大小 */
#medalIcon {
  height: 18px; /* 勋章图标可以稍微大一点 */
  width: auto;
  margin-left: 0.2rem;
}

/* 动态图标选择器布局 */
.dynamic-icon-selector {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* 允许横向滚动 */
    gap: 8px; /* 减小间距 */
    margin-top: 10px;
    margin-bottom: 15px; /* 减小间距 */
    padding-bottom: 5px; /* 底部留白，避免滚动条遮挡 */
    scrollbar-width: thin; /* Firefox 滚动条样式 */
    -webkit-overflow-scrolling: touch; /* iOS 弹性滚动 */
}
.dynamic-icon-selector::-webkit-scrollbar {
    height: 6px; /* Webkit 滚动条高度 */
}
.dynamic-icon-selector::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2); /* Webkit 滚动条颜色 */
    border-radius: 3px;
}


.dynamic-icon-selector label {
    display: block;
    cursor: pointer;
    border: 1px solid #ddd; /* 减小边框粗细 */
    border-radius: 8px; /* 更圆润的圆角 */
    padding: 4px; /* 减小内边距 */
    flex-shrink: 0; /* 防止项目收缩 */
    background-color: #f9f9f9;
}

.dynamic-icon-selector input[type="radio"]:checked+label {
    border-color: #12b7f5;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
    background-color: #e6f7ff;
}

.dynamic-icon-selector img {
    width: 36px; /* 减小图片尺寸 */
    height: 36px;
    object-fit: contain;
}

.box8 .box7_right {
  overflow-x: hidden;
  white-space: nowrap;
}

/* 拖拽图标样式 */
.draggable-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* 减小间距 */
    padding: 6px; /* 减小内边距 */
    margin: 3px; /* 减小外边距 */
    border: 1px solid #ddd; /* 减小边框粗细 */
    border-radius: 6px; /* 减小圆角 */
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    user-select: none;
    flex-shrink: 0; /* 防止图标在flex容器中收缩 */
}

.draggable-icon.selected {
    border-color: #4CAF50;
    background-color: #e8f5e8;
}

.draggable-icon.unselected {
    border-color: #ccc;
    background-color: #f0f0f0;
    opacity: 0.6;
}

.draggable-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.draggable-icon span {
    font-size: 11px; /* 减小字体 */
    font-weight: bold;
}

.draggable-icon small {
    color: #666;
    font-size: 9px; /* 减小字体 */
    display: block;
}

.draggable-icon img {
    pointer-events: none;
    width: 24px; /* 减小图片尺寸 */
    height: 24px;
}

.icon-group {
    margin: 8px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    background-color: #fafafa;
}

.icon-versions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}



/* VIP Icon Customizer Styles */
#vip-icon-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.vip-icon-checkbox-label {
    display: inline-block;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.vip-icon-checkbox-label img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.vip-icon-checkbox-label input {
    display: none;
}

.vip-icon-checkbox-label.checked {
    border-color: #12b7f5;
}


/* 大V图标选择器样式 */
.vip-badges-selector {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* 允许横向滚动 */
    gap: 8px; /* 减小间距 */
    margin-top: 5px;
    margin-bottom: 15px; /* 减小间距 */
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.vip-badges-selector::-webkit-scrollbar {
    height: 6px;
}
.vip-badges-selector::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.vip-badges-selector::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}


.vip-badge-option {
    position: relative;
    flex: 0 0 auto; /* 防止项目收缩 */
}

.vip-badge-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.vip-badge-option label {
    display: block;
    padding: 5px; /* 减小内边距 */
    border: 1px solid #ddd; /* 减小边框粗细 */
    border-radius: 8px; /* 更圆润的圆角 */
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background-color: #f9f9f9;
}
.vip-badge-option label img {
    width: 60px; /* 减小图片宽度 */
    height: 24px; /* 减小图片高度 */
}


.vip-badge-option input[type="radio"]:checked+label {
    border-color: #12b7f5;
    background-color: #e6f7ff;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
}

/* 调整box间距 */
.box3,
.box4,
.box6,
.box7,
.box8,
.box9,
.box10 {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* 单独缩小 box7 的上下间距 */
.box7 {
  margin-top: 2px;
  margin-bottom: 2px;
}

/* 修复good移动后的样式错乱问题 */
.box2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    padding-bottom: 10px; /* 增加一些底部内边距 */
}

/* 默认颜色（白色）*/
.profile-text {
    color: #fff;
}

/* 彩虹渐变色 */
.profile-text.rainbow {
    background: linear-gradient(90deg,
    #ff0000, #ff8000, #ffff00, #80ff00,
    #00ff80, #00ffff, #0080ff, #8000ff, #ff0080, #ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: flowingRainbow 3s linear infinite;
}
/* 流动彩虹动画 */
@keyframes flowingRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 静态彩虹色名字 (新增样式) */
.profile-text.static-rainbow {
  background: linear-gradient(to right,
            #DA9DFC, #C86EF9, #FF73B3, #FFA673,
            #FFE673, #87E8DE, #73C2FF, #4A90E2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* 金色 */
.profile-text.gold {
    color: #C89D57;
}

/* 红色 */
.profile-text.red {
    color: #FF0000;
}

.profile-main {
    display: flex;
    align-items: center;
}

.good {
    margin-top: -150px; /* 调整与顶部的距离，进一步上移 */
    margin-right: 15px; /* 调整与右侧的距离 */
    text-align: center;
}

/* box box3 更靠近 box box2 */
.box3 {
    margin-top: 0px; /* 负边距向上移动 */
}

/* 个性签名区域图标和文字对齐 */
.box6 {
  justify-content: space-between; /* 修改：由 flex-start 改为 space-between，实现两端对齐 */
  gap: 4px;
}

.box6 div {
  flex: 1; /* 修改：由 initial 改为 1，让文字区域占据中间剩余空间，将箭头推到最右侧 */
  justify-content: flex-start;
  margin-left: -0.5rem;
}


/* 添加标签区域 */
.add-tag-container {
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.add-tag-container hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 0.5rem;
  width: 95%;
}

.add-tag-container .add-tag-button {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-left: 2rem;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #333;
}

/* --- 新增：Tab 菜单样式 --- */
.tab-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    overflow-x: auto; /* 允许横向滚动 */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* 确保按钮在一行 */
    flex-shrink: 0; /* 防止导航条被压缩 */
}
.tab-navigation::-webkit-scrollbar {
    height: 6px; /* Webkit 滚动条高度 */
}
.tab-navigation::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2); /* Webkit 滚动条颜色 */
    border-radius: 3px;
}
.tab-navigation::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}


.tab-navigation button {
    flex-shrink: 0; /* 防止按钮收缩 */
    background-color: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文字换行 */
}

.tab-navigation button:hover {
    color: #333;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.tab-navigation button.active {
    color: #007BFF;
    border-bottom-color: #007BFF;
    font-weight: bold;
}

.tab-content {
    display: none; /* 默认隐藏所有内容页 */
}

.tab-content.active {
    display: block; /* 显示当前活动页 */
}

/* 一键简洁名片按钮优化 */
#minimalistBtn {
  /* 高级渐变背景：深沉的蓝紫色调，富有层次感 */
  background: linear-gradient(145deg, #6a11cb 0%, #2575fc 100%);
  color: white; /* 确保文字清晰可读 */
  border: none;
  padding: 12px 25px; /* 减小内边距，使按钮更饱满 */
  border-radius: 12px; /* 进一步增大圆角，与模态框风格统一 */
  cursor: pointer;
  font-weight: 600; /* 适度加粗，更显专业 */
  font-size: 0.95rem; /* 字体略大，突出重要性 */
  width: 100%;
  margin-bottom: 15px; /* 减少与下方元素的间距 */
  /* 多层阴影，营造浮动感和深度 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), /* 柔和的外部阴影 */
              inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* 微妙的内部高光，模拟材质感 */
  transition: all 0.3s ease-in-out; /* 所有变化都平滑过渡 */
  letter-spacing: 0.5px; /* 增加一点字间距，提升高级感 */
  text-transform: uppercase; /* 可选：文字大写，增加正式感 */
}

#minimalistBtn:hover {
  /* 悬停时，按钮略微“抬升” */
  transform: translateY(-2px);
  /* 阴影更明显，光泽感增强 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
              inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* 内部高光更亮 */
  /* 渐变可能略微调整，增加活性 */
  background: linear-gradient(145deg, #7b2fe9 0%, #3a8dff 100%);
}

#minimalistBtn:active {
  /* 点击时，按钮“按下” */
  transform: translateY(1px);
  /* 阴影减弱，模拟按压深度 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* 渐变可能略微变暗，更深沉 */
  background: linear-gradient(145deg, #5c0aa0 0%, #1c5abd 100%);
}

/* 无图标占位符样式 */
.no-icon-placeholder {
    width: 28px;
    height: 28px;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    background: #f9f9f9;
    border-radius: 4px;
}
input:checked + label .no-icon-placeholder {
    border-color: #12b7f5;
    color: #12b7f5;
    background: #e6f7ff;
    font-weight: bold;
}

/* 勋章图标选择器样式 */
.medal-icon-selector {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* 允许横向滚动 */
    gap: 8px; /* 减小间距 */
    margin-bottom: 15px;
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.medal-icon-selector::-webkit-scrollbar {
    height: 6px;
}
.medal-icon-selector::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.medal-icon-selector .vip-badge-option label {
    padding: 5px 8px; /* 调整内边距 */
}
.medal-icon-selector .vip-badge-option img {
    width: 28px; /* 减小图片尺寸 */
    height: 28px;
}

/* 公告弹窗样式 */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100002;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.announcement-content {
    background-color: white;
    border-radius: 12px;
    width: 85%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.announcement-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.announcement-close {
    background: #ff4d4f;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.announcement-close:hover {
    background: #ff7875;
    transform: scale(1.05);
}

.announcement-close:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.announcement-body {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    padding: 10px 0;
}

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

.announcement-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.announcement-checkbox input {
    width: 16px;
    height: 16px;
}

.announcement-timer {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 5px;
}

/* 名字颜色选择器容器布局 */
.modal-content > label:nth-of-type(4) + div { /* 定位到名字颜色选择器外部的div */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.modal-content > label:nth-of-type(4) + div > div {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px; /* 调整内边距 */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-content > label:nth-of-type(4) + div > div:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.modal-content > label:nth-of-type(4) + div input[type="radio"] {
    display: none;
}
.modal-content > label:nth-of-type(4) + div input[type="radio"]:checked + label > div {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}
.modal-content > label:nth-of-type(4) + div input[type="radio"]:checked + label {
    color: #007BFF; /* 选中时文字颜色 */
}
.modal-content > label:nth-of-type(4) + div label { /* 针对radio的label */
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.85rem; /* 减小字体 */
    display: flex;
    align-items: center;
    cursor: pointer;
}
.modal-content > label:nth-of-type(4) + div input[type="color"] {
    width: 28px; /* 减小颜色选择器尺寸 */
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent; /* 兼容性调整 */
}

/* 靓号样式选择器容器布局 */
.lh-icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important; /* 减小间距 */
    margin-bottom: 15px !important;
}
.lh-icon-selector .lh-icon-option label {
    border: 1px solid #ddd !important;
    padding: 5px !important; /* 减小内边距 */
    border-radius: 8px !important;
    display: flex !important; /* 调整为flex，图标和文字居中 */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}
.lh-icon-selector .lh-icon-option label:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.lh-icon-selector .lh-icon-option input[type="radio"] {
    display: none;
}
.lh-icon-selector .lh-icon-option input[type="radio"]:checked + label {
    border-color: #12b7f5 !important;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
    background-color: #e6f7ff;
}
.lh-icon-selector .lh-icon-option img {
    height: 18px !important; /* 减小图片尺寸 */
    vertical-align: middle;
    margin-right: 5px; /* 调整图标与文字间距 */
}
.lh-icon-selector .lh-icon-option span {
    font-size: 11px !important; /* 减小字体 */
    color: #333;
}

/* 群主图标开关布局 */
.modal-content div:has(#showGroupOwnerIconCheckbox) { /* 定位到包含群主checkbox的div */
    margin-bottom: 15px;
}
.modal-content div:has(#showGroupOwnerIconCheckbox) label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}
.modal-content div:has(#showGroupOwnerIconCheckbox) img {
    height: 18px; /* 减小图片尺寸 */
}

/* 能量值图标选择器 */
.energy-icon-selector {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* 允许横向滚动 */
    gap: 8px; /* 减小间距 */
    margin-bottom: 15px !important;
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.energy-icon-selector::-webkit-scrollbar {
    height: 6px;
}
.energy-icon-selector::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.energy-icon-selector .energy-icon-option input[type="radio"] {
    display: none;
}
.energy-icon-selector .energy-icon-option label {
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.energy-icon-selector .energy-icon-option label:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.energy-icon-selector .energy-icon-option input[type="radio"]:checked + label {
    border-color: #12b7f5;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
    background-color: #e6f7ff;
}
.energy-icon-selector .energy-icon-option img {
    width: 32px; /* 减小图片尺寸 */
    height: 32px;
    object-fit: contain;
}

/* VIP图标自定义部分 */
#vip-icon-customizer div:first-child { /* 包含选择模式和按钮的div */
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}
#vip-icon-customizer select,
#vip-icon-customizer button {
    padding: 6px 10px !important; /* 减小内边距 */
    border-radius: 6px !important; /* 减小圆角 */
    font-size: 0.85rem !important; /* 减小字体 */
    white-space: nowrap; /* 防止按钮文字换行 */
}
#vip-icon-order-list {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    border-radius: 8px !important;
    min-height: 80px !important; /* 减小最小高度 */
    background-color: #fefefe !important;
    display: flex; /* 让图标横向排列 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 5px; /* 减小图标间距 */
    max-height: 300px !important; /* 已根据您的要求调整 */
    overflow-y: auto; /* 超过高度时滚动 */
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
#vip-icon-order-list::-webkit-scrollbar {
    height: 6px;
}
#vip-icon-order-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
#vip-icon-order-list h4 {
    font-size: 0.9rem !important;
    margin: 5px 0 !important;
    width: 100%; /* 确保标题独占一行 */
    color: #555 !important;
}

/* 故事图片上传的label和input */
.modal-content label[for^="storyImageInput"] {
    font-weight: normal !important;
    margin-left: 10px; /* 缩进 */
    font-size: 0.85rem;
}

/* ID图标选择器样式 */
.id-icon-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.id-icon-selector input[type="radio"] {
    display: none;
}

.id-icon-label {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.id-icon-label:hover {
    background-color: #f0f0f0;
}

.id-icon-selector input[type="radio"]:checked + .id-icon-label {
    border-color: #12b7f5;
    background-color: #e6f7ff;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
}

/* 控制ID图标预览图片的大小 */
.id-icon-label img {
    height: 16px; /* 将高度限制为16px，使其变小 */
    width: auto;
    object-fit: contain;
}
/* ===============================================
   新增：头像框选择器样式修复
   =============================================== */

/* 1. 容器布局：弹性盒子，自动换行 */
.avatar-frame-selector {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 12px;       /* 选项之间的间距 */
    margin-bottom: 20px;
    padding: 5px 0;
}

/* 2. 隐藏原始的单选圆圈 */
.avatar-frame-selector input[type="radio"] {
    display: none;
}

/* 3. 选项卡盒子：统一为大方块 */
.avatar-frame-label {
    width: 72px;  /* 设置固定宽度，足够大 */
    height: 72px; /* 设置固定高度 */
    border: 1px solid #e0e0e0;
    border-radius: 10px; /* 圆角 */
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px; /* “无”字的大小 */
    color: #666;
    padding: 0; /* 【重要】去除内边距，给图片留空间 */
    box-sizing: border-box;
    overflow: hidden;
}

/* 鼠标悬停效果 */
.avatar-frame-label:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px); /* 轻微上浮 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 选中状态高亮 */
.avatar-frame-selector input[type="radio"]:checked + .avatar-frame-label {
    border: 2px solid #0099ff; /* 选中时蓝色边框 */
    background-color: #e6f7ff; /* 选中时浅蓝背景 */
    color: #0099ff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 153, 255, 0.2);
}

/* 4. 图片样式：【核心】强制图片填满方块 */
.avatar-frame-label img {
    width: 100% !important;       /* 强制宽度100% */
    height: 100% !important;      /* 强制高度100% */
    object-fit: contain !important; /* 保持图片比例填满 */
    padding: 2px !important;      /* 极小的内边距，防止贴边 */
    margin: 0 !important;
    display: block !important;
    background: transparent;
}
