/* ===============================================
   基础样式重置
   =============================================== */
   * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  body {
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
    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;
  }
  
  /* ===============================================
     头部导航区域
     =============================================== */
  .box1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
  }
  
  .box1 .box1_left {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .box1 .box1_right {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .box1 .box1_right .box1_right_div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
  }
  
  .box1_right_div3 {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .box1 img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
  }
  
  #img1 {
    width: 1.7rem;
  }
  
  /* ===============================================
     个人信息头部
     =============================================== */
  .box2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-left: 0.5rem;
    padding-bottom: 10px;
    position: relative;
  }
  
  /* 头像样式 */
  .box2 .avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin-right: 1rem;
  }
  
  /* 名字样式 */
  .box2 h2 {
    color: #c98e34;
    font-weight: 500;
    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 {
    margin-top: 10px;
    margin-right: 15px;
    text-align: center;
    background-color: transparent;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .box2 .good img {
    width: 1rem;
    height: 1rem;
    margin-bottom: 0.2rem;
  }
  
  .box2 .good p {
    font-size: 0.75rem;
    font-weight: bold;
    color: #171918;
  }
  
  /* ===============================================
     QQ号码区域
     =============================================== */
  .qq-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.25rem;
    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;
  }
  
  .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 {
    margin-top: 0px;
  }

  .box .moved-personal-details {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: #888;
    justify-content: flex-start !important;
    margin-top: -0.5rem;
    gap: 10px;
    flex: 1;
  }

  .moved-personal-details .detail-item {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0; 
    color: #888;
    background: none;
    font-weight: normal;
    font-style: normal;
    border-radius: 0;
    height: auto;
    vertical-align: middle;
    white-space: nowrap;
  }

  .box4 {
    display: flex;
    align-items: center;
  }
  
  .box5 {
    color: #252525;
  }
  
  .box6 {
    justify-content: flex-start;
    gap: 4px;
  }
  
  .box6 div {
    flex: initial;
    justify-content: flex-start;
  }

  /* 调整box间距 - 新增 .box-rank */
  .box3,
  .box4,
  .box6,
  .box7,
  .box-rank,
  .box8,
  .box9,
  .box10 {
      margin-top: 8px;
      margin-bottom: 8px;
  }
  
  /* ===============================================
     会员图标和等级区域
     =============================================== */
  .box7 .box7_right {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0;
  }
  
  .box7 .box7_right img {
    height: 1rem;
    margin-right: 0.5rem;
  }
  
  /* 新增：等级称号区域样式 */
  .box-rank .box7_right {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0;
    flex: 1;
  }

  .box-rank .box7_right img.rank-title-img {
      height: 1.5rem; /* 等级称号图片通常稍大 */
      width: auto;
      margin-right: 0.5rem;
      object-fit: contain;
  }

  /* 会员图标区域 */
  .box8 .box7_right {
    gap: 0.25rem; 
    justify-content: flex-start !important;
  }

  .box8 .box7_right img {
    width: 2rem;
    height: 2rem;
    margin-right: 0;
    object-fit: contain;
  }

  /* 灰色图标缩小 */
  .box8 .box7_right img[src*="/box7_right/"] {
    width: 1.2rem;
    height: 1.2rem;
  }
  
  /* 最后一个图标保持较小尺寸 */
  .box8 .box7_right img:last-child {
    width: 1rem;
    height: 1rem;
  }
  
  /* --- 缩小装饰图标7-18 --- */
  .box8 img[src*="/img/new/"] {
      height: 1.1rem !important;
      width: auto !important;
      vertical-align: sub !important;
      margin: 0 1px;
  }

  .box7 .box7_right>*:not(.level-container):not(img) {
    margin-right: 0.5rem !important;
  }
  
  /* ===============================================
     故事容器样式
     =============================================== */
  .story-container {
    display: none; /* 修改：默认隐藏 */
    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;
    scrollbar-width: none;
  }
  
  .story-container.has-stories {
    display: flex; /* 有故事图片时显示 */
  }
  
  .story-container::-webkit-scrollbar {
    display: none;
  }
  
  .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;
  }
  
  .story-item:not(.add-story) {
    display: none;
  }
  
  .story-item.has-image {
    display: block !important; /* 修改：添加!important确保显示 */
    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;
  }
  
  /* ===============================================
     等级图标容器样式
     =============================================== */
  .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;
  }
  
  .level-container {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 1rem;
    letter-spacing: -2px;
    font-size: 0;
    white-space: nowrap;
    margin-left: 4px;
  }
  
  .level-container img {
    height: 1rem;
    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: 10001;
    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-direction: column;
  }
  
  @keyframes animatetop {
    from {
      top: -300px;
      opacity: 0
    }
  
    to {
      top: 5%;
      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;
  }
  
  .close:hover,
  .close:focus {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
    outline: none;
  }
  
  /* ===============================================
     表单样式
     =============================================== */
  #editForm {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
  }
  #editForm::-webkit-scrollbar {
    width: 6px;
  }
  #editForm::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    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"],
  #editForm select {
    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,
  #editForm select: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;
  }
  
  .icon-style-label:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  input[name="levelIconStyle"]:checked+.icon-style-label {
    border-color: #007BFF;
    background-color: #e6f7ff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  }
  
  .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: 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;
  }
  
  .vip-label:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  input[name="imageSelect"]:checked+.vip-label {
    border-color: #007BFF;
    background-color: #e6f7ff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  }
  
  .vip-label img {
    width: 32px;
    height: 32px;
    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;
  }
  
  .name-status-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
  }
  
  /* ===============================================
     动态图标选择器布局
     =============================================== */
  .dynamic-icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 10px;
    width: 100%;
  }
  
  .dynamic-icon-selector input[type="radio"] {
    display: none !important;
  }
  
  .dynamic-icon-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    width: calc((100% - 12px) / 3); 
    height: 54px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.2s;
    margin: 0;
    flex-shrink: 0;
  }
  
  .dynamic-icon-selector input[type="radio"]:checked + .dynamic-icon-label {
    border-color: #12b7f5;
    background-color: #e6f7ff;
    box-shadow: 0 0 0 1px #12b7f5;
  }
  
  .dynamic-icon-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  
  /* ===============================================
   List Folding Style for Dynamic Icons
   =============================================== */
  details.dynamic-group {
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
  }

  details.dynamic-group summary {
    padding: 10px 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background-color 0.2s;
  }

  details.dynamic-group summary:hover {
    background-color: #f0f0f0;
  }

  details.dynamic-group summary::-webkit-details-marker {
    display: none;
  }

  details.dynamic-group summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -4px;
  }

  details.dynamic-group[open] summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
  }

  details.dynamic-group .group-content {
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
  }

  /* Override margin for selector inside folding list */
  details.dynamic-group .dynamic-icon-selector,
  details.dynamic-group .new-badge-selector,
  details.dynamic-group .energy-icon-selector,
  details.dynamic-group .rank-title-selector {
      margin-top: 0;
  }

  .box8 .box7_right {
    overflow-x: hidden;
    white-space: nowrap;
  }
  
  /* =================================================================
     VIP特权图标样式 (胶囊选项卡 + 网格布局)
     ================================================================= */
  /* 横向滚动的分类 Tab 栏 - 修复：强制不换行，横向滚动 */
  .vip-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 2px 15px 2px; /* 底部padding防误触 */
    margin-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    flex-wrap: nowrap; /* 关键：不换行 */
    white-space: nowrap; /* 关键：不换行 */
  }
  .vip-category-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
  }

  .vip-tab-btn {
    padding: 6px 14px;
    border-radius: 20px; /* 胶囊形状 */
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 400;
  }

  .vip-tab-btn.active {
    background-color: #007BFF;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,123,255,0.3);
  }

  /* VIP图标选择网格 */
  .vip-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    /* 限制高度让内部滚动，避免把弹窗撑太长 */
    max-height: 350px; 
    overflow-y: auto;
    align-content: flex-start;
    padding-bottom: 20px;
    scrollbar-width: thin;
  }
  .vip-selection-grid::-webkit-scrollbar {
    width: 6px;
  }
  .vip-selection-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
  }

  .vip-select-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    width: calc((100% - 16px) / 3); /* 每行3个 */
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .vip-select-item:hover {
      background-color: #fcfcfc;
      border-color: #ddd;
  }

  .vip-select-item.selected {
    border-color: #007BFF;
    background-color: #e6f7ff;
    box-shadow: 0 0 0 1px #007BFF inset;
  }

  .vip-select-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
  }

  .vip-select-item span {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    pointer-events: none;
  }
  
  /* =================================================================
     添加标签区域
     ================================================================= */
  .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 .tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  
  .add-tag-container .tag-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #333;
    display: inline-block;
  }
  
  .tag-manager {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
  }
  
  .tag-manager .modal-tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
  }
  
  .tag-manager .delete-tag-btn {
    margin-left: 8px;
    color: #ff4d4f;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
  }
  
  .tag-manager .add-new-tag-row {
    display: flex;
    gap: 5px;
    margin-top: 10px;
  }
  
  .tag-manager #newTagInput {
    flex: 1;
    margin-bottom: 0 !important;
    padding: 5px !important;
  }
  
  .tag-manager #addNewTagBtn {
    padding: 5px 10px;
    background-color: #12b7f5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* =================================================================
     名字颜色特效
     ================================================================= */
  /* 动态彩虹色 (原B源码) */
  .box2 h2.rainbow {
    background: linear-gradient(90deg, 
      #ff0000, #ff8000, #ffff00, #80ff00, 
      #00ff80, #00ffff, #0080ff, #8000ff, #ff0080, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    background-size: 200% 100%;
    animation: flowingRainbow 3s linear infinite;
  }

  /* 静态彩虹色 (A源码移植) */
  .box2 h2.static-rainbow {
      background: linear-gradient(to right, 
          #DA9DFC,
          #C86EF9,
          #FF73B3,
          #FFA673,
          #FFE673,
          #87E8DE,
          #73C2FF,
          #4A90E2
      );
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent !important;
  }
  
  @keyframes flowingRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  
  /* =================================================================
     ID图标与文字胶囊样式
     ================================================================= */
  .id-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 0;
    margin-left: 0.2rem;
    white-space: nowrap;
    position: relative;
    background-color: transparent; 
    border: none;
    border-radius: 999px;
    height: auto;
  }
  
  .id-badge .id-icon {
    height: 18px;
    width: auto;
    vertical-align: middle;
    display: block;
    flex-shrink: 0;
    margin: 0;
    border: none;
    position: relative;
    z-index: 1;
  }
  
  .id-number {
    display: none !important;
  }
  
  /* 20.1.png 特效 */
  .id-badge:has(img[src*="20.1.png"]) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    width: fit-content !important;
    overflow: visible !important;
  }
  
  .id-badge .id-icon[src*="20.1.png"] {
    height: 22px !important; 
    width: 22px !important;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 10; 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  
  .id-badge:has(img[src*="20.1.png"]) .id-number {
    display: inline-flex !important;
    background-color: #381e11 !important;
    color: #f0c675 !important;
    font-weight: 500 !important;
    font-size: 0.6rem !important;
    font-family: "微软雅黑", sans-serif;
    align-items: center;
    height: 16px !important;
    line-height: 16px !important;
    border-radius: 20px !important;
    margin-left: -11px !important;
    padding-left: 13px !important;
    padding-right: 8px !important;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.15) !important;
  }
  
  /* UID2.png 特效 */
  .id-badge:has(img[src*="UID2.png"]) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    width: fit-content !important;
    overflow: visible !important;
  }
  
  .id-badge .id-icon[src*="UID2.png"] {
    height: 22px !important;
    width: 22px !important;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    background: transparent !important;
    margin: 0 !important;
  }
  
  .id-badge:has(img[src*="UID2.png"]) .id-number {
    display: inline-flex !important;
    background: linear-gradient(to right, #241d3b, #0f0f13) !important;
    color: #a88aff !important; 
    
    font-weight: 500 !important;
    font-size: 0.6rem !important;
    font-family: "微软雅黑", sans-serif;
    
    height: 16px !important;
    line-height: 16px !important;
    border-radius: 20px !important;
    
    margin-left: -11px !important;
    padding-left: 13px !important;
    padding-right: 8px !important;
    
    position: relative;
    z-index: 1;
    
    border: 1px solid transparent !important;
    background-clip: padding-box, border-box !important;
    background-origin: padding-box, border-box !important;
    background-image: linear-gradient(to right, #241d3b, #0f0f13), linear-gradient(90deg, #5e28e6, #ff00ea, #ffd700) !important;
    
    box-shadow: 0 0 5px rgba(123, 47, 233, 0.3) !important;
  }
  
  /* UID3.png 特效 */
  .id-badge:has(img[src*="UID3.png"]) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    width: fit-content !important;
    overflow: visible !important;
  }
  
  .id-badge .id-icon[src*="UID3.png"] {
    height: 22px !important;
    width: 22px !important;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    background: transparent !important;
    margin: 0 !important;
  }
  
  .id-badge:has(img[src*="UID3.png"]) .id-number {
    display: inline-flex !important;
    background: #000000 !important;
    color: #FDD177 !important;
    font-weight: 500 !important;
    font-size: 0.6rem !important;
    font-family: "微软雅黑", sans-serif;
    height: 16px !important;
    line-height: 16px !important;
    border-radius: 20px !important;
    margin-left: -11px !important;
    padding-left: 13px !important;
    padding-right: 8px !important;
    position: relative;
    z-index: 1;
    border: 1.5px solid #FDD177 !important;
    box-shadow: 0 0 4px rgba(253, 209, 119, 0.3) !important;
  }
  
  /* UID4.png 特效 */
  .id-badge:has(img[src*="UID4.png"]) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    width: fit-content !important;
    overflow: visible !important;
  }
  
  .id-badge .id-icon[src*="UID4.png"] {
    height: 22px !important;
    width: 22px !important;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    background: transparent !important;
    margin: 0 !important;
  }
  
  .id-badge:has(img[src*="UID4.png"]) .id-number {
    display: inline-flex !important;
    background: linear-gradient(180deg, #182848 0%, #000000 100%) !important;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.6rem !important;
    font-family: "微软雅黑", sans-serif;
    height: 16px !important;
    line-height: 16px !important;
    border-radius: 20px !important;
    margin-left: -11px !important;
    padding-left: 13px !important;
    padding-right: 8px !important;
    position: relative;
    z-index: 1;
    border: 1.5px solid transparent !important;
    background-clip: padding-box, border-box !important;
    background-origin: padding-box, border-box !important;
    background-image: linear-gradient(180deg, #182848, #000000), linear-gradient(to right, #ffd700, #ffa500, #ffd700) !important;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.4) !important;
  }

  /* UID5.png 特效 */
  .id-badge:has(img[src*="UID5.png"]) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    width: fit-content !important;
    overflow: visible !important;
  }

  .id-badge .id-icon[src*="UID5.png"] {
    height: 22px !important;
    width: 22px !important;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    background: transparent !important;
    margin: 0 !important;
  }

  .id-badge:has(img[src*="UID5.png"]) .id-number {
    background: linear-gradient(180deg, #661818 0%, #290808 100%) !important;
    color: #FFD98D !important;
    display: inline-flex !important;
    align-items: center;

    font-weight: 500 !important;
    font-size: 0.6rem !important;
    font-family: "微软雅黑", sans-serif;

    height: 16px !important;
    line-height: 16px !important;
    border-radius: 20px !important;

    margin-left: -11px !important;
    padding-left: 13px !important;
    padding-right: 8px !important;

    position: relative;
    z-index: 1;

    border: 1px solid #FFC868 !important;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5), 0 0 4px rgba(200, 50, 50, 0.3) !important;
  }
  
  @media screen and (max-width: 768px) {
    .id-badge .id-icon[src*="20.1.png"] {
        height: 20px !important;
        width: 20px !important;
    }
    .id-badge:has(img[src*="20.1.png"]) .id-number {
        height: 15px !important;
        line-height: 15px !important;
        font-size: 0.55rem !important;
        margin-left: -10px !important;
        padding-left: 12px !important;
        padding-right: 7px !important;
    }
  }
  
  /* ID图标选择器样式 */
  .id-icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .id-icon-selector input[type="radio"] {
    display: none;
  }
  
  .id-icon-label {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9f9f9;
  }
  
  .id-icon-label img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  
  .id-icon-selector input[type="radio"]:checked+.id-icon-label {
    border-color: #12b7f5;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
    background-color: #e6f7ff;
  }
  
  /* 名字颜色选择器容器布局 */
  /* 该部分已被 <select> 替代，但在CSS保留以免冲突 */
  
  /* 靓号样式选择器容器布局 */
  .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;
    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(#groupOwnerIconDefault) {
    margin-bottom: 15px;
  }
  .modal-content div:has(#groupOwnerIconDefault) label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
  }
  .modal-content div:has(#groupOwnerIconDefault) img {
    height: 18px;
  }
  
  /* 能量值图标选择器 - 修改为网格布局 (一行三个) */
  .energy-icon-selector {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 6px;
    margin-bottom: 15px !important;
    padding-bottom: 5px;
    width: 100%;
  }

  .energy-icon-selector .energy-icon-option {
    width: calc((100% - 12px) / 3); /* 计算宽度，一行三个 */
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
  }

  .energy-icon-selector .energy-icon-option input[type="radio"] {
    display: none;
  }
  
  .energy-icon-selector .energy-icon-option label {
    width: 100%;
    height: 100%;
    min-height: 50px;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  
  .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;
  }
  
  /* 勋章图标选择器样式 */
  .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;
  }
  
  /* 故事图片上传的label和input */
  .modal-content label[for^="storyImageInput"] {
    font-weight: normal !important;
    margin-left: 10px;
    font-size: 0.85rem;
  }
  
  /* --- 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;
  }
  .tab-navigation::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    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 {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  /* 公告弹窗样式 */
  .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;
  }
  
  /* 头像框选择样式 */
  .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;
    position: relative;
    z-index: 1;
    transform: scale(1.05);
  }
  
  .avatar-frame-overlay {
    position: absolute;
    top: -37.5%;
    left: -37.5%;
    width: 175%;
    height: 175%;
    pointer-events: none;
    transform-origin: center;
    z-index: 2;
  }
  
  .avatar-frame-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    margin-top: 5px;
  }
  
  .avatar-frame-selector input[type="radio"] {
    display: none;
  }
  
  .avatar-frame-label {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 40px;
    min-height: 40px;
    background-color: #f9f9f9;
  }
  
  .avatar-frame-label img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .avatar-frame-selector input[type="radio"]:checked + .avatar-frame-label {
    border-color: #12b7f5;
    box-shadow: 0 0 5px rgba(18, 183, 245, 0.2);
    background-color: #e6f7ff;
  }
  
  /* 一键简洁名片按钮优化 */
  #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;
  }
  
  /* 大V图标选择器样式 */
  .vip-badges-selector {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    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-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: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  
  .vip-badge-option input[type="radio"]:checked+label {
    border-color: #12b7f5;
    background-color: rgba(18, 183, 245, 0.1);
  }

/* ===============================================
   新增徽章选择器样式 - 每行3个
   =============================================== */
.new-badge-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* 图标之间的间隙 */
    margin-bottom: 15px;
    width: 100%;
}

.new-badge-selector .icon-option {
    /* 100% 减去 2个gap(12px) 再除以 3 */
    width: calc((100% - 12px) / 3);
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
}

.new-badge-selector .icon-option label {
    width: 100%;
    height: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    flex-direction: column; /* Added: Stack image and number vertically */
    gap: 5px; /* Added: Spacing between image and number */
    font-size: 12px; /* Added: Font size for the number */
    color: #666; /* Added: Color for the number */
}

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

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

.new-badge-selector .icon-option img {
    max-width: 100%;
    height: 30px; /* 控制徽章在选项中的显示大小 */
    object-fit: contain;
}

/* ===============================================
   新增等级称号选择器样式 - 每行3个 (与徽章选择器保持一致)
   =============================================== */
.rank-title-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* 图标之间的间隙 */
    margin-bottom: 15px;
    width: 100%;
}

.rank-title-selector .icon-option {
    /* 100% 减去 2个gap(12px) 再除以 3 */
    width: calc((100% - 12px) / 3);
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
}

.rank-title-selector .icon-option label {
    width: 100%;
    height: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

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

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

.rank-title-selector .icon-option img {
    max-width: 100%;
    height: 30px; 
    object-fit: contain;
}
