/* ===== 墨痕书简 — 墨染江湖·文人书斋 ===== */
:root {
  --ink-black: #1a1410;
  --paper-white: #f8f3ea;
  --cinnabar: #b5432e;
  --dry-brush: #8c8279;
  --ink-wash: rgba(26,20,16,.04);
  --shadow-soft: 0 2px 16px rgba(26,20,16,.07);
  --radius-card: 12px;
  --font-stack: "PingFang SC", "Microsoft YaHei", "Noto Serif SC", "STKaiti", "KaiTi", serif;
}

* { margin:0; padding:0; box-sizing:border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-stack);
  background: var(--paper-white);
  color: var(--ink-black);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* 宣纸纹理 + 墨染背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* 宣纸纤维纹理 */
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(180,160,140,.02) 3px, rgba(180,160,140,.02) 4px),
    /* 淡墨晕染 */
    radial-gradient(ellipse at 15% 30%, rgba(26,20,16,.03) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(140,130,120,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(200,180,160,.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 底部导航栏 — 墨砚式 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  background: linear-gradient(0deg, rgba(248,243,234,.98) 0%, rgba(248,243,234,.92) 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(26,20,16,.06);
  padding: 4px 0 env(safe-area-inset-bottom, 6px);
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dry-brush);
  font-family: var(--font-stack);
  font-size: 10px;
  letter-spacing: 2px;
  transition: all .3s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-tab .nav-icon {
  font-size: 20px;
  line-height: 1;
  transition: all .3s ease;
  opacity: .5;
}

.nav-tab.active {
  color: var(--ink-black);
}
.nav-tab.active .nav-icon {
  opacity: 1;
  text-shadow: 0 0 8px rgba(26,20,16,.15);
}
.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--cinnabar);
  border-radius: 1px;
  opacity: .7;
}

/* ===== 面板系统 ===== */
.tab-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 64px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  overflow-y: auto;
  padding: 16px 16px 8px;
  -webkit-overflow-scrolling: touch;
}
.tab-panel.active {
  display: flex;
  flex-direction: column;
}

/* 收藏面板 — 可滑动 */
#panelCollect {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
#panelCollect .fav-inline-list {
  max-height: none;
  overflow-y: visible;
}

/* ===== 搜索栏 — 墨池式 ===== */
.search-bar {
  position: relative;
  margin-bottom: 10px;
}
.search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1px solid rgba(26,20,16,.1);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-stack);
  background: rgba(248,243,234,.6);
  color: var(--ink-black);
  letter-spacing: 1px;
  outline: none;
  transition: all .25s;
}
.search-input:focus {
  border-color: var(--cinnabar);
  background: rgba(248,243,234,.9);
  box-shadow: 0 0 0 3px rgba(181,67,46,.06);
}
.search-input::placeholder {
  color: var(--dry-brush);
  opacity: .5;
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dry-brush);
  font-size: 16px;
  padding: 4px 8px;
  display: none;
}
.search-clear.visible { display: block; }

/* 搜索放大镜按钮 */
.search-go {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 6px;
  color: var(--dry-brush);
  transition: all .2s;
  display: none;
  line-height: 1;
}
.search-go.visible { display: block; }
.search-go:active { transform: translateY(-50%) scale(.88); }

/* ===== 分类标签 — 笔搁式 ===== */
.category-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cat-tag {
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--dry-brush);
  background: rgba(26,20,16,.03);
  border: 1px solid rgba(26,20,16,.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all .25s;
}
.cat-tag.active {
  background: var(--ink-black);
  color: var(--paper-white);
  border-color: var(--ink-black);
}

/* ===== 快捷操作 ===== */
.quick-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 0 2px;
}
.quick-btn {
  padding: 8px 18px;
  border: 1px solid rgba(26,20,16,.12);
  border-radius: 8px;
  background: rgba(248,243,234,.7);
  color: var(--ink-black);
  font-size: 13px;
  font-family: var(--font-stack);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
}
.quick-btn:active {
  transform: scale(.95);
  background: rgba(26,20,16,.04);
}

/* ===== 账号信息卡片 ===== */
.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(248,243,234,.9) 0%, rgba(240,232,220,.95) 100%);
  border-radius: 12px;
  border: 1px solid rgba(26,20,16,.06);
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(26,20,16,.04);
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-black);
  color: var(--paper-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: var(--font-stack);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,20,16,.15);
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-name {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--ink-black);
  font-weight: 500;
}

.account-hint {
  font-size: 11px;
  color: var(--dry-brush);
  letter-spacing: 1px;
  margin-top: 2px;
}

