html, body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  
}
a {
  text-decoration: none;
  font-size: 14px;
}

.show-text-decoration{

}
.show-text-decoration:hover {
  text-decoration: underline;
}

/* 针对更大屏幕的新规则 */
@media (max-width: 400px) {
  .mob-hide {
      display: none;
  }
}

/* 针对更大屏幕的新规则 */
@media (min-width: 400px) {
  .mob-hide {
      display: none;
  }
  .mob-show {
      /* display: block; */
  }
}

/* 针对更大屏幕的新规则 */
@media (min-width: 1200px) {
  .mob-hide {
      display: block;
  }
  .mob-show {
      display: none;
  }
}

/* 针对更大屏幕的新规则 */
@media (min-width: 1600px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1520px; /* 更宽的宽度 */
  }
}

/* 还可以继续添加更大的屏幕尺寸 */
@media (min-width: 1920px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1720px; /* 更宽的宽度 */
  }
}

.dropdown-menu{
  left: 50%; /* 相对于父元素水平居中 */
  transform: translateX(-50%); /* 向左移动自身宽度的一半 */
}

header {
  background-color: #fff;
  border-bottom: 1px solid #DCDEE3;
}

header .logo {
  width: 50px;
}

header .nav-item {
  text-align: center;
  font-size: 14px;
  margin-left: 20px;
}

header .search-icon {
  width: 36px;
  height: 36px;
}

@media (min-width: 768px) {
  header .active {
    color: #006AD8 !important;
    position: relative;
  }
  
  header .active::after {
    position: absolute;
    left: 0;
    bottom: -20px;
    content: '';
    width: 100%;
    height: 2px;
    background-color: #006AD8;
    display: block;
    margin-top: 5px;
  }
}

.title-box {
  border-bottom: 1px solid #DCDEE3;
  padding-bottom: 10px;
}

.container {
  line-height: 22px;
  box-sizing: border-box;
}

footer {
  background-color: #1B232D;
  color: #fff;
  padding: 30px 0;
}

footer .logo {
  width: 42px;
}

footer .copyright {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
}

footer .footer-links {
  text-align: right;
  font-size: 13px;
  padding-top: 10px;
}

footer .footer-links a {
  margin-left: 10px;
}

.ai-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0.3px 0.3px 0.1px 0px rgba(0, 0, 0, 0.1);
}

.ai-box .ai-icon {
  width: 56px;
  height: 56px;
  margin-right: 10px;
}

/* 文章卡片容器 - 确保所有卡片高度一致 */
.col-12.col-md-6.mb-20 {
  display: flex;
  flex-direction: column;
}

/* 文章卡片内容区域 - 使用flex布局 */
.article-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 图片区域保持固定 */
.article-image-container {
  flex-shrink: 0;

}

/* 文章内容区域 - 填满剩余空间 */
.article-text-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 18px;
  color: #000;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: calc(1.4em * 2);
  min-height: calc(1.4em * 2);
  flex-shrink: 0;
}

.article-desc {
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  margin-top: 10px;
  max-height: calc(1.3em * 3);
}

/* 文章卡片底部信息区域固定高度 */
.fc-h {
  height: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: auto;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .article-title {
    font-size: 16px;
    line-height: 1.3;
    height: calc(1.3em * 2);
    min-height: calc(1.3em * 2);
  }
  
  .article-desc {
    font-size: 13px;
    line-height: 1.2;
    max-height: calc(1.2em * 3);
  }
  
  .fc-h {
    height: 20px;
    min-height: 20px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 15px;
    line-height: 1.25;
    height: calc(1.25em * 2);
    min-height: calc(1.25em * 2);
  }
  
  .article-desc {
    font-size: 12px;
    line-height: 1.15;
    max-height: calc(1.15em * 3);
  }
  
  .fc-h {
    height: 18px;
    min-height: 18px;
  }
}

.home-tabs {
  .nav {
    padding-bottom: 1px;
    border-bottom: 1px solid #E6E8EC;
  }
  .nav-link {
    font-size: 15px;
    background-color: #fff !important;
    color: #000 !important;
    border: 0 !important;
    padding: 10px 0px !important;
    margin-right: 25px !important;
  }
  .nav-link.active {
    color: #006AD8 !important;
    border-bottom: 2px solid #006AD8 !important;
  }

  .tab-content {
    overflow: hidden;
  }
}

