@font-face {
  font-family: 'FashionBitmap';
  src: url('./fronts/FashionBitmap16_0.091.ttf') format('truetype'),
       url('./fronts/FashionBitmap16_0.091.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: fallback;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: #000000 !important;
  background-image: none !important;
  font-family: 'FashionBitmap', "STKaiti", "華康楷書體", "KaiTi", "楷体", sans-serif;
  color: #fff;
  min-height: 100vh;
  padding: 40px 20px;
  margin: 0;
  overflow-x: hidden;
}
/* 粒子背景动画 */
#particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background-color: transparent !important;
  position: relative;
  z-index: 2;
}

/* 返回按钮 - 增强动画 */
.back-btn {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(230, 33, 60, 0.5);
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 30px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}
.back-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}
.back-btn:hover {
  background: #e6213c;
  border-color: #e6213c;
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 20px rgba(230, 33, 60, 0.8);
}
.back-btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}
.back-btn br + span {
  font-size: calc(1rem - 2px) !important;
  opacity: 0.8;
}

/* 标题 - 呼吸动画 */
h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin-bottom: 8px;
  color: #e6213c !important;
  text-shadow: 0 0 10px rgba(230, 33, 60, 0.5);
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  line-height: 1.2;
  animation: breath 3s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { text-shadow: 0 0 10px rgba(230, 33, 60, 0.5); }
  50% { text-shadow: 0 0 20px rgba(230, 33, 60, 0.8), 0 0 30px rgba(230, 33, 60, 0.5); }
}
h1 br + span {
  font-size: calc(clamp(1.8rem, 6vw, 3rem) - 2px) !important;
  opacity: 0.8;
  display: block;
  margin-top: 5px;
}

/* 登录状态样式 - 完全对齐成员资讯页：无边框、仅红色文字、放在标题下方 */
.login-status {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: #e6213c;
  margin: 0 0 30px 0;
  display: block;
  border: none;
  background: none;
  padding: 0;
  font-family: 'FashionBitmap', sans-serif;
}

/* 新增：仅显示我的留言 勾选框样式 + 动画 */
.my-comment-toggle {
  display: none; /* 默认隐藏，登录后显示 */
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  animation: toggleFadeIn 0.5s ease forwards;
}
@keyframes toggleFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 自定义复选框样式 */
.toggle-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #e6213c;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.toggle-checkbox:checked {
  background: #e6213c;
  border-color: #e6213c;
}
.toggle-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: checkPulse 0.3s ease;
}
@keyframes checkPulse {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.toggle-checkbox:hover {
  border-color: #ff3355;
  box-shadow: 0 0 8px rgba(230, 33, 60, 0.3);
}
.toggle-label {
  font-size: 0.9rem;
  color: #fff;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}
.toggle-checkbox:hover + .toggle-label {
  color: #e6213c;
  text-shadow: 0 0 5px rgba(230, 33, 60, 0.3);
}

/* 自定义下拉排序菜单 - 核心修改 */
.sort-container {
  text-align: right;
  margin-bottom: 15px;
  position: relative;
  width: fit-content;
  margin-left: auto;
}
/* 下拉按钮样式 */
.sort-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid #e6213c;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  justify-content: space-between;
}
.sort-btn:hover {
  background: rgba(230, 33, 60, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 33, 60, 0.2);
}
.sort-arrow {
  transition: transform 0.3s ease;
}
.sort-arrow.active {
  transform: rotate(180deg);
}
/* 下拉选项列表 */
.sort-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 200px;
  background: rgba(0,0,0,0.9);
  border: 1px solid #e6213c;
  border-radius: 8px;
  list-style: none;
  padding: 5px 0;
  display: none;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sort-options.active {
  display: block;
}
.sort-option {
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.sort-option:hover {
  background: rgba(230, 33, 60, 0.3);
  transform: translateX(5px);
}
.sort-option.active {
  color: #e6213c;
  background: rgba(230, 33, 60, 0.2);
}

/* 主容器：留言展示+提交区 */
.comment-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  align-items: start;
}

/* 留言展示区（大板块）- 发光边框动画 */
.comment-list-section {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(230, 33, 60, 0.3);
  border-radius: 15px;
  padding: 25px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}
.comment-list-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 15px;
  background: linear-gradient(45deg, #e6213c, transparent, #e6213c) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: borderGlow 3s linear infinite;
  pointer-events: none;
}
@keyframes borderGlow {
  0% { background-position: 0 0; }
  100% { background-position: 200% 200%; }
}
.list-title {
  font-size: 1.5rem;
  color: #e6213c;
  margin-bottom: 20px;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
}
.list-jp {
  font-size: calc(1.5rem - 2px) !important;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-top: 3px;
}

/* 留言项样式 - 新增动画、移除用户信息展示 */
.comment-item {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(230, 33, 60, 0.4);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: commentFadeIn 0.5s ease forwards;
}
/* 留言项渐入动画（错开延迟） */
@keyframes commentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 置顶标签样式 */
.comment-item.sticky {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}
.sticky-tag {
  position: absolute;
  top: -10px;
  right: 15px;
  background: #ffd700;
  color: #000;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  animation: tagBounce 2s ease infinite;
}
@keyframes tagBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
/* 新增：用户昵称样式 */
.comment-nickname {
  font-size: 0.9rem;
  color: #ff9900;
  margin-right: 10px;
  font-weight: bold;
}
.comment-time {
  font-size: 0.8rem;
  color: rgba(230, 33, 60, 0.8);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.comment-content {
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 10px;
}
/* 点赞按钮样式 - 移除日语翻译 + 悬停动画 */
.like-btn {
  background: transparent;
  border: 1px solid #e6213c;
  color: #e6213c;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}
.like-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 33, 60, 0.2), transparent);
  transition: left 0.5s ease;
}
.like-btn:hover:not(:disabled)::before {
  left: 100%;
}
.like-btn:disabled {
  border-color: #999;
  color: #999;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
}
.like-btn:hover:not(:disabled) {
  background: #e6213c;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(230, 33, 60, 0.5);
}
.like-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}
.like-btn:hover:not(:disabled) .like-icon {
  transform: scale(1.2);
}
.like-btn.liked {
background: #e6213c;
color: #fff;
border-color: #e6213c;
}