.account-logout-btn {
  padding: 6px 14px;
  border: 1px solid rgba(181,67,46,.3);
  border-radius: 6px;
  background: transparent;
  color: var(--cinnabar);
  font-size: 12px;
  font-family: var(--font-stack);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}

.account-logout-btn:active {
  background: rgba(181,67,46,.08);
  transform: scale(.95);
}

/* ===== 收藏面板内嵌列表 — 笺纸式 ===== */
.fav-inline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}
.fav-inline-card {
  background: linear-gradient(135deg, rgba(248,243,234,.85) 0%, rgba(240,232,220,.9) 100%);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(26,20,16,.05);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  box-shadow: 0 1px 4px rgba(26,20,16,.04);
}
.fav-inline-card.selected {
  border-color: var(--cinnabar);
  background: rgba(181,67,46,.04);
  box-shadow: 0 1px 8px rgba(181,67,46,.08);
}
.fav-inline-card .fav-card-text {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.fav-inline-card .fav-card-source {
  font-size: 11px;
  color: var(--dry-brush);
}
.fav-inline-card .fav-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dry-brush);
  font-size: 14px;
  padding: 3px;
  opacity: .5;
}
.fav-inline-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--dry-brush);
  font-size: 14px;
  letter-spacing: 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fav-inline-empty .empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: .3;
}

/* ===== 人物介绍弹层 ===== */
.master-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(44,44,44,.4);
  backdrop-filter: blur(4px);
}
.master-modal.open { display: flex; }
.master-modal-content {
  background: var(--paper-white);
  border-radius: var(--radius-card);
  padding: 24px;
  width: 85%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(44,44,44,.15);
}
.master-modal-content h3 {
  font-size: 20px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-weight: 500;
}
.master-modal-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-black);
  opacity: .75;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* ===== 收藏面板内嵌列表 ===== */
.fav-inline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}
.fav-inline-card {
  background: var(--paper-white);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(44,44,44,.06);
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.fav-inline-card.selected {
  border-color: var(--cinnabar);
  background: rgba(200,85,61,.04);
}
.fav-inline-card .fav-card-text {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.fav-inline-card .fav-card-source {
  font-size: 12px;
  color: var(--dry-brush);
}
.fav-inline-card .fav-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dry-brush);
  font-size: 16px;
  padding: 4px;
}
.fav-inline-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--dry-brush);
  font-size: 15px;
  letter-spacing: 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fav-inline-empty .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .4;
}

/* ===== 大师书匣（面板内） ===== */
.master-scroll {
  display: flex;
  gap: 10px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.master-scroll::-webkit-scrollbar { display: none; }

.master-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 12px;
  transition: all .3s ease;
  position: relative;
}

.master-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dry-brush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--paper-white);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.master-avatar canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.master-name {
  font-size: 11px;
  color: var(--ink-black);
  opacity: .6;
  transition: all .3s ease;
}

.master-item.active .master-avatar {
  box-shadow: 0 0 0 2px var(--paper-white), 0 0 0 4px rgba(44,44,44,.15);
}
.master-item.active .master-name {
  opacity: 1;
  font-weight: 600;
}

/* ===== 作家列表 — 竹简式 ===== */
.author-list {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(26,20,16,.04);
  cursor: pointer;
  transition: all .2s;
  border-radius: 6px;
  margin-bottom: 2px;
}
.author-item:active {
  background: rgba(26,20,16,.03);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-black);
  color: var(--paper-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--font-stack);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(26,20,16,.12);
}

.author-name {
  flex: 1;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--ink-black);
}

.author-arrow {
  font-size: 18px;
  color: var(--dry-brush);
  opacity: .4;
}

/* ===== 面板内卡片区 ===== */
.card-stage-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 0;
}
.card-stage-inner .card-wrap {
  max-width: 300px;
}

/* ===== 作家详情面板 ===== */
.author-detail {
  display: none;
  flex-shrink: 0;
  padding: 8px 4px 0;
}

.author-detail h2 {
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 500;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(44,44,44,.08);
}

.author-detail p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-black);
  opacity: .75;
  letter-spacing: 1px;
  margin-bottom: 12px;
  max-height: 120px;
  overflow-y: auto;
}

/* ===== 小按钮 ===== */
.quick-btn.small {
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 6px;
}

/* ===== 作家详情返回按钮（已迁移到 JS 动态创建） ===== */

