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

/* ------------------
 * Global style
 * --------------- */

:root{
  --body-color-a:#338c8d;
  --body-color-box-shadow:#5d5252;
  --body-color-bg:#FFF;
  --body-color-a-hover:#444;
  --text-color-darker:#e5e5e5;
  --bg-color:#F4F2ED;
  --background-darker:#141B1A;
  --background-darker-front:#3b4252;
  --primary-color:#338c8d;
  --secondary-color:#5e74d3;
  --accent-color:#84bf48;
  --text-secondary:#999;
  --border-color:#e4e4e4;
  --code-bg:#ecececab;
  --pre-border:#f3f0f0;
  --link-hover:#03A9F4;
  --radius: 0px;
}

body {
  /* background-color: var(--bg-color);
  color: var(--body-color-a-hover); */
  font-family: 'CustomFonts', Georgia, "Times New Roman",  "Microsoft YaHei", sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

/**
*
**/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -520;
    pointer-events: none;
}

/*****/
a {
  color: var(--body-color-a);
  text-decoration: none;
}
a:hover, a:active {
  color: var(--body-color-a-hover);
}

pre{ 
  background: var(--code-bg);
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 85%;
  padding: 1em;
  overflow: auto;
  max-height: 500px;
  position: relative;
  border: 1px solid var(--pre-border);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
pre::-webkit-scrollbar {
  height: 8px;
}
pre::-webkit-scrollbar-thumb {
  background: #ccc;
}
code { 
  padding: 2px 6px; 

  color: #B94A48; 
  background: #f5f5f5;
  border-radius: var(--radius);
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  font-size: 0.9em;
}

pre code {
  display: block;
  padding: .8em .3em;
  color: var(--body-color-a-hover);
  border-top: none;
  white-space: pre-line;
  background-color: transparent;
  line-height: 1.6;
}
pre .code-tip {
  color: #d9968c;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

pre #copyButton {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: none;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 12px;
  transition: all 0.2s ease;
  z-index: 10;
}
pre #copyButton:hover {
  background-color: #2a6e6f;
  transform: scale(1.05);
}
pre:hover #copyButton {
  display: block;
}

blockquote {
  margin: 2em 1em 1em 2em;
  padding: 1em 1em 1em 1.5em;
  border-left: 4px solid var(--primary-color);
  color: #666;
  background: linear-gradient(to right, rgba(51, 140, 141, 0.05), transparent);
  font-style: italic;
  line-height: 1.8;
}
blockquote p:last-child {
  margin-bottom: 0;
}

.article-footer {
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, #f8fbff, #f0f7ff);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 80%;
  border: 1px solid #e8f4ff;
}
.article-footer .header{
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.article-footer .body a:hover{
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}
#license:last-child{
border-top: 1px solid #e8f4ff;
padding-top: 1rem;
}


table {
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
}
table th,
table td {
  padding: 12px 15px;
  border: 1px solid #e8e8e8;
  text-align: left;
}
table th {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

tbody tr{
  background-color: var(--body-color-bg);
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

tbody tr:nth-of-type(even) {
  background-color: #fafafa;
}


tbody tr:hover {
  background-color: #f0f7f7;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid rgb(213 210 214 / 85%);
  width: 100%;
  border-radius: var(--radius);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}
textarea {
  resize: vertical;
}

.container{
  margin-top: 1rem;
}

/* Special link style */
.postmeta {
  /* display: flex;
  flex-direction: column;
  align-items: center; */
  margin: auto;
}

.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  color: #5e74d3;
}


.widget-reply a{
  color: #f166a8;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  /* border-bottom-color: transparent; */
  border-bottom: 1px solid #03A9F4;;
}

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

#header {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

#logo {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary-color), #2a6e6f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#logo:hover {

  font-size: 2.2em;
  opacity: 0.9;
}


@keyframes typingWords {
  0% {
      width: 0;
  }
}

@keyframes cursor {
  50% {
      border-color: transparent;
  }
}

#logo img {
    max-height: 64px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.description {
  margin: .5em 0 0 0;
  color: var(--text-secondary);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.9em;
}


#nav-menu {
  margin: 20px 0 0;
  padding: 0;
  background-color:var(--body-color-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-radius: var(--radius);
  overflow: hidden;
}

