/* ============================================
   评论区样式完整版 - 独立页面通用
   适配 THYUU/星度 Halo 主题评论组件 +
   Fireside 插件 comment-widget (Svelte 渲染)
   合并版 v1.0
   ============================================ */

/* ---------- 1. 图标字体 ---------- */
@font-face {
  font-family: 'thyuu-iconfont';
  src: url('https://www.imdd.cn/themes/thyuu-xingdu/assets/icons/iconfont.woff2?t=1782818448097') format('woff2');
  font-display: swap;
}

.thyuu-iconfont {
  font-family: 'thyuu-iconfont' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 评论相关图标映射 */
.thyuu-icon-pinglun-title::before { content: "\e633"; }
.thyuu-icon-pinglun::before { content: "\e8b4"; }
.thyuu-icon-geren::before { content: "\e615"; }
.thyuu-icon-mail::before { content: "\e636"; }
.thyuu-icon-link::before { content: "\e649"; }
.thyuu-icon-at::before { content: "\e7de"; }
.thyuu-icon-add::before { content: "\e645"; }
.thyuu-icon-left::before { content: "\e623"; }
.thyuu-icon-right::before { content: "\e627"; }
.thyuu-icon-bottom::before { content: "\f079"; }

/* 全局：所有 thyuu-icon 图标的 ::before 使用图标字体 */
[class*="thyuu-icon"]::before {
  font-family: 'thyuu-iconfont' !important;
}

/* ---------- 2. CSS 变量（亮色模式） ---------- */
:root {
  --thyuu--size-span: 1rem;
  --thyuu--size-radius: 1rem;
  --thyuu--size-small: .75rem;
  --thyuu--size-medium: .875rem;
  --thyuu--size-normal: 16px;
  --thyuu--size-card-normal: 22.5rem;
  --thyuu--size-card-small: calc(22.5rem * .6);
  --thyuu--size-content: 62.5rem;
  --thyuu--size-edgelr: 1.5rem;
  --thyuu--font-weight-title: 600;
  --thyuu--font-family-title: none, 'Misans VF', 'Noto Sans SC', 'PingFang SC', sans-serif, 'thyuu-iconfont';

  --thyuu--main-color: 205.43deg 96.33% 42.75%;
  --thyuu--subs-color: 197.84deg 92.04% 60.59%;
  --thyuu--color-font: 0deg 0% 25%;
  --thyuu--color-back-font: hsl(0deg 0% 25% / 5%);
  --thyuu--color-back-white: hsl(0deg 0% 100%);
  --thyuu--color-back-have: hsl(0deg 0% 98%);
  --thyuu--shadow-shift: none;
  --thyuu--shadow-white: 0 .2rem 1rem 0 hsl(0deg 0% 15% / 4%);
  --thyuu--shadow-normal: 0 .2rem 1rem 0 hsl(0deg 0% 15% / 10%);
}

/* ---------- 3. CSS 变量（暗色模式） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --thyuu--color-font: 0deg 0% 85%;
    --thyuu--color-back-font: hsl(0deg 0% 40% / .1);
    --thyuu--color-back-white: hsl(0deg 0% 60% / .1);
    --thyuu--color-back-have: hsl(0deg 5% 5%);
    --thyuu--shadow-white: 0 .2rem 1rem 0 hsl(0deg 0% 0% / 20%);
    --thyuu--shadow-normal: 0 .2rem 1rem 0 hsl(0deg 0% 0% / 40%);
  }
}

/* ---------- 4. 基础元素重置（仅限评论区内） ---------- */
.comment-respond *,
.comment-area *,
.comment-list * {
  box-sizing: border-box;
}

/* ---------- 5. 评论区容器 ---------- */
.comment-area,
.comment-list {
  display: flex;
  flex-flow: column;
  gap: var(--thyuu--size-span);
}

comment-widget {
  display: contents;
}

/* ---------- 6. 评论标题 ---------- */
.comment-title,
.comment-num-title,
.comment-reply-title,
.comment-form-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  font-size: 1em;
  color: hsl(var(--thyuu--main-color));
}

.comment-reply-title {
  margin-bottom: 0;
  font-weight: var(--thyuu--font-weight-title);
  font-family: var(--thyuu--font-family-title);
  line-height: 1.5;
  --font-cale: 1.25;
  font-size: calc(var(--thyuu--size-normal) * var(--font-cale, 1));
}

