@charset "utf-8";
/**
   _____                 _     _        
  / ____|               | |   | |       
 | |        __ _   ___  | |_  | |   ___ 
 | |       / _` | / __| | __| | |  / _ \
 | |____  | (_| | \__ \ | |_  | | |  __/
  \_____|  \__,_| |___/  \__| |_|  \___|
 ----------------------------------------
 * Castle's Theme Setting Stylesheet
 * Last Update: 2022/04/22 [0.9.7]
 * Author: ohmyga (https://ohmyga.cn)
 * GitHub: https://github.com/bakaomg/castle-Typecho-Theme/
 * LICENSE: GPL V3 (https://www.gnu.org/licenses/gpl-3.0.html)
 **/

body {
  display: flex;
  flex-flow: column;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  flex-direction: column;
  -ms-flex-direction: column;
}

/* ========== 背景 ========== */
#moe-bg {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  position: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 50% 50%;
}

#moe-bg:after {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  z-index: -1;
  position: fixed;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.55);
}

/* ========== 主容器 ========== */
.main {
  flex: 1;
  -ms-flex: 1;
  -webkit-box-flex: 1;
}

.typecho-head-nav {
  position: relative !important;
  display: flex;
  transition: all 0.3s;
  background-color: rgba(66, 66, 66, 0.5);
}

#typecho-nav-list {
  display: none;
}

.typecho-head-nav .operate a {
  color: #fff;
  border: none;
  padding: 5px 20px;
  transition: all 0.3s;
}

.typecho-head-nav .operate a:hover {
  background-color: #757575;
}

.typecho-head-nav button.menu-bar {
  background: rgba(0, 0, 0, 0) !important;
  border-right: none;
  color: #fff !important;
  height: 46px !important;
  display: block !important;
  margin-right: auto;
  outline: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.typecho-head-nav button.menu-bar:hover {
  background: #757575 !important;
}

.typecho-head-nav button.menu-bar.focus + #typecho-nav-list {
  display: block;
  float: none;
  position: absolute;
  bottom: unset !important;
  top: 46px;
  z-index: 999;
}

@media (max-width: 572px) {
  .typecho-head-nav button.menu-bar {
    opacity: 0 !important;
    pointer-events: none;
  }
}

.col-mb-12 {
  padding: 0 !important;
}

.col-tb-offset-2 {
  margin-left: auto;
}

.col-tb-8 {
  width: 100%;
}

.main .container {
  padding: 0;
  min-width: 100% !important;
}

.main .container .typecho-page-title {
  display: none;
}

.main .container .typecho-page-main {
  margin-left: 0;
  margin-right: 0;
}

.main .container .typecho-option-tabs {
  display: none;
}

.typecho-option-submit {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 42px;
  margin: 0em 0;
  font-size: 23px;
  z-index: 999;
  position: fixed;
  border-radius: 0px;
  letter-spacing: 5px;
}

.success {
  color: #fff;
  background: rgba(67, 160, 71, 0.6);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.error {
  color: #fff;
  background: rgba(255, 82, 82, 0.6);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.popup {
  top: 46px !important;
}

.typecho-foot {
  flex: 0;
  -ms-flex: 0;
  -webkit-box-flex: 0;
}
.typecho-foot,
.typecho-foot a {
  color: #424242 !important;
}

.typecho-foot .i-logo-s {
  opacity: 0.6 !important;
}

form {
  display: none;
}

input[type="text"],
textarea {
  outline: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}

.typecho-option span {
  margin-right: 0;
}

.typecho-page-main .typecho-option textarea {
  height: 149px;
}

.typecho-option label.typecho-label {
  font-weight: 500;
  margin-bottom: 20px;
  margin-top: 10px;
  font-size: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.moe-fixed {
  top: 0;
  left: 0;
  right: 0;
  bottom: unset !important;
  z-index: 1000;
  position: fixed !important;
  transition: all 0.3s;
  background-color: rgba(66, 66, 66, 0.8);
}

/* ========== 本体 ========== */
/* MDUI */
.mdui-card,
.mdui-panel {
  width: 800px;
  margin: auto;
  margin-bottom: 15px;
}

.mdui-panel .mdui-panel {
  width: 100%;
  margin-bottom: 0px;
}

.mdui-card .mdui-textfield {
  padding-top: 0px;
}

.mdui-panel .mdui-panel-item .mdui-panel:first-child .mdui-panel-item {
  border-radius: 8px 8px 0 0 !important;
}

.mdui-panel .mdui-panel-item .mdui-panel:last-child .mdui-panel-item {
  border-radius: 0 0 8px 8px !important;
}

.mdui-card,
.mdui-btn,
.mdui-panel .mdui-panel-item:not(.mdui-panel .mdui-panel-item .mdui-panel-item),
#moe-theme-panel-menu,
.mdui-panel .mdui-panel-item .mdui-panel-item-open,
.mdui-panel
  .mdui-panel-item
  .mdui-panel:first-child
  .mdui-panel-item.mdui-panel-item-open,
.mdui-panel
  .mdui-panel-item
  .mdui-panel:last-child
  .mdui-panel-item.mdui-panel-item-open,
.mdui-dialog {
  border-radius: 8px !important;
}

/* 主题信息面板 */
#moe-theme-panel {
  margin-top: 120px;
  overflow: visible;
}

/* Neko */
#moe-theme-panel .moe-quq {
  right: 3px;
  top: -100px;
  height: 100px;
  cursor: pointer;
  position: absolute;
  transition: all 0.3s;
}

#moe-theme-panel .moe-quq:hover {
  top: -110px;
  height: 110px;
}

