.app-view-panel__body--linglongxia .llx-yuyanji-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 231, 191, 0.48), transparent 22%),
    linear-gradient(180deg, #f6eee2 0%, #efe4d3 100%);
}

.llx-yuyanji-shell {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 12px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #fdf7f2 0%, #f5ecdf 52%, #f2e8da 100%);
}

.llx-yuyanji-shell::before,
.llx-yuyanji-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
}

.llx-yuyanji-shell::before {
  top: 86px;
  right: -34px;
  width: 126px;
  height: 126px;
  background: rgba(255, 223, 128, 0.24);
}

.llx-yuyanji-shell::after {
  top: 360px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 241, 242, 0.46);
}

.llx-yuyanji-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  margin: 0 -14px;
  padding: 6px 14px 5px;
  min-height: 46px;
  background: rgba(253, 247, 242, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 -1px 0 rgba(130, 98, 82, 0.08);
}

.llx-yuyanji-header .back-btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(130, 98, 82, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #5b4632;
  box-shadow: 0 4px 10px rgba(146, 111, 92, 0.08);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.llx-yuyanji-header .card-header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 96px);
  transform: translate(-50%, -50%);
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.llx-yuyanji-header .card-header-title strong {
  color: #5b4632;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.llx-yuyanji-header .card-header-title span {
  display: none;
}

.llx-yuyanji-content {
  display: block;
  flex: 1 0 auto;
  min-height: auto;
  padding-top: 10px;
  padding-bottom: 18px;
  overflow: visible;
  touch-action: pan-y;
}

.llx-yuyanji-page .card-content-with-bottom-nav {
  display: block;
}

.llx-yuyanji-page .builder-block {
  padding: 16px;
}

.llx-yuyanji-page .builder-input,
.llx-yuyanji-page .textarea-input,
.llx-yuyanji-page .builder-btn,
.llx-yuyanji-page .delete-card-btn {
  box-sizing: border-box;
}

.llx-yuyanji-page .builder-input,
.llx-yuyanji-page .textarea-input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1.5px solid rgba(191, 166, 128, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #5b4632;
  font-size: 13px;
}

.llx-yuyanji-page .builder-input {
  min-height: 42px;
  padding: 0 14px;
}

.llx-yuyanji-page select.builder-input {
  padding-right: 34px;
}

.llx-yuyanji-page .textarea-input {
  min-height: 140px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}

.llx-yuyanji-page .builder-input::placeholder,
.llx-yuyanji-page .textarea-input::placeholder {
  color: rgba(91, 70, 50, 0.55);
}

.llx-yuyanji-page .builder-input:focus,
.llx-yuyanji-page .textarea-input:focus {
  outline: none;
  border-color: rgba(180, 131, 83, 0.5);
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.llx-yuyanji-page .upload-avatar.small-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid rgba(191, 166, 128, 0.16);
  flex: 0 0 auto;
}

.llx-yuyanji-page .form-label {
  color: #7d6245;
}

.llx-yuyanji-page .builder-btn,
.llx-yuyanji-page .delete-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(191, 166, 128, 0.18);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.llx-yuyanji-page .builder-btn:hover,
.llx-yuyanji-page .delete-card-btn:hover {
  transform: translateY(-1px);
}