#nav-menu a {
  display: block;
  margin-right: 0;
  padding: 10px 24px;
  border-bottom: none;
  height: auto;
  line-height: 1;
  color: var(--body-color-a-hover);
  float: left;
  font-weight: 500;
  font-size: 0.95em;
  position: relative;
  transition: all 0.2s ease;
}
#nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
#nav-menu a:hover,
#nav-menu .current {
  background: transparent;
  color: var(--primary-color);
}
#nav-menu a:hover::after,
#nav-menu .current::after {
  width: 60%;
}

/* Search */
#search {
  position: relative;
  margin-top: 12px;
}
#search input {
  padding: 10px 35px 10px 15px;
  border-radius: var(--radius);
  border: 2px solid #eee;
  background: var(--body-color-bg);
  transition: all 0.3s ease;
}
#search input:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(51, 140, 141, 0.1);
  outline: none;
}
#search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(../img/icon-search.png) no-repeat center center;
  direction: ltr;
  text-indent: -9999em;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#search button:hover {
  transform: translateY(-50%) scale(1.1);
}

@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 {
  padding: 20px 25px 25px 25px;

  margin-bottom: 1.5rem;
  margin-top: .5rem;
  background-color: var(--body-color-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.post:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(51, 140, 141, 0.2);
  transform: translateY(-2px);
}
.post-title {
  margin: .83em 0;

  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.4;
}
.post-title a {
  color: var(--body-color-a-hover);
  transition: color 0.2s ease;
}
.post-title a:hover {
  color: var(--primary-color);
}
.post-meta {
  margin-top: -0.3em;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: .9em;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
}
.post-meta li {
  display: inline-block;
  margin: 0 12px 0 0;
  padding-left: 18px;
  position: relative;
}
.post-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius);
  background: #ccc;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-meta li:first-child::before {
  display: none;
}
.post-content {
  line-height: 1.5;
}
.post-content p {
  line-height: 2.2;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6{
  margin: 1.5em 0;
}

.post-content h1{
  padding: 0.5em 0 0.5em 1em;
  
  border-left: 5px solid var(--accent-color);
  background: linear-gradient(90deg, rgba(132, 191, 72, 0.1), transparent);
  margin: 2em 0 1em;
}

.post-content h2{
    padding: 0.4em 0 0.4em .5em;
    border-left: 5px solid #37cbe3;
    background: linear-gradient(90deg, rgba(55, 203, 227, 0.1), transparent);
    margin: 1.8em 0 1em;
}
.post-content h2:before{
  font-weight:700;
  margin-right: .5em;
  content:'#';
  color:#37cbe3;
}

.post-content h3{
    padding: 0.3em 0 0.3em .5em;
    border-left: 4px solid #ea7332;
    background: linear-gradient(90deg, rgba(234, 115, 50, 0.08), transparent);
    margin: 1.5em 0 1em;
}
.post-content h3:before{
  font-weight:600;
  margin-right: .5em;
  content:'##';
  color:#ea7332;
}

.post-content h4{
    padding: 0.3em 0 0.3em .5em;
    border-left: 4px solid #8b53db;
    background: linear-gradient(90deg, rgba(139, 83, 219, 0.08), transparent);
    margin: 1.3em 0 1em;
}
.post-content h4:before{
  font-weight:600;
  margin-right: .5em;
  content:'###';
  color: #8b53db;
}

.post-content h5{
    margin: 1.2em 0 .8em;
    padding-left: .8em;
    border-left: 4px solid #e33772;
    font-weight: 600;
}

.post-content h6{
    margin: 1em 0 .8em;
    padding-left: .8em;
    border-left: 4px solid #a3b024;
    font-weight: 600;
    color: #666;
}

.post-content a:hover{
    border-bottom: 2px solid #5e74d3;
}

.post-content .gallery-img:hover{
  border-bottom: none !important;
}



.post .tags {
  clear: both;
  font-size: 0.9em;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post .tags a{
  background: linear-gradient(135deg, #74a0df, #5a8bd4);
  color: #fff;
  padding: 4px 12px 5px;
  margin-right: 0;
  font-size: 0.8em;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  display: inline-block;
}

.post .tags a:hover{
  background: linear-gradient(135deg, #3785f1, #2567d6);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(55, 133, 241, 0.3);
}


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

.archive-title-box{
  text-align: center;
  padding: 1em;
  background: linear-gradient(135deg, var(--body-color-bg), #f8f9fa);
  margin-top: .6em;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.dark-mode .container .row .archive-title-box{
  background: linear-gradient(135deg, var(--background-darker-front), #2d3748);
}

.archive-title {
  color: var(--primary-color);
  font-size: 1.3em;
  font-weight: 600;
}
.more {
  text-align: center;
  margin-top: 1.5rem;
}
.more a {
  display: inline-block;

  padding: 10px 25px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
}

.more a:hover{
  background: linear-gradient(135deg, var(--primary-color), #2a6e6f);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(51, 140, 141, 0.3);
}

.protected .text {
  width: 100%;
  max-width: 300px;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  margin: 10px 0;
  transition: all 0.3s ease;
}
.protected .text:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(51, 140, 141, 0.1);
  outline: none;
}
.protected {
  text-align: center;
  padding: 30px;
  background: #f9f9f9;
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  text-align: center;
  display: flex;
  justify-content: center;

  flex-wrap: wrap;
  gap: 8px;
}
.page-navigator li {
  display: inline-block;

}

.page-navigator li:nth-last-child(3) {
    box-shadow: none;
}

.page-navigator a {
  display: inline-block;
  padding: 8px 14px;
  height: auto;
  line-height: 1;
  border-radius: var(--radius);
  background: var(--body-color-bg);
  border: 1px solid var(--border-color);
  color: var(--body-color-a-hover);
  transition: all 0.2s ease;
  font-size: 0.9em;
}
.page-navigator a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 140, 141, 0.2);
}

.page-navigator .current a {
  color: #fff;
  background: var(--primary-color)  !important;
  border-color: var(--primary-color);

}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding: 20px 25px 25px;
  border: 1px solid var(--border-color);
  background-color: var(--body-color-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  margin-top: 20px;
}
.comment-list li {
  padding: 16px;
  margin-top: 15px;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.comment-list li:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 12px rgba(51, 140, 141, 0.1);
}
.comment-list li.comment-level-odd {
  background: #fafafa;
}
.comment-list li.comment-level-even {

  background: var(--body-color-bg);
}
.comment-list li.comment-by-author {
  background: rgba(51, 140, 141, 0.08);
  border-color: var(--primary-color);
  border-radius: var(--radius);
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 16px;
  margin-top: 15px;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.comment-list li:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 12px rgba(51, 140, 141, 0.1);
}
.comment-list li.comment-level-odd {
background:  #fafafa;
}
.comment-list li.comment-level-even {
  background: var(--body-color-bg);
}
.comment-list li.comment-by-author {
  background: rgba(51, 140, 141, 0.08);
  border-color: var(--primary-color);
  border-radius: var(--radius);
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .9em;
  margin-top: 10px;
}
.comment-meta a {
  color: var(--text-secondary);
  font-size: .85em;
}
.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--body-color-a-hover);
  font-weight: 600;
}
.comment-author .avatar {
  float: left;
  margin-right: 12px;
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}
.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: 25px;
  border: 1px solid #eee;
  background-color: var(--body-color-bg);
  margin-left: -5rem;
  margin-top: -.38rem;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border-radius: var(--radius);
  overflow: hidden;
}
.widget:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.widget-title {
  padding: 12px 20px;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color), #2a6e6f);
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.widget-list {
  list-style: none;
  padding: 15px 20px;
  border-top: none;
  margin: 5px 0;
}
.widget-list li {
  margin: 4px 0;
  line-height: 1.6;
  padding-right: 0;
  padding-bottom: 4px;
  border-bottom: 1px dashed #eee;
}
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;

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

.widget-category ul{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 20px;
}

.widget-category ul li {
  margin-right: 0;
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: 0.85em;
  transition: all 0.2s ease;
}
.widget-category ul li:hover {
  background: var( --text-color-darker);
  color: #fff;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 2.5em 0;
  line-height: 1.8;
  text-align: center;
  color: #888;
  font-family: "Times New Roman", "Microsoft YaHei", sans-serif;

}

#footer a{
  color: var(--primary-color);
  transition: color 0.2s ease;
}
#footer a:hover{
  color: #2a6e6f;
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
  /**color: var(--body-color-bg);**/
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.6;
  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 img,
.comment-content img {
  margin: 1em 0;
  max-width: 100%;
  height: auto;
  box-shadow: none;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;

  transition: all 0.3s ease;
}
.post-content img:hover,
.comment-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100%;
  border: 1px solid #F1C0C0;
  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: table-cell;
    margin: 0 -2px;
  }
}


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


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

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

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1660px) {
  .container {
    max-width: 88%;
  }
}


