:root {
  --hyone-bg-opacity: 1;
  --hyone-text-opacity: 1;
  --hyone-bg-light: rgb(248 250 252 / var(--hyone-bg-opacity));
  --hyone-bg-dark: rgb(30 41 59 / var(--hyone-bg-opacity));
  --hyone-text-light: rgb(50 50 50 / var(--hyone-text-opacity));
  --hyone-text-dark: rgb(245 245 245 / var(--hyone-text-opacity));
}

.bgimg {
  background-size: cover;
  background-position: center;
  background-image: url("https://hollowman.cn/usr/themes/hyone/images/newyear.jpeg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-mask-image: linear-gradient(black, transparent);
  /* 使用渐变遮罩 */
  mask-image: linear-gradient(black, transparent);
  /* 标准属性 */
}

/* @font-face {
  font-display: swap;
  font-family: HarmonyOS-Sans;
  src: url("./dist/fonts/HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
} */

/* 自定义字体 */
@font-face {
  font-family: Digiface ;
  src: url("./dist/webfonts/DIGITAL-Regular.ttf") format("truetype");
}
.digital_font{
  font-family: Digiface; 
}
/* * { */
/* 引入自定义字体 */
/* font-family: HarmonyOS-Sans, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace; */
/* } */

/* 隐藏滚动条 */
.scroll-w-0::-webkit-scrollbar {
  display: none;
  /* 对于 Chrome, Safari, Opera */
}

.scroll-w-0 {
  -ms-overflow-style: none;
  /* 对于 Internet Explorer 和 Edge */
  scrollbar-width: none;
  /* 对于 Firefox */
  overflow: auto;
}

pre {
  background-color: var(--hyone-bg-light) !important;
}

pre:where(.dark, .dark *) {
  background-color: var(--hyone-bg-dark) !important;
}

/* 多页导航 */
.page-navigator {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.page-navigator li {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 2px;
  font-weight: 700;
}

.page-navigator li a {
  display: flex;
  border-radius: 4px;
  background-color: gainsboro;
  width: 2rem;
  height: 2rem;
  justify-content: center;
  align-items: center;
}

.page-navigator li a:where(.dark, .dark *) {
  background-color: grey;
}

.page-navigator li a:hover {
  background-color: grey;
}

.page-navigator .current a {
  background-color: grey;
}

.page-navigator li a:hover:where(.dark, .dark *),
.page-navigator .current a:where(.dark, .dark *) {
  background-color: gainsboro;
}

.comment-parent {
  /* padding-bottom: 2rem; */
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #d0d5d0;
  ;
}

.comment-parent:where(.dark, .dark *) {
  border-bottom: 1px solid rgb(100 110 120);
}

.comment-parent>ol {
  margin-left: 2.5rem;
  margin-bottom: 0.5rem;
}


/* 文字闪烁效果 */
@keyframes blink {
  50% {
    background-color: rgb(162, 168, 175);
    color: rgb(67, 70, 73);
  }
}

.blink-text {
  animation: blink .75s ease-in-out 2;
}

/* hr特效 */
.hr-solid-content {
  color: rgba(119, 194, 7, 0.795);
  border: 0;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black,
      black,
      transparent);
  mask-image: linear-gradient(to right, transparent, black, black, transparent);
  position: relative;
}

.hr-solid-content::before {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  content: attr(data-content);
  font-size: medium;
  line-height: 1px;
  border: 1 solid #d0d5d0;
  border-width: 0 100vw;
  width: fit-content;
  white-space: nowrap;
}

/* 手风琴效果 */
.accordion {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.accordion-title {
  font-weight: 700;
  font-size: 1.25rem;
  /* padding: 0.25rem; */
  cursor: pointer;
  border: 1px solid gainsboro;
  border-radius: 0.4rem;
  /* margin: 0.25rem; */
}

.dark .accordion-title {
  border: 1px solid gray;
}

.accordion-body {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 0fr;
  transition: 250ms grid-template-rows ease;
}

.accordion-body * {
  /* margin: 0.25rem 0.25rem; */
  overflow: hidden;
}

.accord-open+.accordion-body {
  grid-template-rows: 1fr;
}

.ri-open:before {
  content: "\EADB\ ";
}

.ri-close:before {
  content: "\EAD4\ ";
}

.al_post_day:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background-color: aliceblue;
}

.al_post_day:where(.dark, .dark *):before {
  background-color: gray;
}

.al_post_day:after {
  content: '';
  position: absolute;
  left: 4px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d0d5d0;
  transition: all .5s ease;
}

.al_post_day:where(.dark, .dark *):after {
  background-color: darkgrey;
}

.al_post_day:hover:after {
  margin-left: -1px;
  margin-top: -1px;
  width: 12px;
  height: 12px;
  background-color: blue;
}

.al_post_day:where(.dark, .dark *):hover:after {
  background-color: dodgerblue;
}

/* 懒加载样式 */
.lazy-load {
  /*  默认背景图 */
  /* background-image: url(./images/bgdemo/ad_2.jpg); */
  /* width: 100%;
  height: 100%; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: .5s ease-in-out opacity;
  -webkit-transition: .5s ease-in-out opacity;
  filter: blur(35px);
  mask: radial-gradient(circle at center, white 100%, transparent 100%);
  -webkit-mask: radial-gradient(circle at center, white 100%, transparent 100%);
}

.loaded {
  filter: blur(0px);
  opacity: 1;
  transition: .5s filter linear, .5s -webkit-filter linear;
}

.animate__animated {
  /* 默认透明度 */
  opacity: 0;
}

/* 懒加载结束 */



/* 动态样式 */

/* 链接样式1 */
.link_line {
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.link_line:hover:after {
  width: 100%;
  left: 0%;
}

.link_line:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: red;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}

/* 按钮样式 */

.btn_banner {
  position: relative;
  overflow: hidden;
  height: 2.5rem;
  padding: 0 2rem;
  border-radius: 1rem;
  background: #3d3a4e;
  background-size: 400%;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
}

.btn_banner:hover::before {
  transform: scaleX(1);
}

.btn_banner * {
  margin: auto;
  position: relative;
  font-weight: 500;
  z-index: 1;
}

.btn_banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(82.3deg,
      rgba(150, 93, 233, 1) 10.8%,
      rgba(99, 88, 238, 1) 94.3%);
  transition: all 0.475s;
}



