html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.stock-page {
  width: 100%;
  min-height: 11rem;
  background: #ebebeb;
  display: flex;
  justify-content: center;
  padding-bottom: 0.6rem;
}

/* 左侧股票信息栏 */
.stock-left {
  width: 320px;
  background: transparent;
}

.stock-info-card {
  background: #fff;
  border-radius: 0.89rem;
  padding: 1.5rem;
}

.stock-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.stock-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.stock-basic-info {
  flex: 1;
}

.stock-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.3rem;
}

.stock-code {
  font-size: 0.85rem;
  color: #666;
}

.info-title {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.info-content {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.stock-intro .info-content {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-follow-info {
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.fans-count {
  font-size: 0.9rem;
  color: #666;
}

.follow-btn {
  padding: 0.4rem 1.2rem;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.follow-btn:hover {
  background: #ff8534;
}

.follow-btn.followed {
  background: #e0e0e0;
  color: #666;
}

.follow-btn.followed:hover {
  background: #d0d0d0;
}

.stock-bankuai-card {
  background: #fff;
  border-radius: 0.89rem;
  padding: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
}

.bankuai-list {
  gap: 0.5rem;
}

.bankuai-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #f5f5f5;
  color: #666;
  font-size: 0.8rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: all 0.3s;
}

.bankuai-tag:hover {
  background: #ff6b00;
  color: #fff;
}

/* 中间内容栏 */
.stock-center {
  flex: 1;
  max-width: 45rem;
  min-height: auto;
}

.stock-tabs {
  background: #fff;
  border-radius: 0.89rem;
  padding: 0 1rem;
}

.tab-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.tab-item:hover {
  color: #ff6b00;
}

.tab-item.activeTab {
  color: #ff6b00;
  font-weight: 600;
  border-bottom: 2px solid #ff6b00;
}

.stock-content {
  background: #fff;
  border-radius: 0.89rem;
  padding: 1.5rem;
  min-height: 8rem;
}

.post-list-container {
  min-height: 4rem;
  width: 100%;
}

/* 股票页分页样式 */
#stock-pagination {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: 20px !important;
  padding: 10px 0 !important;
  min-height: 40px !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

#stock-pagination .layui-laypage {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#stock-pagination .layui-laypage a {
  color: #666 !important;
  border-color: #e2e2e2 !important;
  background-color: transparent !important;
}

#stock-pagination .layui-laypage a:hover {
  color: #FF7224 !important;
  border-color: #FF7224 !important;
}

#stock-pagination .layui-laypage .layui-laypage-curr .layui-laypage-em,
#stock-pagination .layui-laypage .layui-laypage-curr em {
  background-color: #FF7224 !important;
  color: #fff !important;
  border-color: #FF7224 !important;
}

#stock-pagination .layui-laypage input,
#stock-pagination .layui-laypage select {
  border-color: #e2e2e2 !important;
  color: #333 !important;
}

#stock-pagination .layui-laypage input:focus,
#stock-pagination .layui-laypage select:focus {
  border-color: #FF7224 !important;
}

#stock-pagination .layui-laypage button {
  background-color: #FF7224 !important;
  border-color: #FF7224 !important;
  color: #fff !important;
}

#stock-pagination .layui-laypage button:hover {
  background-color: #CC5B1D !important;
  border-color: #CC5B1D !important;
}