.like-btn.liked .like-icon {
transform: scale(1.1);
}
.no-comment {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  margin-top: 50px;
}

/* 偶像回复样式 - 仅回复时显示 */
.reply-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(230, 33, 60, 0.3);
  display: none; /* 默认隐藏 */
}
.reply-section.active {
  display: block;
  animation: replyFadeIn 0.5s ease forwards;
}
@keyframes replyFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.reply-title {
  font-size: 0.9rem;
  color: #e6213c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.reply-title::before {
  content: '💬';
  font-size: 1rem;
}
.reply-item {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 5px;
}
.reply-idol {
  font-weight: bold;
  margin-right: 8px;
  display: inline-block;
}
.reply-content {
  font-size: 0.9rem;
  line-height: 1.5;
}
.reply-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 5px;
  display: block;
}

/* 翻页控件 - 按钮动画 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.page-btn {
  padding: 8px 15px;
  background: rgba(255,255,255,0.1);
  border: 1px solid #e6213c;
  border-radius: 8px;
  color: #fff;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-btn:hover:not(:disabled) {
  background: #e6213c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 33, 60, 0.2);
}
.page-input {
  width: 60px;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid #e6213c;
  border-radius: 8px;
  color: #fff;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  text-align: center;
}
.page-info {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* 提交区（小板块）- 悬浮动画 */
.comment-submit-section {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(230, 33, 60, 0.3);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.5s ease;
}
.comment-submit-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(230, 33, 60, 0.2);
  border-color: rgba(230, 33, 60, 0.5);
}
.submit-btn {
  width: 100%;
  padding: 15px 10px;
  background: rgba(230, 33, 60, 0.2);
  border: 2px solid #e6213c;
  border-radius: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.submit-btn:hover {
  background: #e6213c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 33, 60, 0.4);
}
.submit-btn:hover::before {
  transform: translateY(0);
}

/* 弹窗样式 - 动画 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.modal-content {
  background: #000;
  border: 2px solid #e6213c;
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}
.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}
.modal-title {
  font-size: 1.4rem;
  color: #e6213c;
  margin-bottom: 20px;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  animation: breath 2s ease-in-out infinite;
}
.comment-textarea {
  width: 100%;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #e6213c;
  border-radius: 10px;
  color: #fff;
  padding: 15px;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  font-size: 1rem;
  resize: none;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}
.comment-textarea:focus {
  outline: none;
  border-color: #ff3355;
  box-shadow: 0 0 10px rgba(230, 33, 60, 0.3);
}
.char-count {
  text-align: right;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.modal-btn-group {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.modal-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cancel-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.confirm-btn {
  background: #e6213c;
  border: 1px solid #e6213c;
  color: #fff;
}
.modal-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 提示框 - 动画 */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.9);
  border: 1px solid #e6213c;
  border-radius: 8px;
  padding: 10px 20px;
  color: #fff;
  font-family: 'FashionBitmap', "STKaiti", "楷体", sans-serif;
  display: none;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.active {
  display: block;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
  body {
    padding: 30px 15px;
  }
  .comment-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .comment-list-section {
    min-height: 400px;
    padding: 20px 15px;
  }
  .comment-submit-section {
    padding: 15px;
  }
  .modal-content {
    padding: 20px 15px;
  }
  h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
  .sort-btn, .sort-options {
    width: 100%;
  }
  .my-comment-toggle {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .comment-list-section {
    min-height: 300px;
  }
  .submit-btn {
    padding: 12px 8px;
    font-size: 1rem;
  }
  .pagination {
    flex-wrap: wrap;
  }
}