.comment-reply-title::before {
  content: "\e8b4";
  font-family: 'thyuu-iconfont';
}

.comment-num-title {
  color: hsl(var(--thyuu--color-font) / .7);
  font-size: var(--thyuu--size-medium);
  font-weight: normal;
  display: inline-flex;
}

.comment-title {
  opacity: 0;
  transform: scale(.98) translateY(1rem);
  transition: 0.7s, transform 0.7s cubic-bezier(0.6, 0.2, 0.25, 1), opacity 0.3s;
  margin: 0;
}

.comment-reply-title .comment-meta {
  justify-content: flex-end;
}

.comment-meta {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  font-size: var(--thyuu--size-small);
  font-weight: normal;
  color: hsl(var(--thyuu--color-font) / .7);
  gap: 0.5em;
  line-height: 2;
}

.comment-meta a {
  display: flex;
  align-items: center;
  gap: 0.25em;
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  padding: 0 0.5em;
  background: var(--thyuu--color-back-font);
  text-decoration: none;
  color: inherit;
}

/* ---------- 7. 评论表单容器 ---------- */
.comment-respond {
  position: relative;
  width: 100%;
  margin: 0 0 2em;
}

.comment-list .comment-respond {
  margin: 1em 0 0;
}

/* ---------- 8. 评论表单 ---------- */
.comment-form {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0 0;
}

.comment-form :where(p) {
  margin: 0;
}

/* 名称/邮箱/网址 输入区域 */
.comment-form-info {
  display: flex;
  flex-flow: wrap;
  gap: 0.5em;
  flex: 1 1 auto;
}

.comment-form-info label {
  display: flex;
  align-items: center;
  flex: 1 1 10em;
  height: 3em;
  padding: 0.25em 0.25em 0.25em 1em;
  background: var(--thyuu--color-back-font);
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  font-size: var(--thyuu--size-small);
  color: hsl(var(--thyuu--color-font) / .6);
  line-height: 1.5;
  vertical-align: middle;
  align-self: center;
  cursor: pointer;
  user-select: none;
}

.comment-form-info input {
  background: transparent;
  padding: 0.5em;
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  color: hsl(var(--thyuu--color-font));
}

/* 评论输入框区域 */
.comment-form-text {
  position: relative;
  flex: 1 1 100%;
  background: var(--thyuu--color-back-font);
  border-radius: var(--thyuu--size-radius);
  box-shadow: var(--thyuu--shadow-shift);
}

.comment-form-comment {
  font-size: var(--thyuu--size-medium);
  background: transparent;
  width: 100%;
  padding: 0.5em 1em;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 6em;
  font-family: inherit;
  color: hsl(var(--thyuu--color-font));
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid hsl(var(--thyuu--main-color) / .3);
  outline-offset: -1px;
}

.comment-form input,
.comment-form textarea {
  accent-color: hsl(var(--thyuu--main-color) / .8);
  border-radius: var(--thyuu--size-radius);
  vertical-align: middle;
  appearance: none;
  transition: 0.7s;
}

/* ---------- 9. Emoji 选择器 ---------- */
.comment-emoji {
  flex: 1 1 8em;
  display: flex;
  align-items: center;
  font-size: var(--thyuu--size-small);
  height: 3em;
  gap: 0.5em;
  padding: 0.25em;
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  line-height: 1;
  background: transparent;
  border-top: thin solid hsl(0deg 0% 25% / 5%);
}

