@charset "UTF-8";
/* ==========================================================================
   深川新能源 · 新闻动态样式
   与 style.css 共用设计令牌，仅补充新闻列表 / 详情 / 首页板块所需样式
   ========================================================================== */

/* ---------- 1. 筛选工具栏 ---------- */
/* 关键：display:grid 会覆盖 [hidden] 的默认 display:none，必须显式声明 */
[hidden] { display: none !important; }

.news-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 40px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}

.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.news-tab {
  appearance: none; border: 1px solid var(--line); background: var(--white);
  color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  transition: all .22s ease; white-space: nowrap;
}
.news-tab:hover { border-color: var(--blue-400); color: var(--blue-600); }
.news-tab.is-active {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .18);
}

.news-search {
  position: relative; display: flex; align-items: center;
  min-width: 260px; flex: 0 1 300px;
}
.news-search svg {
  position: absolute; left: 15px; width: 17px; height: 17px;
  color: var(--muted); pointer-events: none;
}
.news-search input {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 11px 16px 11px 42px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--white); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.news-search input::placeholder { color: #A3B0C0; }
.news-search input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(61, 139, 255, .12);
}
.news-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- 2. 新闻卡片栅格 ---------- */
.news-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-grid > * { min-width: 0; }

.news-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600) 60%, #1B6FE0);
  flex: none;
}
.news-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.news-card:hover .news-card__media img { transform: scale(1.05); }

/* 无封面时的占位图案 */
.news-card__media::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px; pointer-events: none;
}
.news-card__media.has-cover::after { display: none; }

.news-card__body {
  padding: 24px 24px 26px; display: flex; flex-direction: column;
  flex: 1; gap: 12px;
}

