:root {
  --ol-subtle-foreground-color: rgb(var(--color-primary-500) / 1) !important;
  --ol-foreground-color: rgb(var(--color-primary-500) / 1) !important;
  --ol-background-color: rgba(255, 255, 255, 0.8) !important;
}
/*CSS reset*/
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset,
img {
  border: 0;
}
ol,
ul,
li {
  list-style: none;
}
caption {
  text-align: left;
  font-weight: normal;
}
q:before,
q:after {
  content: '';
}
abbr,
acronym {
  border: 0;
  font-variant: normal;
}
sub,
sup {
  font-size: 65%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: 2.1em;
  right: 0.4em;
}
sub {
  bottom: 0;
  padding-left: 5px;
}
ins,
a {
  text-decoration: none;
}
a {
  cursor: pointer;
}
a,
li,
input {
  outline: none;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
legend {
  color: #000;
}
:focus {
  outline: 0;
}
blockquote,
q {
  quotes: '' '';
}
textarea {
  resize: none;
  overflow-y: auto;
}
img {
  border: 0;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
}
/*文字*/
h1 {
  font-size: 24px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 18px;
}
h5 {
  font-size: 17px;
}
h6 {
  font-size: 16px;
}
.f10 {
  font-size: 10px;
}
.f12 {
  font-size: 12px;
}
.f13 {
  font-size: 13px;
}
.f14 {
  font-size: 14px;
}
.f15 {
  font-size: 15px;
}
.f16 {
  font-size: 16px;
}
.f18 {
  font-size: 18px;
}
.f20 {
  font-size: 20px;
}
.f22 {
  font-size: 22px;
}
.f24 {
  font-size: 24px;
}
.f26 {
  font-size: 26px;
}
.f28 {
  font-size: 28px;
}
.f30 {
  font-size: 30px;
}
.f36 {
  font-size: 36px;
}
.f40 {
  font-size: 40px;
}
.f70 {
  font-size: 70px;
}
.fb {
  font-weight: bold;
}
.fn {
  font-weight: normal;
}
.fit {
  font-style: italic;
}
.t2 {
  text-indent: 2em;
}
.ls {
  letter-spacing: 1px;
}
.unl {
  text-decoration: underline;
}
.unl:hover {
  text-decoration: underline;
}
.lh150 {
  line-height: 150%;
}
.lh180 {
  line-height: 180%;
}
.lh200 {
  line-height: 200%;
}
.lh250 {
  line-height: 250%;
}
.lh280 {
  line-height: 280%;
}
.lh300 {
  line-height: 300%;
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
} /*--省略--*/
.word-break {
  word-wrap: break-word;
  overflow: hidden;
  word-break: break-all;
} /*-- 强制英文单词断行 --*/
.text-justify {
  text-align: justify;
  text-justify: distribute;
} /*-- 文字右端对齐 --*/
/*定位*/
.tl {
  text-align: left;
}
.tr {
  text-align: right;
}
.tc {
  text-align: center;
}
.mc {
  margin-left: auto;
  margin-right: auto;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.cb {
  clear: both;
}
.cl {
  clear: left;
}
.cr {
  clear: right;
}
.clearfix:after {
  content: '.';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.clearfix,
.zoom {
  zoom: 1;
} /*--清除浮动--*/ /*--针对IE--*/
.vt {
  vertical-align: top;
}
.vm {
  vertical-align: middle;
  margin-top: -3px;
}
.pr {
  position: relative;
}
.pa {
  position: absolute;
}
.pf {
  position: fixed;
}
.abs-right {
  position: absolute;
  right: 0;
}
.hidden {
  visibility: hidden;
}
.none {
  display: none;
}
.oh {
  overflow: hidden;
}
.db {
  display: block;
}
.dib {
  display: inline-block;
}
.di {
  display: inline;
}
.boxSize {
  box-sizing: border-box;
  -moz-box-sizing: border-box; /* Firefox */
  -webkit-box-sizing: border-box; /* Safari */
} /*长宽不受PADDING/MARGIN影响*/
/*长度高度*/
.w_01 {
  width: 10%;
}
.w_02 {
  width: 20%;
}
.w_25 {
  width: 25%;
}
.w_03 {
  width: 30%;
}
.w_33 {
  width: 33.33%;
}
.w_04 {
  width: 40%;
}
.w_05 {
  width: 50%;
}
.w_06 {
  width: 60%;
}
.w_07 {
  width: 70%;
}
.w_08 {
  width: 80%;
}
.w_09 {
  width: 90%;
}
.w_10 {
  width: 100%;
}
.full-height {
  height: 100%;
}
/*边距*/
.p5 {
  padding: 5px;
}
.p10 {
  padding: 10px;
}
.p15 {
  padding: 15px;
}
.p20 {
  padding: 20px;
}
.p25 {
  padding: 25px;
}
.p30 {
  padding: 30px;
}
.p35 {
  padding: 35px;
}
.p40 {
  padding: 40px;
}
.p50 {
  padding: 50px;
}
.pt5 {
  padding-top: 5px;
}
.pt10 {
  padding-top: 10px;
}
.pt15 {
  padding-top: 15px;
}
.pt20 {
  padding-top: 20px;
}
.pt25 {
  padding-top: 25px;
}
.pt30 {
  padding-top: 30px;
}
.pt35 {
  padding-top: 35px;
}
.pt40 {
  padding-top: 40px;
}
.pt50 {
  padding-top: 50px;
}
.pb5 {
  padding-bottom: 5px;
}
.pb10 {
  padding-bottom: 10px;
}
.pb15 {
  padding-bottom: 15px;
}
.pb20 {
  padding-bottom: 20px;
}
.pb25 {
  padding-bottom: 25px;
}
.pb30 {
  padding-bottom: 30px;
}
.pb35 {
  padding-bottom: 35px;
}
.pb40 {
  padding-bottom: 40px;
}
.pb50 {
  padding-bottom: 50px;
}
.pl5 {
  padding-left: 5px;
}
.pl10 {
  padding-left: 10px;
}
.pl15 {
  padding-left: 15px;
}
.pl20 {
  padding-left: 20px;
}
.pl25 {
  padding-left: 25px;
}
.pl30 {
  padding-left: 30px;
}
.pl35 {
  padding-left: 35px;
}
.pl40 {
  padding-left: 40px;
}
.pl50 {
  padding-left: 50px;
}
.pr5 {
  padding-right: 5px;
}
.pr10 {
  padding-right: 10px;
}
.pr15 {
  padding-right: 15px;
}
.pr20 {
  padding-right: 20px;
}
.pr25 {
  padding-right: 25px;
}
.pr30 {
  padding-right: 30px;
}
.pr35 {
  padding-right: 35px;
}
.pr40 {
  padding-right: 40px;
}
.pr50 {
  padding-right: 50px;
}
.m5 {
  margin: 5px;
}
.m10 {
  margin: 10px;
}
.m15 {
  margin: 15px;
}
.m20 {
  margin: 20px;
}
.mt5 {
  margin-top: 5px;
}
.mt10 {
  margin-top: 10px;
}
.mt15 {
  margin-top: 15px;
}
.mt20 {
  margin-top: 20px;
}
.mt25 {
  margin-top: 25px;
}
.mt30 {
  margin-top: 30px;
}
.mt35 {
  margin-top: 35px;
}
.mt {
  margin-top: px;
}
.mb5 {
  margin-bottom: 5px;
}
.mb10 {
  margin-bottom: 10px;
}
.mb15 {
  margin-bottom: 15px;
}
.mb20 {
  margin-bottom: 20px;
}
.ml5 {
  margin-left: 5px;
}
.ml10 {
  margin-left: 10px;
}
.ml15 {
  margin-left: 15px;
}
.ml20 {
  margin-left: 20px;
}
.mr5 {
  margin-right: 5px;
}
.mr10 {
  margin-right: 10px;
}
.mr15 {
  margin-right: 15px;
}
.mr20 {
  margin-right: 20px;
}
.pl_3 {
  padding-left: 3%;
}
.pl_5 {
  padding-left: 5%;
}
.pr_3 {
  padding-right: 3%;
}
.pr_5 {
  padding-right: 5%;
}
/* html 5 Specific */
article,
aside,
canvas,
details,
div,
figcaption,
figure,
footer,
header,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: middle;
  background: transparent;
}
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section,
summary {
  display: block;
}
/*--针对特定项目的页面的样式(可修改)--*/
html,
body {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans SC',
    'Microsoft YaHei', sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI Emoji', 'Noto Color Emoji', emoji;
  color: #171717;
  width: 100%;
  height: 100%;
}

html {
  -webkit-text-size-adjust: none;
  width: 100%;
  height: 100%;
  /* 小滚动条 */
  scrollbar-width: thin;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fffcf7;
  background-image: url(/img/bg_02.png);
  background-size: contain;
  background-repeat: repeat;
  background-position: center top;
}
/*-- 按钮 --*/
input {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC,
    Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei,
    sans-serif;
}
input[type='button'],
input[type='submit'] {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.inputType {
  display: block;
  box-sizing: border-box;
  border: none;
}
input[type='tel'],
input[type='text'],
input[type='number'],
input[type='password'] {
  -webkit-appearance: none;
  -moz-appearance: none;
}
.cutDefault {
  -webkit-appearance: none;
  -moz-appearance: none;
}
/*-- 圆角(注意兼容)--*/
.radius_5 {
  border-radius: 50%;
}
.radius3 {
  border-radius: 3px;
}
.radius5 {
  border-radius: 5px;
}
.radiusLeft5 {
  border-radius: 5px 0 0 5px;
}
.radiusRight5 {
  border-radius: 0 5px 5px 0;
}
.radiusTop5 {
  border-radius: 5px 5px 0 0;
}
.radiusBottom5 {
  border-radius: 0 0 5px 5px;
}
.radius10 {
  border-radius: 10px;
}
.radiusLeft10 {
  border-radius: 10px 0 0 10px;
}
.radiusRight10 {
  border-radius: 0 10px 10px 0;
}
.radiusTop10 {
  border-radius: 10px 10px 0 0;
}
.radiusBottom10 {
  border-radius: 0 0 10px 10px;
}
.radius15 {
  border-radius: 15px;
}
.radiusTop15 {
  border-radius: 15px 15px 0 0;
}
.radiusBottom15 {
  border-radius: 0 0 15px 15px;
}
.radius20 {
  border-radius: 20px;
}
.radius30 {
  border-radius: 30px;
}
.radius40 {
  border-radius: 40px;
}
.radius50 {
  border-radius: 50px;
}
/*颜色集(可根据具体项目需要进行删减和添加、这一块最好移到项目css的头部、以下是样例)*/
/*字体*/
.cBlack322 {
  color: #332c2b;
}
.cWhite {
  color: #ffffff;
}
.cBlack {
  color: #000000;
}
.cGray80 {
  color: #808080;
}
.cGray999 {
  color: #999999;
}
.cGray94 {
  color: #949494;
}
.cGray666 {
  color: #666666;
}
.cGray768 {
  color: #756f8b;
}
.cGreen1A7 {
  color: #14a774;
}
.cOrange {
  color: #ff9f18;
}
.cRed {
  color: #ff5364;
}
.cPink {
  color: #ff9f9f;
}
/*背景颜色*/
.bcGrayE6 {
  background-color: #e6e6e6;
}
.bcWhite {
  background-color: #ffffff;
}
.bcGrayF2 {
  background-color: #f2f2f2;
}
.bcGrayF0 {
  background-color: #f0f0f0;
}
.bcYellow_1 {
  background-color: #ffb218;
}
/*边框*/
.bdTopCCC {
  border-top: 1px solid #cccccc;
}
.bdBottomC9 {
  border-bottom: 1px solid #c9c9c9;
}
/* flex */
.dflex {
  display: flex;
}
.flexCenter {
  justify-content: center;
  align-items: center;
}
.pointer {
  cursor: pointer;
}
/* 放大镜 */
.pointer-zoom {
  cursor: zoom-in;
}

.nuxt-loading-indicator {
  background-color: rgb(var(--color-primary-500) / 1) !important;
}
.common-right-panel-form.common-limit-width {
  max-width: 700px;
}
.common-top-search-form-body .el-form-item {
  margin-right: 10px;
  margin-bottom: 20px;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  height: 40px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0);
}
.custom-scroll:hover::-webkit-scrollbar-thumb {
  height: 40px;
  border-radius: 4px;
  background-color: #bbb;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}
.custom-scroll.scroll-not-hide::-webkit-scrollbar-thumb {
  height: 40px;
  border-radius: 4px;
  background-color: #bbb;
}
/* .custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.custom-scroll:hover,
.custom-scroll.scroll-not-hide {
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
} */
.common-a:hover {
  @apply text-primary-500;
}

.common-blockquote {
  margin: 0;
  border: none;
  border-left: 5px solid #eee;
  padding: 0 5px;
  margin-bottom: 4px;
  color: #979797;
  font-size: 12px;
}
.tenten {
  margin: 0px 5px;
}
.tenten:after {
  content: '';
  width: 2px;
  height: 2px;
  border-radius: 2px;
  display: inline-block;
  background: #949494;
  vertical-align: middle;
}
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
.collapse-enter-active,
.collapse-leave-active {
  transition: height 400ms ease;
}
.previewer-video-body,
.previewer-img-loading-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.previewer-img-loading-content {
  color: #fff;
}
.previewer-video-body video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  max-height: calc(100dvh - 130px);
}
ins.adsbygoogle[data-ad-status='unfilled'] {
  display: none !important;
}
.pswp__custom-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-swipe-photo-swipe .pswp__button--arrow--next,
.photo-swipe-photo-swipe .pswp__button--arrow--prev {
  z-index: 9 !important;
}
.photo-swipe-photo-swipe .pswp__button--arrow {
  width: 46px;
  height: 46px;
  margin-top: -23px;
}
.photo-swipe-photo-swipe .pswp__button--arrow .pswp__icn {
  width: 46px;
}
.photo-swipe-photo-swipe .pswp__button--arrow--next {
  right: 0px;
}
.photo-swipe-photo-swipe .pswp__button--arrow--next .pswp__icn {
  right: 10px;
}
.photo-swipe-photo-swipe .pswp__button--arrow--prev .pswp__icn {
  left: 10px;
}
.photo-swipe-photo-swipe .pswp__button--arrow--prev {
  left: 0px;
}
.photo-swipe-photo-swipe.pswp--touch .pswp__button--arrow {
  visibility: visible;
}
.photo-swipe-photo-swipe.pswp--ui-visible .pswp__button.pswp__button--arrow {
  opacity: 0.85;
  transition: none;
}
.photo-swipe-photo-swipe.pswp--ui-visible
  .pswp__button.pswp__button--arrow:hover {
  opacity: 1;
}

.pswp:not(.pswp--ui-visible) .pswp__button {
  opacity: 0 !important;
}
.content-h-131 {
  height: 131px;
}
.content-h-170 {
  height: 170px;
}
.acgn-item-body {
  @apply border border-solid border-gray-200 bg-white dark:bg-gray-800/40;
  border-radius: 6px;
  padding: 8px;
}
.acg-summary {
  @apply border-t border-solid border-gray-200;
  padding: 0.25rem 0px;
}
.acgn-right-content {
  flex: 1;
  margin-left: 10px;
  box-sizing: border-box;
  width: 100%;
  padding-top: 0.25rem;
}
.page-event-block {
  color: #fff;
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 12px;
  margin-right: 5px;
  border-radius: 5px;
  display: inline-block;
  line-height: 18px;
}
/* 菜单动画 */
.left-enter-active,
.left-leave-active {
  transition: all 0.3s ease;
  transform: translateX(0%);
  /* opacity: 1; */
}
.left-enter-from,
.left-leave-to {
  /* opacity: 0; */
  transform: translateX(-100%);
}
/* right */
.right-enter-active,
.right-leave-active {
  transition: all 0.3s ease;
  transform: translateX(0%);
  /* opacity: 1; */
}
.right-enter-from,
.right-leave-to {
  /* opacity: 0; */
  transform: translateX(100%);
}
/* top */
.top-enter-active,
.top-leave-active {
  transition: all 0.3s ease;
  transform: translateY(0%);
  /* opacity: 1; */
}
.top-enter-from,
.top-leave-to {
  /* opacity: 0; */
  transform: translateY(-100%);
}
/* bottom */
.bottom-enter-active,
.bottom-leave-active {
  transition: all 0.3s ease;
  transform: translateY(0%);
  /* opacity: 1; */
}
.bottom-enter-from,
.bottom-leave-to {
  /* opacity: 0; */
  transform: translateY(100%);
}
.common-right-tool-menu-item-text {
  /* 禁止选中 */
  user-select: none;
  word-break: break-all;
}
.common-right-tool-menu-item-text.active {
  /* border-primary-400 */
  @apply bg-primary-400 text-white dark:bg-primary-500/90 dark:text-gray-900;
}
.common-right-tool-btn {
  @apply bg-primary-500 dark:bg-primary-500/90 dark:text-gray-900;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  width: 33px;
  height: 33px;
  border-radius: 33px;
  margin-top: 8px;
}

@media (hover: hover) {
  .common-right-tool-btn:hover {
    opacity: 1;
  }
}
.common-right-tool-menu-body {
  position: fixed;
  z-index: 11;
  right: 65px;
  bottom: 20px;
  background-color: #fff;
  border-radius: 10px;
  /* 阴影 */
  box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.1);
  max-width: 260px;
  width: calc(100vw - 100px);
  overflow: hidden;
}
.common-right-tool-menu {
  max-height: calc(100vh - 250px);
  max-height: calc(100dvh - 170px);
  overflow: auto;
  min-height: 50px;
}
.blog-tweet-img-swiper-body.video-playing .swiper-pagination {
  display: none;
}
.system-ui-font {
  font-family: 'system-ui';
}
.acgn-time {
  font-size: 0.6rem;
  /* 不换行 */
  white-space: nowrap;
}
.acgn-time-icon {
  margin-right: 0.14rem;
}
.max-image,
.blog-body .wikimoe-image.max-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.header-scroll-margin-top {
  scroll-margin-top: 30px;
}
@media (max-width: 1024px) {
  .header-scroll-margin-top {
    scroll-margin-top: 100px;
  }
}
.acgn-filter-popover-body {
  width: calc(100vw - 40px);
  max-width: 25rem;
}

.acgn-sidebar-item-body {
  margin: 0.5rem 0;
}
@media (min-width: 769px) {
  .acgn-sidebar-item-body {
    width: 100%;
  }
  .acgn-sidebar-item {
    zoom: 0.79;
  }

  .acgn-sidebar-item .acgn-time {
    font-size: 0.85em;
  }
}
.div-loading-body {
  z-index: 9;
}

.post-detail-tag-item {
  margin-right: 12px;
  font-size: 16px;
  display: inline-block;
  @apply text-primary-500 hover:underline;
}
.content-360panorama-body {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
.content-360panorama-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pswp__icn-shadow {
  stroke-width: 0px !important;
}
.pswp__icn {
  filter: drop-shadow(0px 0px 2px #000);
}

.psv-overlay-image svg {
  display: inline-block;
}

.share-popover .inline-flex[data-headlessui-state] {
  display: block;
}

/* 富文本 */
.html-content-body img {
  @apply cursor-pointer;
}
.html-content-body img {
  max-width: 100% !important;
  height: auto !important;
  display: inline;
}
.html-content-body iframe {
  max-width: 100% !important;
}
.html-content-body video {
  max-width: 100% !important;
}
.html-content-body h1,
.html-content-body h2,
.html-content-body h3,
.html-content-body h4,
.html-content-body h5,
.html-content-body h6 {
  font-weight: bold;
}
.html-content-body a {
  @apply text-primary-500;
  word-break: break-all;
}
.html-content-body a:hover {
  @apply text-primary-500;
}
.html-content-body ul li {
  @apply list-disc list-inside;
}
.html-content-body ol li {
  @apply list-decimal list-inside;
}
.html-content-body code {
  @apply px-1 py-0.5 rounded-md bg-gray-800 text-white;
}

.html-content-body p {
  line-height: 2;
}
.html-content-body pre {
  @apply my-2 overflow-auto rounded-md bg-gray-800;
  isolation: isolate;
  position: relative;
}
.html-content-body.is-loading pre {
  padding-left: 3.5em;
  padding-top: 2.5rem;
  padding-bottom: 0.6em;
  padding-right: 1em;
  color: #ffffff;
}
.html-content-body strong,
.html-content-body b {
  font-weight: 700;
}
.html-content-body pre code.hljs {
  position: relative;
  padding-left: 3.5em;
  padding-top: 2.5rem;
  padding-bottom: 0.6em;
  padding-right: 1em;
}
/* blockquote */
.html-content-body blockquote {
  @apply border-l-4 border-primary-200 dark:border-primary-400/40 p-2 mt-2 mb-2 text-primary-400 dark:text-primary-400 bg-primary-50 dark:bg-primary-400/20 rounded-md;
}
.html-content-body pre code::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.html-content-body pre code::-webkit-scrollbar-thumb {
  height: 40px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0);
}
.html-content-body pre code:hover::-webkit-scrollbar-thumb {
  height: 40px;
  border-radius: 4px;
  background-color: #bbb;
}

.html-content-body pre code::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}
.hljs:before {
  @apply text-primary-50;
  content: attr(data-lines);
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 3em;
  padding: 0 0.5em;
  overflow: hidden;
  letter-spacing: -1px;
  text-align: right;

  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-right: 1px solid #ffffff;
}
.html-content-body table {
  @apply table-auto border-collapse;
}

.html-content-body td,
.html-content-body th {
  @apply border p-2;
}
.html-content-body span[data-w-e-type='eventspan'] {
  @apply text-primary-500 cursor-pointer;
}
.code-header {
  @apply text-white text-sm bg-gray-900;
  padding: 0.2em 0.5em;
  border-bottom: 1px solid #d1d5db;
  display: flex;
  /* 垂直居中 */
  align-items: center;
  justify-content: space-between;
  height: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}
.code-header svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}
.code-copy-btn {
  margin-right: 0.25rem;
}
.code-language {
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

.w-e-image-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 100%;
  border-radius: 0.375rem;
  isolation: isolate;
  overflow: hidden;
}