.comment-emoji .emoji-btn {
  color: #fff;
  padding: 0.5em;
  margin: 0 0.25em 0 0;
  background: rgba(255, 177, 51, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: inherit;
  width: unset;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.comment-emoji .emoji-icons {
  display: grid;
  place-items: center;
  grid: auto-flow 2em / repeat(auto-fill, minmax(1.75em, 1fr));
  font-size: 1.5em;
  flex: 1 1 0%;
  height: inherit;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  overflow: hidden auto;
  transition: 0.3s;
}

.comment-emoji.show .emoji-btn {
  rotate: 135deg;
}

.comment-emoji.show .emoji-icons {
  height: 6em;
  background: var(--thyuu--color-back-have);
  box-shadow: var(--thyuu--shadow-normal);
  border-radius: var(--thyuu--size-radius);
  scroll-snap-type: none;
  z-index: 3;
}

.comment-emoji i {
  scroll-snap-align: center;
  user-select: none;
  cursor: pointer;
  transition: 0.3s;
}

.comment-emoji:not(.show) :where(i) {
  filter: grayscale(1) opacity(0.5);
}

.comment-emoji i:hover {
  scale: 1.2;
  filter: none;
}

.comment-emoji i:hover:active {
  scale: 1.1;
}

.no-scrollbar {
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ---------- 10. 验证码 ---------- */
.form-captcha {
  flex: 1 1 8em;
  display: flex;
  align-items: center;
  font-size: var(--thyuu--size-small);
  height: 3em;
  gap: 0.5em;
  padding: 0.25em;
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  background: var(--thyuu--color-back-font);
}

.form-captcha :is(img, input) {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.form-captcha img {
  cursor: pointer;
  height: 100%;
  outline: thin dotted hsl(var(--thyuu--color-font) / .1);
  border-radius: inherit;
  max-width: 5em !important;
}

.form-captcha :is(label, span) {
  display: none !important;
}

/* ---------- 11. 提交按钮 ---------- */
.comment-form .form-submit {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
}

/* 基本按钮样式 */
.comment-form .form-submit button,
.comment-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--thyuu--size-small);
  width: unset;
  line-height: 1;
  padding: 1em;
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  border: none;
  transition: 0.7s;
}

/* has-thyuu-color 渐变按钮 */
.comment-form .form-submit button.has-thyuu-color,
.comment-form button[type="submit"].has-thyuu-color {
  color: #fff;
  background: linear-gradient(135deg,
    var(--thyuu--color-back-font) 20%,
    hsl(var(--thyuu--main-color) / .8) 30%,
    hsl(var(--thyuu--subs-color) / .8) 70%,
    var(--thyuu--color-back-font) 80%) 50% / 300% 100%;
  box-shadow: 0 0 1em 0 hsl(var(--thyuu--main-color) / .2),
              0 .5em 1em -0.5em hsl(var(--thyuu--main-color) / .5);
}

/* has-btn-effect 按钮文字动画 */
.comment-form .form-submit button.has-btn-effect {
  position: relative;
}

.button.has-btn-effect .btn-meta {
  opacity: 0;
  max-width: 0;
  height: 1em;
  margin: 0 -0.5em 0 0;
  white-space: nowrap;
  overflow: hidden;
  transition: inherit;
}

.button.has-btn-effect:hover .btn-meta {
  opacity: 1;
  max-width: 10em;
  margin: 0;
}

.comment-form .form-submit button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- 12. 评论列表 ---------- */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list :is(.comment, .pingback) {
  position: relative;
  font-size: var(--thyuu--size-medium);
}

.comment-list .depth-1 {
  padding: var(--thyuu--size-span);
  background: var(--thyuu--color-back-font);
  border-radius: var(--thyuu--size-radius);
  box-shadow: var(--thyuu--shadow-shift);
  break-inside: avoid;
  transition: 0.5s;
}

.comment-list .depth-1:is(:hover, :target) {
  background: var(--thyuu--color-back-white);
  box-shadow: var(--thyuu--shadow-white);
}

/* fade-before 入场动画 */
.fade-before {
  opacity: 0;
  transform: scale(.98) translateY(1rem);
  transform-origin: top;
  transition: 0.7s, transform 0.7s cubic-bezier(0.6, 0.2, 0.25, 1), opacity 0.3s;
}

/* ---------- 13. 评论主体 ---------- */
.comment-body {
  display: flex;
  flex-flow: column;
  gap: 0.5em 1em;
}

/* 子级评论（回复） */
.comment-list ul.children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list ul .comment-body {
  margin: 1em -1em -1em 0;
  padding: 1em 1em 1em 0;
  border-top: thin solid var(--thyuu--color-back-font);
  border-radius: 0 var(--thyuu--size-radius);
}

/* ---------- 14. 评论作者 ---------- */
.comment-author {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-transform: capitalize;
  font-weight: var(--thyuu--font-weight-title);
  line-height: 1.5;
}

.comment-author .avatar {
  --avatar-size: 2em;
  height: var(--avatar-size);
  width: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  color: hsl(var(--thyuu--color-font) / .1);
  outline: solid thin;
  box-shadow: 0.25em 0.25em 0 -0.1em;
  text-align: center;
  flex: 0 0 auto;
  background: hsl(var(--thyuu--color-font) / .1);
}

.comment-author .author {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.comment-author .url {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none !important;
  word-break: break-all;
}

/* ---------- 15. 评论内容 ---------- */
.comment-content {
  font-size: var(--thyuu--size-medium);
}

.comment-content p {
  white-space: pre-line;
  margin: 0 0 0.5em;
}

.comment-content p:last-of-type {
  margin: 0;
}

/* ---------- 16. 评论时间/评分 ---------- */
.comment-rating {
  color: hsl(var(--thyuu--color-font) / .5);
  font-size: var(--thyuu--size-small);
  font-variant: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.comment-rating time {
  margin: 0 0.5em 0 0;
}

.comment-list ul .comment-rating {
  right: -1.25em;
}

/* ---------- 17. 回复/编辑/@提及链接 ---------- */
.comment-reply-login::before,
.comment-reply-link::before {
  content: "\e8b4";
  font-family: 'thyuu-iconfont';
}

.comment-edit-link::before {
  content: "\e619";
  font-family: 'thyuu-iconfont';
}

.comment-at {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  text-decoration: none;
  padding: 0 0.5em;
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  background: var(--thyuu--color-back-font);
  font-size: var(--thyuu--size-small);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  max-width: 8em;
  color: inherit;
  cursor: pointer;
}

.comment-at::before {
  content: "\e7de";
  font-family: 'thyuu-iconfont';
}

/* ---------- 18. 辅助文字 ---------- */
.logged-in-as,
.comment-notes,
.comment-form label:not(.comment-form-info label) {
  font-size: var(--thyuu--size-small);
  color: hsl(var(--thyuu--color-font) / .6);
  line-height: 1.5;
  vertical-align: middle;
  align-self: center;
  cursor: pointer;
  user-select: none;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex: 1 1 fit-content;
  align-self: center;
  font-size: var(--thyuu--size-small);
}

/* ---------- 19. 空状态（无评论） ---------- */
.thyuu-noone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-wrap: balance;
  color: hsl(var(--thyuu--color-font) / .5);
  font-size: var(--thyuu--size-small);
  gap: 0.5em 0;
  padding: 1em;
  line-height: 2;
  height: 100%;
  max-width: 100%;
  min-width: min(var(--thyuu--size-card-normal), 100%);
  min-height: var(--thyuu--size-card-small);
  background: var(--thyuu--color-back-font);
  border-radius: var(--thyuu--size-radius);
}

:where(.thyuu-noone)::before {
  content: "\e708";
  color: hsl(var(--thyuu--color-font) / .3);
  font-size: 6em;
  font-family: 'thyuu-iconfont';
  line-height: 1.5;
}

/* ---------- 20. 翻页 ---------- */
.comment-next {
  text-align: center;
  margin-top: 1.2em;
}

/* ---------- 21. has-line-clamp 通用类 ---------- */
.has-line-clamp {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-num, 1);
}

/* ---------- 22. 颜色模式辅助 ---------- */
.comment-form .cf-turnstile {
  display: flex;
  padding: 0.5em 0 0;
  height: 3em;
  border-radius: 1em;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  width: min(10em, 100%);
}

.comment-form .cf-turnstile div {
  margin: -0.5em;
}

.comment-disbtn {
  display: flex;
  align-items: center;
  background: var(--thyuu--color-back-font);
  border-radius: min(var(--thyuu--size-radius) * 2, 2em);
  padding: 0.25em;
}

/* ---------- 23. 悬停效果 ---------- */
.comment-list .depth-1 .comment-body {
  transition: 0.5s;
}

/* ==================================================================
   🔥 Fireside 插件专用补充样式
   适配 fireside 插件 comment-widget 的 Svelte 渲染结构（moment-* 类名）
   ================================================================== */

/* ---------- F1. 评论区整体容器 ---------- */
.moment-comment {
  display: flex;
  flex-flow: column;
  gap: 1em;
  margin: 1em 0;
  width: 100%;
}

.moment-quick-comment.hidden {
  display: none;
}

/* ---------- F2. 评论列表 ---------- */
.moment-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: column;
  gap: var(--thyuu--size-span, 1rem);
}

.moment-comment-item {
  position: relative;
  list-style: none;
  padding: var(--thyuu--size-span, 1rem);
  background: var(--thyuu--color-back-font);
  border-radius: var(--thyuu--size-radius, 1rem);
  box-shadow: var(--thyuu--shadow-shift);
  transition: 0.5s;
  font-size: var(--thyuu--size-medium, 0.875rem);
}

.moment-comment-item:hover {
  background: var(--thyuu--color-back-white);
  box-shadow: var(--thyuu--shadow-white);
}

/* ---------- F3. 评论主体（头像 + 内容） ---------- */
.moment-comment-item > .comment-content {
  display: flex;
  gap: 0.75em;
  align-items: flex-start;
}

/* ---------- F4. 头像 ---------- */
.moment-comment-item .avatar {
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex: 0 0 auto;
  background: hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.1);
  outline: solid thin hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.1);
  box-shadow: 0.25em 0.25em 0 -0.1em hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.1);
}

