/* 引入HarmonyOS Sans SC字体 */
@import url('https://cdn.xrbk.cn/fonts/HarmonyOS_Sans_SC/result.css');
/* 确保所有文本元素都使用HarmonyOS字体 */
body{
  font-family: "HarmonyOS Sans SC" !important;
}


#post{
  width: 100% !important;

}

/* 波浪效果 */

/* 波浪css */
.main-hero-waves-area {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -11px;
  z-index: 5;
}
.waves-area .waves-svg {
  width: 100%;
  height: 5rem;
}
/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #f7f9febd;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #f7f9fe82;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #f7f9fe36;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #f7f9fe;
}
/* 黑色模式背景 */
[data-theme="dark"] .parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #18171dc8;
}
[data-theme="dark"] .parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #18171d80;
}
[data-theme="dark"] .parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #18171d3e;
}
[data-theme="dark"] .parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #18171d;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves-area .waves-svg {
    height: 40px;
    min-height: 40px;
  }
}

/* 仅在屏幕宽度大于 768px 时应用以下样式 */
@media (min-width: 769px) {
  /* 波浪css */
  .main-hero-waves-area {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -11px;
    z-index: 5;
  }
  .waves-area .waves-svg {
    width: 100%;
    height: 5rem;
  }
  /* Animation */

  .parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  }
  .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: #f7f9febd;
  }
  .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: #f7f9fe82;
  }
  .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: #f7f9fe36;
  }
  .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: #f7f9fe;
  }
  /* 黑色模式背景 */
  [data-theme="dark"] .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: #18171dc8;
  }
  [data-theme="dark"] .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: #18171d80;
  }
  [data-theme="dark"] .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: #18171d3e;
  }
  [data-theme="dark"] .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: #18171d;
  }

  @keyframes move-forever {
    0% {
      transform: translate3d(-90px, 0, 0);
    }
    100% {
      transform: translate3d(85px, 0, 0);
    }
  }
  /*Shrinking for mobile*/
  @media (max-width: 768px) {
    .waves-area .waves-svg {
      height: 40px;
      min-height: 40px;
    }
  }
}


/* 内联代码样式 */
code:not([class*='language-']) {
  background: #ff6b6b !important;
  color: #fff !important;
  border: 1px solid #ff5252 !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em !important;
}


/*底部宠物*/
#footer-animal {
  position: relative;
  width: 100%;
}

#footer-animal .animal-wall {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 36px;
  max-width: none;
  background: #bcb0a4 url(/img/site/qiang.avif) repeat center;
  background-size: auto 100%;
  box-shadow: 0 4px 7px rgba(0,0,0,.15);
}

@media screen and (max-width: 1023px) {
  #footer-animal .animal-wall {
      height:4vw
  }
}

#footer-animal img.animal {
  position: relative;
  max-width: min(974px,100vw);
  margin: 0 auto;
  display: block;
}

#footer-bar {
  margin-top: 0 !important;
}

#footer-animal {
  position: relative;
  width: 100%;
  z-index: 10;
}

/* 确保右键菜单在生产环境中正确显示 */
#rightMenu {
  z-index: 99999 !important;
  position: fixed !important;
  display: none;
}

#rightmenu-mask {
  z-index: 99998 !important;
  position: fixed !important;
  display: none;
}

/* 确保右键菜单在显示时正确定位 */
#rightMenu[style*="display: block"] {
  display: block !important;
}

#rightmenu-mask[style*="display: flex"] {
  display: flex !important;
}

/* 确保右键菜单在所有环境下都正确显示 */
#rightMenu.show,
#rightMenu[style*="display: block"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#rightmenu-mask.show,
#rightmenu-mask[style*="display: flex"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 防止其他元素影响右键菜单的显示 */
body {
  overflow-x: visible !important;
}

/* 确保右键菜单在页脚上方显示 */
#footer-animal {
  z-index: 10 !important;
}

#footer-bar {
  z-index: 10 !important;
}

