/* ------------------------------------
 * Typecho Default Theme
 *
 * @author  Typecho Team
 * @link  http: //typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* Helvin Space opening sequence and persistent background mark. */
html.helvin-is-loading,
html.helvin-is-loading body {
  overflow: hidden;
}

.helvin-loader {
  align-items: center;
  background: radial-gradient(circle at center, #10283a 0, #06090d 52%, #020304 100%);
  display: none;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  opacity: 1;
  position: fixed;
  transition: opacity .58s ease, visibility .58s ease;
  visibility: visible;
  z-index: 99999;
}

.helvin-is-loading .helvin-loader {
  display: flex;
}

.helvin-loader--done {
  opacity: 0;
  visibility: hidden;
}

.helvin-loader__orbit {
  align-items: center;
  display: flex;
  height: 190px;
  justify-content: center;
  position: relative;
  width: 190px;
}

.helvin-loader__orbit::before,
.helvin-loader__orbit::after {
  border-radius: 50%;
  content: "";
  position: absolute;
}

.helvin-loader__orbit::before {
  background: conic-gradient(from 0deg, transparent 0 16%, #2dcdf6 36%, #6eeaff 63%, transparent 82% 100%);
  box-shadow: 0 0 30px rgba(45, 205, 246, .24);
  inset: 0;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: helvin-orbit 1.25s linear infinite;
}

.helvin-loader__orbit::after {
  border: 1px solid rgba(71, 215, 255, .14);
  inset: 14px;
}

.helvin-loader__orbit img {
  filter: drop-shadow(0 0 22px rgba(45, 205, 246, .42));
  height: 104px;
  object-fit: contain;
  position: relative;
  width: 104px;
  z-index: 1;
}

.helvin-loader__title {
  color: #edfaff;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: .12em;
  margin-top: 28px;
}

.helvin-loader__status {
  color: rgba(166, 239, 255, .62);
  font-size: 12px;
  letter-spacing: .2em;
  margin-top: 10px;
}

.helvin-watermark {
  height: auto;
  left: 50%;
  max-width: min(48vw, 520px);
  opacity: .2;
  pointer-events: none;
  position: fixed;
  top: 52%;
  transform: translate(-50%, -50%);
  user-select: none;
  width: 520px;
  z-index: 0;
}

#header,
#body,
#footer {
  position: relative;
  z-index: 1;
}

@keyframes helvin-orbit {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .helvin-loader__orbit::before { animation-duration: 2.8s; }
}

@media (max-width: 767px) {
  .helvin-loader__orbit { height: 156px; width: 156px; }
  .helvin-loader__orbit img { height: 86px; width: 86px; }
  .helvin-watermark { max-width: 78vw; width: 390px; }
}

/* Dark glass treatment for the stock Typecho layout. */
#header {
  border-bottom-color: rgba(110, 234, 255, .16) !important;
}

#logo,
.post-title a,
.widget-title,
.comment-author {
  color: #edfaff !important;
}

.description,
.post-meta,
.post-near,
.archive-title,
#footer,
.widget-list {
  color: #8fa6b2;
}

#nav-menu a {
  border-color: rgba(110, 234, 255, .16) !important;
  color: #b9dce7 !important;
}

#nav-menu a:hover,
#nav-menu .current {
  background: rgba(71, 215, 255, .1) !important;
  color: #6eeaff !important;
}

.post,
.widget,
#comments {
  backdrop-filter: blur(10px);
  background: rgba(8, 16, 23, .58);
  border: 1px solid rgba(110, 234, 255, .1);
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
  margin-bottom: 22px;
  padding: 18px 22px;
}

.post {
  border-bottom-color: rgba(110, 234, 255, .1);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  background: rgba(2, 7, 11, .72);
  border-color: rgba(110, 234, 255, .18);
  color: #edfaff;
}

pre,
code {
  background: rgba(1, 5, 8, .82);
  color: #9beaff;
}

blockquote {
  border-left-color: #2dcdf6;
  color: #a8bdc7;
}

/* ------------------
 * Global style
 * --------------- */
body {
  background: radial-gradient(circle at 50% 12%, #102333 0, #080d13 36%, #05070a 100%);
  background-attachment: fixed;
  color: #d7e5ec;
  /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  font-family: "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif;
  font-size: 87.5%;
  min-height: 100vh;
}

a {
  color: #47d7ff;
  text-decoration: none;
}
a:hover, a:active {
  color: #a6efff;
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  display: block;
  padding: 3px;
  color: #444;
}

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #E9E9E9;
  width: 100%;

  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}


/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1px solid #EEE;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* ------------------
 * Header
 * --------------- */

#header {
  padding-top: 35px;
  border-bottom: 1px solid #EEE;
}

#logo {
  color: #333;
  font-size: 2.5em;
}
#logo img {
    max-height: 64px;
}

.description {
  margin: .5em 0 0;
  color: #999;
  font-style: italic;
}

/* Navigation menu */
#nav-menu {
  margin: 25px 0 0;
  padding: 0;
}
#nav-menu a {
  display: block;
  margin-right: -1px;
  padding: 0 20px;
  border: 1px solid #EEE;
  border-bottom: none;
  height: 32px;
  line-height: 32px;
  color: #444;
  float: left;
}
#nav-menu a:hover,
#nav-menu .current {
  background: #F6F6F6;
}

/* Search */
#search {
  position: relative;
  margin-top: 15px;
}
#search input {
  padding-right: 30px;
}
#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  direction: ltr; /* fix RTL language */
  text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}


/* ------------------
 * Main
 * --------------- */

.post {
  padding: 15px 0 20px;
  border-bottom: 1px solid #EEE;
}
.post-title {
  margin: .83em 0;
  font-size: 1.4em;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #999;
  font-size: .92857em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
}
.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #999;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.page-navigator a:hover {
  background: #EEE;
  text-decoration: none;
}

.page-navigator .current a {
  color: #444;
  background: #EEE;
}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #EEE;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}
.widget {
  margin-bottom: 30px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}

.widget-list li ul {
  margin-left: 15px;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 3em 0;
  line-height: 1.5;
  text-align: center;
  color: #999;
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 -2px;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: center;
  }
}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
}


/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
  visibility: hidden; }
/* Imported long-form articles keep their carefully designed light reading canvas. */
.post-content .imported-article {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 18px auto 28px;
    padding: clamp(18px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(102, 214, 255, .2);
    border-radius: 18px;
    background: #fff;
    color: #222;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .24);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.85;
    letter-spacing: .02em;
}

@media (max-width: 680px) {
    .post-content .imported-article {
        margin: 10px auto 20px;
        padding: 16px 13px 24px;
        border-radius: 12px;
    }
}

.post-list-excerpt {
    color: rgba(226, 236, 244, .76);
    font-size: 15px;
    line-height: 1.85;
}

.read-more-wrap {
    margin: 16px 0 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(99, 214, 255, .28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(55, 198, 226, .13), rgba(65, 118, 191, .08));
    color: #82dded;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.read-more:hover,
.read-more:focus {
    border-color: rgba(127, 231, 244, .58);
    background: linear-gradient(135deg, rgba(55, 198, 226, .22), rgba(65, 118, 191, .14));
    color: #b7f4ff;
    text-decoration: none;
    transform: translateY(-1px);
}
