#twikoo {
  &::before {
    content: '发表评论';
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    padding-bottom: 10px; 
    border-bottom: var(--dashed-border); 
  }
  margin-top: 35px;
  padding-top: 20px;
  border-top: var(--double-border);
  
}

.OwO .OwO-body {
  min-width: 31.25rem;
  white-space: wrap !important;
}

.twikoo svg {
  color: var(--font-color);
}


#owo-big {
  position: fixed;
  align-items: center;
  background-color: rgb(255, 255, 255);
  border: var(--border);
  border-radius: 10px;
  z-index: 9999;
  display: none;
  transform: translate(0, -112%);
  overflow: hidden;
}

#owo-big img {
  width: 100%;
}

.tk-expand {
  width: 100px !important;
  margin: 12px 0 12px calc(50% - 50px);
  cursor: pointer;
  padding: 0.25em .75em;
  text-align: center;
  transition: all 0.5s;
  border: var(--border);
  box-shadow: 0 8px 16px -4px #2c2d300c;
  border-radius: 50px;
  letter-spacing: 5px;
  background-color: var(--card-bg);
  color: var(--font-color);
  &:hover {
    color: var(--entry);
  }
}

#twikoo .tk-comments > .tk-submit {
  overflow: visible !important;
  margin-top: 1.5rem;
}

#twikoo .tk-comments .OwO .OwO-body {
  border: var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden;
  background-color: #00000000 !important;
  backdrop-filter: saturate(180%) blur(10px);
  cursor: auto;
  top: 2.1em !important;

}

#twikoo .tk-comments .OwO .OwO-body .OwO-items-show {
  margin: 8px 8px;
}

#twikoo .tk-comments a.tk-submit-action-icon.__markdown {

  display: none;
}

#twikoo .tk-comments > div.tk-submit > div.tk-row.actions > a {
  display: none;
}

#twikoo .tk-comments .el-button {
  transition: none;
  border: none;
}

#twikoo .tk-comments .el-button.tk-preview {
  background: var(--card-bg);
  color: var(--entry-text);
  border-radius: 12px;
  border: none !important;
  width: 100%;
  height: 40px;
  margin-left: 3.5rem;
  margin-bottom: 1rem;
}

#twikoo .tk-comments .el-button.tk-preview:hover,
#twikoo .tk-comments .el-button--primary:hover {
  background: var(--font-color);
  color: var(--entry);
}

#twikoo .tk-comments .tk-preview-container {
  background: var(--card-bg);
  margin: -8px 0 1rem 3.5rem;
  padding: 5px 15px;
  border-radius: 10px;
  word-break: break-word;
  font-size: 15px;
}

#twikoo .tk-comments .el-button--primary.is-disabled,
#twikoo .tk-comments .el-button--primary.is-disabled:active,
#twikoo .tk-comments .el-button--primary.is-disabled:focus,
#twikoo .tk-comments .el-button--primary.is-disabled:hover {
  background: var(--card-bg);
  color: var(--entry-text);
  box-shadow: none !important;
}

#twikoo .tk-comments .el-button--primary {
  color: var(--entry);
  background: var(--secondary);
  border-radius: 12px;
  width: 100%;
  height: 40px;
  margin-left: 3.5rem;
  margin-bottom: 1rem;
}

#twikoo .tk-comments .el-button.tk-cancel {
  display: block;
}

#twikoo .tk-comments button.el-button.tk-cancel.el-button--default.el-button--small {
  background: var(--card-bg);
  color: var(--entry-text);
  width: 100%;
  margin-left: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  height: 40px;
}

#twikoo .tk-comments button.el-button.tk-cancel.el-button--default.el-button--small:hover {
  background: var(--anzhiyu-lighttext);
  color: var(--anzhiyu-white);
}

#twikoo .tk-comments .tk-input .el-textarea__inner {
  min-height: 200px !important;
  border-radius: 15px;
  display: block;
  resize: vertical;
  padding: 16px 16px 40px 16px;
  line-height: 2.5;
  box-sizing: border-box;
  width: 100%;
  font-size: inherit;
  color: var(--entry-text);
  background-color: var(--card-bg);
  border: var(--border);
  transition: none;
}

#twikoo .tk-comments .el-input__inner {
  background: var(--card-bg)!important;
  border: none!important;
  color: var(--entry-text)!important;
  padding-left: 8px;
}

#twikoo .tk-comments .el-input__inner:focus {
  border: none;
}

#twikoo .tk-comments .el-input-group__append,
#twikoo .tk-comments .el-input-group__prepend {
  color: var(--entry-text);
  border-color: var(--anzhiyu-card-border);
  border: none;
  font-weight: 700;
}

#twikoo .tk-comments .el-input-group--prepend .el-input__inner,
#twikoo .tk-comments .el-input-group__append {
  border-radius: 12px;
}

#twikoo .tk-comments .el-input--small .el-input__inner {
  padding: 8px;
  padding-left: 16px;
}