.moment-comment-item .avatar.avatar-50 {
  --avatar-size: 2.5em;
  width: var(--avatar-size);
  height: var(--avatar-size);
}

.moment-comment-item > .comment-content > article {
  flex: 1;
  min-width: 0;
}

/* ---------- F5. 评论头部 ---------- */
.moment-comment-item .comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.75em;
  line-height: 1.5;
}

.moment-comment-item .author-name {
  font-style: normal;
  font-weight: var(--thyuu--font-weight-title, 600);
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%));
  font-size: var(--thyuu--size-medium, 0.875rem);
}

.moment-comment-item .author {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.moment-comment-item .author-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--thyuu--size-small, 0.75rem);
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.5);
}

.moment-comment-item .comment-time {
  text-decoration: none;
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.5);
  cursor: pointer;
  font-variant: tabular-nums;
}

.moment-comment-item .comment-time:hover {
  color: hsl(var(--thyuu--main-color, 205.43deg 96.33% 42.75%));
}

/* ---------- F6. 回复按钮 ---------- */
.moment-comment-item .reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.25em 0.5em;
  border: none;
  background: transparent;
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.5);
  font-size: var(--thyuu--size-small, 0.75rem);
  cursor: pointer;
  border-radius: min(var(--thyuu--size-radius, 1rem) * 2, 2em);
  transition: 0.3s;
}

