.twikoo-card { margin: 1.5rem auto; scroll-margin-top: 80px; }
.twikoo-card .card-content { padding: 24px; min-width: 0; }
.twikoo-card .comments-heading { margin: 0 0 20px; font-size: 1.3rem; font-weight: 700; }
#tcomments { min-width: 0; scroll-margin-top: 90px; color: #34495e; }
#tcomments *, #tcomments *::before, #tcomments *::after { box-sizing: border-box; }
#tcomments .tk-content { overflow-wrap: anywhere; }
#tcomments .tk-comment > .tk-avatar,
#tcomments .tk-comment .tk-nick,
#tcomments .tk-comment .tk-nick:hover { cursor: default; color: inherit; text-decoration: none; }
#tcomments .tk-content p { text-align: left; }
#tcomments .tk-content img { max-width: 100%; height: auto; }
#tcomments .tk-content pre { overflow-x: auto; }
#tcomments input, #tcomments textarea { color: inherit; }
#tcomments input { height: auto; margin: 0; box-shadow: none; }
#tcomments input:focus { box-shadow: none; }
#tcomments .tk-col, #tcomments .tk-input { min-width: 0; }
#tcomments input.tk-input__inner { min-width: 0; height: 36px; padding: 0 12px; }
#tcomments button { font: inherit; cursor: pointer; }
/* 关闭按钮必须留出图标空间，不能沿用 1rem 宽度加 2rem 内边距的组合。 */
#tcomments .tk-admin-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    min-width: 84px;
    height: 44px;
    padding: 0 12px;
    margin: 8px 8px 8px auto;
    top: 8px;
    left: auto;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 6px;
    background: #292929;
    color: #fff;
    line-height: 1;
    z-index: 2;
}
#tcomments .tk-admin-close .tk-icon { display: flex; flex: 0 0 16px; }
#tcomments .tk-admin-close svg { width: 16px; height: 16px; }
#tcomments .tk-admin-close::after { content: "关闭"; }
#tcomments .tk-admin-close:hover { background: #444; }
#tcomments .tk-admin-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#tcomments [type="checkbox"] { position: static; opacity: 1; pointer-events: auto; }
#comments-status { text-align: center; color: #666; }
#comments-status[hidden] { display: none; }
.DarkMode #tcomments, html[data-color="dark"] #tcomments { color: #e5e7eb; }
.DarkMode #comments-status { color: #d1d5db; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 12px 16px 24px; }
.contact-actions .btn { min-height: 44px; height: auto; }
.contact-hint { text-align: center; padding: 0 16px; }
#contact #wrap { width: min(530px, 100%); }
#contact #form_wrap::before, #contact #form_wrap::after { width: 100%; background-size: 100% 100%; pointer-events: none; }
#contact #form_wrap form { width: min(400px, 90%); box-sizing: border-box; }
#contact #form_wrap img { max-width: 100%; height: auto; }
#contact #form_wrap:focus-within { height: 1130px; top: -30px; }
@media (hover: none), (max-width: 600px) {
    body.comments-in-view #gameToggleBtn,
    body.comments-in-view .lantern-toggle,
    body.comments-in-view #matery-mode-toggle,
    body.comments-in-view #chunjie,
    body.comments-in-view #to_comment,
    body.comments-in-view #waifu { display: none !important; }
    #contact #form_wrap, #contact #form_wrap:hover, #contact #form_wrap:focus-within { height: auto; top: 0; padding: 16px 0; }
    #contact #form_wrap::before, #contact #form_wrap::after { display: none; }
    #contact #form_wrap form { top: 0; width: 100%; }
    .twikoo-card .card-content { padding: 16px 12px; }
    #tcomments .tk-meta-input { flex-direction: column; flex-wrap: nowrap; }
    #tcomments .tk-meta-input .tk-input { width: 100%; flex: 0 0 auto; margin: 0 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
    #contact #form_wrap, #contact #form_wrap form { transition: none; }
}
/* 博主标签颜色 */
/* 博主标签颜色 */
#tcomments .tk-tag-green {
    color: #a855f7;                 /* 文字 */
    border-color: #a855f7;          /* 边框 */
    background-color: #a855f71a;    /* 淡紫背景 */
}