/* ===== 字体回退：全站统一宋体气质，避免 FOIT 白屏 ===== */
@font-face {
  font-family: "Noto Serif SC";
  font-display: swap;
  src: local("Noto Serif SC"), local("NotoSerifSC"), local("Songti SC"), local("SimSun");
}

/* ===== 全局基础样式：白色、嫩芽绿与浅柠绿主题 ===== */
:root {
  --brand: #B1D850;
  --brand-dark: #58770F;
  --brand-deep: #33460A;
  --brand-light: #C4E494;
  --bg-page: #FBFFF7;
  --bg-card: #FFFFFF;
  --bg-sub: #E0EABB;
  --ink-primary: #24310E;
  --ink-secondary: #637338;
  --ink-tertiary: #9AAA70;
  --like: #C4E494;
  --danger: #B87272;
  --success: #B1D850;
  --link: #78A817;
  --leaf: #E0EABB;
  --lime-glow: rgba(177, 216, 80, 0.22);
}

html,
body {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(224, 234, 187, 0.72) 0, transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.96) 0, transparent 26%),
    radial-gradient(circle at 78% 92%, rgba(196, 228, 148, 0.32) 0, transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fbfff4 38%, #f1f9dc 100%);
  background-attachment: fixed;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 36vw;
  height: 36vw;
  min-width: 320px;
  min-height: 320px;
  right: -12vw;
  top: 8vh;
  border-radius: 50%;
  border: 1px solid rgba(177, 216, 80, 0.22);
  box-shadow:
    0 0 0 28px rgba(224, 234, 187, 0.16),
    0 0 0 58px rgba(196, 228, 148, 0.10),
    0 0 0 96px rgba(177, 216, 80, 0.06);
}

body::after {
  left: 2vw;
  bottom: 10vh;
  width: 210px;
  height: 260px;
  opacity: 0.24;
  background:
    radial-gradient(ellipse at 45% 18%, rgba(177, 216, 80, 0.28) 0 16%, transparent 17%),
    radial-gradient(ellipse at 26% 38%, rgba(196, 228, 148, 0.24) 0 13%, transparent 14%),
    radial-gradient(ellipse at 67% 46%, rgba(224, 234, 187, 0.26) 0 15%, transparent 16%),
    linear-gradient(90deg, transparent 49%, rgba(88, 119, 15, 0.18) 50% 51%, transparent 52%);
  filter: blur(0.2px);
}

/* ===== 可复用文艺剪影：不依赖图片资源 ===== */
.literary-silhouette {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.silhouette-ripple {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  border: 1px solid rgba(177, 216, 80, 0.24);
  box-shadow:
    0 0 0 16px rgba(224, 234, 187, 0.22),
    0 0 0 38px rgba(196, 228, 148, 0.16),
    0 0 0 70px rgba(177, 216, 80, 0.08);
}
.silhouette-ripple::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: inherit;
  border: 1px dashed rgba(88, 119, 15, 0.18);
}

/* 龟背竹：大叶、裂纹、叶脉 */
.silhouette-monstera {
  width: 188px;
  height: 230px;
  opacity: 0.34;
  filter: drop-shadow(0 18px 26px rgba(88, 119, 15, 0.08));
}
.silhouette-monstera::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 12px;
  width: 126px;
  height: 158px;
  border-radius: 58% 42% 54% 46% / 42% 48% 52% 58%;
  background:
    radial-gradient(circle at 18% 28%, transparent 0 9px, rgba(88, 119, 15, 0.18) 10px 100%),
    radial-gradient(circle at 85% 34%, transparent 0 10px, rgba(88, 119, 15, 0.18) 11px 100%),
    radial-gradient(circle at 24% 58%, transparent 0 8px, rgba(88, 119, 15, 0.16) 9px 100%),
    linear-gradient(98deg, transparent 48%, rgba(255, 255, 255, 0.34) 49% 51%, transparent 52%),
    rgba(88, 119, 15, 0.18);
  clip-path: polygon(50% 0, 66% 10%, 82% 7%, 90% 24%, 100% 39%, 87% 49%, 94% 65%, 75% 70%, 71% 91%, 50% 82%, 28% 95%, 25% 72%, 6% 66%, 15% 48%, 0 36%, 17% 25%, 18% 8%, 35% 13%);
}
.silhouette-monstera::after {
  content: "";
  position: absolute;
  left: 88px;
  top: 154px;
  width: 3px;
  height: 82px;
  border-radius: 999px;
  background: rgba(88, 119, 15, 0.24);
  transform: rotate(8deg);
  transform-origin: top;
}