.news-card__meta {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  color: var(--muted); flex-wrap: wrap;
}
.news-card__date {
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.news-card__date svg { width: 14px; height: 14px; opacity: .75; }

.news-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.news-tag--company { background: var(--blue-100); color: var(--blue-600); }
.news-tag--industry { background: var(--orange-100); color: #C05600; }
.news-tag--update { background: #E2F6EE; color: #0A7A56; }
.news-tag--pin {
  background: linear-gradient(96deg, var(--orange-500), var(--orange-400));
  color: #fff;
}

.news-card__title {
  font-size: 18.5px; line-height: 1.5; font-weight: 700; color: var(--navy-800);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.news-card:hover .news-card__title { color: var(--blue-600); }

.news-card__excerpt {
  font-size: 14.5px; line-height: 1.75; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: -2px;
}

.news-card__more {
  margin-top: auto; padding-top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--blue-600);
}
.news-card__more svg {
  width: 15px; height: 15px;
  transition: transform .25s ease;
}
.news-card:hover .news-card__more svg { transform: translateX(4px); }

.news-card__link { position: absolute; inset: 0; z-index: 2; }

/* ---------- 3. 骨架屏 ---------- */
.news-card.is-skeleton { pointer-events: none; }
.news-card.is-skeleton .news-card__media { background: var(--bg-soft-2); }
.news-card.is-skeleton .news-card__body { gap: 14px; }

.sk-line {
  display: block; height: 13px; border-radius: 6px;
  background: linear-gradient(90deg, #EDF3FA 25%, #E2EBF5 37%, #EDF3FA 63%);
  background-size: 400% 100%;
  animation: skShimmer 1.5s ease-in-out infinite;
}
.sk-line.sk-sm { width: 34%; height: 11px; }
.sk-line.sk-lg { width: 92%; height: 18px; }
.sk-line.sk-title { width: 88%; height: 26px; }
.sk-line.sk-title.short { width: 62%; }
.sk-line.sk-meta { width: 46%; height: 12px; }
.sk-line.sk-para { width: 100%; }
.sk-line.sk-para.short { width: 68%; }

@keyframes skShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 4. 空状态 ---------- */
.news-empty {
  text-align: center; padding: 76px 24px; color: var(--muted);
}
.news-empty svg {
  width: 54px; height: 54px; color: #C6D4E3; margin-bottom: 18px;
}
.news-empty p { font-size: 16px; }

/* ---------- 5. 分页 ---------- */
.news-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 54px; flex-wrap: wrap;
}
.news-pager button {
  appearance: none; font: inherit; font-size: 14.5px; font-weight: 600;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--white); color: var(--text);
  border-radius: 10px; cursor: pointer;
  transition: all .2s ease;
}
.news-pager button:hover:not(:disabled) {
  border-color: var(--blue-400); color: var(--blue-600);
}
.news-pager button.is-active {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
}
.news-pager button:disabled { opacity: .4; cursor: not-allowed; }
.news-pager .pager-gap { color: var(--muted); padding: 0 4px; user-select: none; }

/* ---------- 6. 首页新闻板块（一大两小） ---------- */
.home-news { position: relative; }

.home-news-grid {
  display: grid; gap: 26px;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  align-items: start;
}
.home-news-grid > * { min-width: 0; }

/* 左侧主打 */
.news-hero {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); min-height: 420px;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700) 58%, #14456F);
  isolation: isolate;
}
.news-hero__media { position: absolute; inset: 0; z-index: -2; }
.news-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.news-hero:hover .news-hero__media img { transform: scale(1.04); }
.news-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 18, 31, .95) 0%, rgba(4, 18, 31, .72) 38%, rgba(4, 18, 31, .18) 72%, rgba(4, 18, 31, .1) 100%);
}
.news-hero__body {
  position: absolute; inset: auto 0 0 0; padding: 38px 38px 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.news-hero__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .72);
}
.news-hero__meta .news-tag--company { background: rgba(61, 139, 255, .22); color: #B6D6FF; }
.news-hero__meta .news-tag--industry { background: rgba(255, 160, 51, .2); color: #FFD5A8; }
.news-hero__date { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.news-hero__date svg { width: 14px; height: 14px; opacity: .8; }

.news-hero__title {
  font-size: clamp(21px, 2.5vw, 29px); line-height: 1.42; font-weight: 700;
  color: #fff; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-hero__excerpt {
  font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .76);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hero__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 14.5px; font-weight: 600; color: var(--orange-400);
}
.news-hero__more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.news-hero:hover .news-hero__more svg { transform: translateX(5px); }

/* 右侧列表 */
.news-mini-list {
  display: flex; flex-direction: column; gap: 14px; height: 100%;
}
.news-mini {
  position: relative; display: flex; gap: 16px; align-items: stretch;
  padding: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.news-mini:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.news-mini__thumb {
  width: 108px; flex: none; aspect-ratio: 4 / 3; border-radius: 10px;
  overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600) 70%, var(--blue-500));
}
.news-mini__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-mini__thumb::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.news-mini__thumb.has-cover::after { display: none; }

.news-mini__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.news-mini__title {
  font-size: 15.5px; line-height: 1.5; font-weight: 700; color: var(--navy-800);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: color .2s ease;
}
.news-mini:hover .news-mini__title { color: var(--blue-600); }
.news-mini__meta {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px;
  color: var(--muted); margin-top: auto; flex-wrap: wrap;
}
.news-mini__link { position: absolute; inset: 0; z-index: 2; }

/* 板块顶部：标题 + 查看全部 */
.home-news-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.home-news-more {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 15px; font-weight: 600; color: var(--blue-600);
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  transition: all .22s ease;
}
.home-news-more:hover {
  border-color: var(--navy-800); background: var(--navy-800); color: #fff;
}
.home-news-more svg { width: 16px; height: 16px; }

/* 首页板块骨架 */
.home-news-skeleton { display: grid; gap: 26px; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); }
.home-news-skeleton > * { min-width: 0; }
.sk-hero { min-height: 420px; border-radius: var(--radius-lg); }
.sk-mini { height: 116px; border-radius: var(--radius); }
.home-news-skeleton .sk-block {
  background: linear-gradient(90deg, #EDF3FA 25%, #E2EBF5 37%, #EDF3FA 63%);
  background-size: 400% 100%; animation: skShimmer 1.5s ease-in-out infinite;
}

/* ---------- 7. 新闻详情页 ---------- */
.article-section { padding-top: 120px; }

.article-wrap {
  display: grid; gap: 52px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
.article-wrap > * { min-width: 0; }

.article { min-width: 0; }

.breadcrumb--dark { color: var(--muted); margin-bottom: 26px; }
.breadcrumb--dark a { color: var(--muted); }
.breadcrumb--dark a:hover { color: var(--blue-600); }
.breadcrumb--dark .cur { color: var(--ink); }

.article-head { margin-bottom: 30px; }
.article-title {
  font-size: clamp(23px, 3vw, 34px); line-height: 1.45; color: var(--navy-800);
  margin: 16px 0 20px; font-weight: 700;
}
.article-meta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.article-meta__item { display: inline-flex; align-items: center; gap: 7px; }
.article-meta__item svg { width: 15px; height: 15px; opacity: .7; }
.article-meta__item i { font-style: normal; }

.article-cover {
  margin: 0 0 34px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft);
}
.article-cover img { width: 100%; height: auto; display: block; }

.article-prose { font-size: 16.5px; line-height: 2; }
.article-prose h2 { font-size: clamp(19px, 2.2vw, 23px); margin: 40px 0 16px; }
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { font-size: 18.5px; }
.article-prose img {
  max-width: 100%; height: auto; border-radius: var(--radius);
  margin: 26px 0; display: block;
}
/* 正文配图：图片 + 图注
   注意 figcaption 用「居中 + 弱化色 + 小字号」，不抢正文视线；
   figure 自带上下间距，避免和 p 的边距叠加出过大空白。 */
.article-prose figure { margin: 30px 0; }
.article-prose figure img { margin: 0; }
.article-prose figcaption {
  margin-top: 12px; font-size: 13.5px; line-height: 1.75;
  color: var(--muted); text-align: center;
}
/* 导语段：首段略加重，做「电头」的视觉断点 */
.article-prose .lead {
  font-size: 17.5px; line-height: 1.95; color: var(--navy-800);
  padding-left: 18px; border-left: 3px solid var(--blue-500);
}
.article-prose ul, .article-prose ol { margin: 18px 0 18px 22px; }
.article-prose li { margin-bottom: 10px; }
.article-prose li::marker { color: var(--blue-500); }
.article-prose blockquote {
  margin: 26px 0; padding: 18px 24px;
  background: var(--bg-soft); border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text); font-size: 15.5px;
}
.article-prose blockquote p { margin: 0; }
.article-prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.article-prose table {
  width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px;
  display: block; overflow-x: auto;   /* 手机端宽表格可横向滚动，不撑破布局 */
}
.article-prose th, .article-prose td {
  border: 1px solid var(--line); padding: 11px 14px; text-align: left;
}
.article-prose th { background: var(--bg-soft); font-weight: 700; color: var(--navy-800); }