.llx-yuyanji-page .builder-btn.primary-btn {
  background: linear-gradient(180deg, #d97706, #c2410c);
  border: none;
  color: #fff7ed;
  box-shadow: 0 10px 18px rgba(194, 65, 12, 0.18);
}

.llx-yuyanji-page .builder-btn.primary-btn:hover {
  filter: brightness(1.03);
}

.llx-yuyanji-page .builder-btn.soft-btn {
  background: rgba(255, 248, 239, 0.9);
  border-color: rgba(191, 166, 128, 0.18);
  color: #7c5b3c;
}

.llx-yuyanji-page .delete-card-btn {
  border-radius: 14px;
  background: rgba(255, 240, 240, 0.92);
  border-color: rgba(190, 24, 93, 0.14);
  color: #be185d;
}

.llx-yuyanji-page .import-export-row,
.llx-yuyanji-page .yuyanji-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.llx-yuyanji-page .yuyanji-history-top-row {
  margin-bottom: 10px;
}

.llx-yuyanji-page .letter-stamp {
  display: none;
}

.llx-yuyanji-page .feature-panel {
  animation: llx-yuyanji-fade-in 0.22s ease;
}

.llx-yuyanji-page .feature-panel[hidden] {
  display: none !important;
}

.yuyanji-bottom-nav {
  position: sticky;
  bottom: 8px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 0;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(130, 98, 82, 0.08);
  box-shadow: 0 14px 26px rgba(162, 126, 104, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.yuyanji-bottom-nav .feature-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 6px 6px;
  border-radius: 18px;
  border: 1px solid rgba(191, 166, 128, 0.18);
  background: rgba(255, 250, 244, 0.84);
  color: #8b7355;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.yuyanji-bottom-nav .feature-tab:hover {
  transform: translateY(-1px);
}

.yuyanji-bottom-nav .feature-tab.active {
  border-color: rgba(180, 131, 83, 0.36);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(249, 241, 230, 0.96));
  color: #6c4f35;
  box-shadow:
    0 14px 24px rgba(148, 163, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.yuyanji-bottom-nav .feature-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.yuyanji-bottom-nav .feature-tab-icon.icon-home {
  background: rgba(220, 252, 231, 0.9);
  color: #15803d;
}

.yuyanji-bottom-nav .feature-tab-icon.icon-pink {
  background: rgba(251, 207, 232, 0.82);
  color: #be185d;
}

.yuyanji-bottom-nav .feature-tab-icon.icon-blue {
  background: rgba(191, 219, 254, 0.88);
  color: #1d4ed8;
}

.yuyanji-bottom-nav .feature-tab-icon.icon-amber {
  background: rgba(254, 243, 199, 0.94);
  color: #b45309;
}

.yuyanji-bottom-nav .feature-tab-text {
  max-width: 100%;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.llx-yuyanji-page .letter-history-item.is-current {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.12);
}

.llx-yuyanji-page .letter-history-item:active {
  transform: scale(0.998);
}

.llx-yuyanji-page .letter-preview-actions,
.llx-yuyanji-page .letter-history-actions {
  display: grid;
  gap: 10px;
}

.llx-yuyanji-page .letter-preview-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.llx-yuyanji-page .letter-history-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.llx-yuyanji-page .letter-preview-actions .builder-btn,
.llx-yuyanji-page .letter-history-actions .builder-btn,
.llx-yuyanji-page .letter-history-actions .delete-card-btn {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
}

.llx-yuyanji-page .letter-history-actions .yuyanji-history-forward-btn {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(250, 239, 224, 0.94));
  border-color: rgba(180, 131, 83, 0.28);
  color: #6c4f35;
  box-shadow: 0 8px 16px rgba(148, 113, 74, 0.08);
}

.llx-yuyanji-page .letter-history-actions .yuyanji-history-delete-btn {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(254, 226, 226, 0.94));
  border-color: rgba(190, 24, 93, 0.18);
  color: #be185d;
  box-shadow: 0 8px 16px rgba(190, 24, 93, 0.08);
}

.llx-yuyanji-page .letter-history-actions .builder-btn,
.llx-yuyanji-page .letter-preview-actions .builder-btn,
.llx-yuyanji-page .delete-card-btn {
  min-height: 38px;
}

.llx-yuyanji-page .letter-history-question,
.llx-yuyanji-page .letter-history-answer,
.llx-yuyanji-page .letter-paper-text {
  user-select: text;
}

.llx-yuyanji-page .letter-badge-row,
.llx-yuyanji-page .letter-preview-actions,
.llx-yuyanji-page .letter-history-actions {
  align-items: center;
}

@keyframes llx-yuyanji-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 鱼雁集新版首页 / 统一历史样式 */
.llx-yuyanji-page .yuyanji-home-page {
  gap: 14px;
}

.llx-yuyanji-page .yuyanji-hero-card {
  padding: 22px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(251, 191, 36, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 251, 245, 0.98), rgba(244, 226, 202, 0.92));
}

.llx-yuyanji-page .yuyanji-hero-card::after {
  content: "✉";
  position: absolute;
  right: 18px;
  top: 16px;
  color: rgba(180, 131, 83, 0.18);
  font-size: 56px;
  line-height: 1;
  transform: rotate(10deg);
  pointer-events: none;
}

.llx-yuyanji-page .yuyanji-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.86);
  border: 1px solid rgba(180, 131, 83, 0.18);
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.llx-yuyanji-page .yuyanji-hero-card h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  color: #5b4632;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.llx-yuyanji-page .yuyanji-home-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.llx-yuyanji-page .yuyanji-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.llx-yuyanji-page .yuyanji-overview-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(191, 166, 128, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 241, 242, 0.56), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.82));
  box-shadow: 0 14px 26px rgba(148, 113, 74, 0.1);
  color: #5b4632;
  overflow: hidden;
}

.llx-yuyanji-page .yuyanji-overview-card span {
  color: #8b7355;
  font-size: 12px;
  font-weight: 700;
}

.llx-yuyanji-page .yuyanji-overview-card strong {
  color: #6c4f35;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.llx-yuyanji-page .yuyanji-history-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.llx-yuyanji-page .yuyanji-history-filter-panel {
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.4), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 239, 0.9));
}

.llx-yuyanji-page .letter-preview-card {
  border-color: rgba(180, 131, 83, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(254, 243, 199, 0.44), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 245, 0.86));
}

.llx-yuyanji-page .letter-recipient-card {
  margin-top: 12px;
}

.llx-yuyanji-page .letter-section-title strong {
  font-size: 16px;
}

.llx-yuyanji-page .letter-section-title span {
  display: block;
}

@media (max-width: 480px) {
  .llx-yuyanji-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .llx-yuyanji-header {
    margin-left: -10px;
    margin-right: -10px;
    padding: 5px 10px 4px;
    min-height: 42px;
  }

  .llx-yuyanji-header .card-header-title {
    width: calc(100% - 84px);
  }

  .llx-yuyanji-content {
    padding-top: 8px;
  }

  .llx-yuyanji-page .builder-block {
    padding: 14px;
  }

  .yuyanji-bottom-nav {
    bottom: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .yuyanji-bottom-nav .feature-tab {
    min-height: 56px;
    border-radius: 16px;
  }

  .llx-yuyanji-page .yuyanji-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .llx-yuyanji-page .yuyanji-action-row .builder-btn {
    width: 100%;
  }

  .llx-yuyanji-page .letter-preview-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .llx-yuyanji-page .letter-history-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .llx-yuyanji-page .letter-preview-actions .builder-btn,
  .llx-yuyanji-page .letter-history-actions .builder-btn,
  .llx-yuyanji-page .letter-history-actions .delete-card-btn {
    padding: 0 6px;
    font-size: 12px;
  }

  .yuyanji-bottom-nav .feature-tab-text {
    font-size: 10px;
  }

  .llx-yuyanji-page .yuyanji-overview-grid,
  .llx-yuyanji-page .yuyanji-history-filter-grid {
    grid-template-columns: 1fr;
  }

  .llx-yuyanji-page .yuyanji-home-actions .builder-btn {
    width: 100%;
  }
}