/* 鸢尾花：三瓣花形与细长叶 */
.silhouette-iris {
  width: 170px;
  height: 220px;
  opacity: 0.32;
}
.silhouette-iris::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 12px;
  width: 72px;
  height: 82px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(88, 119, 15, 0.22) 0 28%, transparent 29%),
    radial-gradient(ellipse at 22% 70%, rgba(177, 216, 80, 0.24) 0 30%, transparent 31%),
    radial-gradient(ellipse at 78% 70%, rgba(196, 228, 148, 0.26) 0 30%, transparent 31%);
  filter: blur(0.1px);
}
.silhouette-iris::after {
  content: "";
  position: absolute;
  inset: 78px 30px 0;
  background:
    linear-gradient(83deg, transparent 47%, rgba(88, 119, 15, 0.18) 48% 51%, transparent 52%),
    linear-gradient(24deg, transparent 53%, rgba(88, 119, 15, 0.16) 54% 57%, transparent 58%),
    linear-gradient(148deg, transparent 52%, rgba(88, 119, 15, 0.14) 53% 56%, transparent 57%);
  clip-path: polygon(50% 0, 60% 100%, 51% 100%, 49% 22%, 34% 100%, 25% 100%, 45% 3%);
}

/* 矢车菊：齿状花瓣与纤细花茎 */
.silhouette-cornflower {
  width: 150px;
  height: 205px;
  opacity: 0.30;
}
.silhouette-cornflower::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 20px;
  width: 72px;
  height: 72px;
  background: rgba(88, 119, 15, 0.18);
  clip-path: polygon(50% 0, 58% 25%, 82% 9%, 74% 36%, 100% 42%, 75% 53%, 90% 78%, 62% 68%, 50% 100%, 38% 68%, 10% 78%, 25% 53%, 0 42%, 26% 36%, 18% 9%, 42% 25%);
  border-radius: 50%;
}
.silhouette-cornflower::after {
  content: "";
  position: absolute;
  left: 78px;
  top: 88px;
  width: 3px;
  height: 108px;
  border-radius: 999px;
  background: rgba(88, 119, 15, 0.20);
  box-shadow:
    -28px 42px 0 -1px rgba(177, 216, 80, 0.18),
    22px 58px 0 -1px rgba(196, 228, 148, 0.18);
}

.silhouette-bird {
  width: 118px;
  height: 54px;
  opacity: 0.72;
  filter: drop-shadow(0 8px 18px rgba(88, 119, 15, 0.12));
}
.silhouette-bird::before,
.silhouette-bird::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 64px;
  height: 30px;
  border-top: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50% 50% 0 0;
}
.silhouette-bird::before {
  right: 50%;
  transform: rotate(-12deg);
}
.silhouette-bird::after {
  left: 50%;
  transform: rotate(12deg);
}
.silhouette-note {
  width: 72px;
  height: 100px;
  opacity: 0.34;
  color: rgba(88, 119, 15, 0.42);
}
.silhouette-note::before {
  content: "♪";
  position: absolute;
  inset: 0;
  font-family: Georgia, serif;
  font-size: 92px;
  line-height: 1;
}
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}
.module-entry {
  isolation: isolate;
}
.module-entry::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.70), transparent 42%, rgba(224, 234, 187, 0.18));
  opacity: 0.72;
  transition: opacity 0.28s ease;
}
.module-entry:hover::after {
  opacity: 1;
}
.module-entry .literary-silhouette {
  transition: transform 0.42s ease, opacity 0.42s ease;
}
.module-entry:hover .silhouette-ripple {
  opacity: 0.72 !important;
}
.module-entry:hover .silhouette-bird {
  opacity: 0.82 !important;
}
.module-entry:hover .silhouette-note,
.module-entry:hover .silhouette-iris,
.module-entry:hover .silhouette-cornflower,
.module-entry:hover .silhouette-monstera {
  opacity: 0.34 !important;
}

/* ===== 页面过渡 ===== */
.page-fade {
  animation: pageFade 0.5s ease both;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 卡片悬浮 ===== */
.lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -26px rgba(88, 119, 15, 0.34);
}

/* ===== 细腻边框 ===== */
.soft-border {
  border: 1px solid rgba(177, 216, 80, 0.34);
}

