.knowledge-hero .container {
  max-width: 900px;
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  margin-right: auto;
}

.knowledge-hero h1,
.knowledge-hero p {
  max-width: 820px;
}

.knowledge-categories {
  background: var(--hy-card);
  border-bottom: 1px solid var(--hy-border);
}

.category-strip {
  display: flex;
  gap: 12px;
  padding: 22px 0;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--hy-bg-soft);
  color: var(--hy-text);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.category-strip a:hover {
  color: var(--hy-brand-blue);
  border-color: rgba(0, 108, 217, .18);
  background: var(--hy-brand-blue-soft);
}

.answer-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.answer-panel {
  background: #fff;
  border: 1px solid var(--hy-border);
  border-left: 4px solid var(--hy-brand-blue);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: none;
}

.answer-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.answer-panel-head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  text-align: left;
}

.answer-panel-lead {
  margin: 0;
  max-width: 86ch;
  font-size: 16px;
  line-height: 1.76;
  color: var(--hy-text-muted);
  text-align: left;
}

.answer-takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.answer-takeaway {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--hy-bg-soft);
  border: 1px solid var(--hy-border);
}

.answer-takeaway strong {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hy-primary);
}

.featured-grid,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.knowledge-card {
  display: flex;
  flex-direction: column;
  min-height: 332px;
  --card-header-height: 104px;
  --card-body-height: 122px;
  --card-footer-height: 42px;
}

.knowledge-card .card-header {
  padding-bottom: 6px;
  min-height: 102px;
}

.knowledge-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 8px;
}

.knowledge-card h3 a {
  color: var(--hy-primary);
}

.knowledge-card .card-body {
  flex: 1;
}

.knowledge-card .card-body p {
  color: var(--hy-text-muted);
  line-height: 1.58;
}

.article-audience {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hy-brand-blue-soft);
  color: var(--hy-brand-blue);
  font-size: 13px;
  line-height: 1.5;
}

.article-audience strong {
  margin-right: 4px;
}

.knowledge-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-top: 8px;
}

.knowledge-card .article-meta {
  margin: 0;
  color: var(--hy-text-muted);
  font-size: 13px;
}

.article-link {
  color: var(--hy-brand-blue);
  font-weight: 800;
  font-size: 14px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-card {
  min-height: 198px;
  --card-header-height: 82px;
  --card-body-height: 78px;
  --card-footer-height: 34px;
}

.news-card .card-header {
  min-height: 82px;
}

.news-card h3 {
  font-size: 20px;
  color: var(--hy-primary);
}

.news-card p {
  color: var(--hy-text-muted);
  line-height: 1.58;
}

.news-card .card-footer {
  padding-top: 10px;
}

.news-card time {
  color: var(--hy-text-muted);
  font-size: 14px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.article-hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hy-border);
}

.article-hero.has-bg {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  border-bottom: none;
}

.article-hero.has-bg .article-hero-title {
  color: #fff;
}

.article-hero.has-bg .article-hero-desc {
  color: rgba(255, 255, 255, 0.9);
}

.article-hero-inner,
.article-shell {
  max-width: 900px;
  margin: 0 auto;
}

.article-hero-inner {
  text-align: center;
}

.article-hero-title {
  margin: 24px 0 16px;
}

.article-hero-desc {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--hy-text-muted);
}

.article-answer-panel {
  margin-bottom: 32px;
}

.article-summary-card {
  margin-bottom: 40px;
  background: var(--hy-bg-soft);
  border-left: 4px solid var(--hy-brand-blue);
}

.article-summary-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.article-summary-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hy-text);
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--hy-text);
}

.article-body p {
  margin: 0 0 24px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, .06);
  color: var(--hy-primary);
  font-size: .92em;
  word-break: break-word;
}

.article-body pre {
  margin: 22px 0 30px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #111827;
  color: #e5edf7;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
}

.article-body pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  word-break: normal;
}

.article-section-title {
  margin: 48px 0 24px;
}

.article-table-wrap {
  overflow-x: auto;
  margin-bottom: 48px;
}

.article-spec-table {
  min-width: 680px;
}

.article-spec-table thead {
  background: var(--hy-bg-soft);
}

.article-table-key {
  font-weight: 700;
}

.article-faq-section {
  margin-top: 64px;
}

.article-faq-title {
  margin-top: 0;
  margin-bottom: 32px;
}

.article-related-section {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--hy-border);
}

.article-related-section .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.article-related-section .product-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  min-height: 100%;
}

.article-related-section .product-card-media {
  aspect-ratio: 4 / 3;
}

.article-related-section .product-card-body {
  padding: 16px 16px 14px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-height: 0;
}

.article-related-title {
  margin-top: 0;
  margin-bottom: 32px;
  text-align: center;
}

.article-related-tag {
  background: var(--hy-bg-soft);
  color: var(--hy-text-muted);
  margin-bottom: 0;
}

.article-related-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  min-height: 46px;
  display: flex;
  align-items: flex-start;
}

.article-related-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hy-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-related-section .product-card-link {
  display: inline-flex;
  width: auto;
  min-width: 108px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .answer-takeaways {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card {
    min-height: auto;
  }

  .article-related-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .answer-panel {
    border-radius: 14px;
    padding: 22px 18px;
  }

  .article-hero {
    padding: 64px 0;
  }

  .article-related-section .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-related-section .product-card-body {
    padding: 16px;
  }

  .article-related-card-title {
    min-height: auto;
    font-size: 17px;
  }

  .answer-panel-head h2 {
    font-size: 22px;
  }

  .answer-panel-lead {
    font-size: 16px;
  }

  .knowledge-hero .container {
    margin-left: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-hero-desc,
  .article-body {
    font-size: 16px;
  }

  .featured-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card {
    min-height: auto;
  }
}

/* ===== 华颐动态新闻详情页样式 ===== */
.news-article-body {
  max-width: 780px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--hy-text);
}

.news-article-body h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--hy-primary);
}

.news-article-body h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.news-article-body p {
  margin-bottom: 20px;
  text-align: justify;
  text-align-last: left;
}

.news-article-body ul,
.news-article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.news-article-body li {
  margin-bottom: 8px;
}

.news-article-body img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

.news-back-link {
  max-width: 780px;
  margin: 0 auto 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hy-border);
}

.news-back-link a {
  color: var(--hy-brand-blue);
  font-weight: 600;
  font-size: 15px;
}

.news-back-link a:hover {
  text-decoration: underline;
}

/* 华颐动态卡片：标题可点击 */
.news-card h3 a {
  color: var(--hy-primary);
  text-decoration: none;
  transition: color .2s ease;
}

.news-card h3 a:hover {
  color: var(--hy-brand-blue);
}

.news-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.news-card .article-link {
  color: var(--hy-brand-blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.news-card .article-link:hover {
  text-decoration: underline;
}