/* hyone__fadeInUp */
@-webkit-keyframes hyonefadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

@keyframes hyonefadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

.hyone__fadeInUp {
  -webkit-animation-name: hyonefadeInUp;
  animation-name: hyonefadeInUp
}

/* hyone__fadeInDown */
@-webkit-keyframes hyonefadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

@keyframes hyonefadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

.hyone__fadeInDown {
  -webkit-animation-name: hyonefadeInDown;
  animation-name: hyonefadeInDown
}

/* 角标 */
.r_t_label {
  font-size: 13px;
  line-height: 32px;
  background: red;
  position: absolute;
  right: 0;
  top: 0;
  z-Index: 2;
  padding: 0 2em;
  -webkit-transform-origin: left bottom;
  -moz-transform-origin: left bottom;
  transform-origin: left bottom;
  -webkit-transform: translate(29.29%, -100%) rotate(45deg);
  -moz-transform: translate(29.29%, -100%) rotate(45deg);
  transform: translate(29.29%, -100%) rotate(45deg);
  text-indent: 0;
}


.infoback{
  background-image: -webkit-linear-gradient(to bottom, rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.1),rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  background-image: -moz-linear-gradient(to bottom, rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.1),rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.1),rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}


/* 日历 */
/* 核心容器 */
.calendar-container {
  width: 100%;
  min-width: 300px;
  overflow-x: auto;
  --today-color: #ff4757;
  --weekend-color: #e74c3c;
  --hover-bg: #3498db;
}

/* 主表格样式 */
.calendar {
  width: 100%;
  min-width: 300px;
  table-layout: fixed;
  border-collapse: collapse;
  /* background: #ffffff; */
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', system-ui;
}

/* 表头样式 */
.calendar th {
  padding: .5rem 0;
  background: #2c3e50;
  border: 1px solid #f1f2f6;
  color: white;
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 15px);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 单元格基础样式 */
.calendar td {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid #f1f2f6;
  text-align: center;
  font-size: clamp(13px, 2vw, 16px);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.calendar th:where(.dark, .dark *),
.calendar td:where(.dark, .dark *) {
  border: 1px solid #6c6f7a;
}

/* 当前日期高亮特效 */
.calendar td.today {
  background: var(--today-color);
  color: white !important;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.calendar td.today::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

/* 周末样式 */
.calendar td:nth-child(1),
.calendar td:nth-child(7) {
  color: var(--weekend-color);
}

/* 悬停效果 */
@media (hover: hover) {
  .calendar td:not(.today):not(:empty):hover {
    background: var(--hover-bg);
    color: white;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
  }
}

/* 内容定位容器 */
.calendar td > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 极端尺寸适配 */
@media (max-width: 400px) {
  
  .calendar td {
    font-size: 13px;
  }
  
  .calendar td.today::after {
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
  }
}

/* 导航栏样式 */
.calendar-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 1rem 0 ;
  background: #f8f9fa;
  border-radius: 8px;
}

.nav-button {
  padding: 0 0.2rem ;
  background: #3498db;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s;
}

.nav-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.current-month {
  font-weight: 600;
  color: #2c3e50;
  margin: 0 1rem;
}

/* 月份跳转表单 */
.month-jump {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.month-jump input {
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.month-jump button {
  padding: 0 .2rem;
  background: #27ae60;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}