/* ===== 搜索框聚焦光晕 ===== */
.search-glow:focus-within {
  box-shadow: 0 0 0 4px rgba(196, 228, 148, 0.35), 0 16px 40px -26px rgba(88, 119, 15, 0.35);
  border-color: var(--brand);
}

/* ===== 弹跳动画（点赞/收藏） ===== */
@keyframes pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.pop {
  animation: pop 0.45s ease;
}

/* ===== 搜索结果关键词高亮 ===== */
mark.hi {
  background: rgba(224, 234, 187, 0.72);
  color: var(--brand-deep);
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== 分隔线装饰 ===== */
.divider-ornate::before,
.divider-ornate::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--brand-light);
  vertical-align: middle;
  margin: 0 12px;
}

/* ===== 瀑布流 ===== */
.masonry {
  column-gap: 1.25rem;
}
.masonry > * {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .masonry { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry { column-count: 3; }
}

/* ===== 宋体印刷标题：用于站点标题与诗文重点文字 ===== */
.handwrite,
.print-title {
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-east-asian: traditional;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 24px rgba(88, 119, 15, 0.12);
}

.brand-title {
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6B8C33;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 0 rgba(107, 140, 51, 0.10),
    0 18px 34px rgba(107, 140, 51, 0.18);
}

/* ===== Tab 切换 ===== */
.tab-active {
  color: var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
}

/* ===== 富文本编辑器 ===== */
.rich-editor {
  min-height: 260px;
  outline: none;
  line-height: 1.9;
  font-size: 16px;
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-tertiary);
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(177, 216, 80, 0.42);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 119, 15, 0.36);
}

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, #E0EABB 25%, #FFFFFF 37%, #C4E494 63%);
  background-size: 400% 100%;
  animation: skelLoad 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes skelLoad {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ===== 英雄区背景叠加 ===== */
.hero-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(251, 255, 247, 0.94) 100%);
}

/* ===== 导航菜单 active ===== */
.nav-link {
  position: relative;
  padding: 6px 4px;
  color: var(--ink-secondary);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-dark); }
.nav-link.active { color: var(--brand-dark); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-light);
}
.btn-outline:hover {
  background: var(--bg-sub);
  border-color: var(--brand);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}
.btn-ghost:hover {
  background: var(--bg-sub);
  color: var(--brand-dark);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { filter: brightness(0.92); }

/* ===== 输入框 ===== */
.ipt {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--brand-light);
  border-radius: 8px;
  color: var(--ink-primary);
  font-size: 14px;
  transition: all 0.2s;
}
.ipt:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(196, 228, 148, 0.38);
}

/* ===== Toast ===== */
.toast {
  padding: 12px 18px;
  background: #fff;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  box-shadow: 0 12px 28px -16px rgba(88, 119, 15, 0.28);
  min-width: 240px;
  animation: toastIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.danger  { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--link); }
@keyframes toastIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ===== Modal ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 14, 0.36);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade 0.25s ease;
}
.modal-box {
  background: #fff;
  border-radius: 12px;
  min-width: 320px;
  max-width: 92vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 26px 54px -20px rgba(88, 119, 15, 0.38);
  animation: modalUp 0.3s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Tag ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--bg-sub);
  color: var(--ink-secondary);
}
.tag-brand {
  background: rgba(224, 234, 187, 0.72);
  color: var(--brand-dark);
}

/* ===== 名句卡片 ===== */
.quote-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  border: 1px solid rgba(177, 216, 80, 0.34);
  overflow: hidden;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: -10px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(177, 216, 80, 0.26);
  line-height: 1;
}

/* ===== 徽章 ===== */
.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ===== 防止全局横向溢出 ===== */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img, video {
  max-width: 100%;
  height: auto;
}