/*
* 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; }

.submit{
height: 2.2rem;
padding: 0 20px;
color: #fff;
border-radius: var(--radius);
border: none;
background: linear-gradient(135deg, #76b4f4, #5a9fd4);
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.submit:hover {
  background: linear-gradient(135deg, #5a9fd4, #4a8fc4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(118, 180, 244, 0.4);
}


.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: .5rem;
  display: none; 
  background-color: #03a9f48a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: .4em .6em;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.back-to-top::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid white; 
  margin-right: 5px; 
}

.back-to-top:hover {
  background-color: #0056b387;
}

#nav-toggler {
  display: none;
}

@media (max-width: 991px) {
  #nav-toggler {
    display: block;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.2s ease;
  }
  #nav-toggler:hover {
    background: rgba(51, 140, 141, 0.1);
  }

  #header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #cecbcb;
  }

.site-search.search-visible {
    display: block;
}

#nav-menu.menu-visible {
    display: block;
    opacity: 1;
    border: 0.1px solid #eeeae9;
}

.dark-mode #nav-menu.menu-visible {
    border: none;
}

.nav-toggler.active {
  color: #358d8e;
}

  .site-name {
      display: flex;
      justify-content: space-around;
  }

  .site-name a {
    width: 80%;
  }

  .site-name a:hover {
    width: 80%;
    color: #1a7576 !important;
  }
  .site-search{
    width: 100%;
  }

  #nav-menu {
    box-shadow: none;
    margin: .6rem 0 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #nav-menu a{
    display: flex;
    justify-content: center;    
  }
  
#nav-menu a:hover::after, #nav-menu .current::after {
    width: 10%;
}

#nav-menu a::after{
	height: 1px;
}

.theme-control{
	right: .1rem  !important;
}
  
  .post {
    box-shadow: none;
  }
  /* .page-navigator{
    box-shadow: 0 2px 10px 0 #d4cdcd;
  } */
  .page-navigator li{
    box-shadow: none;
  }
}