/* ===== 响应式 ===== */
@media (max-width: 420px) {
  .card-stage-inner .card-wrap { max-width: 260px; }
  .card-stage-inner .card-text { font-size: 17px; padding: 20px 16px; }
  .quick-btn { padding: 8px 16px; font-size: 13px; }
}

/* ===== 收藏面板 — 段标题 ===== */
.collect-section-title {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink-black);
  opacity: .6;
  padding: 6px 4px 4px;
}

/* ===== 收藏面板内嵌留言板 ===== */
.gb-compose-inline {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.gb-input-inline {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(26,20,16,.1);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-stack);
  background: rgba(248,243,234,.6);
  color: var(--ink-black);
  letter-spacing: 1px;
  outline: none;
  transition: all .25s;
}
.gb-input-inline:focus {
  border-color: var(--cinnabar);
  background: rgba(248,243,234,.9);
}
.gb-input-inline::placeholder {
  color: var(--dry-brush);
  opacity: .4;
}

.gb-send-inline {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--ink-black);
  color: var(--paper-white);
  font-size: 13px;
  font-family: var(--font-stack);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.gb-send-inline:active { transform: scale(.95); opacity: .85; }
.gb-send-inline:disabled { opacity: .35; pointer-events: none; }

.gb-list-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.gb-item-inline {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(248,243,234,.7);
  border-radius: 8px;
  border: 1px solid rgba(26,20,16,.04);
  animation: gbIn .35s ease;
  position: relative;
}

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

.gb-avatar-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-stack);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(26,20,16,.1);
}

.gb-body-inline {
  flex: 1;
  min-width: 0;
}

.gb-nick-inline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--ink-black);
  margin-bottom: 2px;
}

.gb-text-inline {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--ink-black);
  word-break: break-word;
}

.gb-empty-inline {
  text-align: center;
  padding: 16px;
  color: var(--dry-brush);
  font-size: 12px;
  letter-spacing: 2px;
}

.gb-delete-inline {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(181,67,46,.1);
  color: var(--cinnabar);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.gb-delete-inline:active {
  background: rgba(181,67,46,.25);
  transform: scale(.9);
}

.gb-item-inline {
  position: relative;
}

/* ===== 名言墨卡 ===== */
.card-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 4px;
  min-height: 0;
  overflow: hidden;
}

.card-wrap {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  perspective: 1200px;
  cursor: pointer;
  touch-action: pan-y;
}

.quote-card {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper-white);
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  transform-style: preserve-3d;
}

/* 手工撕纸毛边 */
.quote-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 1px solid rgba(44,44,44,.08);
  pointer-events: none;
  z-index: 1;
}

/* 宣纸泛黄底 */
.card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(220,200,170,.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(200,180,160,.15) 0%, transparent 50%);
  z-index: 0;
}

/* 水墨插画 */
.card-ink {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .15;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-ink canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字层 */
.card-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  font-size: 22px;
  line-height: 1.8;
  letter-spacing: 3px;
  color: var(--ink-black);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255,255,255,.5);
  transition: opacity .4s ease;
  text-align: center;
}

/* 作者出处（点击浮现） */
.card-source {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  font-size: 13px;
  color: var(--ink-black);
  opacity: 0;
  transform: translateY(6px);
  transition: all .4s ease;
  writing-mode: horizontal-tb;
  letter-spacing: 2px;
  padding: 4px 12px;
  background: rgba(245,240,232,.85);
  border-radius: 4px;
  border-left: 2px solid var(--cinnabar);
}
.quote-card.show-source .card-source {
  opacity: 1;
  transform: translateY(0);
}

/* 翻页动画 */
.quote-card.flipping {
  animation: pageFlip .45s ease-in-out;
}
@keyframes pageFlip {
  0% { transform: rotateY(0deg) scale(1); }
  40% { transform: rotateY(-12deg) scale(.96); opacity:.7; }
  100% { transform: rotateY(0deg) scale(1); }
}

/* 页面指示点 */
.page-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}
.page-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dry-brush);
  opacity: .4;
  transition: all .3s ease;
}
.page-dots .dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--ink-black);
  opacity: .7;
}

/* ===== 底部操作栏 ===== */
.action-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 12px 20px 24px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:active { transform: scale(.88); }

/* 心形收藏 */
.favorite-btn {
  color: var(--dry-brush);
  transition: all .3s ease;
}
.favorite-btn.favorited {
  color: var(--cinnabar);
  animation: heartBeat .4s ease;
}
.favorite-btn.favorited .icon-heart path {
  fill: var(--cinnabar);
  stroke: var(--cinnabar);
}

