/* 资讯列表与文章内页 — happyWorld 红白视觉 */

:root {
  --hw-news-mc: #e63d5a;
  --hw-news-mc-dark: #c92f49;
  --hw-news-bg: #f5f6fa;
  --hw-news-card: #ffffff;
  --hw-news-border: rgba(230, 61, 90, 0.14);
  --hw-news-text: #333333;
  --hw-news-muted: #666666;
}

.happyworld-inner {
  min-height: 60vh;
  padding-top: 86px;
}

.page-news.happyworld-inner,
.page-single.happyworld-inner,
.page-archive-tax.happyworld-inner {
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(230, 61, 90, 0.08) 0%, transparent 55%),
    var(--hw-news-bg);
}

.happyworld-news-surface {
  padding-bottom: 72px;
}

.happyworld-news-inner,
.happyworld-single-inner {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.happyworld-single-inner {
  max-width: 760px;
}

.happyworld-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0 0 22px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--hw-news-muted);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.happyworld-breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: #ccc;
}

.happyworld-breadcrumbs a {
  color: var(--hw-news-mc);
  text-decoration: none;
}

.happyworld-breadcrumbs a:hover {
  text-decoration: underline;
}

.happyworld-news-hero {
  position: relative;
  margin-bottom: 36px;
  padding: 8px 0 28px;
  border-bottom: 1px solid rgba(230, 61, 90, 0.15);
}

.happyworld-news-hero-accent,
.happyworld-single-hero-accent {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--hw-news-mc), rgba(230, 61, 90, 0.25));
}

.happyworld-news-title,
.happyworld-single-title {
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--hw-news-text);
}

.happyworld-news-intro {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hw-news-muted);
}

.happyworld-archive-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(180deg, #f06b82 0%, var(--hw-news-mc) 100%);
  border-radius: 999px;
}

.happyworld-archive-count {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hw-news-mc);
}

.happyworld-archive-desc {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hw-news-muted);
}

.happyworld-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.happyworld-news-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hw-news-card);
  border: 1px solid var(--hw-news-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.happyworld-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 61, 90, 0.35);
  box-shadow: 0 14px 36px rgba(230, 61, 90, 0.12);
}

@media (max-width: 640px) {
  .happyworld-news-card {
    grid-template-columns: 1fr;
  }
}

.happyworld-news-thumb {
  display: block;
  min-height: 160px;
  background: linear-gradient(145deg, rgba(230, 61, 90, 0.12) 0%, rgba(245, 246, 250, 1) 100%);
  overflow: hidden;
}

.happyworld-news-thumb-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.happyworld-news-card:hover .happyworld-news-thumb-img {
  transform: scale(1.04);
}

.happyworld-news-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 18px;
  text-align: center;
}

.happyworld-news-thumb-fallback-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hw-news-mc);
  line-height: 1.35;
}

.happyworld-news-card-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
}

.happyworld-news-card-title {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 650;
  line-height: 1.35;
}

.happyworld-news-card-title a {
  color: var(--hw-news-text);
  text-decoration: none;
}

.happyworld-news-card-title a:hover {
  color: var(--hw-news-mc);
}

.happyworld-news-byline {
  margin-bottom: 12px;
}

.happyworld-news-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--hw-news-mc);
}

.happyworld-news-time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hw-news-mc);
}

.happyworld-news-excerpt {
  color: var(--hw-news-muted);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
}

.happyworld-news-excerpt p {
  margin: 0;
}

.happyworld-news-more-wrap {
  margin: 16px 0 0;
}

.happyworld-news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hw-news-mc);
  text-decoration: none;
}

.happyworld-news-more:hover {
  gap: 12px;
}

.happyworld-news-empty-box {
  padding: 40px 28px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(230, 61, 90, 0.35);
  background: #fff;
}

.happyworld-news-empty {
  margin: 0;
  color: var(--hw-news-muted);
}

.happyworld-news-pagination {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(230, 61, 90, 0.12);
}

.happyworld-news-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.happyworld-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--hw-news-text);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #ececec;
}

.happyworld-news-pagination a.page-numbers:hover {
  border-color: var(--hw-news-mc);
  color: var(--hw-news-mc);
}