/* 预留安全区（刘海/手势条） */
body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ===== 底部 dock 导航预留空间：桌面端 80px，移动端 72px ===== */
@media (min-width: 768px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 767px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* ===== 多行省略通用类 ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 横向滚动条（tab 条等）的美化 ===== */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* ================================================ */
/* ============ 移动端（≤ 640px）优化 ============ */
/* ================================================ */
@media (max-width: 640px) {
  /* 滚动条更细 */
  ::-webkit-scrollbar { width: 4px; height: 4px; }

  /* 按钮更大触控区 */
  .btn {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 40px;
  }
  .btn.text-xs {
    padding: 8px 12px;
    min-height: 34px;
  }

  /* 输入框 */
  .ipt {
    font-size: 16px; /* 防止 iOS 自动放大 */
    padding: 11px 14px;
  }

  /* 富文本编辑器字号略小，防止过宽 */
  .rich-editor {
    font-size: 15px;
    min-height: 220px;
  }

  /* 分隔线装饰缩短 */
  .divider-ornate::before,
  .divider-ornate::after {
    width: 28px;
    margin: 0 8px;
  }

  /* 模态框：底部抽屉式，更贴合移动端体验 */
  .modal-mask {
    align-items: flex-end;
  }
  .modal-box {
    width: 100% !important;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    animation: modalSlideUp 0.32s ease;
  }
  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0.5; }
    to   { transform: translateY(0); opacity: 1; }
  }
  /* 模态内边距收紧 */
  .modal-box .p-8 { padding: 1.25rem; }
  .modal-box .p-6 { padding: 1.1rem; }

  /* Toast 宽度自适应 */
  #toast-root {
    top: 12px !important;
    right: 12px !important;
    left: 12px;
  }
  .toast {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* 名句卡片：内边距收紧 */
  .quote-card {
    padding: 22px 18px;
  }
  .quote-card::before {
    font-size: 60px;
    left: 6px;
    top: -6px;
  }

  /* 手写体略缩 */
  .handwrite {
    letter-spacing: 0.02em;
  }

  /* 导航底部菜单贴底 */
  .mobile-bottom-pad {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* 瀑布流在小屏只有一列，避免断栏问题 */
  .masonry { column-count: 1 !important; column-gap: 0; }
  .masonry > * { margin-bottom: 12px; }
}

/* 平板（641 ~ 900px） */
@media (min-width: 641px) and (max-width: 900px) {
  .modal-box {
    max-width: 92vw;
  }
}

/* 超小屏（≤ 380px）进一步收紧 */
@media (max-width: 380px) {
  .btn { padding: 9px 12px; font-size: 13px; }
  .btn.text-xs { font-size: 12px; }
  .handwrite { letter-spacing: 0; }
}

/* ================================================ */
/* ====== 底部停靠导航（兼容预编译 Tailwind） ====== */
/* ================================================ */
.dock-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  border-top: 1px solid rgba(177, 216, 80, 0.34);
  box-shadow: 0 -12px 34px -22px rgba(88, 119, 15, 0.30);
}

/* 桌面端导航 ≥ 768px 才显示 */
.dock-nav-desktop { display: none; }
@media (min-width: 768px) {
  .dock-nav-desktop { display: block; }
  .dock-nav-mobile  { display: none !important; }
}

/* 移动端导航 < 768px 才显示 */
.dock-nav-mobile {
  display: block;
  padding-bottom: env(safe-area-inset-bottom);
}

.dock-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  gap: 16px;
}

.dock-divider {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: rgba(177, 216, 80, 0.44);
}

/* 移动端 Tab Bar */
.mtab-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 6px 0;
}
.m-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 0%;
  padding: 4px 0;
  color: var(--ink-tertiary);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.m-tab .m-ico { font-size: 20px; line-height: 1; }
.m-tab .m-txt { font-size: 10px; }
.m-tab.m-tab-active { color: var(--brand-dark); }
.m-tab:hover { color: var(--brand-dark); }

/* 用户菜单向上弹出 */
.dock-user-menu {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 8px;
  width: 12rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(177, 216, 80, 0.34);
  border-radius: 14px;
  box-shadow: 0 20px 42px -22px rgba(88, 119, 15, 0.34);
  padding: 8px 0;
  font-size: 14px;
  z-index: 50;
}
.dock-user-menu.hidden { display: none; }

/* ===== 加载动画 ===== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(224, 234, 187, 0.66);
  border-top-color: var(--brand-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 分页组件 ===== */
.pg-nav {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(177, 216, 80, 0.42);
  color: var(--ink-secondary);
  font-size: 0.85rem;
  transition: all 0.18s ease;
  cursor: pointer;
}
@media (min-width: 640px) {
  .pg-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}
.pg-nav:hover:not(.pg-disabled) {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -7px rgba(88, 119, 15, 0.28);
}
.pg-nav:active:not(.pg-disabled) {
  transform: translateY(0);
}
.pg-nav.pg-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.pg-nav i {
  font-size: 1rem;
}

/* 跳转输入框和每页大小选择器样式微调（避免移动端缩放） */
#pg-goto input[type="number"],
#pg-size {
  font-size: 14px;
}
#pg-goto input[type="number"]::-webkit-outer-spin-button,
#pg-goto input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#pg-goto input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}