﻿/* ============================================================
   Reinwind News Page Styles
   新闻资讯页 — 统一全站设计语言
   ============================================================ */

/* ========== News Page Main ========== */
.news-page {
  padding: 80px 0 100px;
  background: #fff;
  min-height: var(--vh-screen);
}

/* ========== 新闻分区通用 ========== */
.news-section {
  padding: 80px 0;
}
.news-section:first-of-type {
  padding-top: 0;
}
.news-section:last-child {
  padding-bottom: 0;
}
.news-section.alt {
  background: var(--color-gray-light);
  margin-left: -9999px;
  margin-right: -9999px;
  padding: 80px 9999px;
  margin-top: 0;
}

.news-section-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}
.news-section-title {
  text-align: center;
}
.news-section-head .section-label {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid, #999);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.news-section-head .section-cn {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: var(--fw-title);
  color: var(--color-black);
  position: relative;
  z-index: 1;
  margin: 0;
}
.news-section-head .more-link {
  display: none; /* 旧位置（标题旁）已废弃；MORE 统一移到卡片网格下方，见 .more-link--bottom */
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.more-link:hover { gap: 10px; }
.more-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* MORE 按钮：作为 section 最后一个子元素，位于卡片网格下方、板块左下角 */
.more-link--bottom {
  display: inline-flex;
  margin-top: 32px;
}

/* ========== 通用标签 ========== */
.news-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-alpha);
  color: var(--color-primary);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========== 焦点推荐区（4 卡片横向轮播，视口全宽；卡片等高） ========== */
.focus-viewport {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.news-focus-carousel {
  overflow: hidden;
  /* 左右留 16px 让卡片 hover 阴影不被裁 */
  margin: 0 24px;
  padding: 16px;
}
.focus-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.focus-slide {
  flex: 0 0 25%;
  min-width: 25%;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
}
.focus-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.focus-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.focus-body { padding: 24px; }
.focus-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-alpha);
  color: var(--color-primary);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.focus-body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

/* 轮播控制条：左 MORE，右 dots */
.focus-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.focus-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.focus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6dbe3;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.focus-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}
.focus-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
}
.focus-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.focus-arrow svg { width: 16px; height: 16px; stroke: var(--color-black); fill: none; stroke-width: 2; stroke-linecap: round; }
.focus-arrow.prev { left: -8px; }
.focus-arrow.next { right: -8px; }

/* ========== 公司新闻 ========== */
.corporate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.corporate-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.corporate-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.ci-date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  padding: 14px 10px;
  background: var(--color-gray-light);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ci-day {
  display: block;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}
.ci-ym {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  margin-top: 6px;
  color: var(--color-gray-mid);
  font-weight: 500;
}
.ci-content h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-content p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 绿色足迹 ========== */
.footprint-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.footprint-main {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footprint-main:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.fp-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.footprint-main:hover .fp-img { transform: scale(1.03); }
.fp-info { padding: 28px; }
.fp-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-alpha);
  color: var(--color-primary);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.fp-info h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-black);
  line-height: 1.4;
}
.fp-info p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footprint-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fp-item {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.fp-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.fp-tag-sm {
  display: inline-block;
  padding: 3px 8px;
  background: var(--color-primary-alpha);
  color: var(--color-primary);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.fp-item h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-black);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-stat {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid);
  font-weight: 500;
}

/* ========== 产品知识 ========== */
.product-knowledge {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pk-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  align-items: center;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.pk-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.pk-item.reverse { direction: rtl; }
.pk-item.reverse > * { direction: ltr; }

.pk-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pk-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-alpha);
  color: var(--color-primary);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.pk-meta time {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid);
  font-weight: 500;
}
.pk-content h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-black);
  line-height: 1.4;
}
.pk-content p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pk-img {
  border-radius: 10px;
  overflow: hidden;
}
.pk-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pk-item:hover .pk-img img { transform: scale(1.03); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .news-page { padding: 60px 0 80px; }
  .news-section { padding-bottom: 100px; }
  .news-section.alt { padding: 60px 9999px; }
    .news-section-head .section-cn { font-size: 24px; }
  .footprint-layout { grid-template-columns: 1fr; }
  .pk-item, .pk-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    padding: 28px;
  }
  .pk-item.reverse > * { direction: ltr; }
  .pk-img img { height: 220px; }
}

@media (max-width: 768px) {
  .news-page { padding: 48px 0 64px; }
  .news-section { padding-bottom: 48px; }
  .news-section.alt { padding: 48px 9999px; }
  .news-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
    .news-section-head .section-cn { font-size: 22px; }

  .focus-slide { flex: 0 0 100%; min-width: 100%; padding: 0; }
  .focus-img { height: 180px; }

  .corporate-grid { grid-template-columns: 1fr; }
  .corporate-item {
    flex-direction: column;
    padding: 24px;
  }
  .ci-date {
    width: 100%;
    flex-direction: row;
    gap: 10px;
    padding: 10px 16px;
  }
  .ci-day { font-size: 22px; }

  .fp-img { height: 200px; }
  .fp-info { padding: 22px; }
  .fp-item { padding: 18px 20px; }

  .pk-item { padding: 24px; }
  .pk-content h3 { font-size: 18px; }
  .pk-img img { height: 200px; }
}

/* ========== 主容器：85% 宽 + 内容水平垂直居中 ========== */
main.news-page > .wrap {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