.w-e-image-group-img-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
}

.html-content-body .w-e-image-group-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover; /* 确保图片填充整个容器并裁切多余部分 */
}

/* 奇数图片组的最后一个元素样式 */
.w-e-image-group-odd .w-e-image-group-img-body:last-child {
  grid-column: 1 / -1; /* 跨越所有列 */
  aspect-ratio: 2/1;
}
.w-e-panorama360 {
  position: relative;
  z-index: 1;
}
.w-e-panorama360::after {
  /* 点击以360°全景查看 */
  content: '点击可进入360°全景模式';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  /* 点击穿透 */
  pointer-events: none;
  @apply rounded px-1 py-0.5 bg-primary-500 text-white dark:text-gray-900 bg-opacity-80 text-xs flex align-middle justify-center pointer mr-1 whitespace-nowrap;
}

.content-grid-list-2-1 {
  /* grid 布局 2列 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.content-grid-list-2-1.is-odd .content-grid-list-2-1-item:last-child {
  grid-column: span 2;
}
.content-grid-list-2-1-dialog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.content-grid-list-2-1-dialog.is-odd .content-grid-list-2-1-item:last-child {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .content-grid-list-2-1-dialog {
    grid-template-columns: 1fr;
  }
  .content-grid-list-2-1-dialog.is-odd .content-grid-list-2-1-item:last-child {
    grid-column: span 1;
  }
}

/* 单列 */
/* 0-640 */
/* 769 - 950 */
/* 1025 - 1240 */
@media (max-width: 640px),
  (min-width: 769px) and (max-width: 950px),
  (min-width: 1025px) and (max-width: 1240px) {
  .content-grid-list-2-1 {
    grid-template-columns: 1fr;
  }
  .content-grid-list-2-1.is-odd .content-grid-list-2-1-item:last-child {
    grid-column: span 1;
  }
}

.transition-border-color {
  transition-property: border-color;
}
.gap-1px {
  gap: 1px;
}
.post-detail-map-pin-icon {
  margin-right: 1px;
  vertical-align: -1px;
}

.ol-control {
  background-color: rgb(var(--color-primary-100) / 1) !important;
}

/* 暗模式 */
:root {
  /* --wikimoe-dark-bg: rgba(20, 20, 20, 1);
  --wikimoe-dark-panel-bg: rgba(17, 17, 17, 1); */
  --wikimoe-dark-bg: rgba(17, 17, 17, 1);
  --wikimoe-dark-panel-bg: rgba(20, 20, 20, 1);
}
html.dark .ol-control {
  background-color: rgb(var(--color-gray-900) / 1) !important;
}
html.dark .ol-control button {
  background-color: rgb(var(--color-gray-800) / 1) !important;
  color: #ffffff;
}
html.dark .ol-control button:hover,
html.dark .ol-control button:focus {
  background-color: rgb(var(--color-gray-700) / 0.8) !important;
  outline: none !important;
}
html.dark body {
  @apply dark:text-gray-200;
  background-color: var(--wikimoe-dark-bg);
  background-image: url(/img/bg_02_dark.png);
}
html.dark .blog-layout-body {
  background-color: var(--wikimoe-dark-panel-bg);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}
html.dark .blog-layout-sticky {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .blog-layout-sidebar-item {
  @apply dark:text-gray-200;
}
html.dark .blog-layout-content-body {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .blog-layout-right-top-body {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .blog-layout-right-body.blog-layout-right-body-full-height {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .blog-layout-right-box {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .blog-layout-left-body,
html.dark .blog-layout-right-body {
  @apply dark:border-gray-100/5;
}
html.dark .blog-layout-right-body .blog-layout-right-title-body,
html.dark .comment-latest-item-body,
html.dark .comment-list-item,
html.dark .blog-layout-desc,
html.dark .page-commonDialog-current-commonDialog-title,
html.dark .post-list-body-item {
  @apply dark:border-gray-100/20;
}
html.dark .blog-search-body {
  @apply dark:bg-gray-900 dark:ring-1 dark:ring-inset dark:ring-gray-700;
}
html.dark .blog-top-bar {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .trend-item-left,
html.dark .trend-item-body {
  @apply dark:border-gray-600 hover:dark:border-primary-400;
}
html.dark .sort-list-item-link {
  @apply dark:text-gray-200;
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .layout-mobile-navi-btn-body {
  background-color: var(--wikimoe-dark-panel-bg);
}
@media (max-width: 1024px) {
  html.dark .blog-layout-left-body {
    background-color: var(--wikimoe-dark-panel-bg);
  }
  html.dark .blog-top-bar-body {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
  }
}
html.dark .acgn-item-body,
html.dark .acgn-item-cover-body,
html.dark .acg-summary {
  @apply dark:border-gray-700;
}
html.dark .comment-list-item-parent-content {
  @apply dark:text-gray-300;
}
html.dark .post-all-type-item-body,
html.dark .tweet-content-lite-item-body {
  @apply dark:border-gray-700 hover:dark:border-primary-400;
}
html.dark .selecttable td {
  @apply dark:bg-gray-500;
}
html.dark .selecttable td:hover {
  @apply dark:bg-gray-600;
}

html.dark .selecttable td.selected {
  @apply dark:bg-gray-800;
  color: #fff;
}
html.dark .blog-layout-info-menu-bg {
  background-color: var(--wikimoe-dark-panel-bg);
  background-blend-mode: soft-light;
}
.common-right-tool-menu-body {
  @apply dark:bg-gray-900;
}
html.dark .div-loading-body {
  background-color: var(--wikimoe-dark-panel-bg);
}
html.dark .wikimoe-image,
html.dark .blog-avatar,
html.dark .tweet-content-link-cover-body iframe,
html.dark .adsbygoogle {
  @apply dark:brightness-90;
}
.blog-layout-sitelogo.light,
.blog-top-bar-sitelogo.light {
  display: block;
}
.blog-layout-sitelogo.dark,
.blog-top-bar-sitelogo.dark {
  display: none;
}
html.dark .blog-layout-sitelogo.light,
html.dark .blog-top-bar-sitelogo.light {
  display: none;
}
html.dark .blog-layout-sitelogo.dark,
html.dark .blog-top-bar-sitelogo.dark {
  display: block;
}
@media (max-width: 1024px) {
  html body,
  html.dark body {
    background-image: none;
  }
}