.moment-comment-item .reply-link::before {
  content: "\e8b4";
  font-family: 'thyuu-iconfont';
  font-size: 0.875em;
}

.moment-comment-item .reply-link:hover {
  background: var(--thyuu--color-back-font);
  color: hsl(var(--thyuu--main-color, 205.43deg 96.33% 42.75%));
}

.moment-comment-item .comment-meta {
  margin-left: auto;
}

/* ---------- F7. 评论内容文字 ---------- */
.moment-comment-item .comment-text {
  font-size: var(--thyuu--size-medium, 0.875rem);
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%));
  line-height: 1.6;
  margin-top: 0.375em;
}

.moment-comment-item .comment-text p {
  white-space: pre-line;
  margin: 0 0 0.5em;
}

.moment-comment-item .comment-text p:last-of-type {
  margin: 0;
}

/* ---------- F8. 底部操作按钮 ---------- */
.moment-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: none;
  background: var(--thyuu--color-back-font);
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.7);
  font-size: var(--thyuu--size-small, 0.75rem);
  cursor: pointer;
  border-radius: min(var(--thyuu--size-radius, 1rem) * 2, 2em);
  transition: 0.3s;
  line-height: 1;
}

.moment-action-btn::before {
  content: "\e8b4";
  font-family: 'thyuu-iconfont';
  font-size: 0.875em;
}

.moment-action-btn:hover {
  background: hsl(var(--thyuu--main-color, 205.43deg 96.33% 42.75%) / 0.1);
  color: hsl(var(--thyuu--main-color, 205.43deg 96.33% 42.75%));
}

/* ---------- F9. 子级评论（回复嵌套） ---------- */
.moment-comment-item[data-comment-level="1"],
.moment-comment-item[data-comment-level="2"],
.moment-comment-item[data-comment-level="3"] {
  margin: var(--thyuu--size-span, 1rem) 0 0 0;
  padding: var(--thyuu--size-span, 1rem) var(--thyuu--size-span, 1rem) var(--thyuu--size-span, 1rem) calc(var(--thyuu--size-span, 1rem) + 0.5em);
  background: transparent;
  border-top: thin solid var(--thyuu--color-back-font);
  border-radius: 0 var(--thyuu--size-radius, 1rem) var(--thyuu--size-radius, 1rem);
  box-shadow: none;
}

