/* ============================================
   rest-room.css — 休憩室共用样式
   v=20260716
   暗色星空主题，金色点缀
   ============================================ */
/* ============================================
   1. 休憩室主页面导航卡片 (4大板块)
   ============================================ */
.rest-nav {
  max-width: var(--content-width, 1200px);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.rest-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .rest-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .rest-nav-grid {
    grid-template-columns: 1fr;
  }
}
.rest-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: var(--card-bg, rgba(15, 31, 61, 0.6));
  border: 1px solid var(--card-border, rgba(107, 91, 149, 0.2));
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.rest-nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 201, 106, 0.06), transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.rest-nav-card:hover {
  transform: translateY(-6px);
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 12px 40px rgba(232, 201, 106, 0.12);
}
.rest-nav-card:hover::before {
  opacity: 1;
}
.rest-nav-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: var(--soft-gold, #e8c96a);
  text-shadow: 0 0 12px rgba(232, 201, 106, 0.2);
  transition: transform 0.3s ease;
}
.rest-nav-card:hover .rest-nav-icon {
  transform: scale(1.15);
}
.rest-nav-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--soft-gold, #e8c96a);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px rgba(232, 201, 106, 0.15);
}
.rest-nav-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #6b6080);
  line-height: 1.7;
  font-weight: 300;
}
/* ============================================
   2. Tag 筛选栏 (横排标签按钮)
   ============================================ */
