@tailwind base;
@tailwind components;
@tailwind utilities;


.ty-main {
  background: #f3f3f3;
}

.ty-main-le {
  width: 17.5rem;
  height: 55.7rem;
  background: #fff;
}

.ty-my-le-tabs {
  height: 5.1rem;
  cursor: pointer;
}

.ty-main-le .ty-active {
  color: #fff;
  background: #ff7224 !important;
}

.ty-my-le-tabs-div {
  border-bottom: 1px solid #e6e6e6;
}

.ty-div-active {
  border: none;
}

.ty-my-le-tabs-yuan {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  min-width: 50px;
  min-height: 50px;
  max-width: 60px;
  max-height: 60px;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.ty-my-le-tabs-yuan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ty-main-center {
  width: 42.22rem;
}

.ty-main-center-community {
  width: 42.22rem;
  height: 55rem;
  background: #ededed;
  display: flex;
  flex-direction: column;
}

.community-msg {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #ededed;
}

.user-img {
  border: 0.06rem solid #e6e6e6;
  border-radius: 50%;
  overflow: hidden;
}

.ty-my-le-content {
  height: 41%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ty-main-center-div {
  background: #fff;
  border-radius: 1rem;
}

.community-div {
  position: relative;
  background: #fff;
  border-radius: 1rem;
}

.mesgimg {
  width: 1rem;
  position: absolute;
  height: 1rem;
  left: -12px;
  top: 25px;
}

.yjdiv {
  height: 1.2rem;
  display: flex;
  justify-content: center;

  line-height: 1.2rem;
}

.yj {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 2px;
}

.sqgz {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: #666;
  justify-content: center;
}

.sqqxgz {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: #ff7224;
  justify-content: center;
}

.sqgz,
.sqqxgz:hover {
  cursor: pointer;
}

.ty-main-center-toptitle {
  border-bottom: 1px solid #e6e6e6;
}

.contentnr {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #666;
  text-overflow: ellipsis;
}

.content-wtitle {
  font-size: 0.88rem;
  color: #333;
  font-weight: bold;
}

.wdm {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #666;
  text-overflow: ellipsis;
}

.pldiv {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 5px;
}

.uploadDIv {
  width: 1.38rem;
  height: 1.38rem;
  font-size: 28px;
  text-align: center;
  line-height: 81px;
  float: left;
  position: relative;
}

.uploadDIv img {
  position: absolute;
  left: 0px;
  top: 0px;
}

.uploadDIv input {
  width: 1.38rem;
  height: 1.38rem;
  opacity: 0;
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: 4;
  padding: 0;
}

.uploadfile {
  width: 1.38rem;
  height: 1.38rem;
  font-size: 28px;
  text-align: center;
  line-height: 81px;
  float: left;
  position: relative;
}

.uploadfile img {
  position: absolute;
  left: 0px;
  top: 0px;
}

.uploadfile input {
  width: 1.38rem;
  height: 1.38rem;
  opacity: 0;
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: 4;
  padding: 0;
}

.divImg .closes {
  cursor: pointer;
}

.divImg {
  width: 78px;
  height: 81px;
  margin-left: 15px;
  position: relative;
}

.divImg span {
  position: absolute;
  right: -6px;
  top: -10px;
}

.productImg {
  padding: 15px;
  background: #efefef;
  border-radius: 15px;
}

.ty-pl .imgBiMG {
  width: 100%;
  height: 100%;
  float: left;
  cursor: pointer;
  display: block;
}

/* 预览图 */
.preview-img {
  display: none;
  text-align: center;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

/* 容器 */
.preview-img .container {
  max-width: 80%;
  position: absolute;
  padding: 30px;
  background-color: #c6c6c6;
  border-radius: 5px;
}

/* 大图显示 */
.preview-img .container img {
  max-width: 100%;
  background-size: contain/cover;
}

/* 关闭按钮 */
.preview-img .container a {
  display: inline-block;
  width: 36px;
  height: 36px;
  text-decoration: none;
  position: absolute;
  right: -18px;
  text-align: center;
  line-height: 36px;
  top: -18px;
  background: url("../images/fancybox_sprite.png") no-repeat;
}

.ty-pl {
  background: #fff;
  margin-top: -1px;
  align-items: flex-end;
}

.ty-pl-top {
  border-bottom: 1px solid #c3c3c3;
}

.ty-pl img {
  width: 1.38rem;
  height: 1.38rem;
}

.textarea-pl {
  resize: none;
  outline: none;
}

.textarea-pl::placeholder {
  margin-left: 5px;
}

.fbpl {
  width: 5.5rem;
  height: 2.25rem;

  background: #ff5c02;
  color: #fff;
}

/* 上传文件 */
.productfile {
  padding: 15px;
  background: #efefef;
  border-radius: 15px;
}

.divfile {
  height: 40px;
  background: #fff;
  cursor: pointer;
  border-radius: 10px;
}

.filename {
  color: #ff7224;
}

.filesrc {
  width: 30px;
  opacity: 0;
  height: 100%;
  overflow: hidden;
}

.scroll-X {
  color: #666666;
}

.ty-main-re {
  width: 17.5rem;
  background: #fff;
  height: 55.7rem;
}

.re-content-top {
  border-bottom: 1px solid #e6e6e6;
}

.divty {
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 5px;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
}

.divty img {
  width: 100%;
  height: 100%;
}

.title-content {
  display: -webkit-box;

  font-size: 0.88rem;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #666;
  text-overflow: ellipsis;
}

.re-pattern {
  height: 7rem;
  align-items: center;
  border-bottom: 1px solid #e6e6e6;
}

.pattern-div {
  width: 3.2rem;
  font-size: 0.8rem;
  text-align: center;
}

.re-content-bom {
  position: relative;

}

.re-content-main-jia {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  position: absolute;
  left: 80px;
  cursor: pointer;
  margin-left: 15px;
}

.re-form div {
  color: #666;
}

/* 提醒词 dropdown 面板样式 */
.keyword-dropdown-panel {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  overflow: visible !important;
}

.keyword-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.keyword-dropdown-panel .layui-menu {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.keyword-dropdown-content {
  padding: 16px;
  min-width: 200px;
}

.keyword-dropdown-content .re-input {
  width: 100%;
  height: 38px;
  background: #f4f4f4;
  border-radius: 19px;
  border: none;
  outline: none;
  padding: 0 15px;
  font-size: 14px;
  box-sizing: border-box;
}

.keyword-dropdown-content .re-input::placeholder {
  color: #999;
}

.keyword-dropdown-content .txform {
  display: flex;
  margin: 12px 0;
  gap: 24px;
}

.keyword-dropdown-content .txformdiv,
.keyword-dropdown-content .txformdivs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
}

.keyword-dropdown-content .txformdiv {
  color: #217ee0;
}

.keyword-dropdown-content .txformdivs {
  color: #ff5c02;
}

.keyword-dropdown-content .txformdiv input,
.keyword-dropdown-content .txformdivs input {
  margin: 0;
  cursor: pointer;
}

.keyword-dropdown-content .setbtn {
  width: 100%;
  height: 36px;
  background: linear-gradient(135deg, #217ee0, #1a6bc7);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.keyword-dropdown-content .setbtn:hover {
  background: linear-gradient(135deg, #1a6bc7, #155ba5);
  transform: translateY(-1px);
}

.re-input {
  width: 90%;
  height: 38px;
  background: #f4f4f4;
  border-radius: 19px;
  border: none;
  outline: none;
}

.re-input::placeholder {
  padding-left: 15px;
}

.txformdiv {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;

  color: #217ee0;
}

.txformdivs {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;

  color: #ff5c02;
}

.setbtn {
  color: #fff;
  background: #ff7224;
  border-radius: 0.75rem;
  text-align: center;
  margin: 0 auto;
}

.gp-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.gp-top div {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: #c7e2ff;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 12px;
  color: #217ee0;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  box-sizing: border-box;
}

.gp-top div span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s;
  background-color: rgba(33, 126, 224, 0.08);
  color: #217ee0;
}

.gp-bom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.gp-bom div {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: #f8c3a6;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 12px;
  color: #ff5c02;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  box-sizing: border-box;
}

.gp-bom div span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s;
  background-color: rgba(255, 92, 2, 0.08);
  color: #ff5c02;
}

.gp-top div span:hover,
.gp-bom div span:hover {
  background-color: rgba(0, 0, 0, 0.12);
  color: #333;
}

.getmsg {
  background: #ff7224;
  color: #fff;
  text-align: center;
  border-radius: 1.44rem;
  font-size: 1.13rem;
  margin: 0 auto;
}

/* 表情框 */
.emoji {
  width: 23rem;
  height: 13rem;
  background: #ededed;
  border-radius: 15px;
  display: flex;
  gap: 12px;
  position: absolute;
  z-index: 9999;
  left: 3px;
  padding: 10px;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: wrap;
}

/* 股友 */
.Equitypartner {
  width: 14rem;
  overflow: hidden;
  height: 15rem;
  background: #ffffff;
  border-radius: 15px;
  position: absolute;
  top: 30px;
  z-index: 9999;
  box-shadow: 0rem 0.19rem 0.38rem 0.06rem rgba(0, 0, 0, 0.2);
  padding: 15px 0px 0px 0px;
}

.guinput {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

.guinput::placeholder {
  padding-left: 15px;
  font-size: 0.8rem;
}

.gyform {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gpform {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bkform {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gyimg {
  width: 1.5rem;
  border-radius: 0.22rem 0.22rem 0.22rem 0.22rem;
  overflow: hidden;
}

.gyinfo {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.gyinfo:hover {
  background: #EEEEEE;
}

.activegyinfo {
  background: #EEEEEE;
}

.post-desc-box img {
  width: 20px;
}

.post-desc-box a {
  color: #007bff;
}

/* 栏目图标右上角的未读消息数 - 使用layui徽章，仅需微调位置 */
.ty-my-le-tabs-yuan .layui-badge {
  position: absolute;
  top: -5px;
  right: -8px;
}

.mobile-column-toolbar {
  display: none;
}

/* 中等屏幕尺寸优化（从大屏往小屏变化时的过渡） */
@media screen and (max-width: 1200px) and (min-width: 851px) {
  .ty-my-le-tabs-yuan {
    min-width: 46px;
    min-height: 46px;
    max-width: 54px;
    max-height: 54px;
    width: 46px !important;
    height: 46px !important;
    padding: 4px;
  }
}

/* 移动端：默认展示栏目列表，点击后切换到内容视图 */
@media screen and (max-width: 850px) {
  .ty-main {
    padding: 12px 0 84px;
  }

  .ty-main-le {
    width: 100%;
    height: auto;
    display: block !important;
    margin: 0 !important;
    padding: 0 12px;
  }

  .ty-main-le .ty-my-le-tabs {
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
  }

  .ty-main-le .ty-my-le-tabs-div {
    border: none;
  }

  /* 移动端优化图标容器大小 */
  .ty-my-le-tabs-yuan {
    min-width: 44px;
    min-height: 44px;
    max-width: 52px;
    max-height: 52px;
    width: 44px !important;
    height: 44px !important;
    padding: 4px;
    flex-shrink: 0;
  }

  .ty-main-center-community,
  #cur-column-detail {
    width: 100%;
    margin: 0 !important;
  }

  .ty-main-center-community {
    height: auto;
    min-height: 60vh;
    border-radius: 12px;
  }

  /* 默认仅展示栏目列表 */
  .ty-main:not(.mobile-content-view) .ty-main-center-community,
  .ty-main:not(.mobile-content-view) #cur-column-detail,
  .ty-main:not(.mobile-content-view) .ty-pl {
    display: none !important;
  }

  /* 进入栏目后展示内容，隐藏列表 */
  .ty-main.mobile-content-view .ty-main-le {
    display: none !important;
  }

  .ty-main.mobile-content-view .ty-main-center-community {
    display: flex !important;
  }

  .ty-main.mobile-content-view .ty-main-center-community .community-msg {
    background: #fff;
  }

  /* 移动端顶部工具条 */
  .mobile-column-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    margin: 0 0 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .ty-main.mobile-content-view .mobile-column-toolbar {
    display: flex;
  }

  .mobile-back-to-menu {
    padding: 6px 12px;
    background: #ff7224;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-column-title {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-left: 12px;
  }

  /* 手机端空状态：获取离线消息按钮容器 */
  .mobile-empty-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
  }

  /* 手机端获取离线消息按钮 */
  .mobile-getmsg-btn {
    background: #ff7224;
    color: #fff;
    text-align: center;
    border-radius: 24px;
    font-size: 16px;
    padding: 12px 32px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 114, 36, 0.3);
    transition: all 0.3s ease;
  }

  .mobile-getmsg-btn:hover {
    background: #ff8533;
    box-shadow: 0 4px 12px rgba(255, 114, 36, 0.4);
  }

  .mobile-getmsg-btn:active {
    transform: scale(0.98);
  }
}

/* 屏幕放大时隐藏移动端离线消息按钮容器 */
@media screen and (min-width: 768px) {
  .mobile-getmsg-btn,
  .mobile-empty-message-container {
    display: none !important;
  }
}