.article-tabs {
  .nav {
    padding-bottom: 1px;
    border-bottom: 1px solid #c8c8c9;
  }
  .nav-link {
    font-size: 13px;
    font-weight: 500;
    background-color: #f6f8f9 !important;
    color: #000 !important;
    border: 0 !important;
    padding: 10px 0px !important;
  }
  .nav-link.active {
    color: #006AD8 !important;
    border-bottom: 2px solid #006AD8 !important;
  }

  .tab-content {
    overflow: hidden;
  }
}

.pagination {
  .page-item .page-link {
    border-radius: 0!important;
    margin: 0 3px;
    font-size: 13px;
    background-color: rgba(35, 24, 21, 0.06);
    border: 0;
    color: #000;
  }
  .active {
    .page-link {
      background-color: #006AD8 !important;
      color: #fff;
    }
  }
}

.ask-something {
  background-color: #fff;
  border-radius: 10px;
  padding: 5px;
}

.ask-something textarea {
  border: 0;
  resize: none;
  padding: 5px;
  font-size: 14px;
}

.read-more {
  position: absolute;
  bottom: 20px;
  left: 20px;
}


.arco-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    color: inherit;
    font-style: normal;
    vertical-align: -2px;
    outline: none;
    stroke: currentColor;
}

.comment-text {
  background-color: rgba(35, 24, 21, 0.04);
  color: rgba(35, 24, 21, 0.8);
  border-radius: 0;
  border: 0;
  resize: none;
  padding: 8px;
  font-size: 14px;
  width: 100%;
  height: 100px;
}