.happyworld-news-pagination .page-numbers.current {
  background: var(--hw-news-mc);
  color: #fff;
  border-color: var(--hw-news-mc);
  font-weight: 700;
}

/* 单篇文章 */
.happyworld-single-hero {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(230, 61, 90, 0.15);
}

.happyworld-single-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--hw-news-mc);
}

.happyworld-single-time::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hw-news-mc);
  margin-right: 8px;
}

.happyworld-single-meta-sep {
  color: #ccc;
}

.happyworld-single-updated {
  color: var(--hw-news-muted);
  font-size: 13px;
}

.happyworld-single-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.happyworld-single-keywords-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
}

.happyworld-single-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.happyworld-single-keyword {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--hw-news-mc);
  background: rgba(230, 61, 90, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(230, 61, 90, 0.2);
}

.happyworld-single-keyword:hover {
  color: #fff;
  background: var(--hw-news-mc);
}

.happyworld-single-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hw-news-border);
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.happyworld-single-featured {
  margin: 0;
  line-height: 0;
}

.happyworld-single-featured-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.happyworld-single-prose {
  padding: 28px 28px 32px;
}

@media (max-width: 540px) {
  .happyworld-single-prose {
    padding: 22px 18px 26px;
  }
}

.happyworld-post .entry-content {
  color: var(--hw-news-text);
  font-size: 17px;
  line-height: 1.85;
  word-wrap: break-word;
}

.happyworld-post .entry-content a {
  color: var(--hw-news-mc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.happyworld-post .entry-content h2,
.happyworld-post .entry-content h3 {
  color: var(--hw-news-text);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.happyworld-post .entry-content h2 {
  font-size: 1.35em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid #eee;
}

.happyworld-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25em 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.happyworld-post .entry-content blockquote {
  margin: 1.25em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--hw-news-mc);
  border-radius: 0 10px 10px 0;
  background: rgba(230, 61, 90, 0.06);
  color: var(--hw-news-muted);
}

.happyworld-page-links {
  display: block;
  margin: 2em 0 0;
  padding: 14px 16px;
  font-size: 14px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
}

.happyworld-post-nav {
  margin-top: 36px;
}

.happyworld-post-nav .post-navigation {
  display: grid;
  gap: 14px;
}

.happyworld-post-nav .nav-previous a,
.happyworld-post-nav .nav-next a {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--hw-news-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.happyworld-post-nav .nav-previous a:hover,
.happyworld-post-nav .nav-next a:hover {
  border-color: rgba(230, 61, 90, 0.4);
  box-shadow: 0 8px 24px rgba(230, 61, 90, 0.1);
}

.happyworld-post-nav .nav-next {
  text-align: right;
}

.happyworld-post-nav .nav-label {
  display: block;
  color: #999;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.happyworld-post-nav .nav-title {
  color: var(--hw-news-text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.happyworld-post-nav a:hover .nav-title {
  color: var(--hw-news-mc);
}

@media (min-width: 600px) {
  .happyworld-post-nav .post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

.happyworld-back-to-news {
  margin: 28px 0 0;
  text-align: center;
}

.happyworld-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #f06b82 0%, var(--hw-news-mc) 100%);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(230, 61, 90, 0.25);
}

.happyworld-back-pill:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* 正文自动内链 */
.happyworld-auto-internal-link {
  color: var(--hw-news-mc);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(230, 61, 90, 0.35);
  text-underline-offset: 3px;
}

.happyworld-auto-internal-link:hover {
  color: var(--hw-news-mc-dark);
  text-decoration-color: var(--hw-news-mc);
}

/* 文末相关阅读 */
.happyworld-related-posts {
  margin: 32px 0 0;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--hw-news-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.happyworld-related-posts-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hw-news-text);
}

.happyworld-related-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.happyworld-related-posts-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--hw-news-bg);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.happyworld-related-posts-link:hover {
  border-color: rgba(230, 61, 90, 0.28);
  background: #fff;
}

.happyworld-related-posts-item-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hw-news-text);
}

.happyworld-related-posts-link:hover .happyworld-related-posts-item-title {
  color: var(--hw-news-mc);
}

.happyworld-related-posts-item-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--hw-news-muted);
}