/* 确保右键菜单可以正确接收鼠标事件 */
#rightMenu {
  pointer-events: auto !important;
}

#rightmenu-mask {
  pointer-events: auto !important;
}

/* 确保右键菜单在显示时不被其他元素遮挡 */
#rightMenu,
#rightmenu-mask {
  isolation: isolate !important;
  contain: layout style paint !important;
}

/* Uptime 服务状态样式 - 全新设计 */
.uptime-dashboard {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  color: var(--font-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  

  
  .uptime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    
    .uptime-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 14px;
      
      i {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
      }
    }
    
    .uptime-summary {
      .summary-text {
        font-size: 12px;
        opacity: 0.9;
        font-weight: 500;
      }
    }
  }
  
  .uptime-services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    
    .service-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      background: var(--card-bg);
      border-radius: 8px;
      border: 1px solid #e5e7eb;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      
      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        background: var(--hover-bg);
      }
      
      .service-name {
        font-size: 11px;
        font-weight: 500;
        color: var(--font-color);
        line-height: 1.2;
        word-break: break-word;
        flex: 1;
        margin-right: 8px;
      }
      
      .service-status {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        
        .status-indicator {
          width: 8px;
          height: 8px;
          border-radius: 50%;
          position: relative;
          transition: all 0.3s ease;
          
          &::after {
            content: '';
            position: absolute;
            top: -1px;
            left: -1px;
            right: -1px;
            bottom: -1px;
            border-radius: 50%;
            background: inherit;
            opacity: 0.3;
            filter: blur(2px);
          }
          
          &.status-normal {
            background: #4ade80;
            box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.3);
          }
          
          &.status-warning {
            background: #fbbf24;
            box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
          }
          
          &.status-error {
            background: #f87171;
            box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
          }
          
          &.status-loading {
            background: #60a5fa;
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
          }
          
          &.status-unknown {
            background: #9ca3af;
            box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.3);
          }
        }
        
        .status-text {
          font-size: 9px;
          font-weight: 600;
          color: var(--font-color);
          text-transform: uppercase;
          letter-spacing: 0.3px;
        }
      }
      
      /* 单数服务居中显示 */
      &:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
      }
    }
  }
}

/* 深色模式适配 */
[data-theme="dark"] .uptime-dashboard {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  
  .uptime-services .service-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    
    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}



/* 友链状态标签样式 */
.site-card {
  position: relative;
}

.flink-list-item {
  position: relative;
}

.site-card-status {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  padding: 3px 8px;
  border-radius: 8px 0 8px 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.site-card-status.status-loading {
  background-color: rgba(100, 100, 100, 0.8);
  animation: pulse 1.5s infinite;
}

.site-card-status.status-normal {
  background-color: rgba(82, 196, 26, 0.9);
}

.site-card-status.status-slow {
  background-color: rgba(250, 173, 20, 0.9);
}

.site-card-status.status-error {
  background-color: rgba(255, 77, 79, 0.9);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 深色模式适配 */
[data-theme="dark"] .site-card-status {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .site-card-status.status-loading {
  background-color: rgba(100, 100, 100, 0.8);
}

[data-theme="dark"] .site-card-status.status-normal {
  background-color: rgba(82, 196, 26, 0.8);
}

[data-theme="dark"] .site-card-status.status-slow {
  background-color: rgba(250, 173, 20, 0.8);
}

[data-theme="dark"] .site-card-status.status-error {
  background-color: rgba(255, 77, 79, 0.8);
}

/* 友链模板按钮样式 */
.flink-templates {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--efu-card-bg);
  border-radius: 12px;
  border: var(--style-border-always);
  box-shadow: var(--efu-shadow-border);
}

.flink-templates h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--efu-fontcolor);
}

.template-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.template-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--efu-theme);
  color: #fff;
}

.template-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-btn i {
  font-size: 16px;
}

.template-btn.markdown-btn {
  background: #10b981;
}

.template-btn.markdown-btn:hover {
  background: #059669;
}