@keyframes heartBeat {
  0%,100% { transform:scale(1); }
  30% { transform:scale(1.25); }
  60% { transform:scale(.9); }
}

/* 墨香按钮 */
.ink-btn {
  width: 56px;
  height: 56px;
}
.ink-stick {
  width: 40px;
  height: 48px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2C2C2C 40%, #1a1a1a 100%);
  border-radius: 4px 4px 6px 6px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
  transition: all .2s ease;
}
.ink-gold-line {
  position: absolute;
  top: 30%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.4), rgba(212,175,55,.6), rgba(212,175,55,.4), transparent);
}
.ink-btn:active .ink-stick {
  transform: translateY(3px) scale(.95);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* 分享按钮 */
.share-btn {
  color: var(--ink-black);
  opacity: .6;
  transition: all .2s ease;
}
.share-btn:hover { opacity: .9; }

/* ===== 涟漪全屏层 ===== */
.ripple-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity .1s;
}
.ripple-overlay.active {
  opacity: 1;
  pointer-events: auto;
  animation: rippleExpand .7s ease-out forwards;
}
@keyframes rippleExpand {
  0% {
    background: radial-gradient(circle at 50% 60%, rgba(44,44,44,.15) 0%, transparent 30%);
  }
  50% {
    background: radial-gradient(circle at 50% 60%, rgba(44,44,44,.08) 0%, transparent 60%);
  }
  100% {
    background: radial-gradient(circle at 50% 60%, transparent 0%, transparent 100%);
    opacity: 0;
  }
}

/* ===== 分享弹层 ===== */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(44,44,44,.4);
  backdrop-filter: blur(4px);
}
.share-modal.open { display: flex; }
.share-modal-content {
  background: var(--paper-white);
  border-radius: var(--radius-card);
  padding: 24px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(44,44,44,.15);
  text-align: center;
}
.share-modal-content h3 {
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 16px;
  font-weight: 400;
}
.share-preview {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--paper-white);
  box-shadow: inset 0 0 0 1px rgba(44,44,44,.06);
}
.share-preview canvas {
  width: 100%;
  height: 100%;
}
.share-actions {
  display: flex;
  gap: 12px;
}
.share-action-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: all .2s ease;
  background: var(--ink-black);
  color: var(--paper-white);
}
.share-action-btn.secondary {
  background: transparent;
  color: var(--ink-black);
  border: 1px solid rgba(44,44,44,.15);
}
.share-action-btn:active { transform: scale(.96); }

/* ===== 响应式 ===== */
@media (max-width: 420px) {
  .card-wrap { max-width: 320px; }
  .card-text { font-size: 19px; padding: 24px 20px; letter-spacing: 4px; }
  .master-avatar { width: 44px; height: 44px; font-size: 18px; }
  .action-bar { gap: 28px; }
}

/* ===== 工具类 ===== */
.hidden { display: none !important; }

/* 隐藏平台自带 AI 助手图标 */
#ej-agent-host { display: none !important; }

/* ===== 每日精句面板 — 砚池式 ===== */
#panelDaily {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 16px;
  gap: 16px;
}

.daily-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
}

.daily-header {
  text-align: center;
}

.daily-title {
  font-size: 22px;
  letter-spacing: 6px;
  font-weight: 400;
  color: var(--ink-black);
  margin-bottom: 4px;
}

.daily-subtitle {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--dry-brush);
  opacity: .7;
}

.daily-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  max-height: 240px;
  background: linear-gradient(135deg, rgba(248,243,234,.9) 0%, rgba(240,232,220,.95) 100%);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 12px rgba(26,20,16,.06), inset 0 0 0 1px rgba(26,20,16,.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 24px;
  transition: opacity .3s;
}

.daily-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--cinnabar);
  border-radius: 3px;
  opacity: .3;
  transform: rotate(6deg);
}

.daily-card.loading {
  opacity: .55;
}

.daily-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200,180,160,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(180,160,140,.1) 0%, transparent 50%);
  z-index: 0;
}

.daily-quote-text {
  position: relative;
  z-index: 2;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 2px;
  color: var(--ink-black);
  text-align: center;
  font-weight: 500;
  padding-top: 8px;
}

.daily-quote-source {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--dry-brush);
}

.daily-actions {
  display: flex;
  gap: 12px;
}

.daily-btn {
  padding: 8px 20px;
  border: 1px solid rgba(26,20,16,.12);
  border-radius: 8px;
  background: rgba(248,243,234,.7);
  color: var(--ink-black);
  font-size: 13px;
  font-family: var(--font-stack);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
}