#twikoo .tk-comments .el-input-group--prepend .el-input__inner,
#twikoo .tk-comments .el-input-group__append {
  border-left-width: 0 !important;
}

#twikoo .tk-comments .tk-meta-input {
  position: relative;
  margin-top: 8px;
  width: 100%;
}

#twikoo .tk-comments .tk-meta-input .el-input.el-input--small.el-input-group.el-input-group--prepend {
  &::before {
    margin-top: 5px;
    background-color: var(--secondary);
  }
  border-radius: 12px;
  background: var(--card-bg);
  border: var(--border);
}

#twikoo .tk-comments .tk-meta-input .el-input .el-input-group__prepend {
  user-select: none;
  border-radius: 12px 0 0 12px;
}

#twikoo .tk-comments .tk-meta-input .el-input--small.el-input-group.el-input-group--prepend:focus-within {
  border: var(--border);
}

#twikoo .tk-comments .tk-row {
  white-space: pre-line;
}

#twikoo .tk-comments .tk-row .tk-avatar {
  display: block;
  white-space: normal;
}

#twikoo .tk-comments .tk-row .tk-col {
  flex-direction: column-reverse;
}

#twikoo .tk-comments .tk-row.actions {
  margin-bottom: 0;
  margin-left: 0;
  margin-top: 0;
  justify-content: space-around;
}

#twikoo .tk-comments .tk-admin {
  backdrop-filter: blur(50px);
}

#twikoo .tk-comments .tk-tag-green {
  border-radius: 4px;
}

#twikoo .tk-comments .tk-tag-red {
  border-radius: 4px;
}

#twikoo .tk-comments .tk-action-icon {
  color: var(--font-color);
  cursor: pointer;
}

#twikoo .tk-comments .tk-icon.__comments {
  color: var(--font-color);
}

#twikoo .tk-comments .tk-actions a {
  cursor: pointer;
}

#twikoo .tk-comments .tk-nick {
  line-height: 40px;
  font-size: 15px;
  color: #576B95;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI';
}

#twikoo .tk-comments .tk-extras {
  padding-bottom: 1rem;
}

#twikoo .tk-comments .tk-expand:hover {
  background-color: var(--font-color);
  border: var(--border);
}

#twikoo .tk-comments .tk-content p {
  margin: 0;
  font-size: 15px !important;
}

#twikoo .tk-comments .tk-admin-config-input .el-input__inner {
  background: transparent !important;
}

#twikoo pre code {
  background: none;
}

#twikoo code {
  padding: 2px 4px;
  color: #a6da95;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Cascadia Code', 'harmonyos sans' !important;
  font-weight: 500;
  font-size: 14px;
}

#twikoo .tk-comment .tk-submit .tk-avatar,
#twikoo .tk-replies .tk-avatar {
  height: 2.5rem !important;
  width: 2.5rem !important;
}

#twikoo .tk-comment pre {
  background: var(--code-block-bg) !important;
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border-radius: 1em;
}

#twikoo .tk-avatar {
  border-radius: 50px;
  overflow: unset;
  position: relative;
}

#twikoo .tk-avatar .tk-avatar-img {
  border-radius: 50%;
  height: 2.5rem !important;
}

#twikoo .tk-master .tk-avatar::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background-image: url(https://images.chn.us.kg/hexo/config/twikoo.svg);
  background-size: 100% 100%;
  box-sizing: border-box;
  z-index: 1;
}
.tk-main {
  margin-top: -10px;
}
.tk-main .tk-expand-wrap,
.tk-main .tk-collapse-wrap {
  margin-left: -55px;
}

.tk-replies {
  max-height: 10rem !important;
}

.tk-replies.tk-replies-expand {
  max-height: none !important;
}

.tk-replies .tk-comment {
  border-radius: 12px;
  padding: 0;
  margin-top: 0;
  transition: all 0.3s ease 0s;
}

.tk-replies .tk-content span:first-child:not(.token) {
  font-size: .75rem;
}

.twikoo div.code-toolbar {
  color: #fff;
}

.twikoo div.code-toolbar .toolbar > .toolbar-item > button {
  color: #fff;
}

[data-theme="dark"] #owo-big {
  background-color: #4a4a4a;
}

.tk-comments-container,.tk-comments-title {
  margin-top: 10px;
}
.tk-comments-container .tk-submit {
  opacity: 1;
  height: auto;
  overflow: visible;
}

/* 输入提示 */
.el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(1):before {
  content: "输入QQ号会自动获取昵称和头像";
}

.el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(2):before {
  content: "博主回复后您的邮箱会收到提醒";
}

.el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(3):before {
  content: "可以通过昵称访问您的网站";
}

.el-input.el-input--small.el-input-group.el-input-group--prepend:focus-within::before {
  display: block;
  animation: commonTipsIn .3s;
  z-index: 2;
}

.el-input.el-input--small.el-input-group.el-input-group--prepend:focus-within::after {
  display: block;
  animation: commonTriangleIn .3s;
}

