/* =====================================================
 * 老有所学 · 阅读书院（elder-20261006）
 * 适老化：大字、高对比、圆角大按钮、米黄护眼底色
 * ===================================================== */

/* ---- 板块 banner（首页卡片点进来的头图）---- */
.elder-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6ead6, #eef0dd);
  box-shadow: 0 2px 10px rgba(120, 90, 40, .10);
}
.elder-banner-img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: right center;   /* 主体偏右，左侧留白给文字 */
}
.elder-banner-plain { height: 140px; }
.elder-banner-text {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b4a1e;
  /* ★ 副标题叠在插画上可读性不足，加一层米白毛玻璃底 */
  padding: 12px 18px;
  background: rgba(252, 248, 238, .82);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(120, 90, 40, .12);
}
.elder-banner-text h2 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: 2px;
}
.elder-banner-text p {
  margin: 0;
  font-size: 15px;
  color: #8a6a3a;
}

/* ---- 继续阅读条 ---- */
.elder-continue {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 14px 0;
  padding: 14px 18px;
  border: 1.5px solid #e8933d;
  border-radius: 14px;
  background: #fff8ee;
  font-size: 17px;
  color: #6b4a1e;
  cursor: pointer;
  text-align: left;
}
.elder-continue-ic { font-size: 22px; }
.elder-continue-go { margin-left: auto; color: #e07a2a; font-weight: 600; }
.elder-continue:hover { background: #fdf1dd; }

/* ---- 分类 tab ---- */
.elder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
}
.elder-tab {
  padding: 9px 20px;
  border: 1.5px solid #d8c9a8;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  color: #7a5c30;
  cursor: pointer;
}
.elder-tab.on {
  background: #e8933d;
  border-color: #e8933d;
  color: #fff;
  font-weight: 600;
}

/* ---- 书架网格 ---- */
.elder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 14px;
}
.elder-book {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1.5px solid #e5d9c0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: box-shadow .15s, transform .15s;
}
.elder-book:hover {
  box-shadow: 0 4px 14px rgba(120, 90, 40, .14);
  transform: translateY(-2px);
}
.elder-book-cat {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0dd;
  color: #6f7d3e;
  font-size: 13px;
}
.elder-book-title {
  font-size: 19px;
  font-weight: 700;
  color: #4a3517;
  line-height: 1.4;
}
.elder-book-intro {
  font-size: 15px;
  color: #7c6a4d;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.elder-book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #a08c66;
}
.elder-book-readmark { color: #5c8a3a; font-weight: 600; }
.elder-book.read { border-color: #cfe0b8; background: #fbfdf7; }

/* ---- 阅读页（适老化大字）---- */
.elder-reading {
  max-width: 760px;
  margin: 0 auto;
  background: #fdf8ee;
  border: 1.5px solid #ecdfc4;
  border-radius: 16px;
  padding: 22px 26px 26px;
}
.elder-back {
  padding: 8px 16px;
  border: 1.5px solid #d8c9a8;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #7a5c30;
  cursor: pointer;
}
.elder-back:hover { background: #f7efdd; }
.elder-reading-head { margin: 18px 0 6px; }
.elder-reading-title {
  margin: 10px 0 6px;
  font-size: 27px;
  color: #4a3517;
  line-height: 1.35;
}
.elder-reading-sub {
  margin: 0 0 8px;
  font-size: 14px;
  color: #a08c66;
}
.elder-reading-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e0d2b2;
}
.elder-reading-body p {
  margin: 0 0 16px;
  font-size: 21px;          /* ★ 适老化：21px 正文 */
  line-height: 1.9;         /* ★ 宽行距 */
  color: #3f3222;
  text-align: justify;
}
.elder-reading-nav {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.elder-nav-btn {
  flex: 1;
  min-width: 150px;
  padding: 14px 12px;
  border: 1.5px solid #d8c9a8;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  color: #6b4a1e;
  cursor: pointer;
  line-height: 1.5;
}
.elder-nav-btn small { color: #a08c66; font-size: 13px; }
.elder-nav-btn:hover { background: #f7efdd; }
.elder-nav-shelf { flex: 0 0 130px; background: #eef0dd; border-color: #c9d3a4; color: #5d6b33; }

/* ---- 加载 / 空态 ---- */
.elder-loading {
  padding: 40px 0;
  text-align: center;
  color: #a08c66;
  font-size: 15px;
}

/* ---- 首页板块卡片：插画变体 ---- */
.hm-card .hm-img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: right center;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ---- 窄屏 ---- */
@media (max-width: 560px) {
  .elder-banner-img { height: 170px; }
  .elder-banner-text { left: 16px; }
  .elder-banner-text h2 { font-size: 22px; }
  .elder-banner-text p { font-size: 13px; }
  .elder-reading { padding: 16px 14px 20px; }
  .elder-reading-body p { font-size: 19px; line-height: 1.85; }
  .elder-reading-title { font-size: 22px; }
  .elder-nav-btn { min-width: 120px; }
}