/* 深色模式适配 */
[data-theme="dark"] .flink-templates {
  background: var(--efu-card-bg);
  border-color: var(--efu-border);
}

[data-theme="dark"] .template-btn {
  background: var(--efu-theme);
}

[data-theme="dark"] .template-btn.markdown-btn {
  background: #10b981;
}






/*日历倒计时卡片*/

.card-widget {
  padding: 10px!important;
  max-height: calc(100vh - 100px);
  position:relative
}

.card-times a, .card-times div {
  color: var(--efu-fontcolor);
}

#card-widget-calendar .item-content {
  display: flex;
}

#calendar-area-left {
  width: 45%;
}

#calendar-area-right {
  width: 55%;
}

#calendar-area-left, #calendar-area-right {
  height: 100%;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#calendar-main {
  width: 100%;
}

#calendar-week {
  height: 1.2rem;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  align-items: center;
  display: flex;
}

#calendar-date {
  height: 3rem;
  line-height: 1.3;
  font-size: 64px;
  letter-spacing: 3px;
  color: var(--efu-main);
  font-weight: 700;
  align-items: center;
  display: flex;
  position: absolute;
  top: calc(50% - 2.1rem);
}

#calendar-lunar, #calendar-solar {
  height: 1rem;
  font-size: 12px;
  align-items: center;
  display: flex;
  position: absolute;
}

#calendar-solar {
  bottom: 2.1rem;
}

#calendar-lunar {
  bottom: 1rem;
  color: var(--efu-secondtext);
}

#calendar-main a {
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  font-size: 12px;
  line-height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#calendar-main a.now {
  background: var(--efu-main);
  color: var(--efu-card-bg);
}

#calendar-main .calendar-rh a {
  color: var(--efu-secondtext);
}

.calendar-r0, .calendar-r1, .calendar-r2, .calendar-r3, .calendar-r4, .calendar-r5, .calendar-rh {
  height: 1.2rem;
  display: flex;
}

.calendar-d0, .calendar-d1, .calendar-d2, .calendar-d3, .calendar-d4, .calendar-d5, .calendar-d6 {
  width: calc(100% / 7);
  display: flex;
  justify-content: center;
  align-items: center;
}

#card-widget-schedule .item-content {
  display: flex;
}

#schedule-area-left, #schedule-area-right {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#schedule-area-left {
  width: 30%;
}

#schedule-area-right {
  width: 70%;
  padding: 0 5px;
}

.schedule-r0, .schedule-r1, .schedule-r2 {
  height: 2rem;
  width: 100%;
  align-items: center;
  display: flex;
}

.schedule-d0 {
  width: 30px;
  margin-right: 5px;
  text-align: center;
  font-size: 12px;
}

.schedule-d1 {
  width: calc(100% - 35px);
  height: 1.5rem;
  align-items: center;
  display: flex;
}

progress::-webkit-progress-bar {
  background: linear-gradient(to right, var(--efu-main-op-deep), var(--efu-main-op), var(--efu-main-op-light));
  border-radius: 5px;
  overflow: hidden;
}

progress::-webkit-progress-value {
  background: var(--efu-main);
  border-radius: 5px;
}

.aside-span1, .aside-span2 {
  height: 1rem;
  font-size: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  position: absolute;
}

.aside-span1 {
  margin-left: 5px;
}

.aside-span2 {
  right: 20px;
  color: var(--efu-secondtext);
}

.aside-span2 a {
  margin: 0 3px;
}

#pBar_month, #pBar_week, #pBar_year {
  width: 100%;
  border-radius: 5px;
  height: 100%;
}

#schedule-date, #schedule-days, #schedule-title {
  display: flex;
  align-items: center;
}

#schedule-title {
  height: 25px;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
}

#schedule-days {
  height: 40px;
  line-height: 1;
  font-size: 30px;
  font-weight: 900;
  color: var(--efu-main);
}

#schedule-date {
  height: 20px;
  line-height: 1;
  font-size: 12px;
  color: var(--efu-secondtext);
}