/*
Theme Name : WOS_wiki_new
Text Domain: WOS_wiki_new
Version   : 2.0
Description: A new custom theme for WOS
Author    : Classified
*/

/*
Change Log : Implement a new theme for WOS
Author    : zy.chen
Date      : 2025/05/20 ~
*/

html {
	min-height: 100%;
}

body {
	background-image: url('https://gom-s3-user-avatar.s3.us-west-2.amazonaws.com/wp-content/uploads/2023/03/a377a9121dc6d1804dd48fe99fb8f853.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment:fixed;
	background-blend-mode: normal;
	background-color: rgb(44, 44, 74);
	min-height: 100%;
}

div.bgoverlay {
  background-color: rgba(14, 14, 28, 0.2);
  min-height: 100%;
}
.bg-linear-grant{
  background-color: rgba(14, 14, 28, 0.6) !important;
}
.home-footer-bg{
  background-color: rgba(14, 14, 28, 0.6);
}
.footer-gradient{
  background-color: rgba(14, 14, 28, 0.6);
}

.footer-light-bg {
  background-color: rgba(14, 14, 28, 0.2);
}

.out-footer-gradient{
  background-color: rgba(14, 14, 28, 0.6);
}

.nav-color-blue {
  background-color: rgb(54, 54, 74);
}

.main-color {
  background-color: rgb(54, 54, 74);
}

.heading-bg-color {
  background-color: rgb(43, 43, 55);
}

.main-color-navbar {
  background: rgba(32, 32, 56, 0.9);
}

li.nav-item:hover {
  background-color:  rgba(30, 25, 43, 0.8);
  border-radius: 0.375rem;
}

a.dropdown-item:hover {
  background-color:  rgba(30, 25, 43, 0.8)
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
	background-color: rgba(30, 25, 43, 0.8);
}

.btn-custom {
	background-color: rgb(54, 54, 74);
}

.btn-custom:hover {
  background-color:  rgba(30, 25, 43, 0.8);
  border-radius: 0.375rem;
}

span.page-numbers.current {
	background-color: rgba(30, 25, 43, 0.8);
	color: white;
}

.offcanvas .offcanvas-body {
  display: show!important;
}

.bg-dark{
	background-color: rgba(60, 66, 92, 0.5) !important;
  box-shadow: 0rem 0rem 1rem 0rem rgba(0,0,0,0.46);
  border-radius: 0.75rem;
}

.footer-bottom {
	position: fixed;
	width: 100%;
	bottom: 0;
}

.embed-container { 
    position: relative; 
    padding-bottom: 56.25% !important;
    overflow: hidden;
    max-width: 100%;
    height: auto;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.w-100 {
    /* width: 100%!important; */
    max-width: 80%;
	width: auto !important;
    /* text-align: center; */
    margin: 0 auto;
}

p > img {
	max-width: 100%;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em; /* 两行高度 */
    min-height: 2.4em;
}


.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.small-title {
    font-size: 1rem;
}

.top-mb {
  margin-bottom: 2.44rem;
}

.icon-block-container {
  background: url('https://gom-s3-user-avatar.s3.us-west-2.amazonaws.com/wp-content/resources/img/big-button-bg.png') no-repeat center center;
  background-size: 100% 100%; 
  border-radius: 12px;
  height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.font-bottom-text{
  font-family: Rowdies;
  font-weight: 300;
  font-size: 1.5rem;
  color: #FFFFFF;
}

.category-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0 0 0.5rem 0;
}

.category-scroll::-webkit-scrollbar {
  height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.category-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.category-scroll .nav-pills {
  display: flex;
  padding: 0;
  margin: 0;
}

.category-scroll .nav-item {
  flex: 0 0 auto;
  margin-right: 0.25rem;
}

.category-scroll .nav-item:last-child {
  margin-right: 0;
}

.category-scroll .category-nav-link {
  height: 3.75rem;
  background: #202038;
  opacity: 0.8;
  box-shadow: 0rem 0rem 1rem 0rem rgba(0,0,0,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  transition: all 0.3s ease;
  font-family: Rowdies;
  font-weight: 400;
  font-size: 1.25rem;
  color: #FFFFFF !important;
}

/* 第一个项目的样式 */
.category-scroll .nav-item:first-child {
  border-radius: 1.25rem 0rem 0rem 1.25rem;
  overflow: hidden;
}

/* 最后一个项目的样式 */
.category-scroll .nav-item:last-child {
  border-radius: 0rem 1.25rem 1.25rem 0rem;
  overflow: hidden;
}

/* 中间项目的样式 */
.category-scroll .nav-item:not(:first-child):not(:last-child) .category-nav-link {
  border-radius: 0;
}

/* 选中状态的样式 */
.category-scroll .category-nav-link.active {
  background: #FFFFFF;
  opacity: 1;
  font-size: 1.5rem;
  color: #35436A !important;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .top-mb {
    margin-bottom: 3.5rem;
  }
}

@media (min-width: 1280px) {
    .top-mb {
        margin-bottom: 5.44rem;
    }
    .icon-block-container{
      height: 8.69rem;
    }
}

.logo-container {
  padding: 0.69rem 0;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
      padding-right: 1.88rem;
      padding-left: 1.88rem;
      font-size: 1.25rem;
  }
}

.text-font-custom{
  font-family: Impact;
  font-weight: 400;
  font-size: 1.63rem;
  color: #91A6CA;
  line-height: 2.32rem;
}

.fontpage-icon-image{
  width: 1rem;
  height: 1.19rem;
  margin-right: 0.63rem;
}

.snow-image-custom-right{
  position: absolute;
  top: -0.5vh;
  right: 0;
  z-index: 1;
  width: 12.56rem;
  height: 1.27rem;
}

.btn-return{
  background: rgba(34, 34, 61, 0.9);
  border-radius: 0.63rem;
  border: 0.13rem solid rgba(145,152,195,0.5);
  box-shadow:
      0 1px 2px rgba(255, 255, 255, 0.15) inset,
      0 -1px 1px rgba(0, 0, 0, 0.3) inset,
      0 0 4px rgba(120, 150, 255, 0.5),
      0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  padding: 0.56rem 1.94rem 0.81rem 1.5rem;
}

.footer-card {
  background: rgba(34, 34, 61, 0.9);
  border-radius: 1.25rem;
  border: 0.13rem solid rgba(145,152,195,0.5);
  box-shadow:
      0 1px 2px rgba(255, 255, 255, 0.15) inset,
      0 -1px 1px rgba(0, 0, 0, 0.3) inset,
      0 0 4px rgba(120, 150, 255, 0.5),
      0 0 0 2px rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
}

.footer-text-line{
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 1rem;
  color: #CBCBCB;
  white-space: nowrap;
}
.footer-text-line.p-bottom{
  margin-bottom: 0.5rem !important;
}

.footer-box-right{
  margin-left: 1.38rem;
}
.list-inline-item.li-pd-custom{
  margin-right: 0 !important;
}
.ipa-link a{
  color: #CBCBCB !important;
}
.article-detail-title{
  font-family: Impact; 
  font-weight: 400; 
  font-size: 2.5rem; 
  color: #FEFFFF;
}

.post-title {
    font-family: Impact;
    font-weight: 400;
    font-size: 2.5rem;
    color: #FEFFFF;
}

.post-date {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 1.38rem;
    color: #FEFEFE;
    line-height: 1.5rem;
}

.content-post-author {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 1.38rem;
    line-height: 1.5rem;
}

.content-post-author .author-label {
    color: #FEFEFE;
}

.content-post-author .author-name {
    color: #08D9FF;
}
.return-icon{
  width: 0.81rem;
  height: 1.06rem;
}
.return-text{
  font-family: Adobe Heiti Std;
  font-weight: normal;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-left: 0.06rem;
  line-height: 1.5rem;
}
.detail-box-pd {
  background: linear-gradient(
    to bottom,
    rgba(32, 32, 56, 0.2) 0rem,     /* 顶部开始，0.2 透明 */
    rgba(32, 32, 56, 0.4) 1rem,     /* 渐变中段 */
    rgba(32, 32, 56, 0.7) 2rem,     /* 渐深 */
    rgba(32, 32, 56, 1) 2.5rem      /* 到 2.5rem 完全不透明 */
  );
  border-radius: 1.25rem;
  padding: 1.94rem 2.94rem 1.56rem 2rem;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 1.38rem;
  color: #CBCBCB;
  line-height: 1.88rem;
  position: relative;
  z-index: 1;
}

.my-post-content {
    position: relative;
}

/* 基础样式 */
.archive-title {
    font-family: 'Microsoft YaHei';
    font-weight: bold;
    font-size: 1.63rem;
    color: #FEFFFF;
}

.archive-excerpt {
    font-family: 'Microsoft YaHei';
    font-weight: 400;
    font-size: 1.38rem;
    color: #CBCBCB;
}

.archive-date {
    font-family: 'Microsoft YaHei';
    font-weight: bold;
    font-size: 1.25rem;
    color: #887D99;
    line-height: 1.5rem;
    display: inline-block;
}

.post-author {
    font-family: 'Microsoft YaHei';
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.5rem;
    display: inline-block;
}

.post-author .author-label {
    color: #887D99;
    margin-left: 2.69rem;
}

.post-author .author-name {
    color: #08D9FF;
}

/* 图片容器基础样式 */
.archive-thumbnail {
    display: flex;
    align-items: center;
}

.archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 小屏样式 */
@media (max-width: 768px) {
    .archive-title {
        font-size: 0.94rem;
        margin-bottom: 0.75rem;
    }

    .archive-excerpt {
        font-size: 0.815rem;
        line-height: 0.94rem;
        margin-top: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
    .post-date,
    .content-post-author{
      font-size: 0.7rem;
    }
    .post-title{
      font-size: 1.25rem;
      line-height: 1.44rem;
    }
    .btn-return{
      border-radius: 0.32rem;
      transition: all 0.2s ease;
      padding: 0.28rem 0.9rem 0.4rem 0.75rem;
    }
    .return-icon{
      width: 0.4rem;
      height: 0.5rem;
    }
    .return-text{
      font-size: 0.625rem;
      line-height: 0.75rem;
    }
    .my-post-content{
      font-size: 0.94rem;
      line-height: 1.25rem;
    }

    .archive-date,
    .post-author,
    .post-author .author-label,
    .post-author .author-name {
        font-size: 0.625rem;
        line-height: 0.75rem;
        white-space: nowrap;
    }

    /* 确保日期和作者在同一行 */
    .d-flex.align-items-center {
        flex-wrap: nowrap;
        overflow: hidden;
        align-items: center;
    }

    /* 调整作者标签和名字之间的间距 */
    .post-author .author-label {
        margin-right: 0.25rem;
        margin-left: 0.5rem;
    }

    /* 调整日期和作者之间的间距 */
    .archive-date {
        margin-right: 0.5rem;
    }

    /* 内容区域自适应高度 */
    .archive-content {
        display: flex;
        flex-direction: column;
    }

    .archive-excerpt-wrapper {
        flex: 1;
        overflow: hidden;
        position: relative;
    }

    .archive-thumbnail + .archive-content .archive-excerpt-wrapper {
        max-height: calc(100% - 60px);
    }

    .archive-content > div {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .archive-content > div > div:last-child {
        margin-top: auto;
    }

    /* Footer 样式 */
    .footer-box-right {
        max-width: 138px;
    }

    .footer-text-line {
        font-family: 'Microsoft YaHei';
        font-weight: 400;
        font-size: 0.5rem;
        color: #CBCBCB;
        line-height: 0.75rem;
    }

    /* 调整链接样式 */
    .ipa-link a {
        font-family: 'Microsoft YaHei';
        font-weight: 400;
        font-size: 0.5rem;
        color: #CBCBCB;
        line-height: 0.75rem;
    }

    /* 调整分隔点样式 */
    .li-pd-custom {
        font-family: 'Microsoft YaHei';
        font-weight: 400;
        font-size: 0.5rem;
        color: #CBCBCB;
        line-height: 0.75rem;
    }

    .detail-box-pd {
        padding: 0.97rem 1.47rem 0.78rem 1rem;  /* 大屏值的一半 */
    }

    .category-scroll .category-nav-link {
        height: 2rem;
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }

    .category-scroll .nav-item:first-child {
        border-radius: 0.625rem 0rem 0rem 0.625rem;
    }

    .category-scroll .nav-item:last-child {
        border-radius: 0rem 0.625rem 0.625rem 0rem;
    }

    .category-scroll .category-nav-link.active {
        font-size: 1rem;
    }
}

/* 大屏样式 */
@media (min-width: 769px) {

    .archive-thumbnail {
        height: 100%;
    }

    .archive-thumbnail img {
        height: 100%;
        object-fit: cover;
    }

    /* 确保右侧内容区域填充整个高度 */
    .archive-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* 让摘要部分自动填充剩余空间 */
    .archive-excerpt {
        flex: 1;
    }
}

.w-4_28 {
    width: 4.28rem !important;
}
.h-1_315 {
    height: 1.315rem !important;
}
@media (min-width: 992px) {
    .w-4_28, .h-1_315 {
        width: 8.56rem !important;
        height: 4rem !important;
    }
}
.footer-fixed-wrapper{
  width: 100%;
  height: 115px;
}
.footer_fixed_style {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.image-custom{
    max-height: 73px;
}

/* RTL 支持样式 - 阿拉伯语 */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .text-end {
    text-align: left !important;
}

.rtl .text-start {
    text-align: right !important;
}

/* 混合语言内容处理 - 保持英文、数字等左到右 */
.rtl .ltr-content {
    direction: ltr;
    unicode-bidi: embed;
    text-align: left;
}

/* 表格RTL支持 */
.rtl table th,
.rtl table td {
    text-align: right;
}

/* 列表RTL支持 */
.rtl ul,
.rtl ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

.rtl ul li,
.rtl ol li {
    text-align: right;
}

.rtl .main-color,
.rtl .bg-dark {
    text-align: right;
}


@media (max-width: 768px) {
    .rtl .text-end {
        text-align: left !important;
    }
    
    .rtl .text-start {
        text-align: right !important;
    }
}