.replyhide {
  text-align: center;
  background: rgb(249 249 249 / 68%);
  border-radius: 3px;
  border: 1px dashed #cc1a1a;
  padding: 10px 0px 10px 0px;
  color: #e67992c4;
}

.links{
  font-family: "微软雅黑", sans-serif;
}

.links ul{
  padding: .5rem .5rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: space-between;
}

.links ul li{
  margin: 0rem .3rem 0rem 0rem !important;
}

.links ul li a{
  color: #656977;
}

.post,.widget.page-navigator{
  border-radius: 1px !important;
}

.theme-control{
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  border-radius: 3px;
  padding: .2em .3em;
  cursor: pointer;
  display: inline-block;
  background-color: #e1ddd8ab;

}

#backToTopBtn{
  margin-top: .4rem;
}


 /* ------------------
 * DarkMode style
 * --------------- */
.light-mode{
  background-color: var(--bg-color);
 }

  .dark-mode{
   background-color: var(--background-darker);
   color: var( --text-color-darker);
  }
  
    .dark-mode .post-title a {
    	color: var( --text-color-darker);
    }

  .dark-mode .post,.dark-mode .post, .dark-mode .widget,.dark-mode #comments,.dark-mode .article-footer{
    background-color: var(--background-darker-front);
    color: var( --text-color-darker);
    border-color: #4a5568;
  }
  .dark-mode .post:hover {
    border-color: rgba(51, 140, 141, 0.4);
  }
  .dark-mode .post .post-content table{
    background-color: var(--background-darker-front);
    color: var( --text-color-darker);
  }
  .dark-mode table th {
    background: #4a6a6b;
  }
  .dark-mode .widget{
    border: 1px solid #4a5568;
  }
  .dark-mode .widget-title {
    background: linear-gradient(135deg, #4a6a6b, #3a5556);
  }
  .dark-mode .widget-list li {
    border-bottom-color: #4a5568;
  }
  .dark-mode .widget-category ul li {
    background: #4a5568;
  }
  .dark-mode .widget-category ul li:hover {
    background: var( --text-color-darker);
  }

  .dark-mode #nav-menu,.dark-mode #nav-menu a{
    background-color: var(--background-darker-front);
    color: var( --text-color-darker);
  }
  .dark-mode #nav-menu a:hover,.dark-mode #nav-menu .current{
    color: var(--primary-color);
  }
  .dark-mode #logo {
    background: linear-gradient(135deg, #6abebc, #8fd3d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .dark-mode .description {
    color: #a0aec0;
  }
  .dark-mode .post-title a:hover{
    color: var(--primary-color);
  }
  .dark-mode .post-meta {
    border-bottom-color: #4a5568;
    color: #a0aec0;
  }
  .dark-mode .post-meta li::before {
    background: #718096;
  }
