/* ===========================
   健康贴士 - 页面样式
   风格：与首页一致的自然养生风格
   =========================== */

/* ----- Hero Banner ----- */
.health-hero {
  position: relative;
  width: 100%;
  padding: 100px 0 72px;
  background: linear-gradient(160deg, #1a4d38 0%, #2d6652 40%, #3a7d5f 70%, #2f7a5b 100%);
  overflow: hidden;
  text-align: center;
}
.health-hero .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  color: #fff;
}
.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 7px 22px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
}
.health-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.health-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin: 0 auto;
}

/* Background particles */
.hero-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg-particles .hp {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation: hpFloat 14s ease-in-out infinite;
}
.hp.h1 { width:240px; height:240px; top:-80px; right:-60px; }
.hp.h2 { width:180px; height:180px; bottom:-40px; left:-70px; animation-delay: 3s; }
.hp.h3 { width:120px; height:120px; top:30%; right:20%; animation-delay: 6s; }
.hp.h4 { width:80px; height:80px; top:10%; left:25%; animation-delay: 9s; }
.hp.h5 { width:100px; height:100px; bottom:10%; right:35%; animation-delay: 12s; }
@keyframes hpFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(18px,-22px) scale(1.15); }
}

/* ----- Main Layout ----- */
.health-main {
  padding: 64px 0 80px;
  background: #f8faf9;
}
.health-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Left: article list */
.health-list {
  flex: 1;
  min-width: 0;
}

/* ----- Article grid (3 columns) ----- */
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.health-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31,87,64,.08);
  border: 1px solid #eaf0ec;
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
}
.health-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(47,122,91,.2);
  border-color: #c5ddd0;
}

/* Card image */
.card-img {
  display: block;
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #e4ede6, #d7e8df);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.health-card:hover .card-img img {
  transform: scale(1.08);
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #e4ede6, #d0e2d7);
}
.card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(47,122,91,.9);
  color: #fff;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Card body */
.card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #8a9a8e;
  margin-bottom: 12px;
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a4d38;
  margin: 0 0 10px;
  line-height: 1.4;
}
.card-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}
.card-body h3 a:hover {
  color: #2f9e74;
}
.card-summary {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6b5f;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2f9e74;
  text-decoration: none;
  transition: gap .3s;
}
.card-more:hover {
  gap: 10px;
  color: #1a4d38;
}
.card-more i {
  font-style: normal;
  transition: transform .3s;
}
.card-more:hover i {
  transform: translateX(3px);
}

/* ----- Empty state ----- */
.health-empty {
  text-align: center;
  padding: 80px 20px;
}
.health-empty .empty-ico {
  font-size: 64px;
  margin-bottom: 20px;
}
.health-empty h3 {
  font-size: 22px;
  color: #1a4d38;
  margin: 0 0 10px;
}
.health-empty p {
  font-size: 15px;
  color: #8a9a8e;
  margin: 0;
}

/* ----- Pagination ----- */
.health-pagination {
  margin-top: 48px;
  text-align: center;
}
.health-pagination .pagination {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.health-pagination .pagination li {
  display: inline-block;
}
.health-pagination .pagination li a,
.health-pagination .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #5a6b5f;
  background: #fff;
  border: 1px solid #e4ede6;
  text-decoration: none;
  transition: all .3s;
  box-sizing: border-box;
}
.health-pagination .pagination li a:hover {
  background: #f0f7f3;
  border-color: #2f9e74;
  color: #2f9e74;
}
.health-pagination .pagination li.active span {
  background: linear-gradient(135deg, #3aa876, #2f7a5b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(47,122,91,.3);
}
.health-pagination .pagination li.disabled span {
  color: #c0cac4;
  background: #f5f7f6;
  cursor: not-allowed;
}

/* ----- Sidebar ----- */
.health-sidebar {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid #eaf0ec;
  box-shadow: 0 6px 20px rgba(31,87,64,.06);
}
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e4ede6;
  font-size: 17px;
  font-weight: 700;
  color: #1a4d38;
}

