/*
Theme Name: wos_wiki
Text Domain: wos_wiki
Version: 1.0.4
Description: A custom theme for WOS
Author: Classified
*/

/*
Change Log : Implement a multilingual system
Author    : Fox
Date      : 2024/02/23 ~
*/

html {
	min-height: 100%;
}

body {
	background-image: url('https://got-global-wiki.s3.amazonaws.com/wp-content/uploads/2025/09/page-bg.png');
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment:fixed;
	background-blend-mode: normal;
	min-height: 100%;
}

div.bgoverlay {
  background-color: rgba(74, 61, 47, 0.2);
  min-height: 100%;
}

.bg-linear-grant{
  background-color: rgba(74, 61, 47, 0.6) !important;
}
.home-footer-bg{
  background-color: rgba(74, 61, 47, 0.6);
}
.footer-gradient{
  margin-top: 35px;
  background-color: rgba(74, 61, 47, 0.6);
}

.footer-light-bg {
  background-color: rgba(74, 61, 47, 0.2);
}

.out-footer-gradient{
  background-color: rgba(74, 61, 47, 0.6);
}

.nav-color-blue {
  background-color: rgba(81, 68, 53);
}

.main-color {
  background-color: rgba(81, 68, 53, 0.8);
}

.heading-bg-color {
  background-color: rgb(43, 43, 55);
}

.main-color-navbar {
  background: rgba(81, 68, 53, 0.8);
}

li.nav-item:hover {
  background-color:  rgba(81, 68, 53, 0.8);
}

a.dropdown-item:hover {
  background-color:  rgba(81, 68, 53, 0.8)
}


.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
	background-color: rgba(81, 68, 53, 0.8);
}

.btn-custom {
	background-color: rgba(81, 68, 53);
}

.btn-custom:hover {
  background-color:  rgba(81, 68, 53, 0.8);
  border-radius: 0.375rem;
}

span.page-numbers.current {
	background-color: rgba(81, 68, 53, 0.8);
	color: white;
}

.offcanvas .offcanvas-body {
  display: show!important;
}

.shadow-hover:hover {
	box-shadow: 0 0 !important;
}

.custom-shadow {
	box-shadow: 10px 10px rgba(0, 0, 0, 0.1);
}

.bg-dark{
	background-color: rgba(81, 68, 53, 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%;
    }


.content-area .w-100 {
    max-width: 80%;
    width: auto !important;
    margin: 0 auto;
}

p > img {
	max-width: 100%;
}

/* Masonry 容器样式 */
.masonry-grid {
    width: 100%;
    margin: 0 auto;
}

.masonry-item {
    width: calc(25% - 10px);
    margin-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .masonry-item {
        width: calc(50% - 10px);
    }
}

/* 确保Tab内容正确显示 */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.show {
    display: block;
}

/* 防止Masonry堆叠问题 */
.masonry-grid {
    min-height: 100px;
}

.masonry-item {
    float: left;
    margin-bottom: 10px;
}

/* 清除浮动 */
.masonry-grid::after {
    content: '';
    display: table;
    clear: both;
}

/* 图片样式 */
.masonry-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 卡片样式 */
.masonry-item .custom-shadow {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 悬停效果 */
.masonry-item .custom-shadow:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 图片容器样式 */
.image-container {
    position: relative;
    width: 100%;
    height: auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 排行榜样式 */
.popular-ranking-item {
    display: flex !important;
    align-items: flex-start !important;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 12px;
}

.popular-ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.1);
}

.popular-ranking-image {
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.popular-ranking-item:hover .popular-ranking-image {
    border-color: rgba(255,255,255,0.3);
}

.popular-ranking-title {
    font-size: 0.9rem;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.popular-ranking-description {
    font-size: 0.8rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 确保右侧内容区域正确显示 */
.popular-ranking-item .flex-grow-1 {
    flex: 1 1 auto;
    min-width: 0;
}

.ranking-badge {
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .popular-ranking-item {
        margin-bottom: 1rem;
        display: flex !important;
        align-items: flex-start !important;
    }
    
    .popular-ranking-image {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Footer中排行榜的特殊样式 */
footer .popular-ranking-item {
    display: flex !important;
    align-items: flex-start !important;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

footer .popular-ranking-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.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://got-global-wiki.s3.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: #41352B;
  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: #EDE6D2 !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: #EDE6D2;
  font-size: 1.5rem;
  color: #4E3E31 !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: #EDE6D2;
  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(81, 68, 53, 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: #3E3427;
  border-radius: 1.25rem;
  border: 0.13rem solid #7C6B59;
  box-shadow:
      0 1px 2px rgba(255, 255, 255, 0.1) inset,
      0 -1px 1px rgba(0, 0, 0, 0.4) inset,
      0 0 4px rgba(124, 107, 89, 0.3),
      0 0 0 2px rgba(124, 107, 89, 0.1);
  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;
}

.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;
  min-width: 45px;
}
.detail-box-pd {
  background: linear-gradient(
    to bottom,
    rgba(81, 68, 53, 0.2) 0rem,     /* 顶部开始，0.2 透明 */
    rgba(81, 68, 53, 0.4) 1rem,     /* 渐变中段 */
    rgba(81, 68, 53, 0.7) 2rem,     /* 渐深 */
    rgba(81, 68, 53, 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;
}

.footer-box-right{
  margin-top: 8px;
}