.daily-btn:active {
  transform: scale(.95);
  background: rgba(26,20,16,.04);
}

.daily-btn:disabled {
  opacity: .35;
  pointer-events: none;
}

.daily-ai-status {
  font-size: 11px;
  color: var(--cinnabar);
  letter-spacing: 1px;
  text-align: center;
  min-height: 16px;
  opacity: .8;
}

/* ===== AI 名人聊天 — 墨笺式 ===== */
.chat-section {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.chat-header {
  text-align: center;
}

.chat-title {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--ink-black);
  display: block;
}

.chat-hint {
  font-size: 11px;
  color: var(--dry-brush);
  letter-spacing: 1px;
  opacity: .6;
}

.chat-masters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.chat-master {
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dry-brush);
  background: rgba(26,20,16,.03);
  border: 1px solid rgba(26,20,16,.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s;
}

.chat-master.active {
  background: var(--ink-black);
  color: var(--paper-white);
  border-color: var(--ink-black);
}

.chat-box {
  background: rgba(248,243,234,.6);
  border-radius: 10px;
  border: 1px solid rgba(26,20,16,.06);
  padding: 10px;
  min-height: 80px;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-msg {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 1px;
  padding: 7px 10px;
  border-radius: 8px;
  max-width: 85%;
  word-break: break-word;
}

.ai-msg {
  background: rgba(26,20,16,.04);
  color: var(--ink-black);
  align-self: flex-start;
}

.user-msg {
  background: var(--ink-black);
  color: var(--paper-white);
  align-self: flex-end;
}

.chat-input-row {
  display: flex;
  gap: 6px;
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(26,20,16,.1);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-stack);
  background: rgba(248,243,234,.6);
  color: var(--ink-black);
  letter-spacing: 1px;
  outline: none;
  transition: all .25s;
}

.chat-input:focus {
  border-color: var(--cinnabar);
  background: rgba(248,243,234,.9);
}

.chat-send-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--ink-black);
  color: var(--paper-white);
  font-size: 13px;
  font-family: var(--font-stack);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
}

.chat-send-btn:active {
  transform: scale(.95);
  opacity: .85;
}

.chat-send-btn:disabled {
  opacity: .35;
  pointer-events: none;
}

/* 收藏卡片本体 — 给底部留空间 */
.fav-inline-card {
  padding-bottom: 8px;
}

/* ============================================================
   水墨装饰层 — 纯视觉衬景，不遮挡交互 (V1)
   ============================================================ */

/* ---- 一、全局背景装饰 ---- */

/* 四角墨竹 + 枯笔兰草 (body::after 第二层) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* 左上 — 细竹枝垂落 */
    radial-gradient(ellipse 2px 40px at 18px 60px, rgba(26,20,16,.08) 0%, transparent 100%),
    radial-gradient(ellipse 2px 35px at 22px 110px, rgba(26,20,16,.06) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 28px at 16px 155px, rgba(26,20,16,.05) 0%, transparent 100%),
    /* 右下 — 兰草丛 */
    radial-gradient(ellipse 2px 30px at calc(100% - 30px) calc(100% - 80px), rgba(26,20,16,.07) 0%, transparent 100%),
    radial-gradient(ellipse 2px 25px at calc(100% - 45px) calc(100% - 50px), rgba(26,20,16,.05) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 20px at calc(100% - 18px) calc(100% - 65px), rgba(26,20,16,.06) 0%, transparent 100%),
    /* 底边 — 远山剪影 (三层叠) */
    radial-gradient(ellipse 55% 8px at 50% calc(100% - 10px), rgba(140,130,120,.08) 0%, transparent 100%),
    radial-gradient(ellipse 40% 6px at 30% calc(100% - 18px), rgba(140,130,120,.06) 0%, transparent 100%),
    radial-gradient(ellipse 35% 5px at 70% calc(100% - 14px), rgba(140,130,120,.05) 0%, transparent 100%),
    /* 侧边宣纸纹理 — 左右淡墨线 */
    linear-gradient(180deg, transparent 5%, rgba(26,20,16,.04) 5%, rgba(26,20,16,.04) 5.5%, transparent 5.5%, transparent 94%, rgba(26,20,16,.04) 94%, rgba(26,20,16,.04) 94.5%, transparent 94.5%),
    /* 随机墨滴 (伪随机分布) */
    radial-gradient(3px 3px at 8% 15%, rgba(26,20,16,.06) 0%, transparent 100%),
    radial-gradient(2px 2px at 92% 25%, rgba(26,20,16,.04) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 15% 75%, rgba(26,20,16,.05) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(26,20,16,.04) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 8%, rgba(26,20,16,.03) 0%, transparent 100%);
}