.article-foot {
  margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line);
}

/* 详情页侧栏 */
.article-side {
  position: sticky; top: calc(var(--header-h) + 26px);
  display: flex; flex-direction: column; gap: 22px;
}
.side-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.side-card__title {
  font-size: 16.5px; font-weight: 700; color: var(--navy-800);
  margin-bottom: 18px; padding-left: 12px; position: relative;
}
.side-card__title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue-500), var(--orange-500));
}

.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: block; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  transition: all .2s ease;
}
.side-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-item__title {
  font-size: 14.5px; line-height: 1.6; color: var(--text); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: color .2s ease;
}
.side-item:hover .side-item__title { color: var(--blue-600); }
.side-item__date { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }

.side-card--cta {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 70%, #14456F);
  border-color: transparent; color: rgba(255, 255, 255, .8);
}
.side-card--cta .side-card__title { color: #fff; }
.side-card--cta p { font-size: 14.5px; line-height: 1.75; margin-bottom: 20px; }
.side-card--cta .btn { width: 100%; justify-content: center; }
.side-tel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 16px; font-weight: 700; color: #fff;
}
.side-tel svg { width: 17px; height: 17px; color: var(--orange-400); }

/* 详情骨架 */
.article-skeleton { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }

/* ---------- 8. 响应式 ---------- */

/* 平板（≤1080px）：新闻栅格降为两列，详情侧栏下沉 */
@media (max-width: 1080px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .article-side { position: static; }
  .article-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .home-news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .news-hero { min-height: 360px; }
  .home-news-skeleton { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sk-hero { min-height: 360px; }
}

/* 平板竖屏 / 大屏手机（≤900px）：首页新闻板块改为上下堆叠 */
@media (max-width: 900px) {
  .home-news-grid { grid-template-columns: minmax(0, 1fr); }
  .home-news-skeleton { grid-template-columns: minmax(0, 1fr); }
  .news-hero { min-height: 320px; }
  .news-hero__body { padding: 30px 28px 28px; }
}

/* 手机（≤680px） */
@media (max-width: 680px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-toolbar { margin-bottom: 28px; gap: 14px; }
  .news-search { flex: 1 1 100%; min-width: 0; }
  .news-tabs { width: 100%; }
  .news-tab { flex: 1 1 auto; padding: 9px 16px; font-size: 14px; text-align: center; }
  .news-tab[data-cat="update"] { flex: 0 0 calc(50% - 4px); }

  .news-card__body { padding: 20px 20px 22px; }
  .news-card__title { font-size: 17px; }
  .news-card__excerpt { font-size: 14px; -webkit-line-clamp: 2; }

  .news-hero { min-height: 300px; }
  .news-hero__body { padding: 24px 20px 22px; gap: 11px; }
  .news-hero__title { font-size: 19px; -webkit-line-clamp: 3; }
  .news-hero__excerpt { display: none; }   /* 窄屏去掉摘要，优先标题可读性 */

  .news-mini { padding: 13px; gap: 13px; }
  .news-mini__thumb { width: 88px; }
  .news-mini__title { font-size: 14.5px; }

  .home-news-head { margin-bottom: 26px; gap: 16px; }
  .home-news-more { padding: 9px 16px; font-size: 14px; }

  .article-section { padding-top: 100px; }
  .article-title { font-size: 21px; margin: 12px 0 16px; }
  .article-meta { gap: 14px; font-size: 13px; }
  .article-prose { font-size: 15.5px; line-height: 1.95; }
  .article-side { grid-template-columns: minmax(0, 1fr); }
  .side-card { padding: 22px 20px; }

  .news-pager { margin-top: 40px; gap: 6px; }
  .news-pager button { min-width: 38px; height: 38px; padding: 0 11px; font-size: 14px; }
}

/* 超小屏（≤420px） */
@media (max-width: 420px) {
  .news-mini__thumb { width: 74px; }
  .news-mini__desc { display: none; }
  .news-hero { min-height: 260px; }
}

/* 触屏设备：卡片点击反馈更明确 */
@media (hover: none) {
  .news-card:active { transform: scale(.985); }
  .news-mini:active { transform: translateX(2px); }
}
