:root {
  --backgroung-color: #f4f3f2;
  --card-backgroung-color: #fff;
  --light-cark-backgroung-color: #fff;
  --font-color: #333;
  --rgba-font-color: rgba(0,0,0,0.8);
  --rgba-font-light-color: rgba(0,0,0,0.6);
  --icon-color: #333;
  --color-animation: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  --text-bg-hover: #3498db;
  --blur-color: #bc13fe;
  --code-bg-color: #ecf0f1;
  --code-text-color: #2c3e50;
  --code-top-color: #d3d6db;
  --small-code-bg-color: #ecf0f1;
  --small-code-border-color: #ddd;
  --on-button-color: #444;
  --shadow-color: #9fffb8;
  --border-line-color: rgba(0,0,0,0.1);
}
:root[data-theme="dark"] {
  --backgroung-color: #212529;
  --card-backgroung-color: #2e3134;
  --light-cark-backgroung-color: #555;
  --font-color: #f2f2f2;
  --rgba-font-color: rgba(255,255,255,0.8);
  --rgba-font-light-color: rgba(255,255,255,0.6);
  --icon-color: #f2f2f2;
  --text-bg-hover: #2980b9;
  --blur-color: #bc13fe;
  --code-bg-color: #444;
  --code-text-color: #ecf0f1;
  --code-top-color: #303841;
  --small-code-bg-color: #222;
  --small-code-border-color: #222;
  --on-button-color: #c9c9c9;
  --shadow-color: #1ed498;
  --border-line-color: rgba(255,255,255,0.1);
}
body {
  background-color: var(--backgroung-color);
  font-size: 1.25rem;
  line-height: 1.5;
  transition: var(--color-animation);
}
.container {
  margin: 0 auto;
  padding-top: 2em;
}
a {
  text-decoration: none;
}
.col-md-3point5 {
  width: 28%;
}
.homepage {
  position: relative;
}
.homepage .darkmode-toggle {
  margin: 0 1rem;
}
.homepage .darkmode-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.homepage .darkmode-button .sun-icon,
.homepage .darkmode-button .moon-icon {
  position: absolute;
  transition: opacity 0.3s ease;
}
.homepage .darkmode-button .sun-icon {
  color: #e5e5e5;
  opacity: 0;
}
.homepage .darkmode-button .moon-icon {
  color: #e5e5e5;
  opacity: 0;
}
.homepage .headerimage {
  position: relative;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  z-index: -999;
  overflow: hidden;
}
.homepage .headerimage::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  z-index: -1;
}
.homepage .headfill {
  height: 100vh;
}
.homepage .head40 {
  height: 40vh;
}
.homepage .header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 10px;
  backdrop-filter: blur(20px);
  transition: all 0.5s ease-in-out;
}
.homepage .header .blog-title .logo {
  color: #fff;
  font-size: 1.5em;
  font-family: "Comic Sans MS", cursive, LiSu, sans-serif;
  text-decoration: none;
}
.homepage .header .navbar .menu {
  margin: 0;
  padding: 0;
}
.homepage .header .navbar .menu .menu-item {
  display: inline-block;
  margin-right: 10px;
}
.homepage .header .navbar .menu .menu-item-link {
  color: #aaa;
  text-decoration: none;
}
.homepage .header .navbar .menu .menu-item-link:hover {
  color: #368ccb;
}
.homepage .header .mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--backgroung-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.5s ease-in-out;
}
.homepage .header .mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease forwards;
}
.homepage .header .mobile-menu .menu {
  padding: 1rem;
  margin: 0;
  list-style: none;
}
.homepage .header .mobile-menu .menu .menu-item {
  padding: 0.8rem 1rem;
}
.homepage .header .mobile-menu .menu .menu-item .menu-item-link {
  color: var(--font-color);
}
.homepage .header .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--font-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media screen and (max-width: 768px) {
  .homepage .header .navbar .menu {
    display: none;
  }
  .homepage .header .menu-toggle {
    display: block;
  }
}
.homepage .header-black {
  background-color: rgba(0,0,0,0.767);
  padding: 0 10px;
}
.homepage .header-black .mobile-menu {
  top: 60px;
}
.homepage .homemsg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.homepage .homemsg .title {
  font-size: 3em;
  color: #fff;
  font-family: "Comic Sans MS", cursive, LiSu, sans-serif;
  text-shadow: 0 0 10px #000;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .homepage .homemsg .title {
    font-size: 1.5em;
  }
}
.homepage .homemsg .subtitle {
  font-size: 2em;
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
  text-shadow: 0 0 10px #000;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .homepage .homemsg .subtitle {
    font-size: 1.3em;
  }
}
.homepage .homemsg .information {
  font-size: 1.2em;
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
  text-shadow: 0 0 10px #000;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .homepage .homemsg .information {
    font-size: 0.8em;
  }
}
.homepage .issvg {
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: -999;
  transition: var(--color-animation);
}
.homepage .issvg svg {
  width: 100%;
  height: 100%;
}
:root[data-theme="light"] .darkmode-button .sun-icon {
  opacity: 0;
}
:root[data-theme="light"] .darkmode-button .moon-icon {
  opacity: 1;
}
:root[data-theme="dark"] .darkmode-button .sun-icon {
  opacity: 1;
}
:root[data-theme="dark"] .darkmode-button .moon-icon {
  opacity: 0;
}
@-moz-keyframes slideDown {
  from {
    transform: translateY(-10%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@-webkit-keyframes slideDown {
  from {
    transform: translateY(-10%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@-o-keyframes slideDown {
  from {
    transform: translateY(-10%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-10%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.post {
  margin: 1em auto;
  padding: 30px 50px;
  background-color: var(--card-backgroung-color);
  border: 1px solid #ddd;
  box-shadow: 0 0 2px #ddd;
  border-radius: 10px;
  overflow: hidden;
  color: var(--font-color);
  font-family: "Noto Sans TC", sans-serif;
  ol: ol;
}
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
  margin: 1.5em 0 0.5em 0;
  font-weight: 600;
  line-height: 1.4;
}
.post h1::before,
.post h2::before,
.post h3::before,
.post h4::before,
.post h5::before,
.post h6::before {
  content: "";
  display: block;
  height: 4rem;
  margin-top: -4rem;
}
.post strong {
  text-shadow: 0 0 1px var(--shadow-color);
}
.post blockquote {
  border-left: 4px solid #ddd;
  padding: 0 15px;
  color: #777;
}
.post blockquote>:first-child {
  margin-top: 0px;
}
.post blockquote>:last-child {
  margin-bottom: 0px;
}
.post ul,
.post ol {
  padding-left: 30px;
}
.post ol ul {
  margin-top: 0;
  margin-bottom: 0;
}
.post .indentedcode {
  background-color: var(--code-bg-color);
  font-size: 18px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px;
}
.post :not(pre) > code {
  margin: 0;
  border: 1px solid var(--small-code-border-color);
  border-radius: 3px;
  background-color: var(--small-code-bg-color);
  border-radius: 3px;
  padding: 2px 4px;
}
.post a {
  color: #3498db;
  transition: all 0.3s ease-in-out;
}
.post a:hover {
  background: #3498db;
  color: #fff;
  border-radius: 3px;
  padding: 1px;
}
.post .hljs {
  background: rgba(0,0,0,0) !important;
  color: var(--code-text-color) !important;
}
.post .hljs .hljs-punctuation {
  color: var(--code-text-color) !important;
}
.post .gutter {
  background: rgba(0,0,0,0) !important;
  color: var(--code-text-color) !important;
  padding-left: 10px;
  text-align: right;
  color: var(--code-text-color) !important;
  position: sticky;
  overflow-x: visible !important;
  overflow-y: hidden;
  left: 0;
  z-index: 1;
}
.post .code_table {
  background: var(--code-bg-color);
  color: var(--code-text-color);
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  position: relative;
  border-radius: 0 0 5px 5px;
}
.post .code_table td {
  border: 0;
  padding: 0;
}
.post .code_top {
  display: flex;
  justify-content: space-between;
  background: var(--code-top-color);
  border-radius: 5px 5px 0 0;
}
.post .code_top .code_langname {
  padding: 5px 10px;
}
.post .code_top .copybutton {
  padding: 5px 10px;
}
.post .code_top .copybutton:hover {
  color: var(--on-button-color);
}
.post img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
table th,
td {
  border: 1px solid var(--rgba-font-color);
  padding: 5px 10px;
}
.thcenter {
  text-align: center;
}
.thright {
  text-align: right;
}
hr {
  background-color: var(--rgba-font-color);
  margin: 30px;
}
@media screen and (max-width: 768px) {
  .post {
    padding: 14px 14px;
  }
}
.postlist .post-item:first-child {
  margin-top: 0;
}
.postlist .post-item {
  margin-top: 1em;
  background-color: var(--card-backgroung-color);
  transition: var(--color-animation);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.postlist .post-image img {
  width: 100%;
  object-fit: cover;
  height: 200px;
}
.postlist .post-show {
  padding: 1em;
}
.postlist .post-title {
  font-size: 1.5em;
}
.postlist .post-title .post-title-link {
  color: var(--font-color);
  text-decoration: none;
}
.postlist .post-content a {
  color: #368ccb;
  text-decoration: none;
}
.postlist .post-meta {
  color: #bababa;
}
.archive {
  margin: 1em auto;
  padding: 30px 50px;
  background-color: var(--card-backgroung-color);
  border: 1px solid #ddd;
  box-shadow: 0 0 2px #ddd;
  border-radius: 10px;
}
.archive .post-archive {
  list-style: none;
  padding: 0;
}
.archive .post-archive .post-item {
  margin: 5px 0;
}
.archive .post-archive .post-item .post-date {
  display: inline-block;
  margin-right: 10px;
  color: #bababa;
}
.archive .post-archive .post-item .post-title {
  color: #368ccb;
  text-decoration: none;
}
.page-nav {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin-top: 20px;
}
.page-nav .page-number {
  display: inline-block;
  margin: 0 5px;
  padding: 0 8px;
  border-radius: 5px;
  color: var(--font-color);
  cursor: pointer;
}
.page-nav .page-number:hover {
  background-color: var(--current-hover-color);
}
.page-nav .current {
  background: var(--current-color);
  color: var(--current-text-color);
  box-shadow: 0 0 5px var(--current-blur);
}
:root {
  --current-color: #ffc0cb;
  --current-text-color: #444;
  --current-blur: #ff00bf;
  --current-hover-color: #edb1f1;
}
:root[data-theme="dark"] {
  --current-color: #f9629f;
  --current-text-color: #fff;
  --current-blur: #ff00bf;
}
.cardimage::after {
  content: "";
  background-image: url("https://i.waifu.pics/38QXoHc.jpeg");
  background-size: cover;
  opacity: 0.5;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;
  border-radius: 10px;
}
.cardimage {
  position: relative;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 1em;
}
.cardimage .userinfo .avatar {
  overflow: hidden;
  margin: 0 auto;
  width: 110px;
  height: 110px;
  border-radius: 50px;
}
.cardimage .userinfo .avatar img {
  border-radius: 50%;
  height: 100px;
  width: 100px;
}
.cardimage .userinfo .infotext {
  color: var(--font-color);
}
.cardimage .blogdata {
  display: flex;
  justify-content: center;
}
.cardimage .blogdata .item {
  padding: 20px;
}
.cardimage .blogdata .item .bd-name {
  color: var(--font-color);
  display: block;
  white-space: nowrap;
}
.cardimage .blogdata .item .bd-count {
  color: var(--font-color);
  display: block;
}
.cardimage .userlinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.cardimage .userlinks a {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 3em;
  height: 3em;
  color: var(--font-color);
}
.customize {
  position: relative;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 1em;
}
.customize p {
  padding: 5px;
  color: var(--font-color);
}
.customize .image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.recent-posts {
  background: var(--card-backgroung-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  color: var(--font-color);
}
.recent-posts .card-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}
.recent-posts .post-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-line-color);
}
.recent-posts .post-item:first-child {
  padding-top: 0;
}
.recent-posts .post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recent-posts .post-item .post-date {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}
.recent-posts .post-item .post-title {
  font-size: 0.95rem;
  line-height: 1.4;
}
.recent-posts .post-item .post-title a {
  text-decoration: none;
  transition: opacity 0.2s;
  color: var(--font-color);
}
.recent-posts .post-item .post-title a:hover {
  opacity: 0.8;
}
#rightmenu {
  background-color: var(--light-cark-backgroung-color);
  border: 1px solid var(--font-color);
  border-radius: 8px;
  position: fixed;
  width: 170px;
  z-index: 999;
  transition: 0.3s ease-in-out;
  display: none;
}
#rightmenu:hover {
  box-shadow: 0 0 2px var(--blur-color);
  border: 1px solid var(--blur-color);
}
#rightmenu .rightmenugroup {
  padding: 0.3rem 0.3rem;
}
#rightmenu .rightmenugroup:not(:nth-last-child(1)) {
  border-bottom: 1px solid var(--font-color);
}
#rightmenu .rightmenu-top {
  display: flex;
  justify-content: space-between;
}
#rightmenu .rightmenu-bottom .rightmenuitem {
  display: flex;
  height: 40px;
  line-height: 40px;
  padding: 0 4px;
  align-items: center;
}
#rightmenu .rightmenuitem {
  height: 30px;
  line-height: 30px;
  border-radius: 8px;
  transition: 0.3s;
  color: var(--font-color);
}
#rightmenu .rightmenuitem:hover {
  background-color: var(--text-bg-hover);
}
#rightmenu .rightmenuitem i {
  text-align: center;
  line-height: 30px;
  width: 30px;
  height: 30px;
}
#rightmenu .rightmenuitem span {
  line-height: 30px;
}
#rightmenu .rightmenuitem .menu-small-text {
  font-size: 14px;
}
footer {
  background: var(--footer-bg-color);
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer .foolinks {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  footer .foolinks {
    flex-direction: column;
  }
}
footer .foolinks span {
  font-weight: bold;
  margin-right: 5px;
}
footer .links,
footer .about {
  display: flex;
  justify-content: center;
  margin-left: 10px;
  margin-right: 10px;
}
footer .copyright {
  justify-content: center;
}
footer .copyright span {
  color: #aaa;
  font-size: 16px;
}
footer .powerby {
  justify-content: center;
}
footer .powerby span {
  font-weight: bold;
}
footer .powerby a {
  color: #ffc0cb;
}
footer .powerby a:hover {
  color: #f9629f;
}
:root {
  --footer-bg-color: #444;
}
:root[data-theme="dark"] {
  --footer-bg-color: #222;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}
.tag-link {
  margin: 5px;
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #555;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.tag-link:hover {
  background-color: #e0e0e0;
  color: #333;
}
.tag-text {
  font-style: normal;
}
.tag-post-title {
  margin: 15px 0;
  font-size: 18px;
  color: #333;
}
.tag-post-link {
  text-decoration: none;
  color: #1ec4b4;
}
.tag-post-link:hover {
  text-decoration: underline;
}
.friend-page {
  margin: 1em auto;
  padding: 30px 50px;
  background-color: var(--card-backgroung-color);
  border: 1px solid #ddd;
  box-shadow: 0 0 2px #ddd;
  border-radius: 10px;
  color: var(--font-color);
}
.friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.friend-item {
  width: 300px;
  padding: 15px;
  border-radius: 15px;
  background: var(--light-cark-backgroung-color);
  transition: transform 0.3s ease;
}
.friend-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--blur-color);
}
.friend-item a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--font-color);
}
.friend-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.friend-info {
  flex: 1;
}
.friend-info .friend-name {
  margin: 0 0 5px;
  font-size: 1.2em;
}
.friend-info .friend-desc {
  margin: 0;
  font-size: 0.9em;
  color: var(--rgba-font-light-color);
}
