/* ═══════════════ 阅日 — 主容器 ═══════════════ */

.yueri-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 24px 86px;
}

/* ═══════════════ 顶部 Hero ═══════════════ */

.yueri-hero {
  text-align: center;
  margin-bottom: 34px;
}

.yueri-hero .eyebrow {
  margin-bottom: 8px;
}

.yueri-hero h1 {
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--ink, #171717);
}

.yueri-hero p {
  font-size: 18px;
  color: var(--muted, #68645f);
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════════ 日期导航栏 ═══════════════ */

.yueri-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e6e0d7);
  border-radius: 10px;
  box-shadow: var(--shadow, 0 22px 70px rgba(23,23,23,0.1));
  margin-bottom: 36px;
  position: sticky;
  top: 86px;
  z-index: 10;
}

.yueri-date-display {
  text-align: center;
  flex: 1;
}

.yueri-date-display strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #171717);
  white-space: nowrap;
}

.yueri-date-display span {
  display: block;
  font-size: 13px;
  color: var(--muted, #68645f);
  margin-top: 2px;
}

.yueri-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink, #171717);
  background: var(--surface-soft, #f0f5ee);
  border: 1px solid var(--line, #e6e0d7);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.yueri-nav-button:hover:not(:disabled) {
  background: var(--accent-soft, #d8f0ea);
}

.yueri-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.yueri-nav-right {
  display: flex;
  gap: 8px;
}

.yueri-today-button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
  color: var(--accent, #0f766e);
  background: transparent;
  border: 1px solid var(--accent, #0f766e);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.yueri-today-button:hover:not(:disabled) {
  background: var(--accent, #0f766e);
  color: #fff;
}

.yueri-today-button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ═══════════════ 文章区域 ═══════════════ */

.yueri-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 0 32px;
}

.yueri-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.yueri-type-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.badge-story {
  background: var(--accent-soft, #d8f0ea);
  color: var(--accent-strong, #0b5c55);
}

.badge-essay {
  background: #fef3c7;
  color: #92400e;
}

.badge-poem {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-quote {
  background: #fce7f3;
  color: #be185d;
}

.yueri-word-count {
  font-size: 13px;
  color: var(--muted, #68645f);
}

.yueri-article-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink, #171717);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.yueri-article-author {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted, #68645f);
  margin-bottom: 4px;
}

.yueri-article-source {
  font-size: 14px;
  color: var(--muted, #68645f);
  margin-bottom: 36px;
}

/* ═══════════════ 正文排版 ═══════════════ */

.yueri-article-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink, #171717);
  letter-spacing: 0.01em;
}

.yueri-article-content p {
  margin-bottom: 1.4em;
  text-indent: 2em;
}

.yueri-article-content p:first-child {
  text-indent: 2em;
}

/* 诗歌每行单独呈现，不缩进 */
.yueri-article-content p.poem-line {
  text-indent: 0;
  margin-bottom: 0.28em;
}

.yueri-article-content p.section-break {
  height: 0;
  margin: 0;
}

.yueri-article-footer {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e6e0d7);
  font-size: 13px;
  color: var(--muted, #68645f);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.yueri-api-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface-soft, #f0f5ee);
  color: var(--muted, #68645f);
}

/* ═══════════════ 加载与空状态 ═══════════════ */

.yueri-loading,
.yueri-empty {
  max-width: 680px;
  margin: 60px auto;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e6e0d7);
  border-radius: 10px;
  box-shadow: var(--shadow, 0 22px 70px rgba(23,23,23,0.1));
}

.yueri-loading p {
  font-size: 16px;
  color: var(--muted, #68645f);
}

.yueri-empty h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #171717);
  margin-bottom: 8px;
}

.yueri-empty p {
  font-size: 15px;
  color: var(--muted, #68645f);
}

/* ═══════════════ 每日一言引用区 ═══════════════ */

.yueri-quote {
  max-width: 680px;
  margin: 32px auto 0;
  padding: 32px 36px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e6e0d7);
  border-radius: 10px;
  text-align: center;
}

.yueri-quote-block {
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink, #171717);
  margin-bottom: 12px;
  font-weight: 500;
}

.yueri-quote-source {
  font-size: 14px;
  color: var(--muted, #68645f);
}

.yueri-quote-source::before {
  content: "—— ";
}

/* ═══════════════ 响应式 ═══════════════ */

@media (max-width: 900px) {
  .yueri-shell {
    padding: 28px 20px 60px;
  }

  .yueri-article {
    padding: 32px 0 24px;
  }

  .yueri-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .yueri-shell {
    padding: 20px 16px 48px;
  }

  .yueri-hero h1 {
    font-size: 44px;
  }

  .yueri-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px;
  }

  .yueri-date-display {
    order: -1;
    flex: 1 1 100%;
  }

  .yueri-date-display strong {
    font-size: 16px;
  }

  .yueri-nav-button {
    padding: 8px 14px;
    font-size: 13px;
  }

  .yueri-today-button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .yueri-article {
    padding: 24px 0 20px;
  }

  .yueri-article-content {
    font-size: 16px;
    line-height: 1.78;
  }

  .yueri-article-title {
    font-size: 22px;
  }

  .yueri-article-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
}