/* 链接面板 */
#moe-theme-panel #moe-theme-panel-menu {
  left: 0;
  top: -95px;
  opacity: 0;
  width: 228px;
  font-size: 14px;
  overflow: hidden;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s;
  background-color: #fff;
  transform: translateY(-5vh);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
}

#moe-theme-panel .moe-menu-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#moe-theme-panel #moe-theme-panel-menu a {
  float: left;
  padding: 10px;
  display: block;
  transition: all 0.3s;
}

#moe-theme-panel #moe-theme-panel-menu a:hover {
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.15);
}

#moe-theme-panel #moe-theme-panel-menu .now {
  float: left;
  color: #fff;
  padding: 10px;
  cursor: not-allowed;
  transition: all 0.3s;
  background-color: rgba(0, 0, 0, 0.6);
}

#moe-theme-panel #moe-theme-panel-menu .now:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

#moe-theme-panel #moe-theme-panel-menu .moe-menu-title {
  padding: 5px 0;
  font-size: 16px;
  line-height: 35px;
  font-weight: bold;
  text-align: center;
  border-bottom: solid 1px rgba(0, 0, 0, 0.3);
}

/* 信息框主内容 */
#moe-theme-panel .moe-theme-panel-content {
  padding: 10px;
}

/* MDUI */
ul {
  padding-left: 5px;
}

/* ========== 更新日志 ========== */
.update-log-dialog {
  height: auto !important;
}

.update-log-dialog .mdui-dialog-content {
  height: 420px !important;
  padding: 0px !important;
}

.update-log-dialog .mdui-dialog-content .update-log-loading {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.update-log-dialog .mdui-dialog-content .mdui-panel {
  width: 100% !important;
  margin-bottom: 0px !important;
}

/* ========== 提示框 ========== */
.moe-notice {
  position: relative;
  padding: 10px 10px 10px 20px;
}

.moe-notice::before {
  top: 13px;
  left: -13px;
  width: 20px;
  color: #fff;
  line-height: 20px;
  border-radius: 50%;
  text-align: center;
  position: absolute;
}

.moe-notice-success {
  border-left: 5px solid #4caf50;
  background-color: rgba(76, 175, 80, 0.15);
}

.moe-notice-success::before {
  content: "√";
  background-color: #4caf50;
}

.moe-notice-error {
  border-left: 5px solid #ff5252;
  background-color: rgba(255, 82, 82, 0.15);
}

.moe-notice-error::before {
  content: "!";
  background-color: #ff5252;
}

/*========== 媒体查询 ========== */
@media (max-width: 820px) {
  .mdui-card,
  .mdui-panel {
    width: 95%;
  }
}

@media (max-width: 767px) {
  .mdui-card,
  .mdui-panel {
    width: 96%;
  }

  #moe-theme-panel {
    margin-top: 130px;
  }

  #moe-theme-panel #moe-theme-panel-menu {
    top: -125px;
    width: 200px;
  }

  #moe-theme-panel #moe-theme-panel-menu .moe-menu-title {
    padding: 0;
  }

  #moe-theme-panel #moe-theme-panel-menu a {
    width: 40%;
    text-align: center;
  }

  #moe-theme-panel #moe-theme-panel-menu .now {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .typecho-option-submit {
    font-size: 20px;
  }
}

@media (max-width: 330px) {
  #moe-theme-panel #moe-theme-panel-menu {
    top: -128px;
    width: 150px;
  }

  #moe-theme-panel #moe-theme-panel-menu .moe-menu-title {
    display: none;
  }

  #moe-theme-panel #moe-theme-panel-menu a {
    float: none;
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
}

/* ========== 动画 ========== */
@keyframes nav {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@-webkit-keyframes nav {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

.moe-nav-animation {
  animation: nav 0.3s ease-in-out;
  -webkit-animation: nav 0.3s ease-in-out;
}

@keyframes moeAnimation {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  20% {
    opacity: 0.2;
  }
  30% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.5;
  }
  60% {
    opacity: 0.6;
  }
  70% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes moeAnimation {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  20% {
    opacity: 0.2;
  }
  30% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.5;
  }
  60% {
    opacity: 0.6;
  }
  70% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

@keyframes moeAnimationOff {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0.9;
  }
  20% {
    opacity: 0.8;
  }
  30% {
    opacity: 0.7;
  }
  40% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.5;
  }
  60% {
    opacity: 0.4;
  }
  70% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes moeAnimationOff {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0.9;
  }
  20% {
    opacity: 0.8;
  }
  30% {
    opacity: 0.7;
  }
  40% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.5;
  }
  60% {
    opacity: 0.4;
  }
  70% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
  }
}

.moe-a-off {
  animation: moeAnimationOff;
  animation-duration: 0.3s;
  -webkit-animation: moeAnimationOff 0.3s;
}
.moe-a {
  animation: moeAnimation;
  animation-duration: 0.2s;
  -webkit-animation: moeAnimation 0.2s;
}

/* ========== 滑条样式 ========== */
html::-webkit-scrollbar-track-piece {
  background: rgba(0, 0, 0, 0);
}

html::-webkit-scrollbar {
  width: 10px;
  height: 4px;
  background-color: transparent;
}

html::-webkit-scrollbar-thumb {
  height: 40px;
  border-radius: 4px;
  transition: all 0.3s;
  background-color: rgba(165, 165, 165, 1);
}

html::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}