/* Hot list */
.hot-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid #f0f4f1;
  transition: all .3s;
}
.hot-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hot-item:hover .hot-info h4 {
  color: #2f9e74;
}
.hot-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: #e4ede6;
  color: #5a6b5f;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.hot-rank.top {
  background: linear-gradient(135deg, #3aa876, #2f7a5b);
  color: #fff;
  box-shadow: 0 3px 10px rgba(47,122,91,.3);
}
.hot-info {
  flex: 1;
  min-width: 0;
}
.hot-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a4d38;
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s;
}
.hot-count {
  font-size: 12px;
  color: #a0b0a6;
}

.no-data {
  text-align: center;
  color: #a0b0a6;
  font-size: 14px;
  padding: 16px 0;
  margin: 0;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f7f3;
  color: #2f7a5b;
  border-radius: 999px;
  font-size: 13px;
  cursor: default;
  transition: all .3s;
  border: 1px solid transparent;
}
.tag-item:hover {
  background: #2f7a5b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(47,122,91,.25);
}

/* Tip box */
.sidebar-tip {
  background: linear-gradient(160deg, #f8fdfa, #eaf6f0);
  text-align: center;
  border-color: #d0e8d8;
}
.sidebar-tip .tip-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.sidebar-tip h4 {
  font-size: 16px;
  color: #1a4d38;
  margin: 0 0 10px;
  font-weight: 700;
}
.sidebar-tip p {
  font-size: 14px;
  line-height: 1.8;
  color: #5a6b5f;
  margin: 0 0 8px;
}
.sidebar-tip cite {
  font-size: 13px;
  color: #8a9a8e;
  font-style: italic;
}

/* ===========================
   详情页样式
   =========================== */
.detail-page {
  background: #f8faf9;
  min-height: 60vh;
}

/* Top bar */
.detail-topbar {
  background: #fff;
  border-bottom: 1px solid #eaf0ec;
  padding: 16px 0;
}
.detail-topbar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #8a9a8e;
}
.back-link {
  color: #2f7a5b;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover {
  color: #1a4d38;
}
.back-link i {
  font-style: normal;
  transition: transform .3s;
}
.back-link:hover i {
  transform: translateX(-3px);
}
.breadcrumb-sep {
  color: #c0cac4;
}
.breadcrumb-current {
  color: #5a6b5f;
}

/* Article main */
.detail-article {
  padding: 48px 0;
}
.detail-article .container {
  max-width: 860px;
  width: 860px;
}

/* Cover image */
.detail-cover {
  margin-bottom: 36px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.detail-cover img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* Header */
.detail-header {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid #e4ede6;
}
.detail-cat {
  display: inline-block;
  background: linear-gradient(135deg, #3aa876, #2f7a5b);
  color: #fff;
  font-size: 13px;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.detail-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a4d38;
  line-height: 1.35;
  margin: 0 0 18px;
}
.detail-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #8a9a8e;
}

/* Summary blockquote */
.detail-summary {
  background: linear-gradient(160deg, #f0f7f3, #e6f2eb);
  border-left: 4px solid #3aa876;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.detail-summary p {
  font-size: 16px;
  line-height: 1.8;
  color: #3a5d4a;
  margin: 0;
  font-weight: 500;
}

/* Content body */
.detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: #3a403d;
  word-wrap: break-word;
}
.detail-content p {
  margin: 0 0 18px;
  text-indent: 2em;
}
.detail-content h2 {
  font-size: 22px;
  color: #1a4d38;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e4ede6;
  font-weight: 700;
}
.detail-content h3 {
  font-size: 19px;
  color: #2f7a5b;
  margin: 28px 0 12px;
  font-weight: 700;
}
.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.detail-content ul, .detail-content ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.detail-content li {
  margin-bottom: 8px;
}
.detail-content strong {
  color: #1a4d38;
  font-weight: 700;
}
.detail-content em {
  color: #5a6b5f;
}
.detail-content blockquote {
  background: #f8fdfa;
  border-left: 3px solid #7fd1a8;
  margin: 0 0 18px;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
.detail-content blockquote p {
  margin: 0;
  text-indent: 0;
}

/* Copyright */
.detail-copyright {
  margin-top: 48px;
  padding: 18px 24px;
  background: #f8fdfa;
  border-radius: 12px;
  border: 1px solid #d0e8d8;
  text-align: center;
}
.detail-copyright p {
  font-size: 13px;
  color: #8a9a8e;
  margin: 0;
  line-height: 1.7;
}

/* Prev/Next nav */
.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #e4ede6;
}
.nav-prev, .nav-next {
  flex: 1;
}
.nav-prev .nav-label, .nav-next .nav-label {
  display: block;
  font-size: 13px;
  color: #8a9a8e;
  margin-bottom: 8px;
}
.nav-label.disabled {
  opacity: .5;
}
.nav-prev .nav-label {
  text-align: left;
}
.nav-next .nav-label {
  text-align: right;
}
.nav-prev a, .nav-next a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a4d38;
  text-decoration: none;
  transition: color .3s;
  line-height: 1.5;
}
.nav-prev a {
  text-align: left;
}
.nav-next a {
  text-align: right;
}
.nav-prev a:hover, .nav-next a:hover {
  color: #2f9e74;
}
.nav-hint {
  display: block;
  font-size: 13px;
  color: #c0cac4;
}