/* ---- 二、导航栏装饰 ---- */

/* 导航栏左侧 — 迷你毛笔 + 砚台 */
.bottom-nav::before {
  content: '✒';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .15;
  color: var(--ink-black);
  pointer-events: none;
  z-index: 1;
}

/* 导航分割线 — 枯笔断墨 */
.nav-tab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent 10%, rgba(26,20,16,.08) 20%, rgba(26,20,16,.08) 30%, transparent 40%, transparent 55%, rgba(26,20,16,.06) 60%, rgba(26,20,16,.06) 70%, transparent 80%);
  pointer-events: none;
}

/* ---- 三、页面标题装饰纹样 ---- */

/* 名人页标题 — 微型人物剪影 */
.tab-panel#panelBrowse .collect-section-title:first-of-type::before {
  content: '⛩';
  font-size: 14px;
  margin-right: 6px;
  opacity: .25;
}

/* 留言页标题 — 印泥印章轮廓 */
.tab-panel#panelCollect .collect-section-title:first-of-type::before {
  content: '☰';
  font-size: 12px;
  margin-right: 6px;
  opacity: .2;
  color: var(--cinnabar);
}

/* 标题下方飞白墨纹下划线 */
.tab-panel .collect-section-title {
  position: relative;
  padding-bottom: 6px;
}
.tab-panel .collect-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26,20,16,.15) 0%, rgba(26,20,16,.15) 60%, transparent 70%, rgba(26,20,16,.08) 75%, transparent 100%);
  border-radius: 1px;
}

/* ---- 四、卡片装饰 — 云纹墨边 + 梅竹 ---- */

/* 作家列表卡片 */
.author-item {
  position: relative;
}
.author-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 8px 8px at 4px 4px, rgba(26,20,16,.03) 0%, transparent 100%),
    radial-gradient(ellipse 8px 8px at calc(100% - 4px) 4px, rgba(26,20,16,.03) 0%, transparent 100%),
    radial-gradient(ellipse 8px 8px at 4px calc(100% - 4px), rgba(26,20,16,.03) 0%, transparent 100%),
    radial-gradient(ellipse 8px 8px at calc(100% - 4px) calc(100% - 4px), rgba(26,20,16,.03) 0%, transparent 100%);
  pointer-events: none;
}

/* 收藏卡片底部 — 小梅花 */
.fav-inline-card::after {
  content: '✿';
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 10px;
  opacity: .08;
  color: var(--cinnabar);
  pointer-events: none;
}

/* ---- 五、空白页布景 (解决画面太空) ---- */

/* 无数据空白 — 远山 + 笔墨纸砚 */
.fav-inline-empty,
.gb-empty-inline,
#favEmpty {
  position: relative;
  overflow: hidden;
}
.fav-inline-empty::before,
.gb-empty-inline::before,
#favEmpty::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* 远山 */
    radial-gradient(ellipse 40% 12px at 50% calc(100% - 20px), rgba(140,130,120,.06) 0%, transparent 100%),
    radial-gradient(ellipse 30% 8px at 25% calc(100% - 30px), rgba(140,130,120,.04) 0%, transparent 100%),
    radial-gradient(ellipse 25% 6px at 75% calc(100% - 25px), rgba(140,130,120,.03) 0%, transparent 100%),
    /* 砚台 */
    radial-gradient(ellipse 20px 8px at 50% calc(100% - 50px), rgba(26,20,16,.04) 0%, transparent 100%),
    /* 淡墨晕 */
    radial-gradient(ellipse 30px 15px at 50% calc(100% - 48px), rgba(26,20,16,.02) 0%, transparent 100%);
}
.fav-inline-empty::after,
.gb-empty-inline::after,
#favEmpty::after {
  content: '静览古今言';
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--dry-brush);
  opacity: .25;
  pointer-events: none;
  z-index: 1;
  writing-mode: vertical-rl;
}

/* ---- 六、留言板装饰 ---- */

/* 输入框 — 宣纸毛边 */
.gb-compose input,
.gb-input-inline,
#gbTextInline {
  position: relative;
  border-image: none;
}
.gb-compose::before {
  content: '';
  position: absolute;
  top: -2px; right: -2px; bottom: -2px; left: -2px;
  border: 1px solid rgba(26,20,16,.04);
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
}

