/* 声明自定义字体 */
@font-face {
  font-family: 'MyCustomFont';
  src: url('2.woff2') format('truetype'); /* 补全 src 属性，指定路径和格式 */
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: 'MyCustomFont', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background-color: #ff69b4;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.nav-title {
  flex: 1;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.top-nav a {
  color: #fff;
  margin-right: 20px;
  font-size: 16px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.top-nav a.active {
  border-bottom: 2px solid #fff;
  font-weight: bold;
  padding-bottom: 3px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* 外层容器：全屏高度，计算顶部导航高度后填充剩余空间 */
.container {
  width: 100%;
  height: 100%;
  padding-top: 44px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 用户信息：固定高度，padding 与左侧滑动区一致 */
.user-info {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  height: 80px;
  box-sizing: border-box;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 6px 18px 6px 18px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eee;
  cursor: pointer;
}
.nickname {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-left: 15px;
}

/* 核心：左右分栏容器 - 固定高度，不超屏幕 */
.split-wrap {
  flex: 1;
  display: flex;
  width: 100%;
  height: calc(100% - 80px);
  padding-right: 5px;
}

/* 左侧切换区：宽度=50px 头像宽 + 15px 间距 = 65px，和昵称左侧对齐 */
.scroll-control {
  width: 65px;
  height: 100%;
background-color: #ffd1dc;
  cursor: ns-resize;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  user-select: none;
  margin-left: -20px;
border-radius:28px 8px 0 0;
}
.scroll-icon {
  background-color: #ff69b4;
  width: 10px;
  height: 85%;
  border: 1px solid #fff;
  border-radius: 6px;
border-top:0;
   overflow: hidden;
}

.scroll-icon::after {
   content: '';
   width: 6px;
   height: 50px;
   background-color: #fff;
   border-radius: 2px;
   position: absolute;
   left: 50%;bottom:50%;
   transform: translateX(-50%);
 }

.content-area {
  flex: 1;padding:0 15px 95px 15px;
  height: 100%;
  overflow: hidden;z-index:0;
}
.content-wrap {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: 0;
  scrollbar-color: transparent; 
  padding:5px 0;
}
.content-wrap::-webkit-scrollbar {
  width: 0px;
}
.content-wrap::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 2px;
}
.content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  word-break: break-all;
  padding: 0 5px;}
.meta {
  text-align: left;
  font-size: 14px;
  color: #999;
  margin-top: 15px;
  padding-bottom: 10px;
}

.empty-tip {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #999;
}

/* 主题色提示层：粉色系，和背景协调 */
.tip-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3); /* 半透明深色，更柔和 */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: auto;
}
.tip-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 16px;
  color: #ff69b4; /* 主题粉色文字 */
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3); /* 粉色阴影 */
}
.tip-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ff69b4; /* 主题色转圈 */
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}
/* 先给 scroll-control 加上相对定位和允许溢出 */
.scroll-control {
  position: relative; /* 确保按钮相对于它定位 */
  overflow: visible;  /* 允许按钮超出容器不被裁切 */
  z-index: 10;        /* 确保按钮在最上层显示 */
}

#hair-svg {
            position: absolute;
            bottom: 60px;
            left: 0;z-index:999;
            width:calc(100%+0px);
            height: 20px;
            pointer-events: none;
            transform: translateY(-50%);
        }

#xz {
            position: absolute;
            bottom: 39px;
            right: 120px;z-index:999;
            width:24px;
            height: 24px;
        }