/* ----- Related articles ----- */
.detail-related {
  padding: 56px 0 80px;
  background: #fff;
}
.detail-related h2 {
  text-align: center;
  font-size: 26px;
  color: #1a4d38;
  margin: 0 0 36px;
  font-weight: 700;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.related-card {
  background: #f8faf9;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all .35s;
  border: 1px solid #eaf0ec;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(47,122,91,.15);
  border-color: #c5ddd0;
}
.related-img {
  height: 160px;
  overflow: hidden;
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.related-card:hover .related-img img {
  transform: scale(1.06);
}
.related-info {
  padding: 16px 18px 20px;
}
.related-cat {
  display: inline-block;
  font-size: 11px;
  color: #2f9e74;
  background: #e6f2eb;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.related-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a4d38;
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-info p {
  font-size: 13px;
  line-height: 1.7;
  color: #8a9a8e;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta {
  font-size: 12px;
  color: #a0b0a6;
}
.no-related {
  grid-column: 1 / -1;
  text-align: center;
  color: #a0b0a6;
  font-size: 15px;
  padding: 40px;
}

/* ===========================
   响应式
   =========================== */

@media (max-width:1280px) {
  .health-sidebar { width: 300px; }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-article .container { max-width: 92%; width: auto; }
  .related-grid { max-width: 92%; }
}

@media (max-width:1024px) {
  .health-hero { padding: 80px 0 56px; }
  .health-hero h1 { font-size: 38px; }
  .health-hero p { font-size: 15px; }
  .health-layout { flex-direction: column; }
  .health-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .health-sidebar .sidebar-block { flex: 1 1 280px; }
  .detail-article .container { max-width: 96%; }
}

@media (max-width:768px) {
  .health-hero { padding: 64px 0 44px; }
  .health-hero h1 { font-size: 30px; }
  .health-hero p { font-size: 14px; max-width: 90%; }
  .health-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-img { height: 180px; }
  .health-sidebar { flex-direction: column; }
  .health-sidebar .sidebar-block { flex: none; }
  .detail-article { padding: 32px 0; }
  .detail-header h1 { font-size: 24px; }
  .detail-content { font-size: 15px; }
  .detail-nav { flex-direction: column; gap: 16px; }
  .nav-next .nav-label, .nav-next a { text-align: left; }
  .related-grid { grid-template-columns: 1fr; gap: 14px; }
  .related-img { height: 140px; }
  .detail-article .container { max-width: 100%; padding: 0 16px; }
  .related-grid { max-width: 100%; padding: 0 16px; }
}

@media (max-width:480px) {
  .health-hero { padding: 52px 0 36px; }
  .health-hero h1 { font-size: 26px; }
  .health-hero p { font-size: 13px; }
  .card-body { padding: 14px 16px 18px; }
  .card-body h3 { font-size: 16px; }
  .card-summary { font-size: 13px; }
  .detail-header h1 { font-size: 21px; }
  .detail-content { font-size: 14px; }
}