/* 留言每条 — 左侧枯笔墨线 */
.gb-item,
.gb-item-inline {
  position: relative;
  padding-left: 14px;
}
.gb-item::before,
.gb-item-inline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 2px;
  background: linear-gradient(180deg, rgba(26,20,16,.06) 0%, rgba(26,20,16,.06) 40%, transparent 45%, rgba(26,20,16,.04) 50%, rgba(26,20,16,.04) 80%, transparent 85%);
  border-radius: 1px;
  pointer-events: none;
}
.gb-item::after,
.gb-item-inline::after {
  content: '';
  position: absolute;
  left: -1px;
  bottom: 20%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(26,20,16,.06);
  pointer-events: none;
}

/* 留言区空白提示 — 古亭溪水 */
.gb-empty-inline::before {
  background:
    /* 古亭 */
    radial-gradient(ellipse 12px 16px at 50% 40%, rgba(26,20,16,.04) 0%, transparent 100%),
    /* 溪水 */
    radial-gradient(ellipse 40% 4px at 50% 65%, rgba(140,130,120,.05) 0%, transparent 100%),
    /* 远山 */
    radial-gradient(ellipse 35% 6px at 50% 80%, rgba(140,130,120,.04) 0%, transparent 100%);
}
.gb-empty-inline::after {
  content: '留墨寄心语';
  bottom: 12px;
  right: 16px;
  font-size: 10px;
  opacity: .2;
}

/* ---- 七、AI 聊天页装饰 ---- */

/* 聊天背景 — 留白山水 */
.chat-box {
  position: relative;
  background: rgba(248,243,234,.5);
}
.chat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background:
    radial-gradient(ellipse 30% 10px at 30% 20%, rgba(140,130,120,.05) 0%, transparent 100%),
    radial-gradient(ellipse 25% 8px at 70% 30%, rgba(140,130,120,.04) 0%, transparent 100%),
    radial-gradient(ellipse 20% 6px at 50% 60%, rgba(140,130,120,.03) 0%, transparent 100%);
}

/* AI 消息气泡 — 宣纸卷边 + 印章 */
.ai-msg {
  position: relative;
  border: 1px solid rgba(26,20,16,.06);
  border-radius: 4px 12px 12px 12px;
  background: linear-gradient(135deg, rgba(248,243,234,.95) 0%, rgba(240,232,220,.9) 100%);
  box-shadow: 0 1px 4px rgba(26,20,16,.04);
}
.ai-msg::after {
  content: '☰';
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 7px;
  color: var(--cinnabar);
  opacity: .12;
  pointer-events: none;
}

/* 用户消息气泡 — 竹叶墨纹 */
.user-msg {
  position: relative;
  border-radius: 12px 4px 12px 12px;
}
.user-msg::before {
  content: '';
  position: absolute;
  right: -4px;
  top: 6px;
  width: 8px;
  height: 16px;
  background:
    radial-gradient(ellipse 2px 8px at 50% 0%, rgba(26,20,16,.06) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 6px at 50% 100%, rgba(26,20,16,.04) 0%, transparent 100%);
  pointer-events: none;
}

/* 发送按钮 — 水墨印章样式 */
.chat-send-btn {
  position: relative;
  background: transparent;
  color: var(--ink-black);
  border: 1.5px solid var(--ink-black);
  border-radius: 4px;
  letter-spacing: 2px;
  font-weight: 500;
  padding: 8px 14px;
  transition: all .2s;
}
.chat-send-btn:active {
  background: rgba(26,20,16,.06);
  transform: scale(.95);
}

/* 发送输入栏左侧 — 笔墨纸砚 */
.chat-input-row {
  position: relative;
}
.chat-input-row::before {
  content: '✒';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .1;
  color: var(--ink-black);
  pointer-events: none;
  z-index: 1;
}

/* 聊天空白初始页 — 写意笔墨纸砚 */
#chatWelcome {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}
#chatWelcome::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* 砚台 */
    radial-gradient(ellipse 24px 10px at 50% 55%, rgba(26,20,16,.04) 0%, transparent 100%),
    /* 淡墨 */
    radial-gradient(ellipse 16px 8px at 50% 53%, rgba(26,20,16,.02) 0%, transparent 100%),
    /* 远山 */
    radial-gradient(ellipse 30% 6px at 50% 75%, rgba(140,130,120,.04) 0%, transparent 100%),
    radial-gradient(ellipse 20% 4px at 30% 80%, rgba(140,130,120,.03) 0%, transparent 100%);
}
#chatWelcome::after {
  content: '与先贤纸笔闲谈';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--dry-brush);
  opacity: .15;
  writing-mode: vertical-rl;
  pointer-events: none;
  z-index: 1;
}