.el-input.el-input--small.el-input-group.el-input-group--prepend::before {
  display: none;
  position: absolute;
  top: -60px;
  white-space: nowrap;
  border-radius: 10px;
  left: 50%;
  transform: translate(-50%);
  padding: 14px 18px;
  background: #444;
  color: #fff;
  z-index: 100;
}

.el-input.el-input--small.el-input-group.el-input-group--prepend::after {
  display: none;
  content: '';
  position: absolute;
  border: 12px solid transparent;
  border-top-color: #444;
  left: 50%;
  transform: translate(-50%,-46px);
}

.vwrap {
  box-shadow: 2px 2px 5px #bbb;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0px 30px 0px;
}

.vcard {
  box-shadow: 2px 2px 5px #bbb;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0px 0px 0px;
}

#twikoo .tk-extra {
  background: var(--card-bg);
  border: var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-top: 6px;
  font-size: 0.8rem;
}

#twikoo .tk-extra-text {
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  line-height: 2;
}

#twikoo .tk-replies .tk-content {
  font-size: 0.75rem;
}

#twikoo .tk-content {
  margin-top: 0;
}

#twikoo .tk-replies .tk-nick-link {
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI';
}

.tk-main .tk-content span > a {
  border-bottom: none;
  color: var(--font-color);
}

#post-comment .comment-head {
  font-size: 0.8em !important;
  margin-bottom: 0.5rem;
}

@keyframes commonTipsIn {
  0% {
    top: -50px;
    opacity: 0;
  }
  100% {
    top: -60px;
    opacity: 1;
  }
}

@keyframes commonTriangleIn {
  0% {
    transform: translate(-50%,-36px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%,-46px);
    opacity: 1;
  }
}

#body-wrap.page .el-input__inner {
  box-shadow: var(--box-shadow);
  color: var(--entry-text);
}

#body-wrap.page .tk-admin-config .el-input__inner {
  color: red;
}

#twikoo.twikoo .el-input__inner:focus,
#twikoo.twikoo .el-textarea__inner:focus {
  border-color: var(--font-color);
}

.tk-comments-container > .tk-comment {
  margin-top: 0 !important;
  margin-bottom: 0rem !important;
  border-radius: 0px;
  padding: 20px;
  padding-top: 1.5rem;
  border: none;
  border-top: var(--dashed-border);
}

.tk-action-link {
  color: var(--entry-text) !important;
}

@media (max-width: 768px) {
  .tk-comments-container > .tk-comment {
    margin-bottom: 0.5rem !important;
    padding: 1rem;
    border-radius: 12px;
    border: var(--border);
  }
  .tk-action .tk-action-link:first-child {
    display: none;
  }
  .tk-action-link {
    cursor: pointer;
    user-select: none;
    padding: 0 12px;
    transition: all .3s;
    border-radius: 8px;
    border: var(--border);
  }
  #twikoo .tk-comments > .tk-submit {
  margin-top: 1rem;
  }
  .tk-replies {
    margin-left: -55px;
  }
  #twikoo .tk-comments .tk-preview-container {
    margin-left: 0;
    margin-top: 4px;
    font-size: 13px;
  }
}

.tk-content {
  margin-top: 0.5rem;
  overflow: auto;
  max-height: 500px;
}

.tk-comments .tk-row-actions-start {
  position: absolute;
  top: -84px;
  left: 80px;
}

@media screen and (max-width: 768px) {
  .OwO .OwO-body {
    min-width: 260px;
  }
  #twikoo .tk-comments .tk-row .tk-avatar {
    display: none;
  }
  #twikoo .tk-avatar .tk-avatar-img {
    height: 2.5rem !important;
  }
  .tk-comments .tk-row-actions-start {
    top: -205px;
    left: 20px;
  }
  #twikoo .tk-comments .tk-meta-input {
    width: auto;
    margin-bottom: 50px;
  }
  #twikoo .tk-comments .tk-submit .el-button--primary {
    height: 40px;
    width: 45%;
    top: -43px;
    right: 0;
    margin-right: 0 !important;
    position: absolute;
  }
  #twikoo .tk-comments .tk-submit .el-button.tk-preview {
    height: 40px;
    width: 45%;
    top: -43px;
    left: 0;
    margin-left: 0;
    position: absolute;
  }
  #twikoo .el-textarea__inner {
    overflow: hidden;
    resize: none!important;
  }
  .tk-comments .tk-main .tk-submit .tk-row.actions {
    justify-content: center;
  }
  .tk-comments button.el-button.tk-cancel {
    display: block !important;
    width: 100%;
    height: 40px;
    margin-top: 3px;
    margin-bottom: 1rem;
    margin-left: 0rem !important;
  }
  .tk-comments .tk-row-actions-start {
    position: absolute;
  }
  #twikoo::before {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: .5rem;
  }
}

.OwO .OwO-body .OwO-items .OwO-item:hover {
  border-radius: 8px;
}

.tk-admin {
  z-index: 2;
}
.tk-admin-comment-item .tk-content p {
  color: #fff;
}