/* =====================================================================
   余安高端陪护 · 新闻资讯页样式
   ===================================================================== */

/* ---------- 分类筛选 ---------- */
.news-categories {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h));
  z-index: 90;
}

.news-categories .container {
  display: flex;
  justify-content: center;
}

.category-list {
  display: flex;
  gap: 10px;
  padding: 18px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.category-list button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-list button:hover {
  border-color: var(--primary-mid);
  color: var(--primary);
}

.category-list button.active {
  background: var(--grad-green);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(51, 176, 51, 0.24);
}

/* ---------- 头条 ---------- */
.news-featured {
  background: var(--bg);
}

.featured-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.featured-cover {
  position: relative;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
}

.featured-cover::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  border-radius: 50%;
}

.featured-cover img {
  width: 150px;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.featured-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 2;
}

.featured-content {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
}

.featured-content h2 {
  font-size: 27px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 16px;
}

.featured-content > p {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.9;
  margin-bottom: 22px;
}

.featured-meta {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-3);
}

.featured-meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-content .btn {
  align-self: flex-start;
}

/* ---------- 新闻列表 ---------- */
.news-section {
  background: var(--bg);
  padding-top: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.news-cover {
  position: relative;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-cover svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.cover-a { background: var(--grad-green); }
.cover-b { background: var(--grad-blue); }
.cover-c { background: var(--grad-brand); }
.cover-d { background: linear-gradient(135deg, #7FD24A, #2E9E56); }
.cover-e { background: linear-gradient(135deg, #4FC3E8, #0A6FA8); }
.cover-f { background: linear-gradient(135deg, #6FCB3F, #12A06E); }
.cover-g { background: linear-gradient(135deg, #33B6E4, #0A90C0); }
.cover-h { background: linear-gradient(135deg, #A2D400, #4CAF2A); }
.cover-i { background: linear-gradient(135deg, #2FAF7A, #0A7A9C); }

.news-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.news-content {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-content h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-content p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.news-meta > span {
  font-size: 13px;
  color: var(--text-3);
}

.news-readmore {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
}

.news-readmore:hover {
  color: var(--blue);
  transform: translateX(3px);
}

/* ---------- 关注提示 ---------- */
.news-cta {
  background: #fff;
}

.news-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background: var(--grad-brand);
  border-radius: 24px;
  padding: 44px 46px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.news-cta-box::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  border-radius: 50%;
}

.news-cta-text {
  position: relative;
  z-index: 2;
}

.news-cta-text h2 {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.news-cta-text p {
  font-size: 15px;
  opacity: 0.92;
}

.news-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.news-cta-actions .btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1024px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { min-height: 200px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cta-box { flex-direction: column; text-align: center; padding: 36px 28px; }
}

@media (max-width: 860px) {
  .news-categories { position: static; }
}

@media (max-width: 520px) {
  .featured-content { padding: 28px 22px; }
  .featured-content h2 { font-size: 21px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-cta-actions { flex-direction: column; width: 100%; }
  .news-cta-actions .btn { width: 100%; }
}