.dark-mode .tab,.dark-mode .tabcontent input,.dark-mode .file-select{
  background-color: var(--background-darker-front);
  color: var( --text-color-darker);
  border-color: #4a5568;
}
.dark-mode .file-select .file-list{
  color: var( --text-color-darker);
}
.dark-mode .widget-list .links ul li a{
  color: #a0aec0;
}
.dark-mode .post-content pre{
  background: #1a202c;
  color: var( --text-color-darker);
  border-color: #4a5568;
}
.dark-mode .post-content pre code{
  color: #e5e5e5;
}
.dark-mode .post-content h1,
.dark-mode .post-content h2,
.dark-mode .post-content h3,
.dark-mode .post-content h4,
.dark-mode .post-content h5,
.dark-mode .post-content h6 {
  color: var( --text-color-darker);
}

.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="url"],
.dark-mode textarea {
    background-color: #2d3748;
    color: var( --text-color-darker);
    border-color: #4a5568;
  }
.dark-mode .more a {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.dark-mode .more a:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.dark-mode .comment-list li {
  border-color: #4a5568;
}
.dark-mode .comment-list li.comment-level-odd {
  background: #2d3748;
}
.dark-mode code {
  background: #2d3748;
  color: #fc8181;
}

 .dark-mode{
  background-color: var(--background-darker);
  color: var(--bg-color);
 }

  .dark-mode .post,.dark-mode .widget,.dark-mode #comments,.dark-mode .article-footer{
    background: var(--background-darker-front);
    color: var(--bg-color);
  }
  .dark-mode .post .post-content table tbody tr{
    background-color: var(--background-darker-front);
  }
  
    .dark-mode .post .post-content table tbody tr:nth-of-type(even){
    background-color: var(--background-darker);
  }
  .dark-mode .widget{
    border: solid 1px var(--background-darker);
  }

  .dark-mode #nav-menu,.dark-mode #nav-menu a{
    background-color: var(--background-darker-front);
    color: var(--body-color-bg);
  }
  .dark-mode #nav-menu a:hover,.dark-mode #nav-menu .current{
    background-color: #62666f;
  }
  .dark-mode #logo:hover,.dark-mode .post h2 a:hover{
    color: var(--bg-color);
  }
.dark-mode .tab,.dark-mode .tabcontent input,.dark-mode .file-select{
  background-color: var(--background-darker-front);
  color: var(--bg-color);
}
.dark-mode .file-select .file-list{
  color: var(--bg-color);
}
.dark-mode .widget-list .links ul li a{
  color: var(--bg-color);
}
.dark-mode .post-content pre{
  background: var(--background-darker);
  color: var(--bg-color);
}
.dark-mode .post-content pre code{
  color: var(--bg-color);
}

.dark-mode .page-navigator li a {
	background:var( --text-color-darker);
}

.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="url"],
.dark-mode textarea {
    background-color: var(--background-darker-front) !important;
    color: var(--bg-color);
  }

.single-photo {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #edf0ed;
  color: #68776f;
}

html.dark-mode .single-photo {
  background: #26322f;
  color: #a5b8ae;
}

.post-content .single-photo > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  opacity: 0;
}

.single-photo-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
}

.single-photo .error-text {
  display: none;
}

/* 成功后显示图片、移除提示 */
.post-content .single-photo[data-state="loaded"] > img {
  opacity: 1;
}

.single-photo[data-state="loaded"] > .single-photo-status {
  display: none;
}

/* 失败后继续显示占位 */
.single-photo[data-state="error"] .loading-text {
  display: none;
}

.single-photo[data-state="error"] .error-text {
  display: inline;
}