/* ---- 八、按钮统一水墨化 ---- */

/* 所有普通按钮 — 飞白墨线边框 */
.quick-btn,
.daily-btn,
.gb-send-btn,
.gb-send-inline,
.login-btn,
.share-action-btn {
  position: relative;
  border: 1px solid rgba(26,20,16,.12);
  background: rgba(248,243,234,.7);
  transition: all .2s;
  overflow: hidden;
}
.quick-btn:hover,
.daily-btn:hover,
.gb-send-btn:hover,
.gb-send-inline:hover {
  background: rgba(248,243,234,.9);
}

/* 弹窗关闭/返回 — 水墨简笔 */
.share-modal .share-action-btn.secondary,
#closeMasterModal {
  position: relative;
}
.share-modal .share-action-btn.secondary::before,
#closeMasterModal::before {
  content: '╳';
  margin-right: 4px;
  font-size: 11px;
  opacity: .4;
}

/* 返回链接 — 毛笔左撇 */
.back-link,
.author-detail-back,
.login-back {
  position: relative;
  padding-left: 14px;
}
.back-link::before,
.author-detail-back::before,
.login-back::before {
  content: '←';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .3;
}

/* ---- 九、分割线 — 远山/竹枝/枯笔 ---- */

/* 收藏面板分割线 */
.collect-section-title {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.collect-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26,20,16,.04) 10%,
    rgba(26,20,16,.04) 30%,
    transparent 35%,
    transparent 45%,
    rgba(26,20,16,.03) 50%,
    rgba(26,20,16,.03) 70%,
    transparent 75%,
    transparent 85%,
    rgba(26,20,16,.02) 90%,
    transparent 100%
  );
}

/* ---- 十、弹窗空白侧边点缀 ---- */
.master-modal-content {
  position: relative;
  overflow: hidden;
}
.master-modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 8px 12px at 10% 20%, rgba(26,20,16,.03) 0%, transparent 100%),
    radial-gradient(ellipse 6px 8px at 90% 80%, rgba(26,20,16,.02) 0%, transparent 100%);
}

/* ---- 十一、各空白页书法小字 ---- */

/* 名言页空白 */
.fav-inline-empty .empty-icon + div + div {
  position: relative;
}
.fav-inline-empty .empty-icon + div + div::after {
  content: '纸上得来终觉浅';
  position: absolute;
  bottom: -24px;
  right: -10px;
  font-size: 10px;
  color: var(--dry-brush);
  opacity: .15;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* 留言空白 */
.gb-empty-inline div:last-child {
  position: relative;
}
.gb-empty-inline div:last-child::after {
  content: '一纸素墨，尽抒所思';
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 10px;
  color: var(--dry-brush);
  opacity: .12;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ---- 十二、每日精句卡片装饰 ---- */
.daily-card {
  position: relative;
  overflow: hidden;
}
.daily-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 20px 6px at 12px 12px, rgba(26,20,16,.03) 0%, transparent 100%),
    radial-gradient(ellipse 16px 5px at calc(100% - 12px) calc(100% - 12px), rgba(26,20,16,.02) 0%, transparent 100%);
}

/* ---- 十三、登录页装饰 ---- */
.login-page {
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 2px 30px at 20px 40%, rgba(26,20,16,.05) 0%, transparent 100%),
    radial-gradient(ellipse 2px 25px at calc(100% - 20px) 60%, rgba(26,20,16,.04) 0%, transparent 100%),
    radial-gradient(ellipse 40% 6px at 50% calc(100% - 10px), rgba(140,130,120,.05) 0%, transparent 100%);
}

/* ---- 十四、about 页装饰 ---- */
.about-page {
  position: relative;
}
.about-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 2px 35px at 15px 30%, rgba(26,20,16,.04) 0%, transparent 100%),
    radial-gradient(ellipse 2px 28px at calc(100% - 15px) 50%, rgba(26,20,16,.03) 0%, transparent 100%),
    radial-gradient(ellipse 35% 5px at 50% calc(100% - 8px), rgba(140,130,120,.04) 0%, transparent 100%);
}

/* 封面页装饰 */
.cover {
  position: relative;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 2px 40px at 20px 30%, rgba(26,20,16,.05) 0%, transparent 100%),
    radial-gradient(ellipse 2px 30px at calc(100% - 20px) 50%, rgba(26,20,16,.04) 0%, transparent 100%),
    radial-gradient(ellipse 45% 6px at 50% calc(100% - 5px), rgba(140,130,120,.04) 0%, transparent 100%);
}
