/* 自定义样式：补充Tailwind和DaisyUI内置样式 */

/* 博客自定义颜色 */
.bg-blog-bg { background-color: #F2F0E8; }
.text-blog-text { color: #3A3A3A; }
.text-blog-gray { color: #8A8A8A; }
.border-blog-border { border-color: #E0DED5; }
.bg-blog-card { background-color: #F7F6F1; }
.text-blog-primary { color: #5B7BB2; }
.bg-blog-primary { background-color: #5B7BB2; }
.text-blog-primary-dark { color: #3A5A92; }
.text-blog-muted { color: #A0A0A0; }
.text-blog-light { color: #B0B0B0; }
.text-blog-lighter { color: #C0C0C0; }

/* 导航栏选中状态 */
.nav-item {
  position: relative;
  padding: 0 1rem;
  height: 3rem;
  display: flex;
  align-items: center;
  color: #8A8A8A;
  transition: color 0.2s;
}

.nav-item:hover {
  color: #5B7BB2;
}

.nav-item.active {
  color: #5B7BB2;
  font-weight: bold;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background-color: #5B7BB2;
  border-radius: 1px;
}

/* 卡片阴影 */
.card-shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-shadow-hover:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 标签折叠样式：使用Tailwind的hidden类 */

/* 归档折叠样式 */
.archive-hidden {
  display: none;
}

/* 移动端适配 */
@media (max-width: 1023px) {
  .nav-item.active::after {
    display: none;
  }
}

/* ========================================== */
/* 诗稿页面样式 */
/* ========================================== */

.poetry-page {
  background:
    radial-gradient(circle at top left, rgba(196, 149, 106, 0.12), transparent 32%),
    linear-gradient(180deg, #f4f1e8 0%, #f1ece1 100%);
}

.poetry-page-shell {
  color: #3d3229;
}

.poetry-header {
  margin-bottom: 1.35rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.poetry-header-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(85, 72, 60, 0.58);
}

.poetry-header-title {
  margin: 0.45rem 0 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3d3026;
}

.poetry-header-description {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
  line-height: 1.8;
  color: #7b695d;
}

.poetry-header-side {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.poetry-header-meta,
.poetry-filter-bar {
  border-radius: 999px;
  border: 1px solid rgba(117, 96, 77, 0.12);
  background: rgba(255, 252, 247, 0.82);
}

.poetry-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.poetry-filter-chip:hover {
  transform: translateY(-1px);
}

.poetry-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
}

.poetry-header-meta {
  padding: 0.62rem 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  color: #78685b;
  font-size: 0.86rem;
}

.poetry-header-meta strong {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3d3026;
}

.poetry-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poetry-entry {
  display: grid;
  grid-template-columns: 9.75rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

/* 诗稿筛选标签（右上角胶囊样式） */
.poetry-tab {
  color: #826a57;
  background-color: rgba(255, 255, 255, 0.72);
}

.poetry-tab:hover {
  color: #9a6f47;
  background-color: #ffffff;
}

.poetry-tab-active {
  color: #fffdf8;
  background: linear-gradient(135deg, #c4956a 0%, #a76f45 100%);
}

/* 日期卡片样式 */
.date-card {
  clip-path: polygon(4% 2%, 86% 2%, 95% 8%, 100% 50%, 95% 92%, 86% 98%, 4% 98%, 0 50%);
  border-right: 1px solid rgba(117, 96, 77, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 8px 18px rgba(85, 68, 54, 0.06);
}

.date-card:hover {
  transform: translateY(-2px);
}

.poetry-date-card {
  padding: 0.68rem 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.poetry-date-month {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.1;
}

.date-card-poem {
  background: linear-gradient(135deg, #faf4eb 0%, #f3e4cf 52%, #ead7bf 100%);
}

.date-card-article {
  background: linear-gradient(135deg, #eef4fb 0%, #dde9f7 52%, #cfdff0 100%);
}

.date-text-poem {
  color: #7d5738;
}

.date-text-article {
  color: #44566d;
}

/* 日期数字圆圈 */
.date-day {
  font-size: 0.88rem;
  width: 1.68rem;
  height: 1.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 0.32rem;
  border: 1px solid;
}

.date-day-poem {
  color: #7c5735;
  border-color: rgba(196, 149, 106, 0.72);
  background-color: rgba(255, 248, 241, 0.92);
}

.date-day-article {
  color: #46586b;
  border-color: rgba(119, 142, 171, 0.45);
  background-color: rgba(255, 255, 255, 0.95);
}

/* 内容卡片样式 */
.content-card {
  border-radius: 1.2rem;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(72, 52, 36, 0.08);
}

.poetry-content-card {
  position: relative;
  border: 1px solid rgba(117, 96, 77, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.poetry-content-card:focus-visible {
  outline: 2px solid rgba(91, 123, 178, 0.38);
  outline-offset: 2px;
}

.poetry-content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 20%),
    linear-gradient(90deg, rgba(196, 149, 106, 0.05), transparent 24%);
  pointer-events: none;
}

.poetry-content-card-poem {
  background-color: rgba(247, 236, 221, 0.98);
}

.poetry-content-card-poem::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 18%),
    linear-gradient(90deg, rgba(196, 149, 106, 0.18), transparent 28%);
}

.poetry-content-card-article {
  background-color: rgba(232, 241, 251, 0.98);
}

.poetry-content-card-article::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 18%),
    linear-gradient(90deg, rgba(91, 123, 178, 0.18), transparent 28%);
}

.poetry-content-inner {
  position: relative;
  z-index: 1;
  padding: 0.84rem 1.02rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.poetry-content-main {
  flex: 1;
  min-width: 0;
}

.poetry-entry-head {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.34rem;
}

.poetry-kind-badge {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.poetry-entry-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.08rem;
  line-height: 1.32;
  color: #3d3026;
  transition: color 0.2s ease;
}

.poetry-entry-title:hover {
  color: #a06f48;
}

.poetry-entry-summary {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6b5a4c;
}

.poetry-entry-summary-empty {
  color: #7a695b;
}

.poetry-entry-side {
  min-width: 2.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.poetry-score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #b68046;
}

.poetry-score-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a4b3d;
}

/* 类型标签 */
.poem-tag {
  background-color: rgba(198, 153, 112, 0.14);
  color: #8a5f3d;
  border: 1px solid rgba(196, 149, 106, 0.38);
  font-weight: 600;
}

.article-tag {
  background-color: rgba(91, 123, 178, 0.12);
  color: #46658f;
  border: 1px solid rgba(91, 123, 178, 0.28);
  font-weight: 600;
}

/* 纸张背景 */
.paper-bg {
  background-color: #FFFFFF;
  background-image: 
    linear-gradient(to bottom, rgba(212, 200, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 30px;
}

.poetry-pagination-shell {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(117, 96, 77, 0.1);
}

/* 文字截断 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 诗稿详情页：书卷效果 */
.poetry-scroll {
  background-image: linear-gradient(180deg, #F5F1E8 0%, #FFFFFF 10%, #FFFFFF 90%, #F5F1E8 100%);
  padding: 20px;
  border-radius: 8px;
}

.poetry-scroll .bg-white {
  background-color: #FEFDFB;
}

.poetry-detail-page {
  background:
    radial-gradient(circle at top left, rgba(196, 149, 106, 0.1), transparent 30%),
    linear-gradient(180deg, #f4f1e8 0%, #efeadf 100%);
}

.poetry-detail-scroll {
  padding: 18px;
  border-radius: 1.4rem;
}

.poetry-detail-card {
  border: 1px solid rgba(117, 96, 77, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 252, 247, 0.94);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(72, 52, 36, 0.06);
}

.poetry-detail-card-poem {
  background:
    linear-gradient(180deg, rgba(251, 246, 239, 0.96) 0%, rgba(255, 252, 247, 0.94) 100%);
}

.poetry-detail-card-article {
  background:
    linear-gradient(180deg, rgba(244, 248, 253, 0.96) 0%, rgba(255, 252, 247, 0.94) 100%);
}

.poetry-detail-header {
  padding: 1.4rem 1.5rem 0;
}

.poetry-detail-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #8b7767;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.poetry-detail-backlink:hover {
  color: #5b7bb2;
}

.poetry-detail-head-main {
  margin-top: 1rem;
  padding: 1.35rem 0 1.15rem;
  border-bottom: 1px solid rgba(117, 96, 77, 0.08);
  text-align: center;
}

.poetry-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.poetry-detail-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
}

.poetry-detail-kind-poem {
  background: rgba(198, 153, 112, 0.14);
  color: #8a5f3d;
  border-color: rgba(196, 149, 106, 0.34);
}

.poetry-detail-kind-article {
  background: rgba(91, 123, 178, 0.12);
  color: #46658f;
  border-color: rgba(91, 123, 178, 0.24);
}

.poetry-detail-meta-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(117, 96, 77, 0.26);
}

.poetry-detail-author,
.poetry-detail-date {
  font-size: 0.9rem;
  color: #857261;
}

.poetry-detail-title {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(1.32rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: 0.05em;
  color: #342b24;
}

.poetry-detail-content {
  margin-bottom: 0;
  padding: 2.25rem 1.5rem 1rem;
}

.poetry-detail-content-poem {
  padding-left: 2rem;
}

.poetry-detail-content-body {
  color: #4b4036;
  font-size: 0.98rem;
  line-height: 1.95;
  word-break: break-word;
}

.poetry-detail-content-body p {
  margin: 0 0 0.9em;
  min-height: 1.95em;
}

.poetry-detail-content-body p:last-child {
  margin-bottom: 0;
}

.poetry-detail-content-body h1,
.poetry-detail-content-body h2,
.poetry-detail-content-body h3,
.poetry-detail-content-body h4,
.poetry-detail-content-body h5,
.poetry-detail-content-body h6 {
  margin: 1.1em 0 0.75em;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-weight: 600;
  line-height: 1.45;
  color: #352c25;
}

.poetry-detail-content-body h1,
.poetry-detail-content-body h1 span,
.poetry-detail-content-body h1 strong,
.poetry-detail-content-body h1 em {
  font-size: 1.62rem !important;
}

.poetry-detail-content-body h2,
.poetry-detail-content-body h2 span,
.poetry-detail-content-body h2 strong,
.poetry-detail-content-body h2 em {
  font-size: 1.42rem !important;
}

.poetry-detail-content-body h3,
.poetry-detail-content-body h3 span,
.poetry-detail-content-body h3 strong,
.poetry-detail-content-body h3 em {
  font-size: 1.22rem !important;
}

.poetry-detail-content-body h4,
.poetry-detail-content-body h4 span,
.poetry-detail-content-body h4 strong,
.poetry-detail-content-body h4 em {
  font-size: 1.08rem !important;
}

.poetry-detail-content-body h5,
.poetry-detail-content-body h5 span,
.poetry-detail-content-body h5 strong,
.poetry-detail-content-body h5 em {
  font-size: 1rem !important;
}

.poetry-detail-content-body h6,
.poetry-detail-content-body h6 span,
.poetry-detail-content-body h6 strong,
.poetry-detail-content-body h6 em {
  font-size: 0.95rem !important;
}

.poetry-detail-content-body br {
  display: block;
  content: "";
  margin: 0.15em 0;
}

.poetry-detail-content-body p:has(> br:only-child) {
  margin: 0.65em 0;
  min-height: 1.15em;
}

.poetry-detail-content-body strong {
  font-weight: 600;
}

.poetry-detail-content-body em {
  font-style: italic;
}

.poetry-detail-content-body blockquote {
  margin: 1em 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid rgba(196, 149, 106, 0.52);
  background: rgba(250, 244, 236, 0.82);
  color: #6f5f52;
}

.poetry-detail-content-body ul,
.poetry-detail-content-body ol {
  margin: 0 0 0.9em 1.4em;
}

.poetry-detail-content-body li {
  margin: 0.3em 0;
}

.poetry-detail-content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
}

.poetry-detail-content-body pre,
.poetry-detail-content-body code {
  font-family: "Cascadia Code", "Consolas", monospace;
}

.poetry-detail-content-body pre {
  margin: 1.25em 0;
  padding: 0.85rem 0.95rem;
  overflow-x: auto;
  border-radius: 0.7rem;
  background: rgba(57, 48, 40, 0.88);
  color: #f4eee7;
  text-align: left;
  line-height: 1.7;
}

.poetry-detail-content-body :not(pre) > code {
  padding: 0.12rem 0.38rem;
  border-radius: 0.4rem;
  background: rgba(117, 96, 77, 0.08);
  color: #6b4c34;
}

.poetry-detail-note {
  margin: 0 1.5rem 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(196, 149, 106, 0.18);
  background:
    linear-gradient(180deg, rgba(251, 245, 236, 0.96) 0%, rgba(247, 239, 228, 0.92) 100%);
}

.poetry-detail-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.poetry-detail-note-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8a5f3d;
  font-size: 0.9rem;
  font-weight: 600;
}

.poetry-detail-note-score {
  font-size: 0.82rem;
  color: #8e7762;
}

.poetry-detail-note-body {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #6a584b;
}

.poetry-detail-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 1.5rem 1.5rem;
}

.poetry-detail-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 4.45rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(117, 96, 77, 0.12);
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.poetry-detail-nav-card:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 123, 178, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(72, 52, 36, 0.04);
}

.poetry-detail-nav-prev {
  background:
    linear-gradient(180deg, rgba(243, 231, 215, 0.98) 0%, rgba(255, 251, 246, 0.94) 100%);
}

.poetry-detail-nav-next {
  background:
    linear-gradient(180deg, rgba(225, 237, 249, 0.98) 0%, rgba(247, 251, 255, 0.94) 100%);
}

.poetry-detail-nav-empty {
  justify-content: space-between;
  color: #b2a79d;
  background: rgba(250, 248, 245, 0.72);
}

.poetry-detail-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #8e7865;
}

.poetry-detail-nav-main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.poetry-detail-nav-kind {
  min-width: 1.35rem;
  height: 1.35rem;
  font-size: 0.68rem;
}

.poetry-detail-nav-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #46392f;
}

.poetry-detail-nav-empty-text {
  font-size: 0.88rem;
  color: #b3a79c;
}

.poetry-detail-comments {
  width: 100%;
}

/* 诗稿内容区域 */

/* 诗稿自评区域 */

/* 印章样式 */

@media (max-width: 1023px) {
  .poetry-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .poetry-header-side {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .poetry-detail-nav {
    grid-template-columns: 1fr;
  }

  .poetry-entry {
    grid-template-columns: 1fr;
  }

  .poetry-date-card {
    min-height: auto;
    clip-path: none;
    border-radius: 1rem;
    align-items: flex-start;
    padding: 0.78rem 0.92rem;
  }

  .poetry-date-month {
    font-size: 1.12rem;
  }

  .poetry-content-inner {
    padding: 0.92rem 0.96rem;
    flex-direction: column;
  }

  .poetry-entry-head {
    align-items: flex-start;
  }

  .poetry-entry-title {
    font-size: 1.02rem;
  }

  .poetry-entry-side {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }
}

/* 搜索关键词高亮样式 */
strong.highlight{
	color: red;
}
