#header-blog:checked+label[for="header-blog"]::before {
  font-family: "fontawesome";
  content: "\f103";
}

#blog {
  width: 100vw;
  min-height: calc(100vh - 80px);
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 22px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(12px);
  animation: blogFadeIn 0.5s ease forwards 0.1s;
  background-color: #f8f9fa;
}

.blog-content-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

@keyframes blogFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-tags {
  margin: 8px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.blog-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: #e6f7f5;
  color: #00b4aa;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer
}

.blog-tag:hover {
  background: #d1f0ec
}

.tag-filter-title {
  text-align: center;
  margin-bottom: 16px;
  color: #00b4aa;
  font-weight: 600
}

.blog-loading {
  text-align: center;
  color: #999;
  padding: 60px 0;
  font-size: 15px;
}

.blog-item {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.blog-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-image: url("https://www.loliapi.com/acg/pc/");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.blog-item>* {
  position: relative;
  z-index: 1;
}

.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 180, 170, 0.08);
}

.blog-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 10px;
  transition: color 0.2s;
}

.blog-item:hover h3 {
  color: #00b4aa;
}

.blog-item .date {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.blog-item .excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-item .view-detail {
  padding: 8px 16px;
  background: #00b4aa;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-item .view-detail:hover {
  background: #00a098;
  transform: scale(1.03);
}

.blog-detail {
  background: white;
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: detailFade 0.5s ease;
  max-width: 780px;
  margin: 0 auto;
  font-family: "maple";
}

@keyframes detailFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-detail h2 {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.blog-detail .date {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

.blog-detail .content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 36px;
  white-space: pre-wrap;
}

.blog-detail .content a {
  display: block;
  height: 34px;
  width: fit-content;
  color: #ffffff;
  background-color: #00b4aa;
  border-radius: 5px;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-detail .content img {
  max-width: 100%;
}

.comments-container {
  border-top: 1px solid #f0f0f0;
  padding-top: 24px;
  margin-bottom: 30px;
}

.comment-item {
  background: #fafbfc;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 3px solid #00b4aa;
  transition: transform 0.2s;
}

.comment-item:hover {
  transform: translateX(2px);
}

.comment-item .uname {
  font-weight: 600;
  color: #222;
  font-size: 15px;
}

.comment-item .time {
  font-size: 12px;
  color: #999;
  margin-left: 6px;
}

.comment-item .os {
  font-size: 12px;
  color: #00b4aa;
  background: #e6f7f5;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-item .contact {
  margin-left: 6px;
}

.comment-item .contact a {
  color: #00d1ff;
  text-decoration: none;
  font-weight: normal;
}

.comment-item .contact a:hover {
  color: #00b4aa;
}

.comment-item .com {
  margin-top: 8px;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 8px;
}

.comment-reply {
  font-size: 12px;
  color: #00d1ff;
  cursor: pointer;
  display: inline-block;
}

.comment-reply:hover {
  color: #00b4aa;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.comment-form input,
.comment-form textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #eee;
  font-size: 15px;
  transition: all 0.24s ease;
  width: 100%;
  box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #00b4aa;
  box-shadow: 0 0 0 3px rgba(0, 180, 170, 0.1);
}

.comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-form button {
  align-self: start;
  padding: 10px 20px;
  background: #00b4aa;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.25s ease;
}

.comment-form button:hover {
  background: #009e96;
  transform: scale(1.04);
}

.optional-fields {
  display: flex;
  gap: 10px;
  width: 100%;
}

.optional-fields input {
  flex: 1;
}

@media (max-width: 768px) {
  #blog {
    padding: 30px 16px;
  }

  .blog-detail {
    padding: 24px 20px;
  }

  .optional-fields {
    flex-direction: column;
    gap: 14px;
  }
}

.code-block {
  position: relative;
  margin: 22px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1e1e2e;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  transition: all .3s ease;
  border: 1px solid rgba(255, 255, 255, .08)
}

.code-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16)
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  border: none;
  color: #cdd6f4;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease
}

.copy-btn:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.copy-btn:active {
  transform: scale(.96)
}

.code-box {
  width: 100%;
  height: auto;
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  font-size: 14px !important;
  line-height: 1.6 !important
}

.monaco-editor {
  border-radius: 16px !important;
  overflow: hidden !important
}

.monaco-editor .margin {
  background: #1e1e2e !important
}

.blog-detail .content p {
  margin: 14px 0 !important;
  line-height: 1.8 !important;
  color: #333 !important
}

.blog-detail .content h2,
.blog-detail .content h3,
.blog-detail .content h4 {
  margin: 24px 0 12px !important;
  font-weight: 600 !important;
  color: #222 !important
}