.moment-comment-item[data-comment-level="1"]:hover,
.moment-comment-item[data-comment-level="2"]:hover,
.moment-comment-item[data-comment-level="3"]:hover {
  background: var(--thyuu--color-back-font);
  box-shadow: none;
}

/* 不同层级递进缩进 */
.moment-comment-item[data-comment-level="1"] {
  margin-left: 0;
}

.moment-comment-item[data-comment-level="2"] {
  margin-left: 1.5em;
}

.moment-comment-item[data-comment-level="3"] {
  margin-left: 3em;
}

/* 子级评论左侧边线装饰 */
.moment-comment-item[data-comment-level="1"]::before,
.moment-comment-item[data-comment-level="2"]::before,
.moment-comment-item[data-comment-level="3"]::before {
  content: "";
  position: absolute;
  left: 0.75em;
  top: 1.5em;
  bottom: 0;
  width: 2px;
  background: var(--thyuu--color-back-font);
  border-radius: 1px;
}

.moment-comment-item[data-comment-level="1"]:last-child::before,
.moment-comment-item[data-comment-level="2"]:last-child::before,
.moment-comment-item[data-comment-level="3"]:last-child::before {
  bottom: 50%;
}

/* ---------- F10. 文本域（quick-comment 状态） ---------- */
.moment-quick-comment .comment-form-comment {
  min-height: 4em;
  font-size: var(--thyuu--size-small, 0.75rem);
}

.moment-quick-comment .comment-form {
  gap: 0.25em;
}

.moment-quick-comment .comment-form-info label {
  height: 2.5em;
  font-size: var(--thyuu--size-small, 0.75rem);
}

.moment-quick-comment .form-submit button,
.moment-quick-comment button[type="submit"] {
  padding: 0.75em 1em;
  font-size: var(--thyuu--size-small, 0.75rem);
}

/* ---------- F11. Emoji 图标样式（fireside 使用 i 标签） ---------- */
.moment-comment .emoji-icon {
  scroll-snap-align: center;
  user-select: none;
  cursor: pointer;
  transition: 0.3s;
  font-style: normal;
  line-height: 1;
}

.moment-comment .emoji-icon:hover {
  scale: 1.2;
  filter: none;
}

.moment-comment .emoji-icon:active {
  scale: 1.1;
}

/* ==================================================================
   🔥 Fireside 补充 part 2：展开回复按钮 & 回复容器
   ================================================================== */

/* ---------- F12. thyuu-icon-bottom 图标字体 ---------- */
.thyuu-icon-bottom::before {
  font-family: 'thyuu-iconfont' !important;
}

/* ---------- F13. 展开/收起回复按钮 ---------- */
.toggle-replies-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.375em 0.75em;
  border: none;
  background: var(--thyuu--color-back-font);
  color: hsl(var(--thyuu--color-font, 0deg 0% 25%) / 0.6);
  font-size: var(--thyuu--size-small, 0.75rem);
  font-family: inherit;
  cursor: pointer;
  border-radius: min(var(--thyuu--size-radius, 1rem) * 2, 2em);
  transition: 0.3s;
  line-height: 1.5;
}

.toggle-replies-btn:hover {
  background: hsl(var(--thyuu--main-color, 205.43deg 96.33% 42.75%) / 0.1);
  color: hsl(var(--thyuu--main-color, 205.43deg 96.33% 42.75%));
}

/* ---------- F14. 评论操作区容器 ---------- */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
}

/* ---------- F15. 子级评论列表（回复容器） ---------- */
.moment-comment-item > ul.children {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- F16. reply-item 嵌套回复条目 ---------- */
.moment-comment-item.reply-item {
  /* 样式由 moment-comment-item[data-comment-level] 处理，仅修正默认 ul 间距 */
}

/* ---------- F17. 回复中的头像尺寸 ---------- */
.moment-comment-item .avatar.avatar-50 {
  --avatar-size: 2.5em;
  width: var(--avatar-size);
  height: var(--avatar-size);
}