.rest-tag-bar {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}
.rest-tag-btn {
  background: transparent;
  border: 1px solid var(--card-border, rgba(107, 91, 149, 0.2));
  color: var(--text-muted, #6b6080);
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  padding: 0.45rem 1.3rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  letter-spacing: 0.08em;
}
.rest-tag-btn:hover {
  border-color: var(--soft-gold, #e8c96a);
  color: var(--soft-gold, #e8c96a);
  background: rgba(232, 201, 106, 0.05);
}
.rest-tag-btn.active {
  border-color: var(--soft-gold, #e8c96a);
  color: var(--soft-gold, #e8c96a);
  background: rgba(232, 201, 106, 0.12);
  box-shadow: 0 0 12px rgba(232, 201, 106, 0.15);
  text-shadow: 0 0 6px rgba(232, 201, 106, 0.2);
}
/* ══ 标签选择器（下拉式） ══ */
.rest-tag-selector-wrap {
  margin-bottom: 0.5rem;
}
.rest-tag-select {
  width: 100%;
  min-height: 80px;
  padding: 0.4rem;
  border: 1px solid rgba(232, 201, 106, 0.2);
  border-radius: 6px;
  background: rgba(10, 18, 40, 0.5);
  color: #e8c96a;
  font-size: 0.85rem;
  font-family: inherit;
}
.rest-tag-select option {
  padding: 0.3rem 0.4rem;
  background: rgba(10, 18, 40, 0.8);
}
.rest-tag-select option:checked {
  background: rgba(232, 201, 106, 0.15);
  color: #e8c96a;
}
/* ============================================
   3. 文本编辑器格式栏 (参考 nemo)
   ============================================ */
.rest-format-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.6rem 0;
}
.rest-format-row select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 201, 106, 0.22);
  color: var(--text-secondary, #a898c0);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
  font-size: 0.82rem;
}
.rest-format-btn {
  background: transparent;
  border: 1px solid rgba(232, 201, 106, 0.2);
  color: var(--soft-gold, #e8c96a);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.4;
  min-width: 32px;
  text-align: center;
}
.rest-format-btn:hover {
  background: rgba(232, 201, 106, 0.1);
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 8px rgba(232, 201, 106, 0.15);
}
.rest-format-btn.active {
  background: rgba(232, 201, 106, 0.18);
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 10px rgba(232, 201, 106, 0.2);
}
.rest-format-btn.is-bold {
  font-weight: 700;
}
.rest-format-btn.is-underline {
  text-decoration: underline;
}
.rest-format-btn.is-spoiler {
  background: rgba(232, 201, 106, 0.12);
  color: transparent;
  text-shadow: none;
  position: relative;
}
.rest-format-btn.is-spoiler::after {
  content: 'S';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 201, 106, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
/* Format divider */
.rest-format-divider {
  width: 1px;
  height: 20px;
  background: rgba(232, 201, 106, 0.15);
  margin: 0 0.2rem;
}
/* ============================================
   4. 编辑器输入框 (textarea)
   ============================================ */
.rest-editor-textarea {
  width: 100%;
  min-height: 180px;
  padding: 0.9rem 1rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1.5px solid rgba(232, 201, 106, 0.25);
  border-radius: 10px;
  color: var(--text-primary, #e8e0f0);
  font-family: 'Noto Sans SC', 'Noto Serif SC', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rest-editor-textarea:focus {
  outline: none;
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 16px rgba(232, 201, 106, 0.1);
}
.rest-editor-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
/* ============================================
   5. 动态卡片列表
   ============================================ */
.rest-card-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.rest-card-item {
  position: relative;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  background: var(--card-bg, rgba(15, 31, 61, 0.6));
  border: 1px solid var(--card-border, rgba(107, 91, 149, 0.2));
  border-radius: 10px;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
.rest-card-item:hover {
  border-color: rgba(232, 201, 106, 0.2);
  box-shadow: 0 4px 20px rgba(232, 201, 106, 0.08);
}
.rest-card-index {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 201, 106, 0.12);
  border: 1px solid rgba(232, 201, 106, 0.2);
  border-radius: 6px;
  color: var(--soft-gold, #e8c96a);
  font-size: 0.78rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
}
.rest-card-time {
  font-size: 0.72rem;
  color: var(--text-muted, #6b6080);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.rest-card-content {
  font-size: 0.9rem;
  color: var(--text-secondary, #a898c0);
  line-height: 1.8;
  white-space: pre-wrap;
}
.rest-card-edit-btn {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: transparent;
  border: 1px solid rgba(232, 201, 106, 0.2);
  color: var(--soft-gold, #e8c96a);
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.05em;
}
.rest-card-edit-btn:hover {
  background: rgba(232, 201, 106, 0.1);
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 8px rgba(232, 201, 106, 0.12);
}
/* ============================================
   6. 拖拽排序按钮 (↑↓箭头)
   ============================================ */
.rest-order-btns {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rest-order-btn {
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(232, 201, 106, 0.15);
  color: var(--soft-gold, #e8c96a);
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}
.rest-order-btn:hover {
  background: rgba(232, 201, 106, 0.12);
  border-color: rgba(232, 201, 106, 0.35);
}
.rest-order-btn:active {
  background: rgba(232, 201, 106, 0.2);
}
.rest-order-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
/* ============================================
   7. Paro 系列折叠面板 (collapse panels)
   ============================================ */
/* ============================================
   8. QA 问答模块卡片
   ============================================ */
/* ══ 展开面板内问答网格卡片 ══ */
.rest-qa-post-grid {
  padding: 1rem 0;
}
.rest-qa-grid-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(232, 201, 106, 0.15);
  border-radius: 10px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
}
.rest-qa-grid-card:hover {
  border-color: rgba(232, 201, 106, 0.3);
}
.rest-qa-card-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: rgba(232, 201, 106, 0.5);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}
.rest-qa-card-question {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: var(--soft-gold, #e8c96a);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232, 201, 106, 0.1);
  line-height: 1.6;
}
.rest-qa-card-answers {
  font-size: 0.85rem;
  color: var(--text-secondary, #a898c0);
  line-height: 1.8;
  font-weight: 300;
}
.rest-qa-card-answers p {
  margin-bottom: 0.3rem;
}
.rest-qa-answer-line {
  margin-bottom: 0.2rem;
}
.rest-qa-grid-card .rest-post-time {
  font-size: 0.7rem;
  color: rgba(232, 201, 106, 0.3);
  text-align: right;
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(232, 201, 106, 0.06);
}
.rest-qa-grid-card .rest-post-ctrl {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.3rem;
  justify-content: center;
}
/* ============================================
   9. 杂物间相册网格
   ============================================ */
.rest-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  max-width: var(--content-width, 1200px);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 540px) {
  .rest-album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 1rem;
  }
}
.rest-album-item {
  border: 1px solid var(--card-border, rgba(107, 91, 149, 0.2));
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
  background: var(--card-bg, rgba(15, 31, 61, 0.6));
}
.rest-album-item:hover {
  border-color: rgba(232, 201, 106, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 201, 106, 0.08);
}
.rest-album-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(232, 201, 106, 0.05), rgba(38, 67, 102, 0.1));
}
.rest-album-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 201, 106, 0.05), rgba(38, 67, 102, 0.1));
  color: rgba(232, 201, 106, 0.2);
  font-size: 2rem;
}
.rest-album-caption {
  padding: 0.5rem 0.8rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted, #6b6080);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
/* ============================================
   10. 防剧透文字样式
   ============================================ */
.rest-spoiler {
  color: transparent;
  background: rgba(232, 201, 106, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
  padding: 0 0.15em;
  user-select: none;
}
.rest-spoiler:hover,
.rest-spoiler.revealed {
  color: var(--text-secondary, #a898c0);
  background: rgba(232, 201, 106, 0.06);
  user-select: auto;
}
/* ══ 相册展开图片网格 ══ */
.rest-album-image-grid {
  max-width: 100%;
}
.rest-album-image-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 201, 106, 0.1);
  background: rgba(10, 18, 40, 0.3);
  transition: border-color 0.2s;
}
.rest-album-image-card img {
  width: 100%;
  display: block;
  aspect-ratio: auto;
  max-height: 300px;
  object-fit: contain;
  background: rgba(10, 18, 40, 0.3);
}
.rest-album-image-card:hover {
  border-color: rgba(232, 201, 106, 0.3) !important;
}
.rest-album-img-info {
  padding: 0.5rem;
}
.rest-album-img-time {
  font-size: 0.75rem;
  color: rgba(232, 201, 106, 0.45);
  text-align: center;
  margin-bottom: 0.3rem;
}
.rest-album-img-text {
  font-size: 0.8rem;
  color: var(--soft-gold, #e8c96a);
  opacity: 0.85;
  text-align: center;
  line-height: 1.6;
  white-space: pre-wrap;
  transition: max-height 0.3s ease;
  max-height: 1.6em;
  overflow: hidden;
  position: relative;
}
.rest-album-img-text.collapsed {
  max-height: 1.6em;
}
.rest-album-img-text:not(.collapsed) {
  max-height: 800px;
}
.rest-album-text-toggle {
  display: block;
  font-size: 0.7rem;
  color: rgba(232, 201, 106, 0.35);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  text-align: center;
  margin-top: 0.2rem;
}
.rest-album-text-toggle:hover {
  opacity: 1;
}
.rest-album-text-toggle::before {
  content: '▼ ';
  font-size: 0.6rem;
}
.rest-album-img-text:not(.collapsed) + .rest-album-text-toggle::before {
  content: '▲ ';
}
/* ============================================
   11. 表单弹层 (添加/编辑弹窗)
   ============================================ */
.rest-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.rest-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.rest-modal {
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(10, 22, 40, 0.97);
  border: 1.5px solid rgba(232, 201, 106, 0.25);
  border-radius: 16px;
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  box-shadow:
    0 0 40px rgba(232, 201, 106, 0.08),
    0 0 80px rgba(0, 0, 0, 0.4);
  animation: restModalIn 0.3s ease-out;
}
@keyframes restModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.rest-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(232, 201, 106, 0.2);
  color: var(--soft-gold, #e8c96a);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  padding: 0;
}
.rest-modal-close:hover {
  background: rgba(232, 201, 106, 0.1);
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 10px rgba(232, 201, 106, 0.15);
}
.rest-modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--soft-gold, #e8c96a);
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 8px rgba(232, 201, 106, 0.15);
}
.rest-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.rest-modal-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary, #a898c0);
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}
.rest-modal-field input,
.rest-modal-field textarea,
.rest-modal-field select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 201, 106, 0.18);
  border-radius: 8px;
  color: var(--text-primary, #e8e0f0);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.rest-modal-field input:focus,
.rest-modal-field textarea:focus,
.rest-modal-field select:focus {
  outline: none;
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 10px rgba(232, 201, 106, 0.08);
}
.rest-modal-field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}
.rest-modal-field input::placeholder,
.rest-modal-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.rest-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.rest-modal-btn {
  padding: 0.55rem 1.8rem;
  background: transparent;
  border: 1.5px solid rgba(232, 201, 106, 0.3);
  color: var(--soft-gold, #e8c96a);
  font-family: 'Noto Serif SC', serif;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.08em;
}
.rest-modal-btn:hover {
  background: rgba(232, 201, 106, 0.1);
  border-color: var(--soft-gold, #e8c96a);
  box-shadow: 0 0 12px rgba(232, 201, 106, 0.15);
}
.rest-modal-btn.primary {
  background: rgba(232, 201, 106, 0.12);
  border-color: var(--soft-gold, #e8c96a);
}
.rest-modal-btn.primary:hover {
  background: rgba(232, 201, 106, 0.2);
}
.rest-modal-btn.cancel {
  color: var(--text-muted, #6b6080);
  border-color: rgba(255, 255, 255, 0.1);
}
.rest-modal-btn.cancel:hover {
  color: var(--text-secondary, #a898c0);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
/* Modal scrollbar */
.rest-modal::-webkit-scrollbar {
  width: 4px;
}
.rest-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.rest-modal::-webkit-scrollbar-thumb {
  background: rgba(232, 201, 106, 0.2);
  border-radius: 4px;
}
.rest-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 201, 106, 0.35);
}
/* ============================================
   12. 通用变量引用 (已通过 var() 分布式引用)
       色调跟随暗色星空主题:
         --soft-gold:  #e8c96a
         --text-muted: #6b6080
         --text-secondary: #a898c0
         --text-primary: #e8e0f0
         --card-bg: rgba(15, 31, 61, 0.6)
         --card-border: rgba(107, 91, 149, 0.2)
   ============================================ */
/* 响应式微调 */
@media (max-width: 768px) {
  .rest-nav {
    padding: 0 1rem 2rem;
  }
  .rest-editor-textarea {
    min-height: 140px;
    font-size: 0.85rem;
  }
  .rest-modal {
    padding: 1.5rem 1.2rem 1.2rem;
  }
  .rest-modal-title {
    font-size: 1.05rem;
  }
  .rest-card-item {
    padding: 1rem 1rem 1rem 3.2rem;
  }
  .rest-card-edit-btn {
    position: static;
    margin-top: 0.6rem;
    display: inline-block;
  }
  .rest-order-btns {
    position: static;
    flex-direction: row;
    gap: 0.3rem;
    margin-top: 0.5rem;
  }
  .rest-order-btn {
    width: 28px;
    height: 24px;
  }
}
@media (max-width: 480px) {
  .rest-nav-card {
    padding: 1.6rem 1rem;
  }
  .rest-nav-icon {
    font-size: 2rem;
  }
  .rest-nav-title {
    font-size: 1rem;
  }
  .rest-format-row {
    gap: 0.35rem;
  }
  .rest-format-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
  }
}
/* ── 页面标题 ── */
.page-header {
  text-align: center;
  padding: 6rem 1.5rem 1rem;
}
.page-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  color: var(--soft-gold, #e8c96a);
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(232, 201, 106, 0.2);
}
.page-subtitle {
  color: var(--soft-gold, #e8c96a);
  opacity: 0.7;
  font-size: 0.9rem;
}
/* ── 所有管理控件默认隐藏，仅 admin-mode 显示 ── */
.rest-admin-bar,
.rest-paro-series-ctrl,
.rest-post-ctrl,
.rest-post-add-inline,
.rest-album-ctrl,
.rest-series-ctrl,
.rest-btn-sm.rest-btn-del,
[data-action="edit"],
[data-action="delete"],
[data-action="move-up"],
[data-action="move-down"],
[data-action="edit-series"],
[data-action="del-series"],
[data-action="edit-post"],
[data-action="del-post"],
[data-action="edit-image"],
[data-action="del-image"],
[data-action="edit-album"],
[data-action="del-album"],
[data-action="add-image"],
[data-action="add-post"] {
  display: none !important;
}
body.admin-mode .rest-admin-bar,
body.admin-mode .rest-paro-series-ctrl,
body.admin-mode .rest-post-ctrl,
body.admin-mode .rest-post-add-inline,
body.admin-mode .rest-album-ctrl,
body.admin-mode .rest-series-ctrl,
body.admin-mode .rest-btn-sm.rest-btn-del,
body.admin-mode [data-action="edit"],
body.admin-mode [data-action="delete"],
body.admin-mode [data-action="move-up"],
body.admin-mode [data-action="move-down"],
body.admin-mode [data-action="edit-series"],
body.admin-mode [data-action="del-series"],
body.admin-mode [data-action="edit-post"],
body.admin-mode [data-action="del-post"],
body.admin-mode [data-action="edit-image"],
body.admin-mode [data-action="del-image"],
body.admin-mode [data-action="edit-album"],
body.admin-mode [data-action="del-album"],
body.admin-mode [data-action="add-image"],
body.admin-mode [data-action="add-post"] {
  display: inline-block !important;
}
/* ── 新版动态卡片（2026-07-16 redesign） ── */
/* 编号在上方，日期右下，内容居中，全部金色 */
.rest-post-card {
  border: 1px solid rgba(232, 201, 106, 0.12);
  border-radius: 10px;
  background: rgba(10, 18, 40, 0.35);
  backdrop-filter: blur(2px);
  padding: 1.2rem 1.2rem 0.8rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.2s;
}
.rest-post-card:hover {
  border-color: rgba(232, 201, 106, 0.25);
}
/* 编号：顶部大号，无#，居中 */
.rest-post-num {
  display: block;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--soft-gold, #e8c96a);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  font-family: 'Noto Serif SC', serif;
}
/* 标题 */
.rest-post-title {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: rgba(232, 201, 106, 0.7);
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}
/* 日期：右下角 */
.rest-post-time {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--soft-gold, #e8c96a);
  opacity: 0.45;
  margin-top: 0.3rem;
}
/* 内容体：居中 */
.rest-post-body {
  text-align: center;
}
.rest-post-body .rest-post-para,
.rest-editor-preview-content .rest-preview-para {
  margin: 0;
  line-height: 1.7;
  color: var(--soft-gold, #e8c96a);
}
.rest-post-body .rest-post-img {
  max-width: 100%;
  border-radius: 6px;
  margin: 0.5rem auto;
  display: block;
}
/* 标签徽章 */
.rest-post-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(232, 201, 106, 0.15);
  color: var(--soft-gold, #e8c96a);
  opacity: 0.6;
  margin: 0.15rem;
}
/* 管理按钮 */
.rest-post-ctrl {
  text-align: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232, 201, 106, 0.15);
}
.rest-post-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(232, 201, 106, 0.2);
  background: rgba(0,0,0,0.3);
  color: var(--soft-gold, #e8c96a);
  transition: all 0.2s;
  margin: 0 0.2rem;
  font-family: inherit;
}
.rest-post-btn:hover {
  background: rgba(232, 201, 106, 0.1);
  border-color: rgba(232, 201, 106, 0.4);
}
.rest-post-btn-del {
  border-color: rgba(200, 80, 80, 0.3);
  color: #d68a8a;
}
.rest-post-btn-del:hover {
  border-color: rgba(200, 80, 80, 0.5);
  background: rgba(200, 80, 80, 0.1);
}
/* 空状态 */
.rest-empty-state {
  text-align: center;
  color: var(--soft-gold, #e8c96a);
  opacity: 0.35;
  padding: 2rem 0;
  font-size: 0.9rem;
}
/* 管理员添加行 */
.rest-post-add-inline {
  text-align: center;
  padding: 1rem 0;
}
.rest-post-add-inline .rest-btn {
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px dashed rgba(232, 201, 106, 0.3);
  background: rgba(0,0,0,0.2);
  color: var(--soft-gold, #e8c96a);
  transition: all 0.2s;
  font-family: inherit;
}
.rest-post-add-inline .rest-btn:hover {
  background: rgba(232, 201, 106, 0.06);
  border-color: rgba(232, 201, 106, 0.4);
}
/* ── 系列标题居中 ── */
.rest-paro-series-title {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--soft-gold, #e8c96a);
  margin: 0.5rem 0;
  letter-spacing: 0.15em;
}
.rest-paro-series-desc {
  text-align: center;
  font-size: 0.8rem;
  color: var(--soft-gold, #e8c96a);
  opacity: 0.55;
}
/* ── 页面标题居中金色 ── */
.page-header {
  text-align: center;
  padding: 6rem 1.5rem 1rem;
}
.page-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  color: var(--soft-gold, #e8c96a);
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(232, 201, 106, 0.2);
}
.page-subtitle {
  color: var(--soft-gold, #e8c96a);
  opacity: 0.7;
  font-size: 0.9rem;
}
/* ── 闲谈列表居中 ── */
.rest-talk-list {
  max-width: 700px;
  margin: 0 auto;
}
/* 闲谈容器 */
#talkContainer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* 闲谈排序栏 */
#talkSortBar {
  text-align: center;
  padding: 0.5rem 0 0.5rem;
}
/* 查看更多 */
#talkLoadMore {
  text-align: center;
  padding: 1.5rem 0 2rem;
}
/* ── 通用按钮（用于系列管理栏） ── */
.rest-btn {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(232, 201, 106, 0.2);
  background: transparent;
  color: var(--soft-gold, #e8c96a);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
}
.rest-btn:hover {
  background: rgba(232, 201, 106, 0.08);
  border-color: rgba(232, 201, 106, 0.4);
}
.rest-btn-primary {
  background: rgba(232, 201, 106, 0.12);
  border-color: rgba(232, 201, 106, 0.3);
}
.rest-btn-primary:hover {
  background: rgba(232, 201, 106, 0.2);
}
.rest-btn-ghost {
  border-style: dashed;
  opacity: 0.6;
}
.rest-btn-ghost:hover {
  opacity: 1;
}
.rest-btn-sm {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}
.rest-btn-del {
  border-color: rgba(200, 80, 80, 0.3);
  color: #d68a8a;
}
.rest-btn-del:hover {
  border-color: rgba(200, 80, 80, 0.5);
  background: rgba(200, 80, 80, 0.1);
}
/* ── 系列管理按钮行 ── */
.rest-paro-series-ctrl {
  text-align: center;
  margin-top: 0.5rem;
}
/* ── 管理员栏 ── */
.rest-admin-bar {
  text-align: center;
  padding: 1.5rem 0 2rem;
  display: none;
}
body.admin-mode .rest-admin-bar {
  display: block;
}
/* ── 漫画风格系列卡片 ── */
.rest-series-grid {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.rest-series-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0;
}
.rest-series-card {
  flex: 1;
  min-width: 0;
  max-width: 300px;
}
@media (max-width: 768px) {
  .rest-series-row {
    flex-wrap: wrap;
  }
  .rest-series-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 180px;
  }
}
@media (max-width: 480px) {
  .rest-series-card {
    flex: 1 1 100%;
  }
}
.rest-series-card {
  border: 1px solid rgba(232, 201, 106, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 18, 40, 0.35);
  backdrop-filter: blur(2px);
  transition: border-color 0.2s;
  cursor: pointer;
}
.rest-series-card:hover {
  border-color: rgba(232, 201, 106, 0.3);
}
.rest-series-cover-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.rest-series-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rest-series-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-gold, #e8c96a);
  opacity: 0.2;
  font-size: 2rem;
}
.rest-series-info {
  padding: 0.7rem 0.9rem;
}
.rest-series-title {
  color: var(--soft-gold, #e8c96a);
  font-size: 1rem;
  margin: 0 0 0.3rem;
  font-family: 'Noto Serif SC', serif;
}
.rest-series-desc {
  color: var(--soft-gold, #e8c96a);
  opacity: 0.6;
  font-size: 0.78rem;
  margin: 0.2rem 0;
  line-height: 1.4;
}
.rest-series-tags {
  margin-top: 0.4rem;
}
.rest-series-ctrl {
  padding: 0.4rem 0.9rem 0.7rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(232, 201, 106, 0.06);
}
.rest-series-expanded {
  width: 100%;
  padding: 1.2rem;
  margin: 0.5rem 0 1rem;
  box-sizing: border-box;
  border: 1px solid rgba(232, 201, 106, 0.15);
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.rest-series-expanded .rest-post-card {
  margin-bottom: 0.6rem;
  width: 100%;
  box-sizing: border-box;
}
.rest-series-expanded .rest-post-card .rest-post-body {
  display: block;
}

/* ============================================
   13. 闲谈折叠卡片（点击展开/收起）
   ============================================ */
.talk-collapsible {
  position: relative;
  max-height: 170px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  margin-bottom: 1rem;
  border-radius: 10px;
}
.talk-collapsible.talk-expanded {
  max-height: 8000px;
  cursor: default;
}

/* 渐变遮罩 + 展开提示 */
.talk-expand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(rgba(10, 22, 40, 0), rgba(10, 22, 40, 0.92));
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}
.talk-expanded .talk-expand-overlay {
  opacity: 0;
}

.talk-expand-hint {
  font-size: 0.75rem;
  color: var(--soft-gold, #e8c96a);
  opacity: 0.4;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Noto Serif SC', serif;
}
.talk-collapsible:hover .talk-expand-hint {
  opacity: 0.7;
}
.talk-expanded .talk-expand-hint {
  display: none;
}

/* 拖拽/编辑按钮在折叠时也保持可点 */
.talk-collapsible .rest-post-ctrl {
  position: relative;
  z-index: 2;
}

/* 手机端：max-height 调小一些 */
@media (max-width: 480px) {
  .talk-collapsible {
    max-height: 150px;
  }
  .talk-expand-overlay {
    height: 60px;
  }
}