.main-button {
  background: linear-gradient(45deg, #4622E9 0%, #576FE5 50%, #1296E8 100%);
  border: 0;
  color: #fff;
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 4px;
  height:32px;
  display: flex;
  align-items: center;
}

.aff-button {
  background-color: #006AD8;
  border: 0px solid #006AD8;
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 4px;
  width: 102px;
  height: 40px;
}

.default-button {
  background-color: #fff;
  border: 1px solid #006AD8;
  color: #006AD8;
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 4px;
  height:32px;
  display: flex;
  align-items: center;
}

.button-xs {
  font-size: 10px;
  padding: 4px 8px;
  width: 80px;
  height: 28px;
}

.reply-link {
  padding-bottom: 5px;
  /* border-bottom: 1px solid #DCDEE3; */
}

.image-box {
  background-image: linear-gradient(45deg, #efefef 25%, transparent 0, transparent 75%, #efefef 0), linear-gradient(45deg, #efefef 25%, transparent 0, transparent 75%, #efefef 0);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.pos-r {
  position: relative;
}
.pos-a {
  position: absolute;
}
.view-txt {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 12px;
  line-height: 12px;
  padding: 3px 8px;
  background: #57575773;
  border-radius: 9px;
}
.tag-icon {
  width: 14px;
  vertical-align: middle;
  margin-right: 3px;
}
.tag-icon-r {
  width: 14px;
  vertical-align: middle;
  margin-left: 3px;
}
.b-l {
  border-left: 1px solid #DCDEE3;
}
.b-b {
  border-bottom: 1px solid #DCDEE3;
}
.mt-05 {
  margin-top: 5px !important;
}
.mt-10 {
  margin-top: 10px !important;
}
.mt-20 {
  margin-top: 20px !important;
}
.mt-30 {
  margin-top: 30px !important;
}
.mt-40 {
  margin-top: 40px !important;
}
.mt-90 {
  margin-top: 90px !important;
}
.mb-05 {
  margin-bottom: 5px !important;
}
.mb-10 {
  margin-bottom: 10px !important;
}
.mb-20 {
  margin-bottom: 20px !important;
}
.mb-30 {
  margin-bottom: 30px !important;
}
.mb-40 {
  margin-bottom: 40px !important;
}
.mb-50 {
  margin-bottom: 50px !important;
}
.mb-60 {
  margin-bottom: 60px !important;
}
.mr-05 {
  margin-right: 5px !important;
}
.mr-10 {
  margin-right: 10px !important;
}
.mr-20 {
  margin-right: 20px !important;
}
.mr-30 {
  margin-right: 30px !important;
}
.mr-40 {
  margin-right: 40px !important;
}
.ml-05 {
  margin-left: 5px !important;
}
.ml-10 {
  margin-left: 10px !important;
}
.ml-20 {
  margin-left: 20px !important;
}
.ml-30 {
  margin-left: 30px !important;
}
.ml-40 {
  margin-left: 40px !important;
}
.pt-05 {
  padding-top: 5px !important;
}
.pt-10 {
  padding-top: 10px !important;
}
.pt-20 {
  padding-top: 20px !important;
}
.pt-30 {
  padding-top: 30px !important;
}
.pt-40 {
  padding-top: 40px !important;
}
.pb-05 {
  padding-bottom: 5px !important;
}
.pb-10 {
  padding-bottom: 10px !important;
}
.pb-20 {
  padding-bottom: 20px !important;
}
.pb-30 {
  padding-bottom: 30px !important;
}
.pb-40 {
  padding-bottom: 40px !important;
}
.pt-05 {
  padding-top: 5px !important;
}
.pr-05 {
  padding-right: 5px !important;
}
.pr-10 {
  padding-right: 10px !important;
}
.pr-20 {
  padding-right: 20px !important;
}
.pr-30 {
  padding-right: 30px !important;
}
.pr-40 {
  padding-right: 40px !important;
}
.pl-05 {
  padding-left: 5px !important;
}
.pl-10 {
  padding-left: 10px !important;
}
.pl-20 {
  padding-left: 20px !important;
}
.pl-30 {
  padding-left: 30px !important;
}
.pl-40 {
  padding-left: 40px !important;
}
.p-05 {
  padding: 5px !important;
}
.p-10 {
  padding: 10px !important;
}
.p-15 {
  padding: 15px !important;
}
.p-20 {
  padding: 20px !important;
}
.p-30 {
  padding: 30px !important;
}
.t-l {
  text-align: left !important;
}
.t-c {
  text-align: center !important;
}
.t-r {
  text-align: right !important;
}
.df {
  display: flex;
}
.df-l {
  display: flex;
  align-items: center;
}
.df-r {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.df-c {
  display: flex;
  justify-content: center;
  align-items: center;
}
.df-sb {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-l {
  float: left;
}
.f-r {
  float: right;
}
.br-04 {
  border-radius: 4px !important;
}
.br-06 {
  border-radius: 6px !important;
}
.br-08 {
  border-radius: 8px !important;
}
.br-10 {
  border-radius: 10px !important;
}
.br-12 {
  border-radius: 12px !important;
}
.br-14 {
  border-radius: 14px !important;
}
.br-16 {
  border-radius: 16px !important;
}
.lh-16 {
  line-height: 16px;
}
.lh-18 {
  line-height: 18px;
}
.lh-20 {
  line-height: 20px;
}
.lh-22 {
  line-height: 22px;
}
.lh-24 {
  line-height: 24px;
}
.lh-26 {
  line-height: 26px;
}
.fs-12-all * {
  font-size: 12px !important;
}
.fs-10 {
  font-size: 10px;
}
.fs-11 {
  font-size: 11px;
}
.fs-12 {
  font-size: 12px;
}
.fs-13 {
  font-size: 13px;
}
.fs-14 {
  font-size: 14px;
}
.fs-15 {
  font-size: 15px;
}
.fs-16 {
  font-size: 16px;
}
.fs-17 {
  font-size: 17px;
}
.fs-18 {
  font-size: 18px;
}
.fs-19 {
  font-size: 19px;
}
.fs-20 {
  font-size: 20px;
}
.fs-21 {
  font-size: 21px;
}
.fs-22 {
  font-size: 22px;
}
.fs-23 {
  font-size: 23px;
}
.fs-24 {
  font-size: 24px;
}
.fs-25 {
  font-size: 25px;
}
.fs-26 {
  font-size: 26px;
}
.fs-27 {
  font-size: 27px;
}
.fs-28 {
  font-size: 28px;
}
.fw-300 {
  font-weight: 300;
}
.fw-400 {
  font-weight: 400;
}
.fw-500 {
  font-weight: 500;
}
.bc-1 {
  background-color: rgba(6, 49, 95, 0.04);
}
.bc-2 {
  background-color: #006AD8;
}
.bc-3 {
  background-color: #1B232D;
}
.bc-4 {
  background-color: #f6f8f9;
}
.fc-w {
  color: #fff;
}
.fc-h {
  color: rgba(35, 24, 21, 0.65);
}
.fc-h2 {
  color: #231815;
}
.fc-b {
  color: #006AD8;
}
.avatar-xs {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-lg {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.w100 {
  width: 100%;
}
.mw100{
  max-width: 100%;
}
.pointer {
  cursor: pointer;
}
.no-wrap {
  white-space: nowrap;
}
.no-wrap-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-up {
  text-transform: uppercase;
  font-weight: 500;
}

.row {
  --bs-gutter-x: 30px;
}

.article-item {
    margin-bottom: 64px !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .article-item {
        border-left: 1px solid #E6E8EC;
    }
    .article-item:nth-child(2n + 1) {
        border-left: 0px solid #E6E8EC;
    }
}
@media (min-width: 1200px) and (max-width: 1399px)  {
    .article-item {
        border-left: 1px solid #E6E8EC;
    }
    .article-item:nth-child(3n + 1) {
        border-left: 0px solid #E6E8EC;
    }
}
@media (min-width: 1400px) {
    .article-item {
        border-left: 1px solid #E6E8EC;
    }
    .article-item:nth-child(4n + 1) {
        border-left: 0px solid #E6E8EC;
    }
}

#carouselExampleDark ,#carouselFavourites {
  padding-bottom: 20px;
}

/* 收藏文章卡片布局优化 */
#favourites-articles-container .col-12.col-md-6 {
  display: flex;
  margin-bottom: 20px;
}

.article-card-content {
  width: 100%;
}

.article-text-content {
  min-height: 0; /* 允许flex项目收缩 */
}

.article-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 限制为3行 */
  line-clamp: 3; /* 标准属性 */
  -webkit-box-orient: vertical;
  line-height: 1.4;
  min-height: calc(1.4em * 3); /* 确保至少3行的高度 */
}

.carousel-indicators {
  bottom: -15px;
}

.carousel-indicators [data-bs-target]{
  width: 6px;
  height: 6px;
  background-color: #333333;
  border-radius: 50% !important;
  border-top: 0;
  border-bottom: 0;
  opacity: 0.2;
}

.carousel-indicators .active {
  width: 24px;
  border-radius: 6px !important;
  background-color: #333333 !important;
  opacity: 1;
}

.home-tabs .action {
  position: absolute;
  top: 10px;
  right: 0px;
  font-size: 12px;
}

/* .home-tabs .action .view { */
.view {
  font-size: 12px;
  color: #231815;
  padding-bottom: 0px;
  border-bottom: 1px solid #231815;
  line-height: 15px;
}

.home-tabs .action .refresh {
  color: #006AD8;
  font-size: 12px;
}


.tabs-list {
  margin-top: 15px;
  overflow: auto;
}

.tabs-list .tabs-item {
  font-size: 13px;
  background-color: rgba(8, 28, 58, 0.04);
  border: 1px solid rgba(8, 28, 58, 0.04);
  color: #000;
  padding: 8px 12px;
  float: left;
  cursor: pointer;
}


.tabs-list .tabs-item.active {
  border: 1px solid #006AD8;
  color: #006AD8;
}

/* 搜索功能样式 */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.animated-search-box {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  display: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  overflow: hidden;
  z-index: 1000;
  margin-right: 10px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
}

.animated-search-box.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1) !important;
}

.animated-search-box.hide {
  opacity: 0 !important;
  transform: translateY(-50%) scale(0.8) !important;
}

.animated-search-box:focus-within {
  border-color: #007bff !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.animated-search-input {
  width: 200px;
  padding: 8px 40px 8px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
  background: transparent;
}

.animated-search-input::placeholder {
  color: #999;
}

.animated-search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.animated-search-box button img {
  width: 16px;
  height: 16px;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  margin-right: 10px;
  position: relative;
  z-index: 1001;
}

.search-toggle:hover {
  transform: scale(1.1);
}

.search-icon {
  transition: all 0.2s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .animated-search-input {
    width: 150px !important;
    padding: 5px 35px 5px 12px !important;
  }
}

@media (max-width: 576px) {
  .animated-search-input {
    width: 120px !important;
    padding: 5px 30px 5px 10px !important;
    font-size: 13px !important;
  }
}