/* 社区栏目滚动区域（通过JS按需添加类） */
.post-list-container.scrollable-container {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 发帖框 */
.publish-box {
  background: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.5rem;
}

.publish-tools {
  margin-bottom: 0.5rem;
}

.tool-item {
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.tool-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-item:hover {
  transform: scale(1.1);
}

.textarea-input {
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 5rem;
  outline: none;
}

.textarea-input:focus {
  border-color: #ff6b00;
}

.publish-submit-btn {
  padding: 0.5rem 2rem;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.publish-submit-btn:hover {
  background: #ff8534;
}

/* 右侧信息栏 */
.stock-right {
  width: 18rem;
}

.recommend-card {
  background: #fff;
  border-radius: 0.89rem;
  padding: 1.5rem;
  min-height: 20rem;
}

/* 帖子样式（复用自optional.css） */
.user-img {
  width: 2.9375rem; /* 2.75rem + 3px = 44px + 3px = 47px = 2.9375rem */
  height: 2.9375rem; /* 2.75rem + 3px = 44px + 3px = 47px = 2.9375rem */
  border-radius: 0.63rem;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px; /* 往下移动3px */
}

.user-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.user-img:hover img {
  opacity: 0.8;
  transform: scale(1.05);
}

.userName {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}

.contentnr {
  position: relative;
  padding: 0.8rem 1rem;
  background: #F5F5F5;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  cursor: pointer;
}

.contentnr:hover {
  background: #ebebeb;
}

.contentnr-with-pdf {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.contentnr-with-pdf .contentnr-text {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contentnr-pdf-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  transition: all 0.3s;
}

.contentnr-with-pdf:hover .contentnr-pdf-icon {
  transform: scale(1.1);
}

.shequ-post {
  max-height: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  position: relative;
}

/* 在父容器上创建三角形，避免被overflow裁剪 */
.flex.flex-col.w-full.pl-4.pr-3 {
  position: relative;
  overflow: visible;
}

/* 三角形元素样式（由JS动态添加） */
.triangle-arrow {
  position: absolute;
  left: 0.25rem;
  width: 0;
  height: 0;
  border-top: 0.8rem solid transparent;
  border-bottom: 0.8rem solid transparent;
  border-right: 0.8rem solid #F5F5F5;
  z-index: 10;
  pointer-events: none;
  transition: border-right-color 0.3s;
}

.flex.flex-col.w-full.pl-4.pr-3:hover .triangle-arrow {
  border-right-color: #ebebeb;
}

/* 隐藏原来的图片 */
.mesgimg {
  display: none;
}

/* 问董秘一问一答样式 */
.qa-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.qa-row + .qa-row {
  margin-top: 0.75rem;
}

.qa-row.answer {
  padding-left: calc(2.5rem + 0.75rem);
}

.qa-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-bubble {
  flex: 1;
  background: #f7f8fa;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef0f3;
  position: relative;
}

.qa-row.answer .qa-bubble {
  background: #fff7f0;
  border-color: #ffe3cc;
}

.qa-bubble::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: -0.55rem;
  width: 0;
  height: 0;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-right: 0.55rem solid #f7f8fa;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.04));
}

.qa-row.answer .qa-bubble::after {
  left: auto;
  right: -0.55rem;
  border-right: none;
  border-left: 0.55rem solid #fff7f0;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 115, 36, 0.06));
}

.qa-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}

.qa-role {
  font-weight: 600;
  color: #4a4f55;
}

.qa-row.answer .qa-role {
  color: #ff6b00;
}

.qa-time {
  color: #a0a0a0;
}

.qa-text {
  color: #333;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-line;
}

.qa-empty {
  color: #bbb;
}

/* 官网新闻等样式 */
.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s;
}

.news-item:hover {
  background: #fafafa;
}

.news-title {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.news-source {
  color: #666;
}

/* PDF公告样式 */
.pdf-item {
  padding: 0.3rem 0;
  border-bottom: none !important;
  cursor: pointer;
  transition: all 0.3s;
}

.pdf-item:hover {
  background: #fafafa;
}

.pdf-item-content {
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 0.3rem;
  padding: 0.3rem 5px;
}

.pdf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
  padding: 0 8px;
}

.pdf-item .news-title {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  padding-left: 0;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.pdf-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  transition: all 0.3s;
  margin-left: auto;
}

.pdf-item:hover .pdf-icon {
  transform: scale(1.1);
}

.pdf-divider {
  width: calc(100% - 10px);
  height: 1px;
  background: #e0e0e0;
  margin: 1px 5px 2px 5px;
}

.pdf-item .news-time {
  font-size: 0.8rem;
  color: #999;
  text-align: left;
  margin: 1px 0 0 5px;
}

/* laypage分页样式 - 使用网站主色调 */
#bankuai-pagination {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: 20px !important;
  padding: 10px 0 !important;
  min-height: 40px !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* 确保laypage元素可见 */
#bankuai-pagination .layui-laypage {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 覆盖 layui laypage 默认绿色，改为网站主色（#FF7224） */
#bankuai-pagination .layui-laypage a {
  color: #666 !important;
  border-color: #e2e2e2 !important;
  background-color: transparent !important;
}

#bankuai-pagination .layui-laypage a:hover {
  color: #FF7224 !important;
  border-color: #FF7224 !important;
}

/* 当前页高亮为主色 */
#bankuai-pagination .layui-laypage .layui-laypage-curr {
  background-color: transparent !important;
}

#bankuai-pagination .layui-laypage .layui-laypage-curr .layui-laypage-em,
#bankuai-pagination .layui-laypage .layui-laypage-curr em {
  background-color: #FF7224 !important;
  color: #fff !important;
  border-color: #FF7224 !important;
}

/* 输入框、按钮、下拉的边框和主色 */
#bankuai-pagination .layui-laypage input,
#bankuai-pagination .layui-laypage select {
  border-color: #e2e2e2 !important;
  color: #333 !important;
}

#bankuai-pagination .layui-laypage input:focus,
#bankuai-pagination .layui-laypage select:focus {
  border-color: #FF7224 !important;
}

#bankuai-pagination .layui-laypage button {
  background-color: #FF7224 !important;
  border-color: #FF7224 !important;
  color: #fff !important;
}

#bankuai-pagination .layui-laypage button:hover {
  background-color: #CC5B1D !important;
  border-color: #CC5B1D !important;
}

/* 无限滚动加载提示样式 */
#bankuai-loading-more,
#bankuai-no-more {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .stock-left,
  .stock-right {
    display: none;
  }
  
  .stock-center {
    margin: 0;
    max-width: 100%;
  }
}

