/* ==========================================
   文章详情页样式
   ========================================== */

.container-narrow { max-width: 720px; }

/* Post Header */
.post-header {
  padding: 64px 0 48px;
  background: linear-gradient(170deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.post-meta-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.post-category {
  background: var(--green-pale); color: var(--green);
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 15px; border-radius: 14px;
}
.post-reading-time {
  font-size: .82rem; color: var(--text-muted);
}
.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
  font-weight: 700; line-height: 1.4; margin-bottom: 16px;
  color: var(--text); letter-spacing: .01em;
}
.post-subtitle {
  font-size: 1.08rem; color: var(--text-light); line-height: 1.75; margin-bottom: 30px;
}
.post-byline {
  display: flex; align-items: center; gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74,107,79,.25);
}
.author-info { display: flex; flex-direction: column; }
.author-name { font-size: .95rem; font-weight: 600; color: var(--text); }
.post-date { font-size: .82rem; color: var(--text-muted); }

/* Post Body */
.post-body { padding: 52px 0 72px; }
.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700; margin: 52px 0 20px;
  color: var(--text); letter-spacing: .01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}
.post-body h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem; font-weight: 700; margin: 36px 0 14px;
  color: var(--text);
}
.post-body p {
  font-size: 1.02rem; line-height: 1.9; margin-bottom: 20px;
  color: var(--text-light);
}
.post-body ul, .post-body ol {
  margin: 0 0 22px 24px;
  font-size: 1rem; line-height: 1.9; color: var(--text-light);
}
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--green); }
.post-body strong { color: var(--text); }
.post-body blockquote {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-light));
  border-left: 4px solid var(--gold);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0; font-size: .98rem; line-height: 1.8; color: var(--text-light);
}
.post-body blockquote p { margin-bottom: 0; }

/* Medical disclaimer */
.medical-disclaimer {
  background: var(--green-pale); color: var(--green-deep);
  padding: 18px 22px; border-radius: var(--radius-sm);
  font-size: .85rem; line-height: 1.7; margin-bottom: 36px;
  border: 1px solid rgba(74,107,79,.1);
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-light));
  border-left: 4px solid var(--gold);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0;
  font-size: .98rem; line-height: 1.8; color: var(--text-light);
}

/* Tip box */
.tip-box {
  background: var(--green-pale); border-left: 4px solid var(--green);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0;
  font-size: .95rem; line-height: 1.8; color: var(--text-light);
  border: 1px solid rgba(74,107,79,.08);
}
.tip-box strong { display: block; margin-bottom: 8px; color: var(--green); }

/* Food tables */
.food-table, .meal-plan {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 28px 0 36px;
  font-size: .92rem; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border);
}
.food-table th, .meal-plan th {
  background: var(--green); color: #fff;
  padding: 13px 16px; text-align: left; font-weight: 600;
  font-size: .88rem; letter-spacing: .03em;
}
.food-table th:first-child, .meal-plan th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.food-table th:last-child, .meal-plan th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.food-table td, .meal-plan td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-light); background: var(--white);
}
.food-table tr:last-child td:first-child, .meal-plan tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-sm); }
.food-table tr:last-child td:last-child, .meal-plan tr:last-child td:last-child { border-radius: 0 0 var(--radius-sm) 0; }
.food-table tr:nth-child(even) td, .meal-plan tr:nth-child(even) td {
  background: rgba(232,240,229,.3);
}
.food-table tr:hover td, .meal-plan tr:hover td {
  background: var(--cream);
}

/* Recipe grid */
.recipe-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin: 22px 0 36px;
}
.recipe-card {
  background: var(--cream); padding: 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.recipe-card h4 {
  font-size: .98rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text);
}
.recipe-card p {
  font-size: .88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0;
}

/* References */
.references {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--text-muted);
}
.references h3 {
  font-family: var(--font-sans);
  font-size: .92rem; font-weight: 600; margin-bottom: 10px; color: var(--text-muted);
}
.references ol { margin-left: 18px; }
.references li { margin-bottom: 6px; line-height: 1.6; }
.references em { font-style: italic; }

/* Author box */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 52px; padding: 28px;
  background: var(--cream); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.author-avatar-large {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74,107,79,.2);
}
.author-bio h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text);
}
.author-bio p {
  font-size: .9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0;
}

/* Share */
.share-box {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted);
}
.share-link {
  color: var(--green); font-weight: 500;
  padding: 6px 16px; border: 1.5px solid var(--green);
  border-radius: 20px; font-size: .82rem;
  transition: all var(--transition);
}
.share-link:hover { background: var(--green); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(74,107,79,.2); }

/* Related articles */
.related { padding: 72px 0 80px; background: var(--cream); }

/* Responsive */
@media (max-width: 640px) {
  .post-header { padding: 40px 0 32px; }
  .post-body { padding: 36px 0 52px; }
  .post-body h2 { font-size: 1.25rem; margin: 40px 0 16px; padding-bottom: 8px; }
  .post-body h3 { font-size: 1.05rem; }
  .recipe-grid { grid-template-columns: 1fr; }
  .food-table, .meal-plan { font-size: .8rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .food-table th, .food-table td, .meal-plan th, .meal-plan td { white-space: nowrap; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .share-box { justify-content: center; flex-wrap: wrap; }
}
