@charset "utf-8";

/* ============================================================
   news.css — 新闻列表 / 资讯页
   ============================================================ */

.news-page .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
}

.news-card {
  min-width: 0;
}

.news-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card__pic {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
  border-radius: 2px;
}

.news-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.news-card__body {
  padding-top: clamp(16px, 2vw, 20px);
}

.news-card__date {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-text-muted);
}

.news-card__title {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color .25s var(--ease);
}

.news-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-sub);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-card__link:hover .news-card__pic img {
  transform: scale(1.05);
}

.news-card__link:hover .news-card__title {
  color: var(--c-primary);
}

.news-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 0 8px;
  color: var(--c-text-muted);
  font-size: 14px;
}

.news-load[hidden],
.news-end[hidden] {
  display: none !important;
}

.news-load__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e5e5;
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: news-spin .8s linear infinite;
}

@keyframes news-spin {
  to { transform: rotate(360deg); }
}

.news-end {
  margin: 0;
  padding: 32px 0 8px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text-muted);
}

.news-sentinel {
  width: 100%;
  height: 1px;
}

.news-empty {
  margin: 0;
  padding: 80px 0;
  text-align: center;
  font-size: 15px;
  color: var(--c-text-muted);
}

@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-card__pic {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card__pic img,
  .news-load__spinner {
    transition: none;
    animation: none;
  }
}

/* ============================================================
   新闻详情页 — 参考台铃资讯详情布局
   ============================================================ */

.page-news-read .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.news-read {
  padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 8vw, 96px);
  background: #fff;
}

.news-read .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

/* 面包屑 */
.news-read__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.news-read__crumb a {
  color: var(--c-text-muted);
  transition: color .25s var(--ease);
}

.news-read__crumb a:hover {
  color: var(--c-primary);
}

.news-read__crumb-sep,
.news-read__crumb .inner-breadcrumb__sep {
  color: var(--c-text-muted);
  opacity: .7;
}

.news-read__crumb .inner-breadcrumb__current {
  color: var(--c-text-sub);
}

/* 主栏 + 侧栏 */
.news-read__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.news-read__head {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.news-read__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  letter-spacing: .01em;
}

.news-read__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #999;
}

.news-read__body {
  font-size: 16px;
  line-height: 2;
  color: #666;
  word-break: break-word;
}

.news-read__body p {
  margin: 0 0 1.2em;
}

.news-read__body strong,
.news-read__body b {
  font-weight: 700;
  color: #333;
}

.news-read__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
}

.news-read__body h2,
.news-read__body h3,
.news-read__body h4 {
  margin: 1.8em 0 .8em;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.news-read__body h2 {
  font-size: clamp(20px, 2vw, 24px);
}

.news-read__body h3 {
  font-size: clamp(18px, 1.8vw, 20px);
}

.news-read__body a {
  color: var(--c-primary);
}

.news-read__body a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-read__body video,
.news-read__body iframe {
  display: block;
  max-width: 100%;
  margin: 1.6em auto;
}

/* 上下篇 / 返回 */
.news-read__foot {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(28px, 3vw, 36px);
  border-top: 1px solid #eee;
}

.news-read__nav {
  margin-bottom: 28px;
}

.news-read__nav-item {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.news-read__nav-item:last-child {
  margin-bottom: 0;
}

.news-read__nav-label {
  color: #999;
}

.news-read__nav-item a {
  color: #333;
  transition: color .25s var(--ease);
}

.news-read__nav-item a:hover {
  color: var(--c-primary);
}

.news-read__nav-empty {
  color: #999;
}

.news-read__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 28px;
  font-size: 14px;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}

.news-read__back:hover {
  color: var(--c-primary);
  background: #fff;
  border-color: rgba(0, 102, 204, 0.25);
}

/* 看了又看 — 右侧竖列 */
.news-read__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.news-read__related-title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #999;
}

.news-read__related-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-read__related-card {
  display: block;
  min-width: 0;
  color: inherit;
}

.news-read__related-pic {
  margin: 0 0 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
}

.news-read__related-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.news-read__related-card:hover .news-read__related-pic img {
  transform: scale(1.04);
}

.news-read__related-name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #666;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color .25s var(--ease);
}

.news-read__related-card:hover .news-read__related-name {
  color: var(--c-primary);
}

@media (max-width: 1024px) {
  .news-read__layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .news-read__layout {
    grid-template-columns: 1fr;
  }

  .news-read__aside {
    position: static;
    margin-top: 16px;
    padding-top: 36px;
    border-top: 1px solid #eee;
  }

  .news-read__related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .news-read__title {
    font-size: 22px;
  }

  .news-read__body {
    font-size: 15px;
    line-height: 1.9;
  }

  .news-read__body h2,
  .news-read__body h3,
  .news-read__body h4 {
    text-align: left;
  }

  .news-read__related-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-read__related-pic img,
  .news-read__back,
  .news-read__related-card,
  .news-read__crumb a,
  .news-read__nav-item a {
    transition: none;
  }
}
